SPIR-V Built-In

ObjectRayOriginKHR

Ray origin in object space
ObjectRayOriginKHR

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

Valid Usage

VUID-ObjectRayOriginKHR-ObjectRayOriginKHR-04302

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

Execution Model

VUID-ObjectRayOriginKHR-ObjectRayOriginKHR-04303

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

VUID-ObjectRayOriginKHR-ObjectRayOriginKHR-04304

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