SPIR-V Built-In
LaunchSizeKHR
Launch dimensions for ray shaders
LaunchSizeKHR
A variable decorated with the LaunchSizeKHR
decoration will contain the
width
, height
, and depth
dimensions passed to the
vkCmdTraceRaysKHR command that initiated this shader execution.
The width
is in the first component, the height
is in the second
component, and the depth
is in the third component.
Valid Usage
VUID-LaunchSizeKHR-LaunchSizeKHR-04269
The LaunchSizeKHR
decoration must be used only within the
RayGenerationKHR
, IntersectionKHR
, AnyHitKHR
,
ClosestHitKHR
, MissKHR
, or CallableKHR
Execution
Model
VUID-LaunchSizeKHR-LaunchSizeKHR-04270
The variable decorated with LaunchSizeKHR
must be declared using
the Input
Storage
Class
VUID-LaunchSizeKHR-LaunchSizeKHR-04271
The variable decorated with LaunchSizeKHR
must be declared as a
three-component vector of 32-bit integer values