C Specification
To query micromap size parameters call:
// Provided by VK_EXT_opacity_micromap
void vkCmdWriteMicromapsPropertiesEXT(
VkCommandBuffer commandBuffer,
uint32_t micromapCount,
const VkMicromapEXT* pMicromaps,
VkQueryType queryType,
VkQueryPool queryPool,
uint32_t firstQuery);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
micromapCount
is the count of micromaps for which to query the property. -
pMicromaps
is a pointer to an array of existing previously built micromaps. -
queryType
is a VkQueryType value specifying the type of queries managed by the pool. -
queryPool
is the query pool that will manage the results of the query. -
firstQuery
is the first query index within the query pool that will contain themicromapCount
number of results.
Description
Accesses to any of the micromaps listed in pMicromaps
must be
synchronized with the
VK_PIPELINE_STAGE_2_MICROMAP_BUILD_BIT_EXT
pipeline stage and an
access type of
VK_ACCESS_2_MICROMAP_READ_BIT_EXT
.
-
If
queryType
isVK_QUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT
, then the value written out is the number of bytes required by a serialized micromap. -
If
queryType
isVK_QUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT
, then the value written out is the number of bytes required by a compacted micromap.
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.