To query micromap size parameters call:
// Provided by VK_EXT_opacity_micromap
const VkMicromapEXT* pMicromaps,
commandBufferis the command buffer into which the command will be recorded.
micromapCountis the count of micromaps for which to query the property.
pMicromapsis a pointer to an array of existing previously built micromaps.
queryTypeis a VkQueryType value specifying the type of queries managed by the pool.
queryPoolis the query pool that will manage the results of the query.
firstQueryis the first query index within the query pool that will contain the
micromapCountnumber of results.
VK_QUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT, then the value written out is the number of bytes required by a serialized micromap.
VK_QUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT, then the value written out is the number of bytes required by a compacted micromap.
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.