Enum

VkOpacityMicromapFormatKHR

Format enum for opacity micromaps

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

typedef enum VkOpacityMicromapFormatKHR {
    VK_OPACITY_MICROMAP_FORMAT_2_STATE_KHR = 1,
    VK_OPACITY_MICROMAP_FORMAT_4_STATE_KHR = 2,
    // Provided by extensions
    VK_OPACITY_MICROMAP_FORMAT_2_STATE_EXT = VK_OPACITY_MICROMAP_FORMAT_2_STATE_KHR,
    VK_OPACITY_MICROMAP_FORMAT_4_STATE_EXT = VK_OPACITY_MICROMAP_FORMAT_4_STATE_KHR,
} VkOpacityMicromapFormatKHR;
#define VkOpacityMicromapFormatEXT VkOpacityMicromapFormatKHR
  • 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.
For compactness, these values are stored as 16-bit in some structures.