Table of Contents

Class DrawMeshAggregate

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that aggregates the specified mesh geometry attributes into a single draw command.

public class DrawMeshAggregate : Sink
Inheritance
DrawMeshAggregate
Inherited Members

Properties

MeshNames

Gets the collection of references to pre-declared mesh geometry specifying the set of attributes to aggregate for drawing.

public Collection<MeshName> MeshNames { get; }

Property Value

Collection<MeshName>

Remarks

Each mesh geometry will have all its attributes combined into the final rendered buffer, as if they are all part of the same mesh.

ShaderName

Gets or sets the name of the material shader program used in the drawing operation.

[TypeConverter(typeof(MaterialNameConverter))]
public string ShaderName { get; set; }

Property Value

string

Methods

Process<TSource>(IObservable<TSource>)

Draws the aggregate mesh geometry whenever an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used to start drawing the aggregate mesh geometry.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where there is an additional side effect of drawing the aggregate mesh geometry whenever the sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.