Class TextureCombinerShader
Shader for combining up to four textures into a single output.
Constructors
| Name | Description |
|---|---|
this
(channels, owner)
|
Constructs a texture combiner shader with the given channels. |
Fields
| Name | Type | Description |
|---|---|---|
computeSubroutineIndices
|
uint[] | Array of compute shader subroutine indices. |
fragmentSubroutineIndices
|
uint[] | Array of fragment shader subroutine indices. |
parameters
|
dlib | List of shader parameters. |
program
|
BaseShaderProgram | Shader program to use. |
validationEnabled
|
bool | In debug mode, enables or disables shader validation on bind. |
vertexSubroutineIndices
|
uint[] | Array of vertex shader subroutine indices. |
Methods
| Name | Description |
|---|---|
bindParameters
(state)
|
Binds shader parameters and input textures for rendering. |
unbindParameters
(state)
|
Unbinds shader parameters and input textures. |
bind
()
|
Binds the underlying shader program. |
createBlockParameter
(name, length, location)
|
Creates a uniform block parameter of type T.
|
createParameter
(name)
|
Creates a uniform parameter of type T.
|
createParameterArray
(name)
|
Creates a uniform array parameter of type T.
|
createParameterSubroutine
(name, shaderType)
|
Creates a subroutine parameter. |
getParameter
(name)
|
Gets a parameter by name. |
getParameterValue
(name)
|
Gets the value of a parameter by name. |
load
(filename)
|
Loads shader source code from a file, supporting #include directives.
|
setParameter
(name, val)
|
Sets a uniform parameter of type T to a value.
|
setParameterCallback
(name, val)
|
Sets a uniform parameter of type T to a callback.
|
setParameterRef
(name, val)
|
Sets a uniform parameter of type T to a reference.
|
setParameterSubroutine
(name, shaderType, subroutineName)
|
Sets a subroutine parameter with a specific subroutine name. |
unbind
()
|
Unbinds the underlying shader program. |
validate
()
|
Validates the program. |
Description
The TextureCombinerShader binds up to four input textures (channels) and
outputs a combined result.