SPIR-V Built-In
CurrentRayTimeNV
Time value of a ray intersection
CurrentRayTimeNV
A variable decorated with the CurrentRayTimeNV
decoration contains the
time value passed in to OpTraceRayMotionNV
which called this shader.
Valid Usage
VUID-CurrentRayTimeNV-CurrentRayTimeNV-04942
The CurrentRayTimeNV
decoration must be used only within the
IntersectionKHR
, AnyHitKHR
, ClosestHitKHR
, or
MissKHR
Execution
Model
VUID-CurrentRayTimeNV-CurrentRayTimeNV-04943
The variable decorated with CurrentRayTimeNV
must be declared
using the Input
Storage
Class
VUID-CurrentRayTimeNV-CurrentRayTimeNV-04944
The variable decorated with CurrentRayTimeNV
must be declared as a
scalar 32-bit floating-point value