AcceptHitAndEndSearch function

Used in an any hit shader to commit the current hit and then stop searching for more hits for the ray. If there is an intersection shader running, it's execution stops. Execution passes to the closest hit shader, if enabled, with the closest hit recorded so far.

Syntax

void AcceptHitAndEndSearch();

Return Value

void

Remarks

This function can be called from the following raytracing shader types:

See also