C Specification
The VkTraceRaysIndirectCommand2KHR
structure is defined as:
// Provided by VK_KHR_ray_tracing_maintenance1 with VK_KHR_ray_tracing_pipeline
typedef struct VkTraceRaysIndirectCommand2KHR {
VkDeviceAddress raygenShaderRecordAddress;
VkDeviceSize raygenShaderRecordSize;
VkDeviceAddress missShaderBindingTableAddress;
VkDeviceSize missShaderBindingTableSize;
VkDeviceSize missShaderBindingTableStride;
VkDeviceAddress hitShaderBindingTableAddress;
VkDeviceSize hitShaderBindingTableSize;
VkDeviceSize hitShaderBindingTableStride;
VkDeviceAddress callableShaderBindingTableAddress;
VkDeviceSize callableShaderBindingTableSize;
VkDeviceSize callableShaderBindingTableStride;
uint32_t width;
uint32_t height;
uint32_t depth;
} VkTraceRaysIndirectCommand2KHR;
Members
-
raygenShaderRecordAddress
is a VkDeviceAddress of the ray generation shader binding table record used by this command. -
raygenShaderRecordSize
is a VkDeviceSize number of bytes corresponding to the ray generation shader binding table record at base addressraygenShaderRecordAddress
. -
missShaderBindingTableAddress
is a VkDeviceAddress of the first record in the miss shader binding table used by this command. -
missShaderBindingTableSize
is a VkDeviceSize number of bytes corresponding to the total size of the miss shader binding table atmissShaderBindingTableAddress
that may be accessed by this command. -
missShaderBindingTableStride
is a VkDeviceSize number of bytes between records of the miss shader binding table. -
hitShaderBindingTableAddress
is a VkDeviceAddress of the first record in the hit shader binding table used by this command. -
hitShaderBindingTableSize
is a VkDeviceSize number of bytes corresponding to the total size of the hit shader binding table athitShaderBindingTableAddress
that may be accessed by this command. -
hitShaderBindingTableStride
is a VkDeviceSize number of bytes between records of the hit shader binding table. -
callableShaderBindingTableAddress
is a VkDeviceAddress of the first record in the callable shader binding table used by this command. -
callableShaderBindingTableSize
is a VkDeviceSize number of bytes corresponding to the total size of the callable shader binding table atcallableShaderBindingTableAddress
that may be accessed by this command. -
callableShaderBindingTableStride
is a VkDeviceSize number of bytes between records of the callable shader binding table. -
width
is the width of the ray trace query dimensions. -
height
is height of the ray trace query dimensions. -
depth
is depth of the ray trace query dimensions.
Description
The members of VkTraceRaysIndirectCommand2KHR
have the same meaning as
the similarly named parameters of vkCmdTraceRaysKHR.
Indirect shader binding table buffer parameters must satisfy the same memory alignment and binding requirements as their counterparts in vkCmdTraceRaysIndirectKHR and vkCmdTraceRaysKHR.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.