Structures

VkImageViewASTCDecodeModeEXT

Structure describing the ASTC decode mode for an image view

If the pNext chain includes a VkImageViewASTCDecodeModeEXT structure, then that structure includes a parameter specifying the decode mode for image views using ASTC compressed formats.

The VkImageViewASTCDecodeModeEXT structure is defined as:

typedef struct VkImageViewASTCDecodeModeEXT {
    VkStructureType sType;
    const void* pNext;
    VkFormat decodeMode;
} VkImageViewASTCDecodeModeEXT;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • decodeMode is the intermediate format used to decode ASTC compressed formats.

Valid Usage

VUID-VkImageViewASTCDecodeModeEXT-decodeMode-02230

decodeMode must be one of VK_FORMAT_R16G16B16A16_SFLOAT, VK_FORMAT_R8G8B8A8_UNORM, or VK_FORMAT_E5B9G9R9_UFLOAT_PACK32

VUID-VkImageViewASTCDecodeModeEXT-decodeMode-02231

If the decodeModeSharedExponent feature is not enabled, decodeMode must not be VK_FORMAT_E5B9G9R9_UFLOAT_PACK32

VUID-VkImageViewASTCDecodeModeEXT-decodeMode-02232

If decodeMode is VK_FORMAT_R8G8B8A8_UNORM the image view must not include blocks using any of the ASTC HDR modes

If format uses sRGB encoding then the decodeMode has no effect.

Valid Usage (Implicit)

VUID-VkImageViewASTCDecodeModeEXT-sType-sType

sType must be VK_STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT