To query acceleration structure size parameters on the host, call:
// Provided by VK_KHR_acceleration_structure VkResult vkWriteAccelerationStructuresPropertiesKHR( VkDevice device, uint32_t accelerationStructureCount, const VkAccelerationStructureKHR* pAccelerationStructures, VkQueryType queryType, size_t dataSize, void* pData, size_t stride);
deviceis the device which owns the acceleration structures in
accelerationStructureCountis the count of acceleration structures for which to query the property.
pAccelerationStructuresis a pointer to an array of existing previously built acceleration structures.
queryTypeis a VkQueryType value specifying the property to be queried.
dataSizeis the size in bytes of the buffer pointed to by
pDatais a pointer to a user-allocated buffer where the results will be written.
strideis the stride in bytes between results for individual queries within
This command fulfills the same task as vkCmdWriteAccelerationStructuresPropertiesKHR but is executed by the host.
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.