HitObject.GetClusterID

Description

Returns the cluster ID of the current hit. Valid if the hit object represents a hit. Note: This is an NVAPI/SPIRV/CUDA extension, not available in DXR 1.3.

Signature

int HitObject.GetClusterID();

Availability and Requirements

Defined for the following targets:

hlsl

Available in stages: raygen, closesthit, miss.

Requires capabilities: hlsl_nvapi, ser_hlsl_native.

glsl

Available in stages: raygen, closesthit, miss.

cuda

Available in stages: raygen, closesthit, miss.

spirv

Available in stages: raygen, closesthit, miss.

Requires capabilities: spvRayTracingKHR, spvShaderInvocationReorderNV.