SPIR-V Built-In

ObjectRayDirectionKHR

Ray direction in object space
ObjectRayDirectionKHR

A variable decorated with the ObjectRayDirectionKHR decoration will specify the direction of the ray being processed, in object space.

Valid Usage

VUID-ObjectRayDirectionKHR-ObjectRayDirectionKHR-04299

The ObjectRayDirectionKHR decoration must be used only within the IntersectionKHR, AnyHitKHR, or ClosestHitKHR

Execution Model

VUID-ObjectRayDirectionKHR-ObjectRayDirectionKHR-04300

The variable decorated with ObjectRayDirectionKHR must be declared using the Input Storage Class

VUID-ObjectRayDirectionKHR-ObjectRayDirectionKHR-04301

The variable decorated with ObjectRayDirectionKHR must be declared as a three-component vector of 32-bit floating-point values