SPIR-V Built-In
WorldRayDirectionKHR
Ray direction in world space
WorldRayDirectionKHR
A variable decorated with the WorldRayDirectionKHR decoration will
specify the direction of the ray being processed, in world space.
The value is the parameter passed into the pipeline trace ray instruction.
Valid Usage
VUID-WorldRayDirectionKHR-WorldRayDirectionKHR-04428
The WorldRayDirectionKHR decoration must be used only within the
IntersectionKHR, AnyHitKHR, ClosestHitKHR, or
MissKHR Execution Model
VUID-WorldRayDirectionKHR-WorldRayDirectionKHR-04429
The variable decorated with WorldRayDirectionKHR must be declared
using the Input Storage Class
VUID-WorldRayDirectionKHR-WorldRayDirectionKHR-04430
The variable decorated with WorldRayDirectionKHR must be declared
as a three-component vector of 32-bit floating-point values