RayQuery<uint rayFlagsGeneric>.CandidateType¶
Description¶
Get the type of candidate hit being considered.
The ray query coroutine will suspend when it encounters a hit that cannot be resolved with fixed-function logic (either a non-opaque triangle or a procedural primitive). In either of those cases, CandidateType() will return the kind of candidate hit that must be resolved by user code.
Signature¶
uint RayQuery<uint rayFlagsGeneric>.CandidateType();
Availability and Requirements¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
metal¶
Available in all stages.
spirv¶
Available in all stages.
Requires capability: spvRayQueryKHR.