--- layout: stdlib-reference --- # ReportHit ## Description Reports a hit from an intersection shader. ## Signature
bool ReportHit<A>(
    float tHit,
    uint hitKind,
    A attributes);

## Generic Parameters #### A ## Parameters #### tHit : float Distance along the ray where the intersection occurred #### hitKind : uint User-defined value identifying the type of hit #### attributes : [A](reporthit-06.html#typeparam-A) Custom attributes for the intersection ## Return value true if the hit was accepted, false if rejected ## Remarks Used in custom intersection shaders to report primitive intersections ## Availability and Requirements Defined for the following targets: #### hlsl Available in `intersection` stage only. #### glsl Available in `intersection` stage only. #### spirv Available in `intersection` stage only. Requires capability: `spvRayTracingKHR`.