Table of Contents

Class UpdateViewportState

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that updates the active viewport in the shader window.

public class UpdateViewportState : Sink
Inheritance
UpdateViewportState
Inherited Members

Properties

Height

Gets or sets the height of the viewport rectangle, in normalized coordinates.

public float Height { get; set; }

Property Value

float

Width

Gets or sets the width of the viewport rectangle, in normalized coordinates.

public float Width { get; set; }

Property Value

float

X

Gets or sets the x-coordinate of the lower left corner of the viewport.

public float X { get; set; }

Property Value

float

Y

Gets or sets the y-coordinate of the lower left corner of the viewport.

public float Y { get; set; }

Property Value

float

Methods

Process<TSource>(IObservable<TSource>)

Updates the active viewport in 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 of notifications used to update the active viewport.

Returns

IObservable<TSource>

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

Type Parameters

TSource

The type of the elements in the source sequence.