Vixen
dd8b0a81
csharp
public enum StageBuiltIn

Which pipeline-supplied value a stage parameter carries.

Read the guide page for this →

Fields and properties (9)

  • None

    Not a built-in: an ordinary located input.

  • DispatchThreadId

    This invocation's position in the whole dispatch — the workgroup index times the workgroup size, plus the position within the group. The one nearly every compute shader wants.

  • GroupId

    Which workgroup this invocation is in.

  • GroupThreadId

    This invocation's position within its own workgroup.

  • GroupIndex

    This invocation's position within its workgroup, flattened to a single index — the scalar form of GroupThreadId, and what indexes shared storage.

  • VertexId

    Which vertex is being shaded, counting from the draw's first index.

  • InstanceId

    Which instance is being drawn, counting from the draw's first instance.

  • FragmentPosition

    Where this fragment is on the render target, in pixels, with the depth and 1/w behind it.

  • IsFrontFace

    Whether the triangle this fragment came from faces the viewer.

Used by (4)

  • SpirvBuiltInsVixen.Raven
  • StageBuiltInInfoVixen.Raven
  • StageBuiltInTestsVixen.Raven.Tests
  • StageBuiltInsVixen.Raven