--- layout: stdlib-reference --- # ReportHitOptix ## Description Reports a hit optimized for OptiX. ## Signature
bool ReportHitOptix<each T>(
    float tHit,
    uint hitKind,
    T attribs)
    where T : __BuiltinIntegerType;

## Generic Parameters #### T: [\_\_BuiltinIntegerType](../interfaces/0_builtinintegertype-029g/index.html) ## Parameters #### tHit : float Distance along the ray where the intersection occurred #### hitKind : uint User-defined value identifying the type of hit #### attribs : [T](reporthitoptix-069.html#typeparam-T) Attribute values for the intersection ## Return value true if the hit was accepted, false if rejected ## Remarks OptiX-specific version of ReportHit with optimized attribute handling ## Availability and Requirements Defined for the following targets: #### hlsl Available in `intersection` stage only. #### glsl Available in `intersection` stage only. #### cuda Available in `intersection` stage only. #### spirv Available in `intersection` stage only. Requires capability: `spvRayTracingKHR`.