Radeon ProRender

hiprtGeomCustomTraversalAnyHit

Initiates BVH traversal for a ray and finds any hit for a custom primitive hipGeometry.

Public Member Functions

Function Description
hiprtGeomCustomTraversalAnyHit (hiprtGeometry geom, const hiprtRay& ray, hiprtCustomFuncSet funcSet); Constructor taking an instance of hiprtGeometry and a ray for initating traversal.
getNextHit(); Returns the next closest hit. For return value see the structure hiprtHit.
getCurrentState(); Queries current traversal state. Return value can be one of the values from hiprtTraversalState enum.