SPIR-V Built-In
IncomingRayFlagsKHR
Flags used to trace a ray
IncomingRayFlagsKHR
A variable with the IncomingRayFlagsKHR
decoration will contain the ray
flags passed in to the trace call that invoked this particular shader.
Setting pipeline flags on the ray tracing pipeline must not cause any
corresponding flags to be set in variables with this decoration.
Valid Usage
VUID-IncomingRayFlagsKHR-IncomingRayFlagsKHR-04248
The IncomingRayFlagsKHR
decoration must be used only within the
IntersectionKHR
, AnyHitKHR
, ClosestHitKHR
, or
MissKHR
Execution
Model
VUID-IncomingRayFlagsKHR-IncomingRayFlagsKHR-04249
The variable decorated with IncomingRayFlagsKHR
must be declared
using the Input
Storage
Class
VUID-IncomingRayFlagsKHR-IncomingRayFlagsKHR-04250
The variable decorated with IncomingRayFlagsKHR
must be declared
as a scalar 32-bit integer value