VkOpacityMicromapFormatKHR(3)

# VkOpacityMicromapFormatKHR(3) Manual Page

## Name

VkOpacityMicromapFormatKHR - Format enum for opacity micromaps

## C Specification

Formats which can be set in VkMicromapUsageKHR::`format` and VkMicromapTriangleKHR::`format` for micromap builds, are:

    // Provided by VK_KHR_opacity_micromap
    typedef enum VkOpacityMicromapFormatKHR {
        VK_OPACITY_MICROMAP_FORMAT_2_STATE_KHR = 1,
        VK_OPACITY_MICROMAP_FORMAT_4_STATE_KHR = 2,
      // Provided by VK_EXT_opacity_micromap
        VK_OPACITY_MICROMAP_FORMAT_2_STATE_EXT = VK_OPACITY_MICROMAP_FORMAT_2_STATE_KHR,
      // Provided by VK_EXT_opacity_micromap
        VK_OPACITY_MICROMAP_FORMAT_4_STATE_EXT = VK_OPACITY_MICROMAP_FORMAT_4_STATE_KHR,
    } VkOpacityMicromapFormatKHR;

    // Provided by VK_EXT_opacity_micromap
    // Equivalent to VkOpacityMicromapFormatKHR
    typedef VkOpacityMicromapFormatKHR VkOpacityMicromapFormatEXT;

## Description

- VK_OPACITY_MICROMAP_FORMAT_2_STATE_KHR specifies that the given micromap format has one bit per subtriangle encoding either fully opaque or fully transparent.

- VK_OPACITY_MICROMAP_FORMAT_4_STATE_KHR specifies that the given micromap format has two bits per subtriangle encoding four modes which can be interpreted as described in Ray Opacity Micromap.

Note | For compactness, these values are stored as 16-bit in some structures.

## See Also

VK_EXT_opacity_micromap, VK_KHR_opacity_micromap, VkMicromapUsageKHR

## 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-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0