Table of Contents

Method CreateShaderState

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

CreateShaderState(IEnumerable<StateConfiguration>, IEnumerable<UniformConfiguration>, IEnumerable<BufferBindingConfiguration>, FramebufferConfiguration)

Initializes the shader state object used to specify the render state, uniform values, buffer bindings and framebuffer configuration to use when running the shader program.

protected void CreateShaderState(IEnumerable<StateConfiguration> renderState, IEnumerable<UniformConfiguration> shaderUniforms, IEnumerable<BufferBindingConfiguration> bufferBindings, FramebufferConfiguration framebuffer)

Parameters

renderState IEnumerable<StateConfiguration>

The collection of configuration objects specifying the render states required for running the shader program.

shaderUniforms IEnumerable<UniformConfiguration>

The collection of configuration objects specifying the default values of uniform variables in the shader program.

bufferBindings IEnumerable<BufferBindingConfiguration>

The collection of configuration objects specifying the buffer bindings to set before running the shader.

framebuffer FramebufferConfiguration

The configuration state of the framebuffer object used for render to texture passes.