Table of Contents

Method ReserveShader

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

ReserveShader(string)

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

public static IObservable<Shader> ReserveShader(string shaderName)

Parameters

shaderName string

The name of the shader program to retrieve.

Returns

IObservable<Shader>

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