ShaderStage

Describes the shader stages that a binding will be visible from.

These can be combined in a bitwise combination.

For example, something that is visible from both vertex and fragment shaders can be defined as:

ShaderStage.vertex | ShaderStage.fragment

Values

ValueMeaning
none0

Binding is not visible from any shader stage.

vertex1

Binding is visible from the vertex shader of a render pipeline.

fragment2

Binding is visible from the fragment shader of a render pipeline.

compute4

Binding is visible from the compute shader of a compute pipeline.

See Also

Meta