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

Class representing a single stage within a shader pipeline (such as a single vertex shader). More...

Inheritance diagram for Shader:
GraphicsObject

Public Member Functions

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

Class representing a single stage within a shader pipeline (such as a single vertex shader).

Constructor & Destructor Documentation

◆ Shader()

Shader ( ShaderStage stage)
inline

Creates a new Shader.

Parameters
stageThe stage within the shader pipeline that this shader is meant for.

Member Function Documentation

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

◆ SetShaderCode() [1/2]

void SetShaderCode ( in ReadOnlySpan< byte > shaderCode)
inline

Set the source code for this shader.

Parameters
shaderCodeA 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
shaderCodeA string of text representing the shade's source code.

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