Ritchie's Abstractions 0.2
Platform abstractions that make Toolbox work
Loading...
Searching...
No Matches
ShaderPipeline Class Referencesealed

A class representing an entire shader pipeline. More...

Inheritance diagram for ShaderPipeline:
GraphicsObject

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.
Parameters
disposingIf true, please throw away your trash. Skunks!

 
- 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.
 

Detailed Description

A class representing an entire shader pipeline.

Member Function Documentation

◆ ContainsShaderStage()

bool ContainsShaderStage ( ShaderStage stage)
inline

Determines if the given shader stage has a shader assigned to it.

Parameters
stageThe pipeline stage to check.
Returns
True if a shader stage is assigned, false otherwise.

◆ DisableVertexAttribute()

void DisableVertexAttribute ( VertexAttributeType type)
inline
Parameters
type

◆ Dispose()

override void Dispose ( bool disposing)
inlineprotectedvirtual

Called when it's time to throw out the trash.

Parameters
disposingIf true, please throw away your trash. Skunks!

Reimplemented from GraphicsObject.

◆ EnableVertexAttribute()

void EnableVertexAttribute ( VertexAttributeType type,
uint locationInShader )
inline
Parameters
type
locationInShader

◆ GetVertexAttributeLocation()

int GetVertexAttributeLocation ( VertexAttributeType type)
inline
Parameters
type
Returns

◆ SetSamplerBinding()

void SetSamplerBinding ( string name,
TextureType type,
int textureSlot,
int samplerSlot )
inline
Parameters
name
type
textureSlot
samplerSlot

◆ SetShaderStage()

void SetShaderStage ( ShaderStage stage,
Shader? shader )
inline

Change the shade used for the specified stage within the pipeline.

Parameters
stageThe pipeline stage to assign the new shade to.
shaderA new shader to use for this pipeline stage, or null to disable the stage.

The documentation for this class was generated from the following file: