Table of Contents

Method Process

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Process<TVertex>(IObservable<TVertex[]>)

Draws the specified mesh geometry using instanced rendering, where each array in an observable sequence stores the per-instance attributes.

public IObservable<TVertex[]> Process<TVertex>(IObservable<TVertex[]> source) where TVertex : struct

Parameters

source IObservable<TVertex[]>

A sequence of per-instance attribute data used to render each instance.

Returns

IObservable<TVertex[]>

An observable sequence that is identical to the source sequence but where there is an additional side effect of scheduling an instanced rendering operation where instance attribute data is drawn from each of the arrays in the sequence.

Type Parameters

TVertex

The type of the array elements used to store the per-instance attributes.

Process(IObservable<Mat>)

Draws the specified mesh geometry using instanced rendering, where each of the matrix data in an observable sequence stores the per-instance attributes.

public override IObservable<Mat> Process(IObservable<Mat> source)

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the per-instance attribute data used to render each instance.

Returns

IObservable<Mat>

An observable sequence that is identical to the source sequence but where there is an additional side effect of scheduling an instanced rendering operation where instance attribute data is drawn from each of the matrices in the sequence.