SPIR-V Built-In

WorldToObjectKHR

Transformation matrix from world to object space
WorldToObjectKHR

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

Valid Usage

VUID-WorldToObjectKHR-WorldToObjectKHR-04434

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

Execution Model

VUID-WorldToObjectKHR-WorldToObjectKHR-04435

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

VUID-WorldToObjectKHR-WorldToObjectKHR-04436

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