Class representing a single stage within a shader pipeline (such as a single vertex shader).
More...
|
| | Shader (ShaderStage stage) |
| | Creates a new Shader.
|
| |
| void | SetShaderCode (in ReadOnlySpan< byte > shaderCode) |
| | Set the source code for this shader.
|
| |
| void | SetShaderCode (in ReadOnlySpan< char > shaderCode) |
| | Set the source code fo this shader.
|
| |
|
void | Dispose () |
| |
|
| override void | Dispose (bool disposing) |
| | Called when it's time to throw out the trash.- Parameters
-
| disposing | If true, please throw away your trash. Skunks! |
|
| |
| | GraphicsObject () |
| | Creates a new GraphicsObject instance.
|
| |
Class representing a single stage within a shader pipeline (such as a single vertex shader).
◆ Shader()
Creates a new Shader.
- Parameters
-
| stage | The stage within the shader pipeline that this shader is meant for. |
◆ Dispose()
| override void Dispose |
( |
bool | disposing | ) |
|
|
inlineprotectedvirtual |
Called when it's time to throw out the trash.
- Parameters
-
| disposing | If true, please throw away your trash. Skunks! |
Reimplemented from GraphicsObject.
◆ SetShaderCode() [1/2]
| void SetShaderCode |
( |
in ReadOnlySpan< byte > | shaderCode | ) |
|
|
inline |
Set the source code for this shader.
- Parameters
-
| shaderCode | A span of memory where the source code for the shader is stored. |
◆ SetShaderCode() [2/2]
| void SetShaderCode |
( |
in ReadOnlySpan< char > | shaderCode | ) |
|
|
inline |
Set the source code fo this shader.
- Parameters
-
| shaderCode | A string of text representing the shade's source code. |
The documentation for this class was generated from the following file:
- /builds/universe/graphics/src/Inertia.Platform/Shader.cs