1/* this is pretty much taken from the gallium one. */ 2 3 4VK_FORMAT_UNDEFINED , plain, 1, 1, u8 , , , , x001, rgb 5VK_FORMAT_R4G4_UNORM_PACK8 , plain, 1, 1, un4 , un4 , , , xy01, rgb 6VK_FORMAT_R4G4B4A4_UNORM_PACK16 , plain, 1, 1, un4 , un4 , un4 , un4 , wzyx, rgb 7VK_FORMAT_B4G4R4A4_UNORM_PACK16 , plain, 1, 1, un4 , un4 , un4 , un4 , wxyz, rgb 8VK_FORMAT_R5G6B5_UNORM_PACK16 , plain, 1, 1, un5 , un6 , un5 , , zyx1, rgb 9VK_FORMAT_B5G6R5_UNORM_PACK16 , plain, 1, 1, un5 , un6 , un5 , , xyz1, rgb 10VK_FORMAT_R5G5B5A1_UNORM_PACK16 , plain, 1, 1, un1 , un5 , un5 , un5 , wzyx, rgb 11VK_FORMAT_B5G5R5A1_UNORM_PACK16 , plain, 1, 1, un1 , un5 , un5 , un5 , wxyz, rgb 12VK_FORMAT_A1R5G5B5_UNORM_PACK16 , plain, 1, 1, un5 , un5 , un5 , un1 , zyxw, rgb 13VK_FORMAT_R8_UNORM , plain, 1, 1, un8 , , , , x001, rgb 14VK_FORMAT_R8_SNORM , plain, 1, 1, sn8 , , , , x001, rgb 15VK_FORMAT_R8_USCALED , plain, 1, 1, us8 , , , , x001, rgb 16VK_FORMAT_R8_SSCALED , plain, 1, 1, ss8 , , , , x001, rgb 17VK_FORMAT_R8_UINT , plain, 1, 1, up8 , , , , x001, rgb 18VK_FORMAT_R8_SINT , plain, 1, 1, sp8 , , , , x001, rgb 19VK_FORMAT_R8_SRGB , plain, 1, 1, un8 , , , , x001, srgb 20VK_FORMAT_R8G8_UNORM , plain, 1, 1, un8 , un8 , , , xy01, rgb 21VK_FORMAT_R8G8_SNORM , plain, 1, 1, sn8 , sn8 , , , xy01, rgb 22VK_FORMAT_R8G8_USCALED , plain, 1, 1, us8 , us8 , , , xy01, rgb 23VK_FORMAT_R8G8_SSCALED , plain, 1, 1, ss8 , ss8 , , , xy01, rgb 24VK_FORMAT_R8G8_UINT , plain, 1, 1, up8 , up8 , , , xy01, rgb 25VK_FORMAT_R8G8_SINT , plain, 1, 1, sp8 , sp8 , , , xy01, rgb 26VK_FORMAT_R8G8_SRGB , plain, 1, 1, un8 , un8 , , , xy01, srgb 27VK_FORMAT_R8G8B8_UNORM , plain, 1, 1, un8 , un8 , un8 , , xyz1, rgb 28VK_FORMAT_R8G8B8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , , xyz1, rgb 29VK_FORMAT_R8G8B8_USCALED , plain, 1, 1, us8 , us8 , us8 , , xyz1, rgb 30VK_FORMAT_R8G8B8_SSCALED , plain, 1, 1, ss8 , ss8 , ss8 , , xyz1, rgb 31VK_FORMAT_R8G8B8_UINT , plain, 1, 1, up8 , up8 , up8 , , xyz1, rgb 32VK_FORMAT_R8G8B8_SINT , plain, 1, 1, sp8 , sp8 , sp8 , , xyz1, rgb 33VK_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb 34VK_FORMAT_B8G8R8_UNORM , plain, 1, 1, un8 , un8 , un8 , , zyx1, rgb 35VK_FORMAT_B8G8R8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , , zyx1, rgb 36VK_FORMAT_B8G8R8_USCALED , plain, 1, 1, us8 , us8 , us8 , , zyx1, rgb 37VK_FORMAT_B8G8R8_SSCALED , plain, 1, 1, ss8 , ss8 , ss8 , , zyx1, rgb 38VK_FORMAT_B8G8R8_UINT , plain, 1, 1, up8 , up8 , up8 , , zyx1, rgb 39VK_FORMAT_B8G8R8_SINT , plain, 1, 1, sp8 , sp8 , sp8 , , zyx1, rgb 40VK_FORMAT_B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , , zyx1, srgb 41VK_FORMAT_R8G8B8A8_UNORM , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, rgb 42VK_FORMAT_R8G8B8A8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , sn8 , xyzw, rgb 43VK_FORMAT_R8G8B8A8_USCALED , plain, 1, 1, us8 , us8 , us8 , us8 , xyzw, rgb 44VK_FORMAT_R8G8B8A8_SSCALED , plain, 1, 1, ss8 , ss8 , ss8 , ss8 , xyzw, rgb 45VK_FORMAT_R8G8B8A8_UINT , plain, 1, 1, up8 , up8 , up8 , up8 , xyzw, rgb 46VK_FORMAT_R8G8B8A8_SINT , plain, 1, 1, sp8 , sp8 , sp8 , sp8 , xyzw, rgb 47VK_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb 48VK_FORMAT_B8G8R8A8_UNORM , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, rgb 49VK_FORMAT_B8G8R8A8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , sn8 , zyxw, rgb 50VK_FORMAT_B8G8R8A8_USCALED , plain, 1, 1, us8 , us8 , us8 , us8 , zyxw, rgb 51VK_FORMAT_B8G8R8A8_SSCALED , plain, 1, 1, ss8 , ss8 , ss8 , ss8 , zyxw, rgb 52VK_FORMAT_B8G8R8A8_UINT , plain, 1, 1, up8 , up8 , up8 , up8 , zyxw, rgb 53VK_FORMAT_B8G8R8A8_SINT , plain, 1, 1, sp8 , sp8 , sp8 , sp8 , zyxw, rgb 54VK_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb 55VK_FORMAT_A8B8G8R8_UNORM_PACK32 , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, rgb 56VK_FORMAT_A8B8G8R8_SNORM_PACK32 , plain, 1, 1, sn8 , sn8 , sn8 , sn8 , xyzw, rgb 57VK_FORMAT_A8B8G8R8_USCALED_PACK32 , plain, 1, 1, us8 , us8 , us8 , us8 , xyzw, rgb 58VK_FORMAT_A8B8G8R8_SSCALED_PACK32 , plain, 1, 1, ss8 , ss8 , ss8 , ss8 , xyzw, rgb 59VK_FORMAT_A8B8G8R8_UINT_PACK32 , plain, 1, 1, up8 , up8 , up8 , up8 , xyzw, rgb 60VK_FORMAT_A8B8G8R8_SINT_PACK32 , plain, 1, 1, sp8 , sp8 , sp8 , sp8 , xyzw, rgb 61VK_FORMAT_A8B8G8R8_SRGB_PACK32 , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb 62VK_FORMAT_A2R10G10B10_UNORM_PACK32 , plain, 1, 1, un10, un10, un10, un2 , zyxw, rgb 63VK_FORMAT_A2R10G10B10_SNORM_PACK32 , plain, 1, 1, sn10, sn10, sn10, sn2 , zyxw, rgb 64VK_FORMAT_A2R10G10B10_USCALED_PACK32 , plain, 1, 1, us10, us10, us10, us2 , zyxw, rgb 65VK_FORMAT_A2R10G10B10_SSCALED_PACK32 , plain, 1, 1, ss10, ss10, ss10, ss2 , zyxw, rgb 66VK_FORMAT_A2R10G10B10_UINT_PACK32 , plain, 1, 1, up10, up10, up10, up2 , zyxw, rgb 67VK_FORMAT_A2R10G10B10_SINT_PACK32 , plain, 1, 1, sp10, sp10, sp10, sp2 , zyxw, rgb 68VK_FORMAT_A2B10G10R10_UNORM_PACK32 , plain, 1, 1, un10, un10, un10, un2 , xyzw, rgb 69VK_FORMAT_A2B10G10R10_SNORM_PACK32 , plain, 1, 1, sn10, sn10, sn10, sn2 , xyzw, rgb 70VK_FORMAT_A2B10G10R10_USCALED_PACK32 , plain, 1, 1, us10, us10, us10, us2 , xyzw, rgb 71VK_FORMAT_A2B10G10R10_SSCALED_PACK32 , plain, 1, 1, ss10, ss10, ss10, ss2 , xyzw, rgb 72VK_FORMAT_A2B10G10R10_UINT_PACK32 , plain, 1, 1, up10, up10, up10, up2 , xyzw, rgb 73VK_FORMAT_A2B10G10R10_SINT_PACK32 , plain, 1, 1, sp10, sp10, sp10, sp2 , xyzw, rgb 74VK_FORMAT_R16_UNORM , plain, 1, 1, un16, , , , x001, rgb 75VK_FORMAT_R16_SNORM , plain, 1, 1, sn16, , , , x001, rgb 76VK_FORMAT_R16_USCALED , plain, 1, 1, us16, , , , x001, rgb 77VK_FORMAT_R16_SSCALED , plain, 1, 1, ss16, , , , x001, rgb 78VK_FORMAT_R16_UINT , plain, 1, 1, up16, , , , x001, rgb 79VK_FORMAT_R16_SINT , plain, 1, 1, sp16, , , , x001, rgb 80VK_FORMAT_R16_SFLOAT , plain, 1, 1, f16 , , , , x001, rgb 81VK_FORMAT_R16G16_UNORM , plain, 1, 1, un16, un16, , , xy01, rgb 82VK_FORMAT_R16G16_SNORM , plain, 1, 1, sn16, sn16, , , xy01, rgb 83VK_FORMAT_R16G16_USCALED , plain, 1, 1, us16, us16, , , xy01, rgb 84VK_FORMAT_R16G16_SSCALED , plain, 1, 1, ss16, ss16, , , xy01, rgb 85VK_FORMAT_R16G16_UINT , plain, 1, 1, up16, up16, , , xy01, rgb 86VK_FORMAT_R16G16_SINT , plain, 1, 1, sp16, sp16, , , xy01, rgb 87VK_FORMAT_R16G16_SFLOAT , plain, 1, 1, f16 , f16 , , , xy01, rgb 88VK_FORMAT_R16G16B16_UNORM , plain, 1, 1, un16, un16, un16, , xyz1, rgb 89VK_FORMAT_R16G16B16_SNORM , plain, 1, 1, sn16, sn16, sn16, , xyz1, rgb 90VK_FORMAT_R16G16B16_USCALED , plain, 1, 1, us16, us16, us16, , xyz1, rgb 91VK_FORMAT_R16G16B16_SSCALED , plain, 1, 1, ss16, ss16, ss16, , xyz1, rgb 92VK_FORMAT_R16G16B16_UINT , plain, 1, 1, up16, up16, up16, , xyz1, rgb 93VK_FORMAT_R16G16B16_SINT , plain, 1, 1, sp16, sp16, sp16, , xyz1, rgb 94VK_FORMAT_R16G16B16_SFLOAT , plain, 1, 1, f16 , f16 , f16 , , xyz1, rgb 95VK_FORMAT_R16G16B16A16_UNORM , plain, 1, 1, un16, un16, un16, un16, xyzw, rgb 96VK_FORMAT_R16G16B16A16_SNORM , plain, 1, 1, sn16, sn16, sn16, sn16, xyzw, rgb 97VK_FORMAT_R16G16B16A16_USCALED , plain, 1, 1, us16, us16, us16, us16, xyzw, rgb 98VK_FORMAT_R16G16B16A16_SSCALED , plain, 1, 1, ss16, ss16, ss16, ss16, xyzw, rgb 99VK_FORMAT_R16G16B16A16_UINT , plain, 1, 1, up16, up16, up16, up16, xyzw, rgb 100VK_FORMAT_R16G16B16A16_SINT , plain, 1, 1, sp16, sp16, sp16, sp16, xyzw, rgb 101VK_FORMAT_R16G16B16A16_SFLOAT , plain, 1, 1, f16 , f16 , f16 , f16 , xyzw, rgb 102VK_FORMAT_R32_UINT , plain, 1, 1, up32, , , , x001, rgb 103VK_FORMAT_R32_SINT , plain, 1, 1, sp32, , , , x001, rgb 104VK_FORMAT_R32_SFLOAT , plain, 1, 1, f32 , , , , x001, rgb 105VK_FORMAT_R32G32_UINT , plain, 1, 1, up32, up32, , , xy01, rgb 106VK_FORMAT_R32G32_SINT , plain, 1, 1, sp32, sp32, , , xy01, rgb 107VK_FORMAT_R32G32_SFLOAT , plain, 1, 1, f32 , f32 , , , xy01, rgb 108VK_FORMAT_R32G32B32_UINT , plain, 1, 1, up32, up32, up32, , xyz1, rgb 109VK_FORMAT_R32G32B32_SINT , plain, 1, 1, sp32, sp32, sp32, , xyz1, rgb 110VK_FORMAT_R32G32B32_SFLOAT , plain, 1, 1, f32 , f32 , f32 , , xyz1, rgb 111VK_FORMAT_R32G32B32A32_UINT , plain, 1, 1, up32, up32, up32, up32, xyzw, rgb 112VK_FORMAT_R32G32B32A32_SINT , plain, 1, 1, sp32, sp32, sp32, sp32, xyzw, rgb 113VK_FORMAT_R32G32B32A32_SFLOAT , plain, 1, 1, f32 , f32 , f32 , f32 , xyzw, rgb 114VK_FORMAT_R64_UINT , plain, 1, 1, up64, , , , x001, rgb 115VK_FORMAT_R64_SINT , plain, 1, 1, sp64, , , , x001, rgb 116VK_FORMAT_R64_SFLOAT , plain, 1, 1, f64 , , , , x001, rgb 117VK_FORMAT_R64G64_UINT , plain, 1, 1, up64, up64, , , xy01, rgb 118VK_FORMAT_R64G64_SINT , plain, 1, 1, sp64, sp64, , , xy01, rgb 119VK_FORMAT_R64G64_SFLOAT , plain, 1, 1, f64 , f64 , , , xy01, rgb 120VK_FORMAT_R64G64B64_UINT , plain, 1, 1, up64, up64, up64, , xyz1, rgb 121VK_FORMAT_R64G64B64_SINT , plain, 1, 1, sp64, sp64, sp64, , xyz1, rgb 122VK_FORMAT_R64G64B64_SFLOAT , plain, 1, 1, f64 , f64 , f64 , , xyz1, rgb 123VK_FORMAT_R64G64B64A64_UINT , plain, 1, 1, up64, up64, up64, up64, xyzw, rgb 124VK_FORMAT_R64G64B64A64_SINT , plain, 1, 1, sp64, sp64, sp64, sp64, xyzw, rgb 125VK_FORMAT_R64G64B64A64_SFLOAT , plain, 1, 1, f64 , f64 , f64 , f64 , xyzw, rgb 126VK_FORMAT_B10G11R11_UFLOAT_PACK32 , other, 1, 1, x32 , , , , xyz1, rgb 127VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 , other, 1, 1, x32 , , , , xyz1, rgb 128VK_FORMAT_D16_UNORM , plain, 1, 1, un16, , , , x___, zs 129VK_FORMAT_X8_D24_UNORM_PACK32 , plain, 1, 1, un24, x8 , , , x___, zs 130VK_FORMAT_D32_SFLOAT , plain, 1, 1, f32 , , , , x___, zs 131VK_FORMAT_S8_UINT , plain, 1, 1, up8 , , , , _x__, zs 132VK_FORMAT_D16_UNORM_S8_UINT , plain, 1, 1, un16, up8 , , , xy__, zs 133VK_FORMAT_D24_UNORM_S8_UINT , plain, 1, 1, un24, up8 , , , xy__, zs 134VK_FORMAT_D32_SFLOAT_S8_UINT , plain, 1, 1, f32 , up8 , , , xy__, zs 135VK_FORMAT_BC1_RGB_UNORM_BLOCK , s3tc, 4, 4, x64 , , , , xyz1, rgb 136VK_FORMAT_BC1_RGB_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyz1, srgb 137VK_FORMAT_BC1_RGBA_UNORM_BLOCK , s3tc, 4, 4, x64 , , , , xyzw, rgb 138VK_FORMAT_BC1_RGBA_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyzw, srgb 139VK_FORMAT_BC2_UNORM_BLOCK , s3tc, 4, 4, x128, , , , xyzw, rgb 140VK_FORMAT_BC2_SRGB_BLOCK , s3tc, 4, 4, x128, , , , xyzw, srgb 141VK_FORMAT_BC3_UNORM_BLOCK , s3tc, 4, 4, x128, , , , xyzw, rgb 142VK_FORMAT_BC3_SRGB_BLOCK , s3tc, 4, 4, x128, , , , xyzw, srgb 143VK_FORMAT_BC4_UNORM_BLOCK , rgtc, 4, 4, x64, , , , x001, rgb 144VK_FORMAT_BC4_SNORM_BLOCK , rgtc, 4, 4, x64, , , , x001, rgb 145VK_FORMAT_BC5_UNORM_BLOCK , rgtc, 4, 4, x128, , , , xy01, rgb 146VK_FORMAT_BC5_SNORM_BLOCK , rgtc, 4, 4, x128, , , , xy01, rgb 147VK_FORMAT_BC6H_UFLOAT_BLOCK , bptc, 4, 4, x128, , , , xyz1, rgb 148VK_FORMAT_BC6H_SFLOAT_BLOCK , bptc, 4, 4, x128, , , , xyz1, rgb 149VK_FORMAT_BC7_UNORM_BLOCK , bptc, 4, 4, x128, , , , xyzw, rgb 150VK_FORMAT_BC7_SRGB_BLOCK , bptc, 4, 4, x128, , , , xyzw, srgb 151VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK, 152VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK, 153VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK, 154VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK, 155VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK, 156VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK, 157VK_FORMAT_EAC_R11_UNORM_BLOCK, 158VK_FORMAT_EAC_R11_SNORM_BLOCK, 159VK_FORMAT_EAC_R11G11_UNORM_BLOCK, 160VK_FORMAT_EAC_R11G11_SNORM_BLOCK, 161VK_FORMAT_ASTC_4x4_UNORM_BLOCK, 162VK_FORMAT_ASTC_4x4_SRGB_BLOCK, 163VK_FORMAT_ASTC_5x4_UNORM_BLOCK, 164VK_FORMAT_ASTC_5x4_SRGB_BLOCK, 165VK_FORMAT_ASTC_5x5_UNORM_BLOCK, 166VK_FORMAT_ASTC_5x5_SRGB_BLOCK, 167VK_FORMAT_ASTC_6x5_UNORM_BLOCK, 168VK_FORMAT_ASTC_6x5_SRGB_BLOCK, 169VK_FORMAT_ASTC_6x6_UNORM_BLOCK, 170VK_FORMAT_ASTC_6x6_SRGB_BLOCK, 171VK_FORMAT_ASTC_8x5_UNORM_BLOCK, 172VK_FORMAT_ASTC_8x5_SRGB_BLOCK, 173VK_FORMAT_ASTC_8x6_UNORM_BLOCK, 174VK_FORMAT_ASTC_8x6_SRGB_BLOCK, 175VK_FORMAT_ASTC_8x8_UNORM_BLOCK, 176VK_FORMAT_ASTC_8x8_SRGB_BLOCK, 177VK_FORMAT_ASTC_10x5_UNORM_BLOCK, 178VK_FORMAT_ASTC_10x5_SRGB_BLOCK, 179VK_FORMAT_ASTC_10x6_UNORM_BLOCK, 180VK_FORMAT_ASTC_10x6_SRGB_BLOCK, 181VK_FORMAT_ASTC_10x8_UNORM_BLOCK, 182VK_FORMAT_ASTC_10x8_SRGB_BLOCK, 183VK_FORMAT_ASTC_10x10_UNORM_BLOCK, 184VK_FORMAT_ASTC_10x10_SRGB_BLOCK, 185VK_FORMAT_ASTC_12x10_UNORM_BLOCK, 186VK_FORMAT_ASTC_12x10_SRGB_BLOCK, 187VK_FORMAT_ASTC_12x12_UNORM_BLOCK, 188VK_FORMAT_ASTC_12x12_SRGB_BLOCK, 189