C Specification
To build micromaps call:
// Provided by VK_EXT_opacity_micromap
void vkCmdBuildMicromapsEXT(
VkCommandBuffer commandBuffer,
uint32_t infoCount,
const VkMicromapBuildInfoEXT* pInfos);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
infoCount
is the number of micromaps to build. It specifies the number of thepInfos
structures that must be provided. -
pInfos
is a pointer to an array ofinfoCount
VkMicromapBuildInfoEXT structures defining the data used to build each micromap.
Description
The vkCmdBuildMicromapsEXT
command provides the ability to initiate
multiple micromaps builds, however there is no ordering or synchronization
implied between any of the individual micromap builds.
Note
This means that there cannot be any memory aliasing between any micromap memories or scratch memories being used by any of the builds. |
Accesses to the micromap scratch buffers as identified by the
VkMicromapBuildInfoEXT::scratchData
buffer device addresses
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
|
VK_ACCESS_2_MICROMAP_WRITE_BIT_EXT
).
Accesses to VkMicromapBuildInfoEXT::dstMicromap
must be
synchronized with the
VK_PIPELINE_STAGE_2_MICROMAP_BUILD_BIT_EXT
pipeline stage and an
access type of
VK_ACCESS_2_MICROMAP_WRITE_BIT_EXT
.
Accesses to other input buffers as identified by any used values of
VkMicromapBuildInfoEXT::data
or
VkMicromapBuildInfoEXT::triangleArray
must be
synchronized with the
VK_PIPELINE_STAGE_2_MICROMAP_BUILD_BIT_EXT
pipeline stage and an
access type of
VK_ACCESS_SHADER_READ_BIT
.
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.