SMIDNV(3)

Name

SMIDNV - SM ID on which a shader invocation is running

Description

SMIDNV

Decorating a variable with the SMIDNV built-in decoration will make that variable contain the ID of the SM on which the current shader invocation is running. This variable is in the range [0, SMCountNV-1].

Valid Usage
  • VUID-SMIDNV-SMIDNV-04365
    The variable decorated with SMIDNV must be declared using the Input Storage Class

  • VUID-SMIDNV-SMIDNV-04366
    The variable decorated with SMIDNV must be declared as a scalar 32-bit integer value

See Also

No cross-references are available

Document Notes

For more information, see the Vulkan Specification (NOTE: cannot determine Specification page containing this refpage).

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.