dawn.ShaderStage
Bit flags for GPU shader stages.
Specifies which shader stages a resource or operation applies to. Used in bind group layouts and other resource binding contexts.
ShaderStage = {
/**
* Vertex shader stage (render pipelines only).
*/
VERTEX: 0x1,
/**
* Fragment/pixel shader stage (render pipelines only).
*/
FRAGMENT: 0x2,
/**
* Compute shader stage.
* Used for compute dispatch operations.
*/
COMPUTE: 0x4,
} as constVERTEX(number)- – Vertex shader stage (render pipelines only).
FRAGMENT(number)- – Fragment/pixel shader stage (render pipelines only).
COMPUTE(number)- – Compute shader stage. Used for compute dispatch operations.