|
Ritchie's Abstractions 0.2
Platform abstractions that make Toolbox work
|
A class representing an entire shader pipeline. More...
Public Member Functions | |
| ShaderPipeline () | |
| Creates a new ShaderPipeline. | |
| void | SetShaderStage (ShaderStage stage, Shader? shader) |
| Change the shade used for the specified stage within the pipeline. | |
| bool | ContainsShaderStage (ShaderStage stage) |
| Determines if the given shader stage has a shader assigned to it. | |
| void | SetSamplerBinding (string name, TextureType type, int textureSlot, int samplerSlot) |
| int | GetVertexAttributeLocation (VertexAttributeType type) |
| void | DisableVertexAttribute (VertexAttributeType type) |
| void | EnableVertexAttribute (VertexAttributeType type, uint locationInShader) |
Public Member Functions inherited from GraphicsObject | |
| void | Dispose () |
Protected Member Functions | |||
| override void | Dispose (bool disposing) | ||
Called when it's time to throw out the trash.
| |||
Protected Member Functions inherited from GraphicsObject | |||
| GraphicsObject () | |||
| Creates a new GraphicsObject instance. | |||
Additional Inherited Members | |
Properties inherited from GraphicsObject | |
| GraphicsDevice | GraphicsDevice [get] |
| Gets the GraphicsDevice instance this GraphicsObject belongs to. | |
A class representing an entire shader pipeline.
|
inline |
Determines if the given shader stage has a shader assigned to it.
| stage | The pipeline stage to check. |
|
inline |
| type |
|
inlineprotectedvirtual |
Called when it's time to throw out the trash.
| disposing | If true, please throw away your trash. Skunks! |
Reimplemented from GraphicsObject.
|
inline |
| type | |
| locationInShader |
|
inline |
| type |
|
inline |
| name | |
| type | |
| textureSlot | |
| samplerSlot |
|
inline |
Change the shade used for the specified stage within the pipeline.
| stage | The pipeline stage to assign the new shade to. |
| shader | A new shader to use for this pipeline stage, or null to disable the stage. |