RayQuery<uint rayFlagsGeneric>.CandidateRayInstanceCustomIndex

Description

Gets the custom index of the instance containing the candidate hit.

Signature

int RayQuery<uint rayFlagsGeneric>.CandidateRayInstanceCustomIndex();

Return value

User-provided instance identifier

Remarks

GLSL/METAL/SPIRV only

Availability and Requirements

Defined for the following targets:

glsl

Available in all stages.

metal

Available in all stages.

spirv

Available in all stages.

Requires capability: spvRayQueryKHR.