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 aVkDeviceAddressof the ray generation shader binding table record used by this command. -
raygenShaderRecordSizeis aVkDeviceSizenumber of bytes corresponding to the ray generation shader binding table record at base addressraygenShaderRecordAddress. -
missShaderBindingTableAddressis aVkDeviceAddressof the first record in the miss shader binding table used by this command. -
missShaderBindingTableSizeis aVkDeviceSizenumber of bytes corresponding to the total size of the miss shader binding table atmissShaderBindingTableAddressthat may be accessed by this command. -
missShaderBindingTableStrideis aVkDeviceSizenumber of bytes between records of the miss shader binding table. -
hitShaderBindingTableAddressis aVkDeviceAddressof the first record in the hit shader binding table used by this command. -
hitShaderBindingTableSizeis aVkDeviceSizenumber of bytes corresponding to the total size of the hit shader binding table athitShaderBindingTableAddressthat may be accessed by this command. -
hitShaderBindingTableStrideis aVkDeviceSizenumber of bytes between records of the hit shader binding table. -
callableShaderBindingTableAddressis aVkDeviceAddressof the first record in the callable shader binding table used by this command. -
callableShaderBindingTableSizeis aVkDeviceSizenumber of bytes corresponding to the total size of the callable shader binding table atcallableShaderBindingTableAddressthat may be accessed by this command. -
callableShaderBindingTableStrideis aVkDeviceSizenumber 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.
See Also
VK_KHR_ray_tracing_maintenance1, VK_KHR_ray_tracing_pipeline, VkDeviceAddress, VkDeviceSize
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.