// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_format_table.py using data from vk_format_map.json
//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// vk_format_table:
//   Queries for full Vulkan format information based on GL format.

#include "libANGLE/renderer/vulkan/vk_format_utils.h"

#include "image_util/copyimage.h"
#include "image_util/generatemip.h"
#include "image_util/loadimage.h"

using namespace angle;

namespace rx
{

namespace vk
{

void Format::initialize(VkPhysicalDevice physicalDevice, const angle::Format &angleFormat)
{
    switch (angleFormat.id)
    {
        case angle::Format::ID::A16_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::A1R5G5B5_UNORM:
        {
            internalFormat          = GL_A1RGB5_ANGLEX;
            textureFormatID         = angle::Format::ID::A1R5G5B5_UNORM;
            vkTextureFormat         = VK_FORMAT_A1R5G5B5_UNORM_PACK16;
            bufferFormatID          = angle::Format::ID::A1R5G5B5_UNORM;
            vkBufferFormat          = VK_FORMAT_A1R5G5B5_UNORM_PACK16;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::A32_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::A8_UNORM:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::ASTC_10x10_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x10_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x10_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x10_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x10_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x10_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_10x10_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x10_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x10_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x10_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x10_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x5_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x5_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x5_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x5_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x5_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x5_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_10x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x5_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x5_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x5_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x5_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x6_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x6_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x6_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x6_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x6_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x6_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_10x6_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x6_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x6_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x6_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x6_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x8_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x8_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x8_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x8_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x8_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_10x8_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_10x8_KHR;
            textureFormatID         = angle::Format::ID::ASTC_10x8_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_10x8_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_10x8_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_10x8_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_12x10_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR;
            textureFormatID         = angle::Format::ID::ASTC_12x10_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_12x10_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_12x10_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_12x10_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_12x10_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_12x10_KHR;
            textureFormatID         = angle::Format::ID::ASTC_12x10_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_12x10_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_12x10_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_12x10_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_12x12_SRGB_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::ASTC_12x12_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_12x12_KHR;
            textureFormatID         = angle::Format::ID::ASTC_12x12_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_12x12_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_12x12_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_12x12_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_4x4_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR;
            textureFormatID         = angle::Format::ID::ASTC_4x4_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_4x4_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_4x4_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_4x4_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_4x4_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_4x4_KHR;
            textureFormatID         = angle::Format::ID::ASTC_4x4_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_4x4_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_4x4_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_4x4_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_5x4_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR;
            textureFormatID         = angle::Format::ID::ASTC_5x4_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_5x4_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_5x4_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_5x4_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_5x4_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_5x4_KHR;
            textureFormatID         = angle::Format::ID::ASTC_5x4_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_5x4_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_5x4_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_5x4_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_5x5_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_5x5_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_5x5_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_5x5_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_5x5_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_5x5_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_5x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_5x5_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_5x5_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_5x5_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_5x5_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_6x5_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_6x5_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_6x5_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_6x5_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_6x5_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_6x5_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_6x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_6x5_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_6x5_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_6x5_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_6x5_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_6x6_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR;
            textureFormatID         = angle::Format::ID::ASTC_6x6_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_6x6_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_6x6_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_6x6_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_6x6_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_6x6_KHR;
            textureFormatID         = angle::Format::ID::ASTC_6x6_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_6x6_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_6x6_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_6x6_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_8x5_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_8x5_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_8x5_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_8x5_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_8x5_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_8x5_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_8x5_KHR;
            textureFormatID         = angle::Format::ID::ASTC_8x5_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_8x5_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_8x5_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_8x5_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_8x6_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR;
            textureFormatID         = angle::Format::ID::ASTC_8x6_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_8x6_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_8x6_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_8x6_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_8x6_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_8x6_KHR;
            textureFormatID         = angle::Format::ID::ASTC_8x6_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_8x6_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_8x6_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_8x6_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_8x8_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR;
            textureFormatID         = angle::Format::ID::ASTC_8x8_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_8x8_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_8x8_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_8x8_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ASTC_8x8_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_ASTC_8x8_KHR;
            textureFormatID         = angle::Format::ID::ASTC_8x8_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ASTC_8x8_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ASTC_8x8_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ASTC_8x8_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::B4G4R4A4_UNORM:
        {
            internalFormat          = GL_BGRA4_ANGLEX;
            textureFormatID         = angle::Format::ID::B4G4R4A4_UNORM;
            vkTextureFormat         = VK_FORMAT_B4G4R4A4_UNORM_PACK16;
            bufferFormatID          = angle::Format::ID::B4G4R4A4_UNORM;
            vkBufferFormat          = VK_FORMAT_B4G4R4A4_UNORM_PACK16;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::B5G5R5A1_UNORM:
        {
            internalFormat          = GL_BGR5_A1_ANGLEX;
            textureFormatID         = angle::Format::ID::B5G5R5A1_UNORM;
            vkTextureFormat         = VK_FORMAT_B5G5R5A1_UNORM_PACK16;
            bufferFormatID          = angle::Format::ID::B5G5R5A1_UNORM;
            vkBufferFormat          = VK_FORMAT_B5G5R5A1_UNORM_PACK16;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::B5G6R5_UNORM:
        {
            internalFormat          = GL_BGR565_ANGLEX;
            textureFormatID         = angle::Format::ID::B5G6R5_UNORM;
            vkTextureFormat         = VK_FORMAT_B5G6R5_UNORM_PACK16;
            bufferFormatID          = angle::Format::ID::B5G6R5_UNORM;
            vkBufferFormat          = VK_FORMAT_B5G6R5_UNORM_PACK16;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::B8G8R8A8_TYPELESS:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::B8G8R8A8_TYPELESS_SRGB:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::B8G8R8A8_UNORM:
        {
            internalFormat          = GL_BGRA8_EXT;
            textureFormatID         = angle::Format::ID::B8G8R8A8_UNORM;
            vkTextureFormat         = VK_FORMAT_B8G8R8A8_UNORM;
            bufferFormatID          = angle::Format::ID::B8G8R8A8_UNORM;
            vkBufferFormat          = VK_FORMAT_B8G8R8A8_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::B8G8R8A8_UNORM_SRGB:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::B8G8R8X8_UNORM:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::BC1_RGBA_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
            textureFormatID         = angle::Format::ID::BC1_RGBA_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_BC1_RGBA_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::BC1_RGBA_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_BC1_RGBA_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::BC1_RGBA_UNORM_SRGB_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::BC1_RGB_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
            textureFormatID         = angle::Format::ID::BC1_RGB_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_BC1_RGB_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::BC1_RGB_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_BC1_RGB_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::BC1_RGB_UNORM_SRGB_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::BC2_RGBA_UNORM_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::BC2_RGBA_UNORM_SRGB_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::BC3_RGBA_UNORM_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::BC3_RGBA_UNORM_SRGB_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::D16_UNORM:
        {
            internalFormat          = GL_DEPTH_COMPONENT16;
            textureFormatID         = angle::Format::ID::D16_UNORM;
            vkTextureFormat         = VK_FORMAT_D16_UNORM;
            bufferFormatID          = angle::Format::ID::D16_UNORM;
            vkBufferFormat          = VK_FORMAT_D16_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::D24_UNORM:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::D24_UNORM_S8_UINT:
        {
            internalFormat = GL_DEPTH24_STENCIL8;
            if (!HasFullFormatSupport(physicalDevice, VK_FORMAT_D24_UNORM_S8_UINT))
            {
                textureFormatID         = angle::Format::ID::D32_FLOAT_S8X24_UINT;
                vkTextureFormat         = VK_FORMAT_D32_SFLOAT_S8_UINT;
                dataInitializerFunction = nullptr;
                ASSERT(HasFullFormatSupport(physicalDevice, VK_FORMAT_D32_SFLOAT_S8_UINT));
            }
            else
            {
                textureFormatID         = angle::Format::ID::D24_UNORM_S8_UINT;
                vkTextureFormat         = VK_FORMAT_D24_UNORM_S8_UINT;
                dataInitializerFunction = nullptr;
            }
            bufferFormatID = angle::Format::ID::D24_UNORM_S8_UINT;
            vkBufferFormat = VK_FORMAT_D24_UNORM_S8_UINT;
            break;
        }

        case angle::Format::ID::D32_FLOAT:
        {
            internalFormat          = GL_DEPTH_COMPONENT32F;
            textureFormatID         = angle::Format::ID::D32_FLOAT;
            vkTextureFormat         = VK_FORMAT_D32_SFLOAT;
            bufferFormatID          = angle::Format::ID::D32_FLOAT;
            vkBufferFormat          = VK_FORMAT_D32_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::D32_FLOAT_S8X24_UINT:
        {
            internalFormat = GL_DEPTH32F_STENCIL8;
            if (!HasFullFormatSupport(physicalDevice, VK_FORMAT_D32_SFLOAT_S8_UINT))
            {
                textureFormatID         = angle::Format::ID::D24_UNORM_S8_UINT;
                vkTextureFormat         = VK_FORMAT_D24_UNORM_S8_UINT;
                dataInitializerFunction = nullptr;
                ASSERT(HasFullFormatSupport(physicalDevice, VK_FORMAT_D24_UNORM_S8_UINT));
            }
            else
            {
                textureFormatID         = angle::Format::ID::D32_FLOAT_S8X24_UINT;
                vkTextureFormat         = VK_FORMAT_D32_SFLOAT_S8_UINT;
                dataInitializerFunction = nullptr;
            }
            bufferFormatID = angle::Format::ID::D32_FLOAT_S8X24_UINT;
            vkBufferFormat = VK_FORMAT_D32_SFLOAT_S8_UINT;
            break;
        }

        case angle::Format::ID::D32_UNORM:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::EAC_R11G11_SNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SIGNED_RG11_EAC;
            textureFormatID         = angle::Format::ID::EAC_R11G11_SNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_EAC_R11G11_SNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::EAC_R11G11_SNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_EAC_R11G11_SNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::EAC_R11G11_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RG11_EAC;
            textureFormatID         = angle::Format::ID::EAC_R11G11_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_EAC_R11G11_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::EAC_R11G11_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_EAC_R11G11_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::EAC_R11_SNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SIGNED_R11_EAC;
            textureFormatID         = angle::Format::ID::EAC_R11_SNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_EAC_R11_SNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::EAC_R11_SNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_EAC_R11_SNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::EAC_R11_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_R11_EAC;
            textureFormatID         = angle::Format::ID::EAC_R11_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_EAC_R11_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::EAC_R11_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_EAC_R11_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ETC1_LOSSY_DECODE_R8G8B8_UNORM_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::ETC1_R8G8B8_UNORM_BLOCK:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::ETC2_R8G8B8A1_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
            textureFormatID         = angle::Format::ID::ETC2_R8G8B8A1_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ETC2_R8G8B8A1_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ETC2_R8G8B8A1_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
            textureFormatID         = angle::Format::ID::ETC2_R8G8B8A1_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ETC2_R8G8B8A1_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK;
            dataInitializerFunction = Initialize4ComponentData<GLubyte, 0x00, 0x00, 0x00, 0xFF>;
            break;
        }

        case angle::Format::ID::ETC2_R8G8B8A8_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
            textureFormatID         = angle::Format::ID::ETC2_R8G8B8A8_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ETC2_R8G8B8A8_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ETC2_R8G8B8A8_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGBA8_ETC2_EAC;
            textureFormatID         = angle::Format::ID::ETC2_R8G8B8A8_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ETC2_R8G8B8A8_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ETC2_R8G8B8_SRGB_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_SRGB8_ETC2;
            textureFormatID         = angle::Format::ID::ETC2_R8G8B8_SRGB_BLOCK;
            vkTextureFormat         = VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK;
            bufferFormatID          = angle::Format::ID::ETC2_R8G8B8_SRGB_BLOCK;
            vkBufferFormat          = VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::ETC2_R8G8B8_UNORM_BLOCK:
        {
            internalFormat          = GL_COMPRESSED_RGB8_ETC2;
            textureFormatID         = angle::Format::ID::ETC2_R8G8B8_UNORM_BLOCK;
            vkTextureFormat         = VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK;
            bufferFormatID          = angle::Format::ID::ETC2_R8G8B8_UNORM_BLOCK;
            vkBufferFormat          = VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::L16A16_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::L16_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::L32A32_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::L32_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::L8A8_UNORM:
        {
            internalFormat          = GL_LUMINANCE8_ALPHA8_EXT;
            textureFormatID         = angle::Format::ID::R8G8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8G8_UNORM;
            bufferFormatID          = angle::Format::ID::NONE;
            vkBufferFormat          = VK_FORMAT_UNDEFINED;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::L8_UNORM:
        {
            internalFormat          = GL_LUMINANCE8_EXT;
            textureFormatID         = angle::Format::ID::R8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8_UNORM;
            bufferFormatID          = angle::Format::ID::NONE;
            vkBufferFormat          = VK_FORMAT_UNDEFINED;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::NONE:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R10G10B10A2_UINT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R10G10B10A2_UNORM:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R11G11B10_FLOAT:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R16G16B16A16_FLOAT:
        {
            internalFormat          = GL_RGBA16F;
            textureFormatID         = angle::Format::ID::R16G16B16A16_FLOAT;
            vkTextureFormat         = VK_FORMAT_R16G16B16A16_SFLOAT;
            bufferFormatID          = angle::Format::ID::R16G16B16A16_FLOAT;
            vkBufferFormat          = VK_FORMAT_R16G16B16A16_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16A16_SINT:
        {
            internalFormat          = GL_RGBA16I;
            textureFormatID         = angle::Format::ID::R16G16B16A16_SINT;
            vkTextureFormat         = VK_FORMAT_R16G16B16A16_SINT;
            bufferFormatID          = angle::Format::ID::R16G16B16A16_SINT;
            vkBufferFormat          = VK_FORMAT_R16G16B16A16_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16A16_SNORM:
        {
            internalFormat          = GL_RGBA16_SNORM_EXT;
            textureFormatID         = angle::Format::ID::R16G16B16A16_SNORM;
            vkTextureFormat         = VK_FORMAT_R16G16B16A16_SNORM;
            bufferFormatID          = angle::Format::ID::R16G16B16A16_SNORM;
            vkBufferFormat          = VK_FORMAT_R16G16B16A16_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16A16_UINT:
        {
            internalFormat          = GL_RGBA16UI;
            textureFormatID         = angle::Format::ID::R16G16B16A16_UINT;
            vkTextureFormat         = VK_FORMAT_R16G16B16A16_UINT;
            bufferFormatID          = angle::Format::ID::R16G16B16A16_UINT;
            vkBufferFormat          = VK_FORMAT_R16G16B16A16_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16A16_UNORM:
        {
            internalFormat          = GL_RGBA16_EXT;
            textureFormatID         = angle::Format::ID::R16G16B16A16_UNORM;
            vkTextureFormat         = VK_FORMAT_R16G16B16A16_UNORM;
            bufferFormatID          = angle::Format::ID::R16G16B16A16_UNORM;
            vkBufferFormat          = VK_FORMAT_R16G16B16A16_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16_FLOAT:
        {
            internalFormat          = GL_RGB16F;
            textureFormatID         = angle::Format::ID::R16G16B16_FLOAT;
            vkTextureFormat         = VK_FORMAT_R16G16B16_SFLOAT;
            bufferFormatID          = angle::Format::ID::R16G16B16_FLOAT;
            vkBufferFormat          = VK_FORMAT_R16G16B16_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16_SINT:
        {
            internalFormat          = GL_RGB16I;
            textureFormatID         = angle::Format::ID::R16G16B16_SINT;
            vkTextureFormat         = VK_FORMAT_R16G16B16_SINT;
            bufferFormatID          = angle::Format::ID::R16G16B16_SINT;
            vkBufferFormat          = VK_FORMAT_R16G16B16_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16_SNORM:
        {
            internalFormat          = GL_RGB16_SNORM_EXT;
            textureFormatID         = angle::Format::ID::R16G16B16_SNORM;
            vkTextureFormat         = VK_FORMAT_R16G16B16_SNORM;
            bufferFormatID          = angle::Format::ID::R16G16B16_SNORM;
            vkBufferFormat          = VK_FORMAT_R16G16B16_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16_UINT:
        {
            internalFormat          = GL_RGB16UI;
            textureFormatID         = angle::Format::ID::R16G16B16_UINT;
            vkTextureFormat         = VK_FORMAT_R16G16B16_UINT;
            bufferFormatID          = angle::Format::ID::R16G16B16_UINT;
            vkBufferFormat          = VK_FORMAT_R16G16B16_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16B16_UNORM:
        {
            internalFormat          = GL_RGB16_EXT;
            textureFormatID         = angle::Format::ID::R16G16B16_UNORM;
            vkTextureFormat         = VK_FORMAT_R16G16B16_UNORM;
            bufferFormatID          = angle::Format::ID::R16G16B16_UNORM;
            vkBufferFormat          = VK_FORMAT_R16G16B16_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16_FLOAT:
        {
            internalFormat          = GL_RG16F;
            textureFormatID         = angle::Format::ID::R16G16_FLOAT;
            vkTextureFormat         = VK_FORMAT_R16G16_SFLOAT;
            bufferFormatID          = angle::Format::ID::R16G16_FLOAT;
            vkBufferFormat          = VK_FORMAT_R16G16_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16_SINT:
        {
            internalFormat          = GL_RG16I;
            textureFormatID         = angle::Format::ID::R16G16_SINT;
            vkTextureFormat         = VK_FORMAT_R16G16_SINT;
            bufferFormatID          = angle::Format::ID::R16G16_SINT;
            vkBufferFormat          = VK_FORMAT_R16G16_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16_SNORM:
        {
            internalFormat          = GL_RG16_SNORM_EXT;
            textureFormatID         = angle::Format::ID::R16G16_SNORM;
            vkTextureFormat         = VK_FORMAT_R16G16_SNORM;
            bufferFormatID          = angle::Format::ID::R16G16_SNORM;
            vkBufferFormat          = VK_FORMAT_R16G16_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16_UINT:
        {
            internalFormat          = GL_RG16UI;
            textureFormatID         = angle::Format::ID::R16G16_UINT;
            vkTextureFormat         = VK_FORMAT_R16G16_UINT;
            bufferFormatID          = angle::Format::ID::R16G16_UINT;
            vkBufferFormat          = VK_FORMAT_R16G16_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16G16_UNORM:
        {
            internalFormat          = GL_RG16_EXT;
            textureFormatID         = angle::Format::ID::R16G16_UNORM;
            vkTextureFormat         = VK_FORMAT_R16G16_UNORM;
            bufferFormatID          = angle::Format::ID::R16G16_UNORM;
            vkBufferFormat          = VK_FORMAT_R16G16_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16_FLOAT:
        {
            internalFormat          = GL_R16F;
            textureFormatID         = angle::Format::ID::R16_FLOAT;
            vkTextureFormat         = VK_FORMAT_R16_SFLOAT;
            bufferFormatID          = angle::Format::ID::R16_FLOAT;
            vkBufferFormat          = VK_FORMAT_R16_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16_SINT:
        {
            internalFormat          = GL_R16I;
            textureFormatID         = angle::Format::ID::R16_SINT;
            vkTextureFormat         = VK_FORMAT_R16_SINT;
            bufferFormatID          = angle::Format::ID::R16_SINT;
            vkBufferFormat          = VK_FORMAT_R16_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16_SNORM:
        {
            internalFormat          = GL_R16_SNORM_EXT;
            textureFormatID         = angle::Format::ID::R16_SNORM;
            vkTextureFormat         = VK_FORMAT_R16_SNORM;
            bufferFormatID          = angle::Format::ID::R16_SNORM;
            vkBufferFormat          = VK_FORMAT_R16_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16_UINT:
        {
            internalFormat          = GL_R16UI;
            textureFormatID         = angle::Format::ID::R16_UINT;
            vkTextureFormat         = VK_FORMAT_R16_UINT;
            bufferFormatID          = angle::Format::ID::R16_UINT;
            vkBufferFormat          = VK_FORMAT_R16_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R16_UNORM:
        {
            internalFormat          = GL_R16_EXT;
            textureFormatID         = angle::Format::ID::R16_UNORM;
            vkTextureFormat         = VK_FORMAT_R16_UNORM;
            bufferFormatID          = angle::Format::ID::R16_UNORM;
            vkBufferFormat          = VK_FORMAT_R16_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32B32A32_FLOAT:
        {
            internalFormat          = GL_RGBA32F;
            textureFormatID         = angle::Format::ID::R32G32B32A32_FLOAT;
            vkTextureFormat         = VK_FORMAT_R32G32B32A32_SFLOAT;
            bufferFormatID          = angle::Format::ID::R32G32B32A32_FLOAT;
            vkBufferFormat          = VK_FORMAT_R32G32B32A32_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32B32A32_SINT:
        {
            internalFormat          = GL_RGBA32I;
            textureFormatID         = angle::Format::ID::R32G32B32A32_SINT;
            vkTextureFormat         = VK_FORMAT_R32G32B32A32_SINT;
            bufferFormatID          = angle::Format::ID::R32G32B32A32_SINT;
            vkBufferFormat          = VK_FORMAT_R32G32B32A32_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32B32A32_UINT:
        {
            internalFormat          = GL_RGBA32UI;
            textureFormatID         = angle::Format::ID::R32G32B32A32_UINT;
            vkTextureFormat         = VK_FORMAT_R32G32B32A32_UINT;
            bufferFormatID          = angle::Format::ID::R32G32B32A32_UINT;
            vkBufferFormat          = VK_FORMAT_R32G32B32A32_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32B32_FLOAT:
        {
            internalFormat          = GL_RGB32F;
            textureFormatID         = angle::Format::ID::R32G32B32_FLOAT;
            vkTextureFormat         = VK_FORMAT_R32G32B32_SFLOAT;
            bufferFormatID          = angle::Format::ID::R32G32B32_FLOAT;
            vkBufferFormat          = VK_FORMAT_R32G32B32_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32B32_SINT:
        {
            internalFormat          = GL_RGB32I;
            textureFormatID         = angle::Format::ID::R32G32B32_SINT;
            vkTextureFormat         = VK_FORMAT_R32G32B32_SINT;
            bufferFormatID          = angle::Format::ID::R32G32B32_SINT;
            vkBufferFormat          = VK_FORMAT_R32G32B32_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32B32_UINT:
        {
            internalFormat          = GL_RGB32UI;
            textureFormatID         = angle::Format::ID::R32G32B32_UINT;
            vkTextureFormat         = VK_FORMAT_R32G32B32_UINT;
            bufferFormatID          = angle::Format::ID::R32G32B32_UINT;
            vkBufferFormat          = VK_FORMAT_R32G32B32_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32_FLOAT:
        {
            internalFormat          = GL_RG32F;
            textureFormatID         = angle::Format::ID::R32G32_FLOAT;
            vkTextureFormat         = VK_FORMAT_R32G32_SFLOAT;
            bufferFormatID          = angle::Format::ID::R32G32_FLOAT;
            vkBufferFormat          = VK_FORMAT_R32G32_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32_SINT:
        {
            internalFormat          = GL_RG32I;
            textureFormatID         = angle::Format::ID::R32G32_SINT;
            vkTextureFormat         = VK_FORMAT_R32G32_SINT;
            bufferFormatID          = angle::Format::ID::R32G32_SINT;
            vkBufferFormat          = VK_FORMAT_R32G32_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32G32_UINT:
        {
            internalFormat          = GL_RG32UI;
            textureFormatID         = angle::Format::ID::R32G32_UINT;
            vkTextureFormat         = VK_FORMAT_R32G32_UINT;
            bufferFormatID          = angle::Format::ID::R32G32_UINT;
            vkBufferFormat          = VK_FORMAT_R32G32_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32_FLOAT:
        {
            internalFormat          = GL_R32F;
            textureFormatID         = angle::Format::ID::R32_FLOAT;
            vkTextureFormat         = VK_FORMAT_R32_SFLOAT;
            bufferFormatID          = angle::Format::ID::R32_FLOAT;
            vkBufferFormat          = VK_FORMAT_R32_SFLOAT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32_SINT:
        {
            internalFormat          = GL_R32I;
            textureFormatID         = angle::Format::ID::R32_SINT;
            vkTextureFormat         = VK_FORMAT_R32_SINT;
            bufferFormatID          = angle::Format::ID::R32_SINT;
            vkBufferFormat          = VK_FORMAT_R32_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R32_UINT:
        {
            internalFormat          = GL_R32UI;
            textureFormatID         = angle::Format::ID::R32_UINT;
            vkTextureFormat         = VK_FORMAT_R32_UINT;
            bufferFormatID          = angle::Format::ID::R32_UINT;
            vkBufferFormat          = VK_FORMAT_R32_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R4G4B4A4_UNORM:
        {
            internalFormat          = GL_RGBA4;
            textureFormatID         = angle::Format::ID::R8G8B8A8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8G8B8A8_UNORM;
            bufferFormatID          = angle::Format::ID::NONE;
            vkBufferFormat          = VK_FORMAT_UNDEFINED;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R5G5B5A1_UNORM:
        {
            internalFormat          = GL_RGB5_A1;
            textureFormatID         = angle::Format::ID::A1R5G5B5_UNORM;
            vkTextureFormat         = VK_FORMAT_A1R5G5B5_UNORM_PACK16;
            bufferFormatID          = angle::Format::ID::NONE;
            vkBufferFormat          = VK_FORMAT_UNDEFINED;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R5G6B5_UNORM:
        {
            internalFormat          = GL_RGB565;
            textureFormatID         = angle::Format::ID::R5G6B5_UNORM;
            vkTextureFormat         = VK_FORMAT_R5G6B5_UNORM_PACK16;
            bufferFormatID          = angle::Format::ID::R5G6B5_UNORM;
            vkBufferFormat          = VK_FORMAT_R5G6B5_UNORM_PACK16;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8A8_SINT:
        {
            internalFormat          = GL_RGBA8I;
            textureFormatID         = angle::Format::ID::R8G8B8A8_SINT;
            vkTextureFormat         = VK_FORMAT_R8G8B8A8_SINT;
            bufferFormatID          = angle::Format::ID::R8G8B8A8_SINT;
            vkBufferFormat          = VK_FORMAT_R8G8B8A8_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8A8_SNORM:
        {
            internalFormat          = GL_RGBA8_SNORM;
            textureFormatID         = angle::Format::ID::R8G8B8A8_SNORM;
            vkTextureFormat         = VK_FORMAT_R8G8B8A8_SNORM;
            bufferFormatID          = angle::Format::ID::R8G8B8A8_SNORM;
            vkBufferFormat          = VK_FORMAT_R8G8B8A8_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8A8_TYPELESS:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R8G8B8A8_TYPELESS_SRGB:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R8G8B8A8_UINT:
        {
            internalFormat          = GL_RGBA8UI;
            textureFormatID         = angle::Format::ID::R8G8B8A8_UINT;
            vkTextureFormat         = VK_FORMAT_R8G8B8A8_UINT;
            bufferFormatID          = angle::Format::ID::R8G8B8A8_UINT;
            vkBufferFormat          = VK_FORMAT_R8G8B8A8_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8A8_UNORM:
        {
            internalFormat          = GL_RGBA8;
            textureFormatID         = angle::Format::ID::R8G8B8A8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8G8B8A8_UNORM;
            bufferFormatID          = angle::Format::ID::R8G8B8A8_UNORM;
            vkBufferFormat          = VK_FORMAT_R8G8B8A8_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8A8_UNORM_SRGB:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R8G8B8_SINT:
        {
            internalFormat          = GL_RGB8I;
            textureFormatID         = angle::Format::ID::R8G8B8_SINT;
            vkTextureFormat         = VK_FORMAT_R8G8B8_SINT;
            bufferFormatID          = angle::Format::ID::R8G8B8_SINT;
            vkBufferFormat          = VK_FORMAT_R8G8B8_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8_SNORM:
        {
            internalFormat          = GL_RGB8_SNORM;
            textureFormatID         = angle::Format::ID::R8G8B8_SNORM;
            vkTextureFormat         = VK_FORMAT_R8G8B8_SNORM;
            bufferFormatID          = angle::Format::ID::R8G8B8_SNORM;
            vkBufferFormat          = VK_FORMAT_R8G8B8_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8_UINT:
        {
            internalFormat          = GL_RGB8UI;
            textureFormatID         = angle::Format::ID::R8G8B8_UINT;
            vkTextureFormat         = VK_FORMAT_R8G8B8_UINT;
            bufferFormatID          = angle::Format::ID::R8G8B8_UINT;
            vkBufferFormat          = VK_FORMAT_R8G8B8_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8B8_UNORM:
        {
            internalFormat          = GL_RGB8;
            textureFormatID         = angle::Format::ID::R8G8B8A8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8G8B8A8_UNORM;
            bufferFormatID          = angle::Format::ID::R8G8B8_UNORM;
            vkBufferFormat          = VK_FORMAT_R8G8B8_UNORM;
            dataInitializerFunction = Initialize4ComponentData<GLubyte, 0x00, 0x00, 0x00, 0xFF>;
            break;
        }

        case angle::Format::ID::R8G8B8_UNORM_SRGB:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::R8G8_SINT:
        {
            internalFormat          = GL_RG8I;
            textureFormatID         = angle::Format::ID::R8G8_SINT;
            vkTextureFormat         = VK_FORMAT_R8G8_SINT;
            bufferFormatID          = angle::Format::ID::R8G8_SINT;
            vkBufferFormat          = VK_FORMAT_R8G8_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8_SNORM:
        {
            internalFormat          = GL_RG8_SNORM;
            textureFormatID         = angle::Format::ID::R8G8_SNORM;
            vkTextureFormat         = VK_FORMAT_R8G8_SNORM;
            bufferFormatID          = angle::Format::ID::R8G8_SNORM;
            vkBufferFormat          = VK_FORMAT_R8G8_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8_UINT:
        {
            internalFormat          = GL_RG8UI;
            textureFormatID         = angle::Format::ID::R8G8_UINT;
            vkTextureFormat         = VK_FORMAT_R8G8_UINT;
            bufferFormatID          = angle::Format::ID::R8G8_UINT;
            vkBufferFormat          = VK_FORMAT_R8G8_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8G8_UNORM:
        {
            internalFormat          = GL_RG8;
            textureFormatID         = angle::Format::ID::R8G8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8G8_UNORM;
            bufferFormatID          = angle::Format::ID::R8G8_UNORM;
            vkBufferFormat          = VK_FORMAT_R8G8_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8_SINT:
        {
            internalFormat          = GL_R8I;
            textureFormatID         = angle::Format::ID::R8_SINT;
            vkTextureFormat         = VK_FORMAT_R8_SINT;
            bufferFormatID          = angle::Format::ID::R8_SINT;
            vkBufferFormat          = VK_FORMAT_R8_SINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8_SNORM:
        {
            internalFormat          = GL_R8_SNORM;
            textureFormatID         = angle::Format::ID::R8_SNORM;
            vkTextureFormat         = VK_FORMAT_R8_SNORM;
            bufferFormatID          = angle::Format::ID::R8_SNORM;
            vkBufferFormat          = VK_FORMAT_R8_SNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8_UINT:
        {
            internalFormat          = GL_R8UI;
            textureFormatID         = angle::Format::ID::R8_UINT;
            vkTextureFormat         = VK_FORMAT_R8_UINT;
            bufferFormatID          = angle::Format::ID::R8_UINT;
            vkBufferFormat          = VK_FORMAT_R8_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R8_UNORM:
        {
            internalFormat          = GL_R8;
            textureFormatID         = angle::Format::ID::R8_UNORM;
            vkTextureFormat         = VK_FORMAT_R8_UNORM;
            bufferFormatID          = angle::Format::ID::R8_UNORM;
            vkBufferFormat          = VK_FORMAT_R8_UNORM;
            dataInitializerFunction = nullptr;
            break;
        }

        case angle::Format::ID::R9G9B9E5_SHAREDEXP:
            // This format is not implemented in Vulkan.
            break;

        case angle::Format::ID::S8_UINT:
        {
            internalFormat          = GL_STENCIL_INDEX8;
            textureFormatID         = angle::Format::ID::S8_UINT;
            vkTextureFormat         = VK_FORMAT_S8_UINT;
            bufferFormatID          = angle::Format::ID::S8_UINT;
            vkBufferFormat          = VK_FORMAT_S8_UINT;
            dataInitializerFunction = nullptr;
            break;
        }

        default:
            UNREACHABLE();
            break;
    }
}

}  // namespace vk

}  // namespace rx
