PrimitiveIndex
Description
Signature
uint PrimitiveIndex();
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: intersection, closesthit, anyhit.
glsl
Available in stages: intersection, closesthit, anyhit.
cuda
Available in stages: intersection, closesthit, anyhit.
spirv
Available in stages: intersection, closesthit, anyhit.
Requires capability: spvRayTracingKHR.