Description
InstanceId
-
Decorating a variable in an intersection, any-hit, or closest hit shader with the
InstanceId
decoration will make that variable contain the index of the instance that intersects the current ray.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.