RayQuery<uint rayFlagsGeneric>.Proceed¶
Description¶
Resume the ray query coroutine.
If the coroutine suspends because of encountering a candidate hit that cannot be resolved with fixed-funciton logic, this function returns true, and the Candidate*() functions should be used by application code to resolve the candidate hit (by either committing or ignoring it).
If the coroutine terminates because traversal is complete (or has been aborted), this function returns false, and application code should use the Committed*() functions to appropriately handle the closest hit (it any) that was found.
Signature¶
bool RayQuery<uint rayFlagsGeneric>.Proceed();
Return value¶
true if a candidate hit needs evaluation, false if traversal is complete
Remarks¶
When true is returned, use Candidate* methods to evaluate the hit
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.