HitObject.GetPrimitiveIndex
Description
Returns the primitive index of a hit. Valid if the hit object represents a hit.
Signature
uint HitObject.GetPrimitiveIndex();
Availability and Requirements
Defined for the following targets:
hlsl
Available in stages: raygen
, closesthit
, miss
.
Requires capability: hlsl_nvapi
.
glsl
Available in stages: raygen
, closesthit
, miss
.
spirv
Available in stages: raygen
, closesthit
, miss
.
Requires capabilities: spvRayTracingKHR
, spvShaderInvocationReorderNV
.