Structures

VkMicromapBuildSizesInfoEXT

Structure specifying build sizes for a micromap

The VkMicromapBuildSizesInfoEXT structure describes the required build sizes for a micromap and scratch buffers and is defined as:

typedef struct VkMicromapBuildSizesInfoEXT {
    VkStructureType sType;
    const void* pNext;
    VkDeviceSize micromapSize;
    VkDeviceSize buildScratchSize;
    VkBool32 discardable;
} VkMicromapBuildSizesInfoEXT;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • micromapSize is the size in bytes required in a VkMicromapEXT for a build or update operation.
  • buildScratchSize is the size in bytes required in a scratch buffer for a build operation.
  • discardable indicates whether or not the micromap object may be destroyed after an acceleration structure build or update. A false value means that acceleration structures built with this micromap may contain references to the data contained therein, and the application must not destroy the micromap until ray traversal has concluded. A true value means that the information in the micromap will be copied by value into the acceleration structure, and the micromap may be destroyed after the acceleration structure build concludes.

Valid Usage (Implicit)

VUID-VkMicromapBuildSizesInfoEXT-sType-sType

sType must be VK_STRUCTURE_TYPE_MICROMAP_BUILD_SIZES_INFO_EXT