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