Table of Contents

Method ReserveComputeProgram

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

ReserveComputeProgram(string)

Returns an observable sequence that retrieves the compute shader with the specified name.

public static IObservable<ComputeProgram> ReserveComputeProgram(string shaderName)

Parameters

shaderName string

The name of the shader program to retrieve.

Returns

IObservable<ComputeProgram>

A sequence containing a single instance of the ComputeProgram class matching the specified shader name; or an exception, if no such shader exists.