Table of Contents

Class ViewportEffect

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Provides functionality for rendering a fullscreen effect using a fragment shader pass.

public class ViewportEffect : Effect, IDisposable
Inheritance
ViewportEffect
Implements
Inherited Members

Methods

Dispose(bool)

Releases all resources used by the Shader class.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

OnDispatch()

Returns any actions that should be executed before running the shader program.

protected override Action OnDispatch()

Returns

Action

An Action object to be called before running the shader program. If the return value is null, no action will be executed.