vkDestroyMicromapEXT(3)

# vkDestroyMicromapEXT(3) Manual Page

## Name

vkDestroyMicromapEXT - Destroy a micromap object

Loading… please wait.

## C Specification

To destroy a micromap, call:

    // Provided by VK_EXT_opacity_micromap
    void vkDestroyMicromapEXT(
        VkDevice                                    device,
        VkMicromapEXT                               micromap,
        const VkAllocationCallbacks*                pAllocator);

## Parameters

- `device` is the logical device that destroys the micromap.

- `micromap` is the micromap to destroy.

- `pAllocator` controls host memory allocation as described in the Memory Allocation chapter.

## Description

Valid Usage

- VUID-vkDestroyMicromapEXT-micromap-07441
  All submitted commands that refer to `micromap` must have completed execution

- VUID-vkDestroyMicromapEXT-micromap-07442
  If `VkAllocationCallbacks` were provided when `micromap` was created, a compatible set of callbacks must be provided here

- VUID-vkDestroyMicromapEXT-micromap-07443
  If no `VkAllocationCallbacks` were provided when `micromap` was created, `pAllocator` must be `NULL`

Valid Usage (Implicit)

- VUID-vkDestroyMicromapEXT-device-parameter
  `device` must be a valid VkDevice handle

- VUID-vkDestroyMicromapEXT-micromap-parameter
  If `micromap` is not VK_NULL_HANDLE, `micromap` must be a valid VkMicromapEXT handle

- VUID-vkDestroyMicromapEXT-pAllocator-parameter
  If `pAllocator` is not `NULL`, `pAllocator` must be a valid pointer to a valid VkAllocationCallbacks structure

- VUID-vkDestroyMicromapEXT-micromap-parent
  If `micromap` is a valid handle, it must have been created, allocated, or retrieved from `device`

Host Synchronization

- Host access to `micromap` must be externally synchronized

## See Also

VK_EXT_opacity_micromap, VkAllocationCallbacks, VkDevice, VkMicromapEXT

## 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.

## Copyright

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0