Table of Contents

Method Process

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

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

Renders primitives using each of the array data in an observable sequence.

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

Parameters

source IObservable<TVertex[]>

A sequence of vertex array data used to render each primitive.

Returns

IObservable<TVertex[]>

An observable sequence that is identical to the source sequence but where there is an additional side effect of scheduling a primitive render operation where vertex data is drawn from each of the arrays in the sequence.

Type Parameters

TVertex

The type of the array elements used to render each primitive.

Process(IObservable<Mat>)

Renders primitives using each of the matrix data in an observable sequence.

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

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the vertex array data used to render each primitive.

Returns

IObservable<Mat>

An observable sequence that is identical to the source sequence but where there is an additional side effect of scheduling a primitive render operation where vertex data is drawn from each of the matrices in the sequence.