blob: ac4250a6a5bac93662009bd9a8c7e058fcfa4620 [file] [log] [blame]
// Copyright 2015-2022 The Khronos Group Inc.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
// This header is generated from the Khronos Vulkan XML API Registry.
#ifndef VULKAN_FORMAT_TRAITS_HPP
#define VULKAN_FORMAT_TRAITS_HPP
#include <vulkan/vulkan.hpp>
namespace VULKAN_HPP_NAMESPACE
{
//=====================
//=== Format Traits ===
//=====================
// The texel block size in bytes.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t blockSize( VULKAN_HPP_NAMESPACE::Format format )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eR4G4UnormPack8: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR4G4B4A4UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eB4G4R4A4UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR5G6B5UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eB5G6R5UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR5G5B5A1UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eB5G5R5A1UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eA1R5G5B5UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Unorm: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Snorm: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Uscaled: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Sscaled: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Uint: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Sint: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Srgb: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Snorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Uscaled: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Sscaled: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Uint: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Sint: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Srgb: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Snorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Uscaled: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Sscaled: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Uint: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Sint: return 3;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Srgb: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Unorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Snorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Uscaled: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Sscaled: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Uint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Sint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Srgb: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Unorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Snorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Uscaled: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Sscaled: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Uint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Sint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Srgb: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UscaledPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SscaledPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UintPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SintPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SrgbPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UscaledPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SscaledPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UintPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SintPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UscaledPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SscaledPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UintPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SintPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16Unorm: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16Snorm: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16Uscaled: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16Sscaled: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16Uint: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16Sint: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16Sfloat: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Unorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Snorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Uscaled: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sscaled: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Uint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sfloat: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Snorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Uscaled: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sscaled: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Uint: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sint: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sfloat: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Unorm: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Snorm: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Uscaled: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sscaled: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Uint: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sint: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sfloat: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR32Uint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR32Sint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR32Sfloat: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR32G32Uint: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR32G32Sint: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR32G32Sfloat: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Uint: return 12;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Sint: return 12;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Sfloat: return 12;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Uint: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Sint: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Sfloat: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR64Uint: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR64Sint: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR64Sfloat: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR64G64Uint: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR64G64Sint: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR64G64Sfloat: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Uint: return 24;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Sint: return 24;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Sfloat: return 24;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Uint: return 32;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Sint: return 32;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Sfloat: return 32;
case VULKAN_HPP_NAMESPACE::Format::eB10G11R11UfloatPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eE5B9G9R9UfloatPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eD16Unorm: return 2;
case VULKAN_HPP_NAMESPACE::Format::eX8D24UnormPack32: return 4;
case VULKAN_HPP_NAMESPACE::Format::eD32Sfloat: return 4;
case VULKAN_HPP_NAMESPACE::Format::eS8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eD16UnormS8Uint: return 3;
case VULKAN_HPP_NAMESPACE::Format::eD24UnormS8Uint: return 4;
case VULKAN_HPP_NAMESPACE::Format::eD32SfloatS8Uint: return 5;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbUnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbSrgbBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaUnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaSrgbBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eBc2UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc2SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc3UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc3SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc4UnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eBc4SnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eBc5UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc5SnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc6HUfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc6HSfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc7UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc7SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8UnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8SrgbBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1UnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1SrgbBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEacR11UnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eEacR11SnormBlock: return 8;
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11SnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG8B8G8R8422Unorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8G8422Unorm: return 4;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane420Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane420Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane422Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane422Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane444Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eR10X6UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6Unorm2Pack16: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6B10X6A10X6Unorm4Pack16: return 8;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16: return 8;
case VULKAN_HPP_NAMESPACE::Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16: return 8;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane420Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane422Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane422Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane444Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eR12X4UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eR12X4G12X4Unorm2Pack16: return 4;
case VULKAN_HPP_NAMESPACE::Format::eR12X4G12X4B12X4A12X4Unorm4Pack16: return 8;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16: return 8;
case VULKAN_HPP_NAMESPACE::Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16: return 8;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane420Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane420Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane422Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane422Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane444Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG16B16G16R16422Unorm: return 8;
case VULKAN_HPP_NAMESPACE::Format::eB16G16R16G16422Unorm: return 8;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R163Plane420Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R162Plane420Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R163Plane422Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R162Plane422Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R163Plane444Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane444Unorm: return 3;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane444Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane444Unorm3Pack16: return 6;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R162Plane444Unorm: return 6;
case VULKAN_HPP_NAMESPACE::Format::eA4R4G4B4UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eA4B4G4R4UnormPack16: return 2;
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppUnormBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppUnormBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppUnormBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppUnormBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppSrgbBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppSrgbBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppSrgbBlockIMG: return 8;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppSrgbBlockIMG: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
}
// The number of texels in a texel block.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t texelsPerBlock( VULKAN_HPP_NAMESPACE::Format format )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eR4G4UnormPack8: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR4G4B4A4UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB4G4R4A4UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR5G6B5UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB5G6R5UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR5G5B5A1UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB5G5R5A1UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA1R5G5B5UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Srgb: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UscaledPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SscaledPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UintPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SintPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SrgbPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UscaledPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SscaledPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UintPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SintPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UscaledPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SscaledPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UintPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SintPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Snorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Uscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sscaled: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Sint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB10G11R11UfloatPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eE5B9G9R9UfloatPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eD16Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eX8D24UnormPack32: return 1;
case VULKAN_HPP_NAMESPACE::Format::eD32Sfloat: return 1;
case VULKAN_HPP_NAMESPACE::Format::eS8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eD16UnormS8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eD24UnormS8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eD32SfloatS8Uint: return 1;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbUnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbSrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaUnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaSrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc2UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc2SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc3UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc3SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc4UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc4SnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc5UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc5SnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc6HUfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc6HSfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc7UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eBc7SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEacR11UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEacR11SnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11SnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4UnormBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SrgbBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4UnormBlock: return 20;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SrgbBlock: return 20;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5UnormBlock: return 25;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SrgbBlock: return 25;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5UnormBlock: return 30;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SrgbBlock: return 30;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6UnormBlock: return 36;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SrgbBlock: return 36;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5UnormBlock: return 40;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SrgbBlock: return 40;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6UnormBlock: return 48;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SrgbBlock: return 48;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8UnormBlock: return 64;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SrgbBlock: return 64;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5UnormBlock: return 50;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SrgbBlock: return 50;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6UnormBlock: return 60;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SrgbBlock: return 60;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8UnormBlock: return 80;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SrgbBlock: return 80;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10UnormBlock: return 100;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SrgbBlock: return 100;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10UnormBlock: return 120;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SrgbBlock: return 120;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12UnormBlock: return 144;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SrgbBlock: return 144;
case VULKAN_HPP_NAMESPACE::Format::eG8B8G8R8422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8G8422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane420Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane420Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane444Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR10X6UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6Unorm2Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6B10X6A10X6Unorm4Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane420Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane422Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane422Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane444Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR12X4UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR12X4G12X4Unorm2Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eR12X4G12X4B12X4A12X4Unorm4Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane420Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane420Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane422Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane422Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane444Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16G16R16422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eB16G16R16G16422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R163Plane420Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R162Plane420Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R163Plane422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R162Plane422Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R163Plane444Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane444Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane444Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane444Unorm3Pack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eG16B16R162Plane444Unorm: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA4R4G4B4UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eA4B4G4R4UnormPack16: return 1;
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SfloatBlock: return 16;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SfloatBlock: return 20;
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SfloatBlock: return 25;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SfloatBlock: return 30;
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SfloatBlock: return 36;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SfloatBlock: return 40;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SfloatBlock: return 48;
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SfloatBlock: return 64;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SfloatBlock: return 50;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SfloatBlock: return 60;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SfloatBlock: return 80;
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SfloatBlock: return 100;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SfloatBlock: return 120;
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SfloatBlock: return 144;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppUnormBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppUnormBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppUnormBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppUnormBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppSrgbBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppSrgbBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppSrgbBlockIMG: return 1;
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppSrgbBlockIMG: return 1;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
}
// The three-dimensional extent of a texel block.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 std::array<uint8_t, 3> blockExtent( VULKAN_HPP_NAMESPACE::Format format )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbUnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbSrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaUnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaSrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc2UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc2SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc3UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc3SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc4UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc4SnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc5UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc5SnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc6HUfloatBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc6HSfloatBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc7UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eBc7SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEacR11UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEacR11SnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11SnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4UnormBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SrgbBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4UnormBlock: return { { 5, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SrgbBlock: return { { 5, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5UnormBlock: return { { 5, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SrgbBlock: return { { 5, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5UnormBlock: return { { 6, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SrgbBlock: return { { 6, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6UnormBlock: return { { 6, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SrgbBlock: return { { 6, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5UnormBlock: return { { 8, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SrgbBlock: return { { 8, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6UnormBlock: return { { 8, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SrgbBlock: return { { 8, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8UnormBlock: return { { 8, 8, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SrgbBlock: return { { 8, 8, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5UnormBlock: return { { 10, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SrgbBlock: return { { 10, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6UnormBlock: return { { 10, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SrgbBlock: return { { 10, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8UnormBlock: return { { 10, 8, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SrgbBlock: return { { 10, 8, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10UnormBlock: return { { 10, 10, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SrgbBlock: return { { 10, 10, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10UnormBlock: return { { 12, 10, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SrgbBlock: return { { 12, 10, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12UnormBlock: return { { 12, 12, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SrgbBlock: return { { 12, 12, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eG8B8G8R8422Unorm: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8G8422Unorm: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eG16B16G16R16422Unorm: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eB16G16R16G16422Unorm: return { { 2, 1, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SfloatBlock: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SfloatBlock: return { { 5, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SfloatBlock: return { { 5, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SfloatBlock: return { { 6, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SfloatBlock: return { { 6, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SfloatBlock: return { { 8, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SfloatBlock: return { { 8, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SfloatBlock: return { { 8, 8, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SfloatBlock: return { { 10, 5, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SfloatBlock: return { { 10, 6, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SfloatBlock: return { { 10, 8, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SfloatBlock: return { { 10, 10, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SfloatBlock: return { { 12, 10, 1 } };
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SfloatBlock: return { { 12, 12, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppUnormBlockIMG: return { { 8, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppUnormBlockIMG: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppUnormBlockIMG: return { { 8, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppUnormBlockIMG: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppSrgbBlockIMG: return { { 8, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppSrgbBlockIMG: return { { 4, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppSrgbBlockIMG: return { { 8, 4, 1 } };
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppSrgbBlockIMG: return { { 4, 4, 1 } };
default: return { { 1, 1, 1 } };
}
}
// A textual description of the compression scheme, or an empty string if it is not compressed
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 char const * compressionScheme( VULKAN_HPP_NAMESPACE::Format format )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbUnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbSrgbBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaUnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaSrgbBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc2UnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc2SrgbBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc3UnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc3SrgbBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc4UnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc4SnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc5UnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc5SnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc6HUfloatBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc6HSfloatBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc7UnormBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eBc7SrgbBlock: return "BC";
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8UnormBlock: return "ETC2";
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8SrgbBlock: return "ETC2";
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1UnormBlock: return "ETC2";
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1SrgbBlock: return "ETC2";
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8UnormBlock: return "ETC2";
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8SrgbBlock: return "ETC2";
case VULKAN_HPP_NAMESPACE::Format::eEacR11UnormBlock: return "EAC";
case VULKAN_HPP_NAMESPACE::Format::eEacR11SnormBlock: return "EAC";
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11UnormBlock: return "EAC";
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11SnormBlock: return "EAC";
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12UnormBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SrgbBlock: return "ASTC LDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SfloatBlock: return "ASTC HDR";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppUnormBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppUnormBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppUnormBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppUnormBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppSrgbBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppSrgbBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppSrgbBlockIMG: return "PVRTC";
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppSrgbBlockIMG: return "PVRTC";
default: return "";
}
}
// True, if this format is a compressed one.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool isCompressed( VULKAN_HPP_NAMESPACE::Format format )
{
return ( *VULKAN_HPP_NAMESPACE::compressionScheme( format ) != 0 );
}
// The number of bits into which the format is packed. A single image element in this format
// can be stored in the same space as a scalar type of this bit width.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t packed( VULKAN_HPP_NAMESPACE::Format format )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eR4G4UnormPack8: return 8;
case VULKAN_HPP_NAMESPACE::Format::eR4G4B4A4UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eB4G4R4A4UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR5G6B5UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eB5G6R5UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR5G5B5A1UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eB5G5R5A1UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eA1R5G5B5UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UscaledPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SscaledPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UintPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SintPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SrgbPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UscaledPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SscaledPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UintPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SintPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UscaledPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SscaledPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UintPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SintPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eB10G11R11UfloatPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eE5B9G9R9UfloatPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eX8D24UnormPack32: return 32;
case VULKAN_HPP_NAMESPACE::Format::eR10X6UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6Unorm2Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6B10X6A10X6Unorm4Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane420Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane422Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane422Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X63Plane444Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR12X4UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR12X4G12X4Unorm2Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eR12X4G12X4B12X4A12X4Unorm4Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane420Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane420Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane422Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane422Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X43Plane444Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6R10X62Plane444Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eG12X4B12X4R12X42Plane444Unorm3Pack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eA4R4G4B4UnormPack16: return 16;
case VULKAN_HPP_NAMESPACE::Format::eA4B4G4R4UnormPack16: return 16;
default: return 0;
}
}
// True, if the components of this format are compressed, otherwise false.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool componentsAreCompressed( VULKAN_HPP_NAMESPACE::Format format )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbUnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbSrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaUnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc1RgbaSrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc2UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc2SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc3UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc3SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc4UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc4SnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc5UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc5SnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc6HUfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc6HSfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc7UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eBc7SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A1SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eEtc2R8G8B8A8SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12UnormBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SrgbBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc4x4SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc5x4SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc5x5SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc6x5SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc6x6SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x5SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x6SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc8x8SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x5SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x6SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x8SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc10x10SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc12x10SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::eAstc12x12SfloatBlock:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppUnormBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppUnormBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppUnormBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppUnormBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc12BppSrgbBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc14BppSrgbBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc22BppSrgbBlockIMG:
case VULKAN_HPP_NAMESPACE::Format::ePvrtc24BppSrgbBlockIMG: return true;
default: return false;
}
}
// The number of bits in this component, if not compressed, otherwise 0.
VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t componentBits( VULKAN_HPP_NAMESPACE::Format format, uint8_t component )
{
switch ( format )
{
case VULKAN_HPP_NAMESPACE::Format::eR4G4UnormPack8:
switch ( component )
{
case 0: return 4;
case 1: return 4;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR4G4B4A4UnormPack16:
switch ( component )
{
case 0: return 4;
case 1: return 4;
case 2: return 4;
case 3: return 4;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB4G4R4A4UnormPack16:
switch ( component )
{
case 0: return 4;
case 1: return 4;
case 2: return 4;
case 3: return 4;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR5G6B5UnormPack16:
switch ( component )
{
case 0: return 5;
case 1: return 6;
case 2: return 5;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB5G6R5UnormPack16:
switch ( component )
{
case 0: return 5;
case 1: return 6;
case 2: return 5;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR5G5B5A1UnormPack16:
switch ( component )
{
case 0: return 5;
case 1: return 5;
case 2: return 5;
case 3: return 1;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB5G5R5A1UnormPack16:
switch ( component )
{
case 0: return 5;
case 1: return 5;
case 2: return 5;
case 3: return 1;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA1R5G5B5UnormPack16:
switch ( component )
{
case 0: return 1;
case 1: return 5;
case 2: return 5;
case 3: return 5;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Unorm:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Snorm:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Uscaled:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Sscaled:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Uint:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Sint:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8Srgb:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Snorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Uscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Sscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Uint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Sint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8Srgb:
switch ( component )
{
case 0: return 8;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Snorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Uscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Sscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Uint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Sint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8Srgb:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Snorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Uscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Sscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Uint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Sint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8Srgb:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Snorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Uscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Sscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Uint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Sint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR8G8B8A8Srgb:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Snorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Uscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Sscaled:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Uint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Sint:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8A8Srgb:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UnormPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SnormPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UscaledPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SscaledPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8UintPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SintPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA8B8G8R8SrgbPack32:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UnormPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SnormPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UscaledPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SscaledPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10UintPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2R10G10B10SintPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UnormPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SnormPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UscaledPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SscaledPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10UintPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eA2B10G10R10SintPack32:
switch ( component )
{
case 0: return 2;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Unorm:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Snorm:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Uscaled:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Sscaled:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Uint:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Sint:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16Sfloat:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Unorm:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Snorm:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Uscaled:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sscaled:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Uint:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sint:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16Sfloat:
switch ( component )
{
case 0: return 16;
case 1: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Unorm:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Snorm:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Uscaled:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sscaled:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Uint:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sint:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16Sfloat:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Unorm:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Snorm:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Uscaled:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sscaled:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Uint:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sint:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR16G16B16A16Sfloat:
switch ( component )
{
case 0: return 16;
case 1: return 16;
case 2: return 16;
case 3: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32Uint:
switch ( component )
{
case 0: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32Sint:
switch ( component )
{
case 0: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32Sfloat:
switch ( component )
{
case 0: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32Uint:
switch ( component )
{
case 0: return 32;
case 1: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32Sint:
switch ( component )
{
case 0: return 32;
case 1: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32Sfloat:
switch ( component )
{
case 0: return 32;
case 1: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Uint:
switch ( component )
{
case 0: return 32;
case 1: return 32;
case 2: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Sint:
switch ( component )
{
case 0: return 32;
case 1: return 32;
case 2: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32Sfloat:
switch ( component )
{
case 0: return 32;
case 1: return 32;
case 2: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Uint:
switch ( component )
{
case 0: return 32;
case 1: return 32;
case 2: return 32;
case 3: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Sint:
switch ( component )
{
case 0: return 32;
case 1: return 32;
case 2: return 32;
case 3: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR32G32B32A32Sfloat:
switch ( component )
{
case 0: return 32;
case 1: return 32;
case 2: return 32;
case 3: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64Uint:
switch ( component )
{
case 0: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64Sint:
switch ( component )
{
case 0: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64Sfloat:
switch ( component )
{
case 0: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64Uint:
switch ( component )
{
case 0: return 64;
case 1: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64Sint:
switch ( component )
{
case 0: return 64;
case 1: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64Sfloat:
switch ( component )
{
case 0: return 64;
case 1: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Uint:
switch ( component )
{
case 0: return 64;
case 1: return 64;
case 2: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Sint:
switch ( component )
{
case 0: return 64;
case 1: return 64;
case 2: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64Sfloat:
switch ( component )
{
case 0: return 64;
case 1: return 64;
case 2: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Uint:
switch ( component )
{
case 0: return 64;
case 1: return 64;
case 2: return 64;
case 3: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Sint:
switch ( component )
{
case 0: return 64;
case 1: return 64;
case 2: return 64;
case 3: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR64G64B64A64Sfloat:
switch ( component )
{
case 0: return 64;
case 1: return 64;
case 2: return 64;
case 3: return 64;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB10G11R11UfloatPack32:
switch ( component )
{
case 0: return 10;
case 1: return 11;
case 2: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eE5B9G9R9UfloatPack32:
switch ( component )
{
case 0: return 9;
case 1: return 9;
case 2: return 9;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eD16Unorm:
switch ( component )
{
case 0: return 16;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eX8D24UnormPack32:
switch ( component )
{
case 0: return 24;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eD32Sfloat:
switch ( component )
{
case 0: return 32;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eS8Uint:
switch ( component )
{
case 0: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eD16UnormS8Uint:
switch ( component )
{
case 0: return 16;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eD24UnormS8Uint:
switch ( component )
{
case 0: return 24;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eD32SfloatS8Uint:
switch ( component )
{
case 0: return 32;
case 1: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eEacR11UnormBlock:
switch ( component )
{
case 0: return 11;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eEacR11SnormBlock:
switch ( component )
{
case 0: return 11;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11UnormBlock:
switch ( component )
{
case 0: return 11;
case 1: return 11;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eEacR11G11SnormBlock:
switch ( component )
{
case 0: return 11;
case 1: return 11;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG8B8G8R8422Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB8G8R8G8422Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
case 3: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane420Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane420Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane422Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG8B8R82Plane422Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG8B8R83Plane444Unorm:
switch ( component )
{
case 0: return 8;
case 1: return 8;
case 2: return 8;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR10X6UnormPack16:
switch ( component )
{
case 0: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6Unorm2Pack16:
switch ( component )
{
case 0: return 10;
case 1: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
switch ( component )
{
case 0: return 10;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
switch ( component )
{
case 0: return 10;
case 1: return 10;
case 2: return 10;
case 3: return 10;
default: VULKAN_HPP_ASSERT( false ); return 0;
}
case VULKAN_HPP_NAMESPACE::Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
switch ( component )
{
case 0: return 10;
case 1: return 10;