Home -> IShaderProgram -> ShaderStage
Description
The ShaderStage enumeration identifies the shader pipeline stage being loaded into an IShaderProgram. It is supplied to LoadShaderStage.
Members
| Name | Description | |
|---|---|---|
| Vertex |
Selects the vertex shader stage, which consumes vertex attributes and produces per-vertex outputs for later graphics pipeline stages.
|
|
| Fragment |
Selects the fragment shader stage, which computes color and other per-fragment outputs during rasterization.
|
|
| Geometry |
Selects the optional geometry shader stage, which consumes primitives from the vertex stage and emits new primitives before rasterization. This requires the GeometryShaders device feature.
|
|
| Compute |
Selects the optional compute shader stage, which is dispatched as a compute task rather than as part of a graphics draw pipeline. This requires the ComputeShaders device feature.
|