Function Prototype

vkGetPartitionedAccelerationStructuresBuildSizesNV

Retrieve the buffer allocation requirements for partitioned acceleration structure command

To determine the memory requirements for a PTAS, call:

void vkGetPartitionedAccelerationStructuresBuildSizesNV(
    VkDevice device,
    const VkPartitionedAccelerationStructureInstancesInputNV* pInfo,
    VkAccelerationStructureBuildSizesInfoKHR*                  pSizeInfo);
  • device is the logical device that owns the acceleration structure.
  • pInfo is a pointer to a VkPartitionedAccelerationStructureInstancesInputNV structure containing parameters required for the memory requirements query.
  • pSizeInfo is a pointer to a VkAccelerationStructureBuildSizesInfoKHR structure which returns the size required for an acceleration structure and the sizes required for the scratch buffers, given the build parameters. The size requirements for a scratch buffer may be zero.