ReportHitOptix¶
Description¶
Reports a hit optimized for OptiX.
Signature¶
bool ReportHitOptix<each T>( float tHit, uint hitKind, const T attribs) where T : __BuiltinIntegerType;
Generic Parameters¶
T: __BuiltinIntegerType¶
Parameters¶
tHit : float¶
Distance along the ray where the intersection occurred
hitKind : uint¶
User-defined value identifying the type of hit
attribs : 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.