Class ShaderStagesHelpers
Helpers for the ShaderStages enum.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public static class ShaderStagesHelpers
Fields
RasterizationShaderStagesCount
Gets the rasterization stages (Vertex, Hull, Domain, Geometry, Pixel, and Compute).
Declaration
public static readonly int RasterizationShaderStagesCount
Field Value
Type | Description |
---|---|
int |
ShaderStagesArray
Gets the shader stages as an array.
Declaration
public static readonly ShaderStages[] ShaderStagesArray
Field Value
Type | Description |
---|---|
ShaderStages[] |
ShaderStagesCount
Gets the shader stages count.
Declaration
public static readonly int ShaderStagesCount
Field Value
Type | Description |
---|---|
int |
Methods
IndexOf(ShaderStages)
Gets the shader stage index.
Declaration
public static int IndexOf(ShaderStages stages)
Parameters
Type | Name | Description |
---|---|---|
ShaderStages | stages | The shader stage. |
Returns
Type | Description |
---|---|
int | The stage index. |