Vixen
02b45cc4
csharp
public enum StageBuiltIn

Which pipeline-supplied value a stage parameter carries.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (8)

  • 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.

  • IsFrontFace

    Whether the triangle this fragment came from faces the viewer.

Used by (4)

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