Table of Contents

Class DrawFramebuffer

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that renders all currently stored draw commands to a framebuffer.

public class DrawFramebuffer : Sink
Inheritance
DrawFramebuffer
Inherited Members

Properties

FramebufferAttachments

Gets a collection of configuration objects specifying any attachments that are required to render the framebuffer.

public Collection<FramebufferAttachmentConfiguration> FramebufferAttachments { get; }

Property Value

Collection<FramebufferAttachmentConfiguration>

RenderState

Gets a collection of state configuration objects specifying any render states that are required to render the framebuffer.

public StateConfigurationCollection RenderState { get; }

Property Value

StateConfigurationCollection

Methods

Process<TSource>(IObservable<TSource>)

Renders all currently stored draw commands to a framebuffer 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 rendering all stored draw commands to a framebuffer.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where there is an additional side effect of rendering all stored draw commands to a framebuffer whenever the sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.