Table of Contents

Class UpdateRenderState

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that updates the render state of the shader window.

public class UpdateRenderState : Sink
Inheritance
UpdateRenderState
Inherited Members

Properties

RenderState

Gets the collection of configuration objects specifying the render states to assign for subsequent operations.

public StateConfigurationCollection RenderState { get; }

Property Value

StateConfigurationCollection

Methods

Process(IObservable<ResourceConfigurationCollection>)

Updates the render state of the shader window contained in each set of resources in an observable sequence.

public IObservable<ResourceConfigurationCollection> Process(IObservable<ResourceConfigurationCollection> source)

Parameters

source IObservable<ResourceConfigurationCollection>

A sequence of ResourceConfigurationCollection objects containing the shader windows to update.

Returns

IObservable<ResourceConfigurationCollection>

An observable sequence that is identical to the source sequence but where there is an additional side effect of updating the render state of the shader window contained in each set of resources in the sequence.

Process(IObservable<ShaderWindow>)

Updates the render state of each shader window in an observable sequence.

public IObservable<ShaderWindow> Process(IObservable<ShaderWindow> source)

Parameters

source IObservable<ShaderWindow>

The sequence of shader windows to update.

Returns

IObservable<ShaderWindow>

An observable sequence that is identical to the source sequence but where there is an additional side effect of updating the render state of each shader window in the sequence.

Process<TSource>(IObservable<TSource>)

Updates the render state of the shader window 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 update the render state of the shader window.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where there is an additional side effect of updating the render state of the shader window whenever the sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.