pub unsafe fn report_intersection(hit: f32, hit_kind: u32) -> boolExpand description
Reports an intersection back to the traversal infrastructure.
If the intersection occurred within the current ray interval, the intersection confirmation is performed (see the API specification for more details). If the value of Hit falls outside the current ray interval, the hit is rejected.
Returns True if the hit was accepted by the ray interval and the intersection was confirmed. Returns False otherwise.
hitis the floating point parametric value along ray for the intersection.hit_kindis the integer hit kind reported back to other shaders and accessible by thehit kindbuiltin.
This instruction is allowed only in IntersectionKHR execution model.
This instruction is a shader call instruction which may invoke shaders with
the any_hit execution model.