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
- 
raygenShaderRecordAddressis a VkDeviceAddress of the ray generation shader binding table record used by this command.
- 
raygenShaderRecordSizeis a VkDeviceSize number of bytes corresponding to the ray generation shader binding table record at base addressraygenShaderRecordAddress.
- 
missShaderBindingTableAddressis a VkDeviceAddress of the first record in the miss shader binding table used by this command.
- 
missShaderBindingTableSizeis a VkDeviceSize number of bytes corresponding to the total size of the miss shader binding table atmissShaderBindingTableAddressthat may be accessed by this command.
- 
missShaderBindingTableStrideis a VkDeviceSize number of bytes between records of the miss shader binding table.
- 
hitShaderBindingTableAddressis a VkDeviceAddress of the first record in the hit shader binding table used by this command.
- 
hitShaderBindingTableSizeis a VkDeviceSize number of bytes corresponding to the total size of the hit shader binding table athitShaderBindingTableAddressthat may be accessed by this command.
- 
hitShaderBindingTableStrideis a VkDeviceSize number of bytes between records of the hit shader binding table.
- 
callableShaderBindingTableAddressis a VkDeviceAddress of the first record in the callable shader binding table used by this command.
- 
callableShaderBindingTableSizeis a VkDeviceSize number of bytes corresponding to the total size of the callable shader binding table atcallableShaderBindingTableAddressthat may be accessed by this command.
- 
callableShaderBindingTableStrideis a VkDeviceSize number of bytes between records of the callable shader binding table.
- 
widthis the width of the ray trace query dimensions.
- 
heightis height of the ray trace query dimensions.
- 
depthis 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.