Table of Contents

Method ReserveMaterial

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

ReserveMaterial(string)

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

public static IObservable<Material> ReserveMaterial(string shaderName)

Parameters

shaderName string

The name of the shader program to retrieve.

Returns

IObservable<Material>

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