SPIR-V Built-In

ObjectToWorldKHR

Transformation matrix from object to world space
ObjectToWorldKHR

A variable decorated with the ObjectToWorldKHR decoration will contain the current object-to-world transformation matrix, which is determined by the instance of the current intersection.

Valid Usage

VUID-ObjectToWorldKHR-ObjectToWorldKHR-04305

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

Execution Model

VUID-ObjectToWorldKHR-ObjectToWorldKHR-04306

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

VUID-ObjectToWorldKHR-ObjectToWorldKHR-04307

The variable decorated with ObjectToWorldKHR must be declared as a matrix with four columns of three-component vectors of 32-bit floating-point values