Debian Codegraph @

vulkan-headers/include/vulkan/vulkan_format_traits.hpp

raw
1 // Copyright 2015-2026 The Khronos Group Inc.
2 //
3 // SPDX-License-Identifier: Apache-2.0 OR MIT
4 //
5
6 // This header is generated from the Khronos Vulkan XML API Registry.
7
8 #ifndef VULKAN_FORMAT_TRAITS_HPP
9 #define VULKAN_FORMAT_TRAITS_HPP
10
11 #include <vulkan/vulkan.hpp>
12
13 namespace VULKAN_HPP_NAMESPACE
14 {
15 //=====================
16 //=== Format Traits ===
17 //=====================
18
19 //=== Function Declarations ===
20
21 // The three-dimensional extent of a texel block.
22 VULKAN_HPP_CONSTEXPR_14 std::array<uint8_t, 3> blockExtent( Format format );
23
24 // The texel block size in bytes.
25 VULKAN_HPP_CONSTEXPR_14 uint8_t blockSize( Format format );
26
27 // The class of the format (can't be just named "class"!)
28 VULKAN_HPP_CONSTEXPR_14 char const * compatibilityClass( Format format );
29
30 // The number of bits in this component, if not compressed, otherwise 0.
31 VULKAN_HPP_CONSTEXPR_14 uint8_t componentBits( Format format, uint8_t component );
32
33 // The number of components of this format.
34 VULKAN_HPP_CONSTEXPR_14 uint8_t componentCount( Format format );
35
36 // The name of the component
37 VULKAN_HPP_CONSTEXPR_14 char const * componentName( Format format, uint8_t component );
38
39 // The numeric format of the component
40 VULKAN_HPP_CONSTEXPR_14 char const * componentNumericFormat( Format format, uint8_t component );
41
42 // The plane this component lies in.
43 VULKAN_HPP_CONSTEXPR_14 uint8_t componentPlaneIndex( Format format, uint8_t component );
44
45 // True, if the components of this format are compressed, otherwise false.
46 VULKAN_HPP_CONSTEXPR_14 bool componentsAreCompressed( Format format );
47
48 // A textual description of the compression scheme, or an empty string if it is not compressed
49 VULKAN_HPP_CONSTEXPR_14 char const * compressionScheme( Format format );
50
51 // Get all formats
52 std::vector<Format> const & getAllFormats();
53
54 // Get all color with a color component
55 std::vector<Format> const & getColorFormats();
56
57 // Get all formats with a depth component
58 std::vector<Format> const & getDepthFormats();
59
60 // Get all formats with a depth and a stencil component
61 std::vector<Format> const & getDepthStencilFormats();
62
63 // Get all formats with a stencil component
64 std::vector<Format> const & getStencilFormats();
65
66 // True, if this format has an alpha component
67 VULKAN_HPP_CONSTEXPR_14 bool hasAlphaComponent( Format format );
68
69 // True, if this format has a blue component
70 VULKAN_HPP_CONSTEXPR_14 bool hasBlueComponent( Format format );
71
72 // True, if this format has a depth component
73 VULKAN_HPP_CONSTEXPR_14 bool hasDepthComponent( Format format );
74
75 // True, if this format has a green component
76 VULKAN_HPP_CONSTEXPR_14 bool hasGreenComponent( Format format );
77
78 // True, if this format has a red component
79 VULKAN_HPP_CONSTEXPR_14 bool hasRedComponent( Format format );
80
81 // True, if this format has a stencil component
82 VULKAN_HPP_CONSTEXPR_14 bool hasStencilComponent( Format format );
83
84 // True, if the format is a color
85 VULKAN_HPP_CONSTEXPR_14 bool isColor( Format format );
86
87 // True, if this format is a compressed one.
88 VULKAN_HPP_CONSTEXPR_14 bool isCompressed( Format format );
89
90 // 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
91 // width.
92 VULKAN_HPP_CONSTEXPR_14 uint8_t packed( Format format );
93
94 // The single-plane format that this plane is compatible with.
95 VULKAN_HPP_CONSTEXPR_14 Format planeCompatibleFormat( Format format, uint8_t plane );
96
97 // The number of image planes of this format.
98 VULKAN_HPP_CONSTEXPR_14 uint8_t planeCount( Format format );
99
100 // The relative height of this plane. A value of k means that this plane is 1/k the height of the overall format.
101 VULKAN_HPP_CONSTEXPR_14 uint8_t planeHeightDivisor( Format format, uint8_t plane );
102
103 // The relative width of this plane. A value of k means that this plane is 1/k the width of the overall format.
104 VULKAN_HPP_CONSTEXPR_14 uint8_t planeWidthDivisor( Format format, uint8_t plane );
105
106 // The number of texels in a texel block.
107 VULKAN_HPP_CONSTEXPR_14 uint8_t texelsPerBlock( Format format );
108
109 //=== Function Definitions ===
110
111 // The three-dimensional extent of a texel block.
112 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 std::array<uint8_t, 3> blockExtent( Format format )
113 {
114 switch ( format )
115 {
116 case Format::eBc1RgbUnormBlock : return { { 4, 4, 1 } };
117 case Format::eBc1RgbSrgbBlock : return { { 4, 4, 1 } };
118 case Format::eBc1RgbaUnormBlock : return { { 4, 4, 1 } };
119 case Format::eBc1RgbaSrgbBlock : return { { 4, 4, 1 } };
120 case Format::eBc2UnormBlock : return { { 4, 4, 1 } };
121 case Format::eBc2SrgbBlock : return { { 4, 4, 1 } };
122 case Format::eBc3UnormBlock : return { { 4, 4, 1 } };
123 case Format::eBc3SrgbBlock : return { { 4, 4, 1 } };
124 case Format::eBc4UnormBlock : return { { 4, 4, 1 } };
125 case Format::eBc4SnormBlock : return { { 4, 4, 1 } };
126 case Format::eBc5UnormBlock : return { { 4, 4, 1 } };
127 case Format::eBc5SnormBlock : return { { 4, 4, 1 } };
128 case Format::eBc6HUfloatBlock : return { { 4, 4, 1 } };
129 case Format::eBc6HSfloatBlock : return { { 4, 4, 1 } };
130 case Format::eBc7UnormBlock : return { { 4, 4, 1 } };
131 case Format::eBc7SrgbBlock : return { { 4, 4, 1 } };
132 case Format::eEtc2R8G8B8UnormBlock : return { { 4, 4, 1 } };
133 case Format::eEtc2R8G8B8SrgbBlock : return { { 4, 4, 1 } };
134 case Format::eEtc2R8G8B8A1UnormBlock : return { { 4, 4, 1 } };
135 case Format::eEtc2R8G8B8A1SrgbBlock : return { { 4, 4, 1 } };
136 case Format::eEtc2R8G8B8A8UnormBlock : return { { 4, 4, 1 } };
137 case Format::eEtc2R8G8B8A8SrgbBlock : return { { 4, 4, 1 } };
138 case Format::eEacR11UnormBlock : return { { 4, 4, 1 } };
139 case Format::eEacR11SnormBlock : return { { 4, 4, 1 } };
140 case Format::eEacR11G11UnormBlock : return { { 4, 4, 1 } };
141 case Format::eEacR11G11SnormBlock : return { { 4, 4, 1 } };
142 case Format::eAstc4x4UnormBlock : return { { 4, 4, 1 } };
143 case Format::eAstc4x4SrgbBlock : return { { 4, 4, 1 } };
144 case Format::eAstc5x4UnormBlock : return { { 5, 4, 1 } };
145 case Format::eAstc5x4SrgbBlock : return { { 5, 4, 1 } };
146 case Format::eAstc5x5UnormBlock : return { { 5, 5, 1 } };
147 case Format::eAstc5x5SrgbBlock : return { { 5, 5, 1 } };
148 case Format::eAstc6x5UnormBlock : return { { 6, 5, 1 } };
149 case Format::eAstc6x5SrgbBlock : return { { 6, 5, 1 } };
150 case Format::eAstc6x6UnormBlock : return { { 6, 6, 1 } };
151 case Format::eAstc6x6SrgbBlock : return { { 6, 6, 1 } };
152 case Format::eAstc8x5UnormBlock : return { { 8, 5, 1 } };
153 case Format::eAstc8x5SrgbBlock : return { { 8, 5, 1 } };
154 case Format::eAstc8x6UnormBlock : return { { 8, 6, 1 } };
155 case Format::eAstc8x6SrgbBlock : return { { 8, 6, 1 } };
156 case Format::eAstc8x8UnormBlock : return { { 8, 8, 1 } };
157 case Format::eAstc8x8SrgbBlock : return { { 8, 8, 1 } };
158 case Format::eAstc10x5UnormBlock : return { { 10, 5, 1 } };
159 case Format::eAstc10x5SrgbBlock : return { { 10, 5, 1 } };
160 case Format::eAstc10x6UnormBlock : return { { 10, 6, 1 } };
161 case Format::eAstc10x6SrgbBlock : return { { 10, 6, 1 } };
162 case Format::eAstc10x8UnormBlock : return { { 10, 8, 1 } };
163 case Format::eAstc10x8SrgbBlock : return { { 10, 8, 1 } };
164 case Format::eAstc10x10UnormBlock : return { { 10, 10, 1 } };
165 case Format::eAstc10x10SrgbBlock : return { { 10, 10, 1 } };
166 case Format::eAstc12x10UnormBlock : return { { 12, 10, 1 } };
167 case Format::eAstc12x10SrgbBlock : return { { 12, 10, 1 } };
168 case Format::eAstc12x12UnormBlock : return { { 12, 12, 1 } };
169 case Format::eAstc12x12SrgbBlock : return { { 12, 12, 1 } };
170 case Format::eG8B8G8R8422Unorm : return { { 2, 1, 1 } };
171 case Format::eB8G8R8G8422Unorm : return { { 2, 1, 1 } };
172 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16: return { { 2, 1, 1 } };
173 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16: return { { 2, 1, 1 } };
174 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16: return { { 2, 1, 1 } };
175 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16: return { { 2, 1, 1 } };
176 case Format::eG16B16G16R16422Unorm : return { { 2, 1, 1 } };
177 case Format::eB16G16R16G16422Unorm : return { { 2, 1, 1 } };
178 case Format::eAstc4x4SfloatBlock : return { { 4, 4, 1 } };
179 case Format::eAstc5x4SfloatBlock : return { { 5, 4, 1 } };
180 case Format::eAstc5x5SfloatBlock : return { { 5, 5, 1 } };
181 case Format::eAstc6x5SfloatBlock : return { { 6, 5, 1 } };
182 case Format::eAstc6x6SfloatBlock : return { { 6, 6, 1 } };
183 case Format::eAstc8x5SfloatBlock : return { { 8, 5, 1 } };
184 case Format::eAstc8x6SfloatBlock : return { { 8, 6, 1 } };
185 case Format::eAstc8x8SfloatBlock : return { { 8, 8, 1 } };
186 case Format::eAstc10x5SfloatBlock : return { { 10, 5, 1 } };
187 case Format::eAstc10x6SfloatBlock : return { { 10, 6, 1 } };
188 case Format::eAstc10x8SfloatBlock : return { { 10, 8, 1 } };
189 case Format::eAstc10x10SfloatBlock : return { { 10, 10, 1 } };
190 case Format::eAstc12x10SfloatBlock : return { { 12, 10, 1 } };
191 case Format::eAstc12x12SfloatBlock : return { { 12, 12, 1 } };
192 case Format::ePvrtc12BppUnormBlockIMG : return { { 8, 4, 1 } };
193 case Format::ePvrtc14BppUnormBlockIMG : return { { 4, 4, 1 } };
194 case Format::ePvrtc22BppUnormBlockIMG : return { { 8, 4, 1 } };
195 case Format::ePvrtc24BppUnormBlockIMG : return { { 4, 4, 1 } };
196 case Format::ePvrtc12BppSrgbBlockIMG : return { { 8, 4, 1 } };
197 case Format::ePvrtc14BppSrgbBlockIMG : return { { 4, 4, 1 } };
198 case Format::ePvrtc22BppSrgbBlockIMG : return { { 8, 4, 1 } };
199 case Format::ePvrtc24BppSrgbBlockIMG : return { { 4, 4, 1 } };
200 case Format::eAstc3x3x3UnormBlockEXT : return { { 3, 3, 3 } };
201 case Format::eAstc3x3x3SrgbBlockEXT : return { { 3, 3, 3 } };
202 case Format::eAstc3x3x3SfloatBlockEXT : return { { 3, 3, 3 } };
203 case Format::eAstc4x3x3UnormBlockEXT : return { { 4, 3, 3 } };
204 case Format::eAstc4x3x3SrgbBlockEXT : return { { 4, 3, 3 } };
205 case Format::eAstc4x3x3SfloatBlockEXT : return { { 4, 3, 3 } };
206 case Format::eAstc4x4x3UnormBlockEXT : return { { 4, 4, 3 } };
207 case Format::eAstc4x4x3SrgbBlockEXT : return { { 4, 4, 3 } };
208 case Format::eAstc4x4x3SfloatBlockEXT : return { { 4, 4, 3 } };
209 case Format::eAstc4x4x4UnormBlockEXT : return { { 4, 4, 4 } };
210 case Format::eAstc4x4x4SrgbBlockEXT : return { { 4, 4, 4 } };
211 case Format::eAstc4x4x4SfloatBlockEXT : return { { 4, 4, 4 } };
212 case Format::eAstc5x4x4UnormBlockEXT : return { { 5, 4, 4 } };
213 case Format::eAstc5x4x4SrgbBlockEXT : return { { 5, 4, 4 } };
214 case Format::eAstc5x4x4SfloatBlockEXT : return { { 5, 4, 4 } };
215 case Format::eAstc5x5x4UnormBlockEXT : return { { 5, 5, 4 } };
216 case Format::eAstc5x5x4SrgbBlockEXT : return { { 5, 5, 4 } };
217 case Format::eAstc5x5x4SfloatBlockEXT : return { { 5, 5, 4 } };
218 case Format::eAstc5x5x5UnormBlockEXT : return { { 5, 5, 5 } };
219 case Format::eAstc5x5x5SrgbBlockEXT : return { { 5, 5, 5 } };
220 case Format::eAstc5x5x5SfloatBlockEXT : return { { 5, 5, 5 } };
221 case Format::eAstc6x5x5UnormBlockEXT : return { { 6, 5, 5 } };
222 case Format::eAstc6x5x5SrgbBlockEXT : return { { 6, 5, 5 } };
223 case Format::eAstc6x5x5SfloatBlockEXT : return { { 6, 5, 5 } };
224 case Format::eAstc6x6x5UnormBlockEXT : return { { 6, 6, 5 } };
225 case Format::eAstc6x6x5SrgbBlockEXT : return { { 6, 6, 5 } };
226 case Format::eAstc6x6x5SfloatBlockEXT : return { { 6, 6, 5 } };
227 case Format::eAstc6x6x6UnormBlockEXT : return { { 6, 6, 6 } };
228 case Format::eAstc6x6x6SrgbBlockEXT : return { { 6, 6, 6 } };
229 case Format::eAstc6x6x6SfloatBlockEXT : return { { 6, 6, 6 } };
230
231 default: return { { 1, 1, 1 } };
232 }
233 }
234
235 // The texel block size in bytes.
236 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t blockSize( Format format )
237 {
238 switch ( format )
239 {
240 case Format::eR4G4UnormPack8 : return 1;
241 case Format::eR4G4B4A4UnormPack16 : return 2;
242 case Format::eB4G4R4A4UnormPack16 : return 2;
243 case Format::eR5G6B5UnormPack16 : return 2;
244 case Format::eB5G6R5UnormPack16 : return 2;
245 case Format::eR5G5B5A1UnormPack16 : return 2;
246 case Format::eB5G5R5A1UnormPack16 : return 2;
247 case Format::eA1R5G5B5UnormPack16 : return 2;
248 case Format::eR8Unorm : return 1;
249 case Format::eR8Snorm : return 1;
250 case Format::eR8Uscaled : return 1;
251 case Format::eR8Sscaled : return 1;
252 case Format::eR8Uint : return 1;
253 case Format::eR8Sint : return 1;
254 case Format::eR8Srgb : return 1;
255 case Format::eR8G8Unorm : return 2;
256 case Format::eR8G8Snorm : return 2;
257 case Format::eR8G8Uscaled : return 2;
258 case Format::eR8G8Sscaled : return 2;
259 case Format::eR8G8Uint : return 2;
260 case Format::eR8G8Sint : return 2;
261 case Format::eR8G8Srgb : return 2;
262 case Format::eR8G8B8Unorm : return 3;
263 case Format::eR8G8B8Snorm : return 3;
264 case Format::eR8G8B8Uscaled : return 3;
265 case Format::eR8G8B8Sscaled : return 3;
266 case Format::eR8G8B8Uint : return 3;
267 case Format::eR8G8B8Sint : return 3;
268 case Format::eR8G8B8Srgb : return 3;
269 case Format::eB8G8R8Unorm : return 3;
270 case Format::eB8G8R8Snorm : return 3;
271 case Format::eB8G8R8Uscaled : return 3;
272 case Format::eB8G8R8Sscaled : return 3;
273 case Format::eB8G8R8Uint : return 3;
274 case Format::eB8G8R8Sint : return 3;
275 case Format::eB8G8R8Srgb : return 3;
276 case Format::eR8G8B8A8Unorm : return 4;
277 case Format::eR8G8B8A8Snorm : return 4;
278 case Format::eR8G8B8A8Uscaled : return 4;
279 case Format::eR8G8B8A8Sscaled : return 4;
280 case Format::eR8G8B8A8Uint : return 4;
281 case Format::eR8G8B8A8Sint : return 4;
282 case Format::eR8G8B8A8Srgb : return 4;
283 case Format::eB8G8R8A8Unorm : return 4;
284 case Format::eB8G8R8A8Snorm : return 4;
285 case Format::eB8G8R8A8Uscaled : return 4;
286 case Format::eB8G8R8A8Sscaled : return 4;
287 case Format::eB8G8R8A8Uint : return 4;
288 case Format::eB8G8R8A8Sint : return 4;
289 case Format::eB8G8R8A8Srgb : return 4;
290 case Format::eA8B8G8R8UnormPack32 : return 4;
291 case Format::eA8B8G8R8SnormPack32 : return 4;
292 case Format::eA8B8G8R8UscaledPack32 : return 4;
293 case Format::eA8B8G8R8SscaledPack32 : return 4;
294 case Format::eA8B8G8R8UintPack32 : return 4;
295 case Format::eA8B8G8R8SintPack32 : return 4;
296 case Format::eA8B8G8R8SrgbPack32 : return 4;
297 case Format::eA2R10G10B10UnormPack32 : return 4;
298 case Format::eA2R10G10B10SnormPack32 : return 4;
299 case Format::eA2R10G10B10UscaledPack32 : return 4;
300 case Format::eA2R10G10B10SscaledPack32 : return 4;
301 case Format::eA2R10G10B10UintPack32 : return 4;
302 case Format::eA2R10G10B10SintPack32 : return 4;
303 case Format::eA2B10G10R10UnormPack32 : return 4;
304 case Format::eA2B10G10R10SnormPack32 : return 4;
305 case Format::eA2B10G10R10UscaledPack32 : return 4;
306 case Format::eA2B10G10R10SscaledPack32 : return 4;
307 case Format::eA2B10G10R10UintPack32 : return 4;
308 case Format::eA2B10G10R10SintPack32 : return 4;
309 case Format::eR16Unorm : return 2;
310 case Format::eR16Snorm : return 2;
311 case Format::eR16Uscaled : return 2;
312 case Format::eR16Sscaled : return 2;
313 case Format::eR16Uint : return 2;
314 case Format::eR16Sint : return 2;
315 case Format::eR16Sfloat : return 2;
316 case Format::eR16G16Unorm : return 4;
317 case Format::eR16G16Snorm : return 4;
318 case Format::eR16G16Uscaled : return 4;
319 case Format::eR16G16Sscaled : return 4;
320 case Format::eR16G16Uint : return 4;
321 case Format::eR16G16Sint : return 4;
322 case Format::eR16G16Sfloat : return 4;
323 case Format::eR16G16B16Unorm : return 6;
324 case Format::eR16G16B16Snorm : return 6;
325 case Format::eR16G16B16Uscaled : return 6;
326 case Format::eR16G16B16Sscaled : return 6;
327 case Format::eR16G16B16Uint : return 6;
328 case Format::eR16G16B16Sint : return 6;
329 case Format::eR16G16B16Sfloat : return 6;
330 case Format::eR16G16B16A16Unorm : return 8;
331 case Format::eR16G16B16A16Snorm : return 8;
332 case Format::eR16G16B16A16Uscaled : return 8;
333 case Format::eR16G16B16A16Sscaled : return 8;
334 case Format::eR16G16B16A16Uint : return 8;
335 case Format::eR16G16B16A16Sint : return 8;
336 case Format::eR16G16B16A16Sfloat : return 8;
337 case Format::eR32Uint : return 4;
338 case Format::eR32Sint : return 4;
339 case Format::eR32Sfloat : return 4;
340 case Format::eR32G32Uint : return 8;
341 case Format::eR32G32Sint : return 8;
342 case Format::eR32G32Sfloat : return 8;
343 case Format::eR32G32B32Uint : return 12;
344 case Format::eR32G32B32Sint : return 12;
345 case Format::eR32G32B32Sfloat : return 12;
346 case Format::eR32G32B32A32Uint : return 16;
347 case Format::eR32G32B32A32Sint : return 16;
348 case Format::eR32G32B32A32Sfloat : return 16;
349 case Format::eR64Uint : return 8;
350 case Format::eR64Sint : return 8;
351 case Format::eR64Sfloat : return 8;
352 case Format::eR64G64Uint : return 16;
353 case Format::eR64G64Sint : return 16;
354 case Format::eR64G64Sfloat : return 16;
355 case Format::eR64G64B64Uint : return 24;
356 case Format::eR64G64B64Sint : return 24;
357 case Format::eR64G64B64Sfloat : return 24;
358 case Format::eR64G64B64A64Uint : return 32;
359 case Format::eR64G64B64A64Sint : return 32;
360 case Format::eR64G64B64A64Sfloat : return 32;
361 case Format::eB10G11R11UfloatPack32 : return 4;
362 case Format::eE5B9G9R9UfloatPack32 : return 4;
363 case Format::eD16Unorm : return 2;
364 case Format::eX8D24UnormPack32 : return 4;
365 case Format::eD32Sfloat : return 4;
366 case Format::eS8Uint : return 1;
367 case Format::eD16UnormS8Uint : return 3;
368 case Format::eD24UnormS8Uint : return 4;
369 case Format::eD32SfloatS8Uint : return 5;
370 case Format::eBc1RgbUnormBlock : return 8;
371 case Format::eBc1RgbSrgbBlock : return 8;
372 case Format::eBc1RgbaUnormBlock : return 8;
373 case Format::eBc1RgbaSrgbBlock : return 8;
374 case Format::eBc2UnormBlock : return 16;
375 case Format::eBc2SrgbBlock : return 16;
376 case Format::eBc3UnormBlock : return 16;
377 case Format::eBc3SrgbBlock : return 16;
378 case Format::eBc4UnormBlock : return 8;
379 case Format::eBc4SnormBlock : return 8;
380 case Format::eBc5UnormBlock : return 16;
381 case Format::eBc5SnormBlock : return 16;
382 case Format::eBc6HUfloatBlock : return 16;
383 case Format::eBc6HSfloatBlock : return 16;
384 case Format::eBc7UnormBlock : return 16;
385 case Format::eBc7SrgbBlock : return 16;
386 case Format::eEtc2R8G8B8UnormBlock : return 8;
387 case Format::eEtc2R8G8B8SrgbBlock : return 8;
388 case Format::eEtc2R8G8B8A1UnormBlock : return 8;
389 case Format::eEtc2R8G8B8A1SrgbBlock : return 8;
390 case Format::eEtc2R8G8B8A8UnormBlock : return 16;
391 case Format::eEtc2R8G8B8A8SrgbBlock : return 16;
392 case Format::eEacR11UnormBlock : return 8;
393 case Format::eEacR11SnormBlock : return 8;
394 case Format::eEacR11G11UnormBlock : return 16;
395 case Format::eEacR11G11SnormBlock : return 16;
396 case Format::eAstc4x4UnormBlock : return 16;
397 case Format::eAstc4x4SrgbBlock : return 16;
398 case Format::eAstc5x4UnormBlock : return 16;
399 case Format::eAstc5x4SrgbBlock : return 16;
400 case Format::eAstc5x5UnormBlock : return 16;
401 case Format::eAstc5x5SrgbBlock : return 16;
402 case Format::eAstc6x5UnormBlock : return 16;
403 case Format::eAstc6x5SrgbBlock : return 16;
404 case Format::eAstc6x6UnormBlock : return 16;
405 case Format::eAstc6x6SrgbBlock : return 16;
406 case Format::eAstc8x5UnormBlock : return 16;
407 case Format::eAstc8x5SrgbBlock : return 16;
408 case Format::eAstc8x6UnormBlock : return 16;
409 case Format::eAstc8x6SrgbBlock : return 16;
410 case Format::eAstc8x8UnormBlock : return 16;
411 case Format::eAstc8x8SrgbBlock : return 16;
412 case Format::eAstc10x5UnormBlock : return 16;
413 case Format::eAstc10x5SrgbBlock : return 16;
414 case Format::eAstc10x6UnormBlock : return 16;
415 case Format::eAstc10x6SrgbBlock : return 16;
416 case Format::eAstc10x8UnormBlock : return 16;
417 case Format::eAstc10x8SrgbBlock : return 16;
418 case Format::eAstc10x10UnormBlock : return 16;
419 case Format::eAstc10x10SrgbBlock : return 16;
420 case Format::eAstc12x10UnormBlock : return 16;
421 case Format::eAstc12x10SrgbBlock : return 16;
422 case Format::eAstc12x12UnormBlock : return 16;
423 case Format::eAstc12x12SrgbBlock : return 16;
424 case Format::eG8B8G8R8422Unorm : return 4;
425 case Format::eB8G8R8G8422Unorm : return 4;
426 case Format::eG8B8R83Plane420Unorm : return 3;
427 case Format::eG8B8R82Plane420Unorm : return 3;
428 case Format::eG8B8R83Plane422Unorm : return 3;
429 case Format::eG8B8R82Plane422Unorm : return 3;
430 case Format::eG8B8R83Plane444Unorm : return 3;
431 case Format::eR10X6UnormPack16 : return 2;
432 case Format::eR10X6G10X6Unorm2Pack16 : return 4;
433 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16 : return 8;
434 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16 : return 8;
435 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16 : return 8;
436 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16 : return 6;
437 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16 : return 6;
438 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16 : return 6;
439 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16 : return 6;
440 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16 : return 6;
441 case Format::eR12X4UnormPack16 : return 2;
442 case Format::eR12X4G12X4Unorm2Pack16 : return 4;
443 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16 : return 8;
444 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16 : return 8;
445 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16 : return 8;
446 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16 : return 6;
447 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16 : return 6;
448 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16 : return 6;
449 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16 : return 6;
450 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16 : return 6;
451 case Format::eG16B16G16R16422Unorm : return 8;
452 case Format::eB16G16R16G16422Unorm : return 8;
453 case Format::eG16B16R163Plane420Unorm : return 6;
454 case Format::eG16B16R162Plane420Unorm : return 6;
455 case Format::eG16B16R163Plane422Unorm : return 6;
456 case Format::eG16B16R162Plane422Unorm : return 6;
457 case Format::eG16B16R163Plane444Unorm : return 6;
458 case Format::eG8B8R82Plane444Unorm : return 3;
459 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16 : return 6;
460 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16 : return 6;
461 case Format::eG16B16R162Plane444Unorm : return 6;
462 case Format::eA4R4G4B4UnormPack16 : return 2;
463 case Format::eA4B4G4R4UnormPack16 : return 2;
464 case Format::eAstc4x4SfloatBlock : return 16;
465 case Format::eAstc5x4SfloatBlock : return 16;
466 case Format::eAstc5x5SfloatBlock : return 16;
467 case Format::eAstc6x5SfloatBlock : return 16;
468 case Format::eAstc6x6SfloatBlock : return 16;
469 case Format::eAstc8x5SfloatBlock : return 16;
470 case Format::eAstc8x6SfloatBlock : return 16;
471 case Format::eAstc8x8SfloatBlock : return 16;
472 case Format::eAstc10x5SfloatBlock : return 16;
473 case Format::eAstc10x6SfloatBlock : return 16;
474 case Format::eAstc10x8SfloatBlock : return 16;
475 case Format::eAstc10x10SfloatBlock : return 16;
476 case Format::eAstc12x10SfloatBlock : return 16;
477 case Format::eAstc12x12SfloatBlock : return 16;
478 case Format::eA1B5G5R5UnormPack16 : return 2;
479 case Format::eA8Unorm : return 1;
480 case Format::ePvrtc12BppUnormBlockIMG : return 8;
481 case Format::ePvrtc14BppUnormBlockIMG : return 8;
482 case Format::ePvrtc22BppUnormBlockIMG : return 8;
483 case Format::ePvrtc24BppUnormBlockIMG : return 8;
484 case Format::ePvrtc12BppSrgbBlockIMG : return 8;
485 case Format::ePvrtc14BppSrgbBlockIMG : return 8;
486 case Format::ePvrtc22BppSrgbBlockIMG : return 8;
487 case Format::ePvrtc24BppSrgbBlockIMG : return 8;
488 case Format::eAstc3x3x3UnormBlockEXT : return 16;
489 case Format::eAstc3x3x3SrgbBlockEXT : return 16;
490 case Format::eAstc3x3x3SfloatBlockEXT : return 16;
491 case Format::eAstc4x3x3UnormBlockEXT : return 16;
492 case Format::eAstc4x3x3SrgbBlockEXT : return 16;
493 case Format::eAstc4x3x3SfloatBlockEXT : return 16;
494 case Format::eAstc4x4x3UnormBlockEXT : return 16;
495 case Format::eAstc4x4x3SrgbBlockEXT : return 16;
496 case Format::eAstc4x4x3SfloatBlockEXT : return 16;
497 case Format::eAstc4x4x4UnormBlockEXT : return 16;
498 case Format::eAstc4x4x4SrgbBlockEXT : return 16;
499 case Format::eAstc4x4x4SfloatBlockEXT : return 16;
500 case Format::eAstc5x4x4UnormBlockEXT : return 16;
501 case Format::eAstc5x4x4SrgbBlockEXT : return 16;
502 case Format::eAstc5x4x4SfloatBlockEXT : return 16;
503 case Format::eAstc5x5x4UnormBlockEXT : return 16;
504 case Format::eAstc5x5x4SrgbBlockEXT : return 16;
505 case Format::eAstc5x5x4SfloatBlockEXT : return 16;
506 case Format::eAstc5x5x5UnormBlockEXT : return 16;
507 case Format::eAstc5x5x5SrgbBlockEXT : return 16;
508 case Format::eAstc5x5x5SfloatBlockEXT : return 16;
509 case Format::eAstc6x5x5UnormBlockEXT : return 16;
510 case Format::eAstc6x5x5SrgbBlockEXT : return 16;
511 case Format::eAstc6x5x5SfloatBlockEXT : return 16;
512 case Format::eAstc6x6x5UnormBlockEXT : return 16;
513 case Format::eAstc6x6x5SrgbBlockEXT : return 16;
514 case Format::eAstc6x6x5SfloatBlockEXT : return 16;
515 case Format::eAstc6x6x6UnormBlockEXT : return 16;
516 case Format::eAstc6x6x6SrgbBlockEXT : return 16;
517 case Format::eAstc6x6x6SfloatBlockEXT : return 16;
518 case Format::eR8BoolARM : return 1;
519 case Format::eR16G16Sfixed5NV : return 4;
520 case Format::eR10X6UintPack16ARM : return 2;
521 case Format::eR10X6G10X6Uint2Pack16ARM : return 4;
522 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM : return 8;
523 case Format::eR12X4UintPack16ARM : return 2;
524 case Format::eR12X4G12X4Uint2Pack16ARM : return 4;
525 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM : return 8;
526 case Format::eR14X2UintPack16ARM : return 2;
527 case Format::eR14X2G14X2Uint2Pack16ARM : return 4;
528 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM : return 8;
529 case Format::eR14X2UnormPack16ARM : return 2;
530 case Format::eR14X2G14X2Unorm2Pack16ARM : return 4;
531 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM : return 8;
532 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM: return 6;
533 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return 6;
534
535 default: VULKAN_HPP_ASSERT( false ); return 0;
536 }
537 }
538
539 // The class of the format (can't be just named "class"!)
540 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 char const * compatibilityClass( Format format )
541 {
542 switch ( format )
543 {
544 case Format::eR4G4UnormPack8 : return "8-bit";
545 case Format::eR4G4B4A4UnormPack16 : return "16-bit";
546 case Format::eB4G4R4A4UnormPack16 : return "16-bit";
547 case Format::eR5G6B5UnormPack16 : return "16-bit";
548 case Format::eB5G6R5UnormPack16 : return "16-bit";
549 case Format::eR5G5B5A1UnormPack16 : return "16-bit";
550 case Format::eB5G5R5A1UnormPack16 : return "16-bit";
551 case Format::eA1R5G5B5UnormPack16 : return "16-bit";
552 case Format::eR8Unorm : return "8-bit";
553 case Format::eR8Snorm : return "8-bit";
554 case Format::eR8Uscaled : return "8-bit";
555 case Format::eR8Sscaled : return "8-bit";
556 case Format::eR8Uint : return "8-bit";
557 case Format::eR8Sint : return "8-bit";
558 case Format::eR8Srgb : return "8-bit";
559 case Format::eR8G8Unorm : return "16-bit";
560 case Format::eR8G8Snorm : return "16-bit";
561 case Format::eR8G8Uscaled : return "16-bit";
562 case Format::eR8G8Sscaled : return "16-bit";
563 case Format::eR8G8Uint : return "16-bit";
564 case Format::eR8G8Sint : return "16-bit";
565 case Format::eR8G8Srgb : return "16-bit";
566 case Format::eR8G8B8Unorm : return "24-bit";
567 case Format::eR8G8B8Snorm : return "24-bit";
568 case Format::eR8G8B8Uscaled : return "24-bit";
569 case Format::eR8G8B8Sscaled : return "24-bit";
570 case Format::eR8G8B8Uint : return "24-bit";
571 case Format::eR8G8B8Sint : return "24-bit";
572 case Format::eR8G8B8Srgb : return "24-bit";
573 case Format::eB8G8R8Unorm : return "24-bit";
574 case Format::eB8G8R8Snorm : return "24-bit";
575 case Format::eB8G8R8Uscaled : return "24-bit";
576 case Format::eB8G8R8Sscaled : return "24-bit";
577 case Format::eB8G8R8Uint : return "24-bit";
578 case Format::eB8G8R8Sint : return "24-bit";
579 case Format::eB8G8R8Srgb : return "24-bit";
580 case Format::eR8G8B8A8Unorm : return "32-bit";
581 case Format::eR8G8B8A8Snorm : return "32-bit";
582 case Format::eR8G8B8A8Uscaled : return "32-bit";
583 case Format::eR8G8B8A8Sscaled : return "32-bit";
584 case Format::eR8G8B8A8Uint : return "32-bit";
585 case Format::eR8G8B8A8Sint : return "32-bit";
586 case Format::eR8G8B8A8Srgb : return "32-bit";
587 case Format::eB8G8R8A8Unorm : return "32-bit";
588 case Format::eB8G8R8A8Snorm : return "32-bit";
589 case Format::eB8G8R8A8Uscaled : return "32-bit";
590 case Format::eB8G8R8A8Sscaled : return "32-bit";
591 case Format::eB8G8R8A8Uint : return "32-bit";
592 case Format::eB8G8R8A8Sint : return "32-bit";
593 case Format::eB8G8R8A8Srgb : return "32-bit";
594 case Format::eA8B8G8R8UnormPack32 : return "32-bit";
595 case Format::eA8B8G8R8SnormPack32 : return "32-bit";
596 case Format::eA8B8G8R8UscaledPack32 : return "32-bit";
597 case Format::eA8B8G8R8SscaledPack32 : return "32-bit";
598 case Format::eA8B8G8R8UintPack32 : return "32-bit";
599 case Format::eA8B8G8R8SintPack32 : return "32-bit";
600 case Format::eA8B8G8R8SrgbPack32 : return "32-bit";
601 case Format::eA2R10G10B10UnormPack32 : return "32-bit";
602 case Format::eA2R10G10B10SnormPack32 : return "32-bit";
603 case Format::eA2R10G10B10UscaledPack32 : return "32-bit";
604 case Format::eA2R10G10B10SscaledPack32 : return "32-bit";
605 case Format::eA2R10G10B10UintPack32 : return "32-bit";
606 case Format::eA2R10G10B10SintPack32 : return "32-bit";
607 case Format::eA2B10G10R10UnormPack32 : return "32-bit";
608 case Format::eA2B10G10R10SnormPack32 : return "32-bit";
609 case Format::eA2B10G10R10UscaledPack32 : return "32-bit";
610 case Format::eA2B10G10R10SscaledPack32 : return "32-bit";
611 case Format::eA2B10G10R10UintPack32 : return "32-bit";
612 case Format::eA2B10G10R10SintPack32 : return "32-bit";
613 case Format::eR16Unorm : return "16-bit";
614 case Format::eR16Snorm : return "16-bit";
615 case Format::eR16Uscaled : return "16-bit";
616 case Format::eR16Sscaled : return "16-bit";
617 case Format::eR16Uint : return "16-bit";
618 case Format::eR16Sint : return "16-bit";
619 case Format::eR16Sfloat : return "16-bit";
620 case Format::eR16G16Unorm : return "32-bit";
621 case Format::eR16G16Snorm : return "32-bit";
622 case Format::eR16G16Uscaled : return "32-bit";
623 case Format::eR16G16Sscaled : return "32-bit";
624 case Format::eR16G16Uint : return "32-bit";
625 case Format::eR16G16Sint : return "32-bit";
626 case Format::eR16G16Sfloat : return "32-bit";
627 case Format::eR16G16B16Unorm : return "48-bit";
628 case Format::eR16G16B16Snorm : return "48-bit";
629 case Format::eR16G16B16Uscaled : return "48-bit";
630 case Format::eR16G16B16Sscaled : return "48-bit";
631 case Format::eR16G16B16Uint : return "48-bit";
632 case Format::eR16G16B16Sint : return "48-bit";
633 case Format::eR16G16B16Sfloat : return "48-bit";
634 case Format::eR16G16B16A16Unorm : return "64-bit";
635 case Format::eR16G16B16A16Snorm : return "64-bit";
636 case Format::eR16G16B16A16Uscaled : return "64-bit";
637 case Format::eR16G16B16A16Sscaled : return "64-bit";
638 case Format::eR16G16B16A16Uint : return "64-bit";
639 case Format::eR16G16B16A16Sint : return "64-bit";
640 case Format::eR16G16B16A16Sfloat : return "64-bit";
641 case Format::eR32Uint : return "32-bit";
642 case Format::eR32Sint : return "32-bit";
643 case Format::eR32Sfloat : return "32-bit";
644 case Format::eR32G32Uint : return "64-bit";
645 case Format::eR32G32Sint : return "64-bit";
646 case Format::eR32G32Sfloat : return "64-bit";
647 case Format::eR32G32B32Uint : return "96-bit";
648 case Format::eR32G32B32Sint : return "96-bit";
649 case Format::eR32G32B32Sfloat : return "96-bit";
650 case Format::eR32G32B32A32Uint : return "128-bit";
651 case Format::eR32G32B32A32Sint : return "128-bit";
652 case Format::eR32G32B32A32Sfloat : return "128-bit";
653 case Format::eR64Uint : return "64-bit";
654 case Format::eR64Sint : return "64-bit";
655 case Format::eR64Sfloat : return "64-bit";
656 case Format::eR64G64Uint : return "128-bit";
657 case Format::eR64G64Sint : return "128-bit";
658 case Format::eR64G64Sfloat : return "128-bit";
659 case Format::eR64G64B64Uint : return "192-bit";
660 case Format::eR64G64B64Sint : return "192-bit";
661 case Format::eR64G64B64Sfloat : return "192-bit";
662 case Format::eR64G64B64A64Uint : return "256-bit";
663 case Format::eR64G64B64A64Sint : return "256-bit";
664 case Format::eR64G64B64A64Sfloat : return "256-bit";
665 case Format::eB10G11R11UfloatPack32 : return "32-bit";
666 case Format::eE5B9G9R9UfloatPack32 : return "32-bit";
667 case Format::eD16Unorm : return "D16";
668 case Format::eX8D24UnormPack32 : return "D24";
669 case Format::eD32Sfloat : return "D32";
670 case Format::eS8Uint : return "S8";
671 case Format::eD16UnormS8Uint : return "D16S8";
672 case Format::eD24UnormS8Uint : return "D24S8";
673 case Format::eD32SfloatS8Uint : return "D32S8";
674 case Format::eBc1RgbUnormBlock : return "BC1_RGB";
675 case Format::eBc1RgbSrgbBlock : return "BC1_RGB";
676 case Format::eBc1RgbaUnormBlock : return "BC1_RGBA";
677 case Format::eBc1RgbaSrgbBlock : return "BC1_RGBA";
678 case Format::eBc2UnormBlock : return "BC2";
679 case Format::eBc2SrgbBlock : return "BC2";
680 case Format::eBc3UnormBlock : return "BC3";
681 case Format::eBc3SrgbBlock : return "BC3";
682 case Format::eBc4UnormBlock : return "BC4";
683 case Format::eBc4SnormBlock : return "BC4";
684 case Format::eBc5UnormBlock : return "BC5";
685 case Format::eBc5SnormBlock : return "BC5";
686 case Format::eBc6HUfloatBlock : return "BC6H";
687 case Format::eBc6HSfloatBlock : return "BC6H";
688 case Format::eBc7UnormBlock : return "BC7";
689 case Format::eBc7SrgbBlock : return "BC7";
690 case Format::eEtc2R8G8B8UnormBlock : return "ETC2_RGB";
691 case Format::eEtc2R8G8B8SrgbBlock : return "ETC2_RGB";
692 case Format::eEtc2R8G8B8A1UnormBlock : return "ETC2_RGBA";
693 case Format::eEtc2R8G8B8A1SrgbBlock : return "ETC2_RGBA";
694 case Format::eEtc2R8G8B8A8UnormBlock : return "ETC2_EAC_RGBA";
695 case Format::eEtc2R8G8B8A8SrgbBlock : return "ETC2_EAC_RGBA";
696 case Format::eEacR11UnormBlock : return "EAC_R";
697 case Format::eEacR11SnormBlock : return "EAC_R";
698 case Format::eEacR11G11UnormBlock : return "EAC_RG";
699 case Format::eEacR11G11SnormBlock : return "EAC_RG";
700 case Format::eAstc4x4UnormBlock : return "ASTC_4x4";
701 case Format::eAstc4x4SrgbBlock : return "ASTC_4x4";
702 case Format::eAstc5x4UnormBlock : return "ASTC_5x4";
703 case Format::eAstc5x4SrgbBlock : return "ASTC_5x4";
704 case Format::eAstc5x5UnormBlock : return "ASTC_5x5";
705 case Format::eAstc5x5SrgbBlock : return "ASTC_5x5";
706 case Format::eAstc6x5UnormBlock : return "ASTC_6x5";
707 case Format::eAstc6x5SrgbBlock : return "ASTC_6x5";
708 case Format::eAstc6x6UnormBlock : return "ASTC_6x6";
709 case Format::eAstc6x6SrgbBlock : return "ASTC_6x6";
710 case Format::eAstc8x5UnormBlock : return "ASTC_8x5";
711 case Format::eAstc8x5SrgbBlock : return "ASTC_8x5";
712 case Format::eAstc8x6UnormBlock : return "ASTC_8x6";
713 case Format::eAstc8x6SrgbBlock : return "ASTC_8x6";
714 case Format::eAstc8x8UnormBlock : return "ASTC_8x8";
715 case Format::eAstc8x8SrgbBlock : return "ASTC_8x8";
716 case Format::eAstc10x5UnormBlock : return "ASTC_10x5";
717 case Format::eAstc10x5SrgbBlock : return "ASTC_10x5";
718 case Format::eAstc10x6UnormBlock : return "ASTC_10x6";
719 case Format::eAstc10x6SrgbBlock : return "ASTC_10x6";
720 case Format::eAstc10x8UnormBlock : return "ASTC_10x8";
721 case Format::eAstc10x8SrgbBlock : return "ASTC_10x8";
722 case Format::eAstc10x10UnormBlock : return "ASTC_10x10";
723 case Format::eAstc10x10SrgbBlock : return "ASTC_10x10";
724 case Format::eAstc12x10UnormBlock : return "ASTC_12x10";
725 case Format::eAstc12x10SrgbBlock : return "ASTC_12x10";
726 case Format::eAstc12x12UnormBlock : return "ASTC_12x12";
727 case Format::eAstc12x12SrgbBlock : return "ASTC_12x12";
728 case Format::eG8B8G8R8422Unorm : return "32-bit G8B8G8R8";
729 case Format::eB8G8R8G8422Unorm : return "32-bit B8G8R8G8";
730 case Format::eG8B8R83Plane420Unorm : return "8-bit 3-plane 420";
731 case Format::eG8B8R82Plane420Unorm : return "8-bit 2-plane 420";
732 case Format::eG8B8R83Plane422Unorm : return "8-bit 3-plane 422";
733 case Format::eG8B8R82Plane422Unorm : return "8-bit 2-plane 422";
734 case Format::eG8B8R83Plane444Unorm : return "8-bit 3-plane 444";
735 case Format::eR10X6UnormPack16 : return "16-bit";
736 case Format::eR10X6G10X6Unorm2Pack16 : return "32-bit";
737 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16 : return "64-bit R10G10B10A10";
738 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16 : return "64-bit G10B10G10R10";
739 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16 : return "64-bit B10G10R10G10";
740 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16 : return "10-bit 3-plane 420";
741 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16 : return "10-bit 2-plane 420";
742 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16 : return "10-bit 3-plane 422";
743 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16 : return "10-bit 2-plane 422";
744 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16 : return "10-bit 3-plane 444";
745 case Format::eR12X4UnormPack16 : return "16-bit";
746 case Format::eR12X4G12X4Unorm2Pack16 : return "32-bit";
747 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16 : return "64-bit R12G12B12A12";
748 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16 : return "64-bit G12B12G12R12";
749 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16 : return "64-bit B12G12R12G12";
750 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16 : return "12-bit 3-plane 420";
751 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16 : return "12-bit 2-plane 420";
752 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16 : return "12-bit 3-plane 422";
753 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16 : return "12-bit 2-plane 422";
754 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16 : return "12-bit 3-plane 444";
755 case Format::eG16B16G16R16422Unorm : return "64-bit G16B16G16R16";
756 case Format::eB16G16R16G16422Unorm : return "64-bit B16G16R16G16";
757 case Format::eG16B16R163Plane420Unorm : return "16-bit 3-plane 420";
758 case Format::eG16B16R162Plane420Unorm : return "16-bit 2-plane 420";
759 case Format::eG16B16R163Plane422Unorm : return "16-bit 3-plane 422";
760 case Format::eG16B16R162Plane422Unorm : return "16-bit 2-plane 422";
761 case Format::eG16B16R163Plane444Unorm : return "16-bit 3-plane 444";
762 case Format::eG8B8R82Plane444Unorm : return "8-bit 2-plane 444";
763 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16 : return "10-bit 2-plane 444";
764 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16 : return "12-bit 2-plane 444";
765 case Format::eG16B16R162Plane444Unorm : return "16-bit 2-plane 444";
766 case Format::eA4R4G4B4UnormPack16 : return "16-bit";
767 case Format::eA4B4G4R4UnormPack16 : return "16-bit";
768 case Format::eAstc4x4SfloatBlock : return "ASTC_4x4";
769 case Format::eAstc5x4SfloatBlock : return "ASTC_5x4";
770 case Format::eAstc5x5SfloatBlock : return "ASTC_5x5";
771 case Format::eAstc6x5SfloatBlock : return "ASTC_6x5";
772 case Format::eAstc6x6SfloatBlock : return "ASTC_6x6";
773 case Format::eAstc8x5SfloatBlock : return "ASTC_8x5";
774 case Format::eAstc8x6SfloatBlock : return "ASTC_8x6";
775 case Format::eAstc8x8SfloatBlock : return "ASTC_8x8";
776 case Format::eAstc10x5SfloatBlock : return "ASTC_10x5";
777 case Format::eAstc10x6SfloatBlock : return "ASTC_10x6";
778 case Format::eAstc10x8SfloatBlock : return "ASTC_10x8";
779 case Format::eAstc10x10SfloatBlock : return "ASTC_10x10";
780 case Format::eAstc12x10SfloatBlock : return "ASTC_12x10";
781 case Format::eAstc12x12SfloatBlock : return "ASTC_12x12";
782 case Format::eA1B5G5R5UnormPack16 : return "16-bit";
783 case Format::eA8Unorm : return "8-bit alpha";
784 case Format::ePvrtc12BppUnormBlockIMG : return "PVRTC1_2BPP";
785 case Format::ePvrtc14BppUnormBlockIMG : return "PVRTC1_4BPP";
786 case Format::ePvrtc22BppUnormBlockIMG : return "PVRTC2_2BPP";
787 case Format::ePvrtc24BppUnormBlockIMG : return "PVRTC2_4BPP";
788 case Format::ePvrtc12BppSrgbBlockIMG : return "PVRTC1_2BPP";
789 case Format::ePvrtc14BppSrgbBlockIMG : return "PVRTC1_4BPP";
790 case Format::ePvrtc22BppSrgbBlockIMG : return "PVRTC2_2BPP";
791 case Format::ePvrtc24BppSrgbBlockIMG : return "PVRTC2_4BPP";
792 case Format::eAstc3x3x3UnormBlockEXT : return "ASTC_3x3x3";
793 case Format::eAstc3x3x3SrgbBlockEXT : return "ASTC_3x3x3";
794 case Format::eAstc3x3x3SfloatBlockEXT : return "ASTC_3x3x3";
795 case Format::eAstc4x3x3UnormBlockEXT : return "ASTC_4x3x3";
796 case Format::eAstc4x3x3SrgbBlockEXT : return "ASTC_4x3x3";
797 case Format::eAstc4x3x3SfloatBlockEXT : return "ASTC_4x3x3";
798 case Format::eAstc4x4x3UnormBlockEXT : return "ASTC_4x4x3";
799 case Format::eAstc4x4x3SrgbBlockEXT : return "ASTC_4x4x3";
800 case Format::eAstc4x4x3SfloatBlockEXT : return "ASTC_4x4x3";
801 case Format::eAstc4x4x4UnormBlockEXT : return "ASTC_4x4x4";
802 case Format::eAstc4x4x4SrgbBlockEXT : return "ASTC_4x4x4";
803 case Format::eAstc4x4x4SfloatBlockEXT : return "ASTC_4x4x4";
804 case Format::eAstc5x4x4UnormBlockEXT : return "ASTC_5x4x4";
805 case Format::eAstc5x4x4SrgbBlockEXT : return "ASTC_5x4x4";
806 case Format::eAstc5x4x4SfloatBlockEXT : return "ASTC_5x4x4";
807 case Format::eAstc5x5x4UnormBlockEXT : return "ASTC_5x5x4";
808 case Format::eAstc5x5x4SrgbBlockEXT : return "ASTC_5x5x4";
809 case Format::eAstc5x5x4SfloatBlockEXT : return "ASTC_5x5x4";
810 case Format::eAstc5x5x5UnormBlockEXT : return "ASTC_5x5x5";
811 case Format::eAstc5x5x5SrgbBlockEXT : return "ASTC_5x5x5";
812 case Format::eAstc5x5x5SfloatBlockEXT : return "ASTC_5x5x5";
813 case Format::eAstc6x5x5UnormBlockEXT : return "ASTC_6x5x5";
814 case Format::eAstc6x5x5SrgbBlockEXT : return "ASTC_6x5x5";
815 case Format::eAstc6x5x5SfloatBlockEXT : return "ASTC_6x5x5";
816 case Format::eAstc6x6x5UnormBlockEXT : return "ASTC_6x6x5";
817 case Format::eAstc6x6x5SrgbBlockEXT : return "ASTC_6x6x5";
818 case Format::eAstc6x6x5SfloatBlockEXT : return "ASTC_6x6x5";
819 case Format::eAstc6x6x6UnormBlockEXT : return "ASTC_6x6x6";
820 case Format::eAstc6x6x6SrgbBlockEXT : return "ASTC_6x6x6";
821 case Format::eAstc6x6x6SfloatBlockEXT : return "ASTC_6x6x6";
822 case Format::eR8BoolARM : return "8-bit";
823 case Format::eR16G16Sfixed5NV : return "32-bit";
824 case Format::eR10X6UintPack16ARM : return "16-bit";
825 case Format::eR10X6G10X6Uint2Pack16ARM : return "32-bit";
826 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM : return "64-bit R10G10B10A10";
827 case Format::eR12X4UintPack16ARM : return "16-bit";
828 case Format::eR12X4G12X4Uint2Pack16ARM : return "32-bit";
829 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM : return "64-bit R12G12B12A12";
830 case Format::eR14X2UintPack16ARM : return "16-bit";
831 case Format::eR14X2G14X2Uint2Pack16ARM : return "32-bit";
832 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM : return "64-bit R14G14B14A14";
833 case Format::eR14X2UnormPack16ARM : return "16-bit";
834 case Format::eR14X2G14X2Unorm2Pack16ARM : return "32-bit";
835 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM : return "64-bit R14G14B14A14";
836 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM: return "14-bit 2-plane 420";
837 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return "14-bit 2-plane 422";
838
839 default: VULKAN_HPP_ASSERT( false ); return "";
840 }
841 }
842
843 // The number of bits in this component, if not compressed, otherwise 0.
844 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t componentBits( Format format, uint8_t component )
845 {
846 switch ( format )
847 {
848 case Format::eR4G4UnormPack8:
849 switch ( component )
850 {
851 case 0 : return 4;
852 case 1 : return 4;
853 default: VULKAN_HPP_ASSERT( false ); return 0;
854 }
855 case Format::eR4G4B4A4UnormPack16:
856 switch ( component )
857 {
858 case 0 : return 4;
859 case 1 : return 4;
860 case 2 : return 4;
861 case 3 : return 4;
862 default: VULKAN_HPP_ASSERT( false ); return 0;
863 }
864 case Format::eB4G4R4A4UnormPack16:
865 switch ( component )
866 {
867 case 0 : return 4;
868 case 1 : return 4;
869 case 2 : return 4;
870 case 3 : return 4;
871 default: VULKAN_HPP_ASSERT( false ); return 0;
872 }
873 case Format::eR5G6B5UnormPack16:
874 switch ( component )
875 {
876 case 0 : return 5;
877 case 1 : return 6;
878 case 2 : return 5;
879 default: VULKAN_HPP_ASSERT( false ); return 0;
880 }
881 case Format::eB5G6R5UnormPack16:
882 switch ( component )
883 {
884 case 0 : return 5;
885 case 1 : return 6;
886 case 2 : return 5;
887 default: VULKAN_HPP_ASSERT( false ); return 0;
888 }
889 case Format::eR5G5B5A1UnormPack16:
890 switch ( component )
891 {
892 case 0 : return 5;
893 case 1 : return 5;
894 case 2 : return 5;
895 case 3 : return 1;
896 default: VULKAN_HPP_ASSERT( false ); return 0;
897 }
898 case Format::eB5G5R5A1UnormPack16:
899 switch ( component )
900 {
901 case 0 : return 5;
902 case 1 : return 5;
903 case 2 : return 5;
904 case 3 : return 1;
905 default: VULKAN_HPP_ASSERT( false ); return 0;
906 }
907 case Format::eA1R5G5B5UnormPack16:
908 switch ( component )
909 {
910 case 0 : return 1;
911 case 1 : return 5;
912 case 2 : return 5;
913 case 3 : return 5;
914 default: VULKAN_HPP_ASSERT( false ); return 0;
915 }
916 case Format::eR8Unorm:
917 switch ( component )
918 {
919 case 0 : return 8;
920 default: VULKAN_HPP_ASSERT( false ); return 0;
921 }
922 case Format::eR8Snorm:
923 switch ( component )
924 {
925 case 0 : return 8;
926 default: VULKAN_HPP_ASSERT( false ); return 0;
927 }
928 case Format::eR8Uscaled:
929 switch ( component )
930 {
931 case 0 : return 8;
932 default: VULKAN_HPP_ASSERT( false ); return 0;
933 }
934 case Format::eR8Sscaled:
935 switch ( component )
936 {
937 case 0 : return 8;
938 default: VULKAN_HPP_ASSERT( false ); return 0;
939 }
940 case Format::eR8Uint:
941 switch ( component )
942 {
943 case 0 : return 8;
944 default: VULKAN_HPP_ASSERT( false ); return 0;
945 }
946 case Format::eR8Sint:
947 switch ( component )
948 {
949 case 0 : return 8;
950 default: VULKAN_HPP_ASSERT( false ); return 0;
951 }
952 case Format::eR8Srgb:
953 switch ( component )
954 {
955 case 0 : return 8;
956 default: VULKAN_HPP_ASSERT( false ); return 0;
957 }
958 case Format::eR8G8Unorm:
959 switch ( component )
960 {
961 case 0 : return 8;
962 case 1 : return 8;
963 default: VULKAN_HPP_ASSERT( false ); return 0;
964 }
965 case Format::eR8G8Snorm:
966 switch ( component )
967 {
968 case 0 : return 8;
969 case 1 : return 8;
970 default: VULKAN_HPP_ASSERT( false ); return 0;
971 }
972 case Format::eR8G8Uscaled:
973 switch ( component )
974 {
975 case 0 : return 8;
976 case 1 : return 8;
977 default: VULKAN_HPP_ASSERT( false ); return 0;
978 }
979 case Format::eR8G8Sscaled:
980 switch ( component )
981 {
982 case 0 : return 8;
983 case 1 : return 8;
984 default: VULKAN_HPP_ASSERT( false ); return 0;
985 }
986 case Format::eR8G8Uint:
987 switch ( component )
988 {
989 case 0 : return 8;
990 case 1 : return 8;
991 default: VULKAN_HPP_ASSERT( false ); return 0;
992 }
993 case Format::eR8G8Sint:
994 switch ( component )
995 {
996 case 0 : return 8;
997 case 1 : return 8;
998 default: VULKAN_HPP_ASSERT( false ); return 0;
999 }
1000 case Format::eR8G8Srgb:
1001 switch ( component )
1002 {
1003 case 0 : return 8;
1004 case 1 : return 8;
1005 default: VULKAN_HPP_ASSERT( false ); return 0;
1006 }
1007 case Format::eR8G8B8Unorm:
1008 switch ( component )
1009 {
1010 case 0 : return 8;
1011 case 1 : return 8;
1012 case 2 : return 8;
1013 default: VULKAN_HPP_ASSERT( false ); return 0;
1014 }
1015 case Format::eR8G8B8Snorm:
1016 switch ( component )
1017 {
1018 case 0 : return 8;
1019 case 1 : return 8;
1020 case 2 : return 8;
1021 default: VULKAN_HPP_ASSERT( false ); return 0;
1022 }
1023 case Format::eR8G8B8Uscaled:
1024 switch ( component )
1025 {
1026 case 0 : return 8;
1027 case 1 : return 8;
1028 case 2 : return 8;
1029 default: VULKAN_HPP_ASSERT( false ); return 0;
1030 }
1031 case Format::eR8G8B8Sscaled:
1032 switch ( component )
1033 {
1034 case 0 : return 8;
1035 case 1 : return 8;
1036 case 2 : return 8;
1037 default: VULKAN_HPP_ASSERT( false ); return 0;
1038 }
1039 case Format::eR8G8B8Uint:
1040 switch ( component )
1041 {
1042 case 0 : return 8;
1043 case 1 : return 8;
1044 case 2 : return 8;
1045 default: VULKAN_HPP_ASSERT( false ); return 0;
1046 }
1047 case Format::eR8G8B8Sint:
1048 switch ( component )
1049 {
1050 case 0 : return 8;
1051 case 1 : return 8;
1052 case 2 : return 8;
1053 default: VULKAN_HPP_ASSERT( false ); return 0;
1054 }
1055 case Format::eR8G8B8Srgb:
1056 switch ( component )
1057 {
1058 case 0 : return 8;
1059 case 1 : return 8;
1060 case 2 : return 8;
1061 default: VULKAN_HPP_ASSERT( false ); return 0;
1062 }
1063 case Format::eB8G8R8Unorm:
1064 switch ( component )
1065 {
1066 case 0 : return 8;
1067 case 1 : return 8;
1068 case 2 : return 8;
1069 default: VULKAN_HPP_ASSERT( false ); return 0;
1070 }
1071 case Format::eB8G8R8Snorm:
1072 switch ( component )
1073 {
1074 case 0 : return 8;
1075 case 1 : return 8;
1076 case 2 : return 8;
1077 default: VULKAN_HPP_ASSERT( false ); return 0;
1078 }
1079 case Format::eB8G8R8Uscaled:
1080 switch ( component )
1081 {
1082 case 0 : return 8;
1083 case 1 : return 8;
1084 case 2 : return 8;
1085 default: VULKAN_HPP_ASSERT( false ); return 0;
1086 }
1087 case Format::eB8G8R8Sscaled:
1088 switch ( component )
1089 {
1090 case 0 : return 8;
1091 case 1 : return 8;
1092 case 2 : return 8;
1093 default: VULKAN_HPP_ASSERT( false ); return 0;
1094 }
1095 case Format::eB8G8R8Uint:
1096 switch ( component )
1097 {
1098 case 0 : return 8;
1099 case 1 : return 8;
1100 case 2 : return 8;
1101 default: VULKAN_HPP_ASSERT( false ); return 0;
1102 }
1103 case Format::eB8G8R8Sint:
1104 switch ( component )
1105 {
1106 case 0 : return 8;
1107 case 1 : return 8;
1108 case 2 : return 8;
1109 default: VULKAN_HPP_ASSERT( false ); return 0;
1110 }
1111 case Format::eB8G8R8Srgb:
1112 switch ( component )
1113 {
1114 case 0 : return 8;
1115 case 1 : return 8;
1116 case 2 : return 8;
1117 default: VULKAN_HPP_ASSERT( false ); return 0;
1118 }
1119 case Format::eR8G8B8A8Unorm:
1120 switch ( component )
1121 {
1122 case 0 : return 8;
1123 case 1 : return 8;
1124 case 2 : return 8;
1125 case 3 : return 8;
1126 default: VULKAN_HPP_ASSERT( false ); return 0;
1127 }
1128 case Format::eR8G8B8A8Snorm:
1129 switch ( component )
1130 {
1131 case 0 : return 8;
1132 case 1 : return 8;
1133 case 2 : return 8;
1134 case 3 : return 8;
1135 default: VULKAN_HPP_ASSERT( false ); return 0;
1136 }
1137 case Format::eR8G8B8A8Uscaled:
1138 switch ( component )
1139 {
1140 case 0 : return 8;
1141 case 1 : return 8;
1142 case 2 : return 8;
1143 case 3 : return 8;
1144 default: VULKAN_HPP_ASSERT( false ); return 0;
1145 }
1146 case Format::eR8G8B8A8Sscaled:
1147 switch ( component )
1148 {
1149 case 0 : return 8;
1150 case 1 : return 8;
1151 case 2 : return 8;
1152 case 3 : return 8;
1153 default: VULKAN_HPP_ASSERT( false ); return 0;
1154 }
1155 case Format::eR8G8B8A8Uint:
1156 switch ( component )
1157 {
1158 case 0 : return 8;
1159 case 1 : return 8;
1160 case 2 : return 8;
1161 case 3 : return 8;
1162 default: VULKAN_HPP_ASSERT( false ); return 0;
1163 }
1164 case Format::eR8G8B8A8Sint:
1165 switch ( component )
1166 {
1167 case 0 : return 8;
1168 case 1 : return 8;
1169 case 2 : return 8;
1170 case 3 : return 8;
1171 default: VULKAN_HPP_ASSERT( false ); return 0;
1172 }
1173 case Format::eR8G8B8A8Srgb:
1174 switch ( component )
1175 {
1176 case 0 : return 8;
1177 case 1 : return 8;
1178 case 2 : return 8;
1179 case 3 : return 8;
1180 default: VULKAN_HPP_ASSERT( false ); return 0;
1181 }
1182 case Format::eB8G8R8A8Unorm:
1183 switch ( component )
1184 {
1185 case 0 : return 8;
1186 case 1 : return 8;
1187 case 2 : return 8;
1188 case 3 : return 8;
1189 default: VULKAN_HPP_ASSERT( false ); return 0;
1190 }
1191 case Format::eB8G8R8A8Snorm:
1192 switch ( component )
1193 {
1194 case 0 : return 8;
1195 case 1 : return 8;
1196 case 2 : return 8;
1197 case 3 : return 8;
1198 default: VULKAN_HPP_ASSERT( false ); return 0;
1199 }
1200 case Format::eB8G8R8A8Uscaled:
1201 switch ( component )
1202 {
1203 case 0 : return 8;
1204 case 1 : return 8;
1205 case 2 : return 8;
1206 case 3 : return 8;
1207 default: VULKAN_HPP_ASSERT( false ); return 0;
1208 }
1209 case Format::eB8G8R8A8Sscaled:
1210 switch ( component )
1211 {
1212 case 0 : return 8;
1213 case 1 : return 8;
1214 case 2 : return 8;
1215 case 3 : return 8;
1216 default: VULKAN_HPP_ASSERT( false ); return 0;
1217 }
1218 case Format::eB8G8R8A8Uint:
1219 switch ( component )
1220 {
1221 case 0 : return 8;
1222 case 1 : return 8;
1223 case 2 : return 8;
1224 case 3 : return 8;
1225 default: VULKAN_HPP_ASSERT( false ); return 0;
1226 }
1227 case Format::eB8G8R8A8Sint:
1228 switch ( component )
1229 {
1230 case 0 : return 8;
1231 case 1 : return 8;
1232 case 2 : return 8;
1233 case 3 : return 8;
1234 default: VULKAN_HPP_ASSERT( false ); return 0;
1235 }
1236 case Format::eB8G8R8A8Srgb:
1237 switch ( component )
1238 {
1239 case 0 : return 8;
1240 case 1 : return 8;
1241 case 2 : return 8;
1242 case 3 : return 8;
1243 default: VULKAN_HPP_ASSERT( false ); return 0;
1244 }
1245 case Format::eA8B8G8R8UnormPack32:
1246 switch ( component )
1247 {
1248 case 0 : return 8;
1249 case 1 : return 8;
1250 case 2 : return 8;
1251 case 3 : return 8;
1252 default: VULKAN_HPP_ASSERT( false ); return 0;
1253 }
1254 case Format::eA8B8G8R8SnormPack32:
1255 switch ( component )
1256 {
1257 case 0 : return 8;
1258 case 1 : return 8;
1259 case 2 : return 8;
1260 case 3 : return 8;
1261 default: VULKAN_HPP_ASSERT( false ); return 0;
1262 }
1263 case Format::eA8B8G8R8UscaledPack32:
1264 switch ( component )
1265 {
1266 case 0 : return 8;
1267 case 1 : return 8;
1268 case 2 : return 8;
1269 case 3 : return 8;
1270 default: VULKAN_HPP_ASSERT( false ); return 0;
1271 }
1272 case Format::eA8B8G8R8SscaledPack32:
1273 switch ( component )
1274 {
1275 case 0 : return 8;
1276 case 1 : return 8;
1277 case 2 : return 8;
1278 case 3 : return 8;
1279 default: VULKAN_HPP_ASSERT( false ); return 0;
1280 }
1281 case Format::eA8B8G8R8UintPack32:
1282 switch ( component )
1283 {
1284 case 0 : return 8;
1285 case 1 : return 8;
1286 case 2 : return 8;
1287 case 3 : return 8;
1288 default: VULKAN_HPP_ASSERT( false ); return 0;
1289 }
1290 case Format::eA8B8G8R8SintPack32:
1291 switch ( component )
1292 {
1293 case 0 : return 8;
1294 case 1 : return 8;
1295 case 2 : return 8;
1296 case 3 : return 8;
1297 default: VULKAN_HPP_ASSERT( false ); return 0;
1298 }
1299 case Format::eA8B8G8R8SrgbPack32:
1300 switch ( component )
1301 {
1302 case 0 : return 8;
1303 case 1 : return 8;
1304 case 2 : return 8;
1305 case 3 : return 8;
1306 default: VULKAN_HPP_ASSERT( false ); return 0;
1307 }
1308 case Format::eA2R10G10B10UnormPack32:
1309 switch ( component )
1310 {
1311 case 0 : return 2;
1312 case 1 : return 10;
1313 case 2 : return 10;
1314 case 3 : return 10;
1315 default: VULKAN_HPP_ASSERT( false ); return 0;
1316 }
1317 case Format::eA2R10G10B10SnormPack32:
1318 switch ( component )
1319 {
1320 case 0 : return 2;
1321 case 1 : return 10;
1322 case 2 : return 10;
1323 case 3 : return 10;
1324 default: VULKAN_HPP_ASSERT( false ); return 0;
1325 }
1326 case Format::eA2R10G10B10UscaledPack32:
1327 switch ( component )
1328 {
1329 case 0 : return 2;
1330 case 1 : return 10;
1331 case 2 : return 10;
1332 case 3 : return 10;
1333 default: VULKAN_HPP_ASSERT( false ); return 0;
1334 }
1335 case Format::eA2R10G10B10SscaledPack32:
1336 switch ( component )
1337 {
1338 case 0 : return 2;
1339 case 1 : return 10;
1340 case 2 : return 10;
1341 case 3 : return 10;
1342 default: VULKAN_HPP_ASSERT( false ); return 0;
1343 }
1344 case Format::eA2R10G10B10UintPack32:
1345 switch ( component )
1346 {
1347 case 0 : return 2;
1348 case 1 : return 10;
1349 case 2 : return 10;
1350 case 3 : return 10;
1351 default: VULKAN_HPP_ASSERT( false ); return 0;
1352 }
1353 case Format::eA2R10G10B10SintPack32:
1354 switch ( component )
1355 {
1356 case 0 : return 2;
1357 case 1 : return 10;
1358 case 2 : return 10;
1359 case 3 : return 10;
1360 default: VULKAN_HPP_ASSERT( false ); return 0;
1361 }
1362 case Format::eA2B10G10R10UnormPack32:
1363 switch ( component )
1364 {
1365 case 0 : return 2;
1366 case 1 : return 10;
1367 case 2 : return 10;
1368 case 3 : return 10;
1369 default: VULKAN_HPP_ASSERT( false ); return 0;
1370 }
1371 case Format::eA2B10G10R10SnormPack32:
1372 switch ( component )
1373 {
1374 case 0 : return 2;
1375 case 1 : return 10;
1376 case 2 : return 10;
1377 case 3 : return 10;
1378 default: VULKAN_HPP_ASSERT( false ); return 0;
1379 }
1380 case Format::eA2B10G10R10UscaledPack32:
1381 switch ( component )
1382 {
1383 case 0 : return 2;
1384 case 1 : return 10;
1385 case 2 : return 10;
1386 case 3 : return 10;
1387 default: VULKAN_HPP_ASSERT( false ); return 0;
1388 }
1389 case Format::eA2B10G10R10SscaledPack32:
1390 switch ( component )
1391 {
1392 case 0 : return 2;
1393 case 1 : return 10;
1394 case 2 : return 10;
1395 case 3 : return 10;
1396 default: VULKAN_HPP_ASSERT( false ); return 0;
1397 }
1398 case Format::eA2B10G10R10UintPack32:
1399 switch ( component )
1400 {
1401 case 0 : return 2;
1402 case 1 : return 10;
1403 case 2 : return 10;
1404 case 3 : return 10;
1405 default: VULKAN_HPP_ASSERT( false ); return 0;
1406 }
1407 case Format::eA2B10G10R10SintPack32:
1408 switch ( component )
1409 {
1410 case 0 : return 2;
1411 case 1 : return 10;
1412 case 2 : return 10;
1413 case 3 : return 10;
1414 default: VULKAN_HPP_ASSERT( false ); return 0;
1415 }
1416 case Format::eR16Unorm:
1417 switch ( component )
1418 {
1419 case 0 : return 16;
1420 default: VULKAN_HPP_ASSERT( false ); return 0;
1421 }
1422 case Format::eR16Snorm:
1423 switch ( component )
1424 {
1425 case 0 : return 16;
1426 default: VULKAN_HPP_ASSERT( false ); return 0;
1427 }
1428 case Format::eR16Uscaled:
1429 switch ( component )
1430 {
1431 case 0 : return 16;
1432 default: VULKAN_HPP_ASSERT( false ); return 0;
1433 }
1434 case Format::eR16Sscaled:
1435 switch ( component )
1436 {
1437 case 0 : return 16;
1438 default: VULKAN_HPP_ASSERT( false ); return 0;
1439 }
1440 case Format::eR16Uint:
1441 switch ( component )
1442 {
1443 case 0 : return 16;
1444 default: VULKAN_HPP_ASSERT( false ); return 0;
1445 }
1446 case Format::eR16Sint:
1447 switch ( component )
1448 {
1449 case 0 : return 16;
1450 default: VULKAN_HPP_ASSERT( false ); return 0;
1451 }
1452 case Format::eR16Sfloat:
1453 switch ( component )
1454 {
1455 case 0 : return 16;
1456 default: VULKAN_HPP_ASSERT( false ); return 0;
1457 }
1458 case Format::eR16G16Unorm:
1459 switch ( component )
1460 {
1461 case 0 : return 16;
1462 case 1 : return 16;
1463 default: VULKAN_HPP_ASSERT( false ); return 0;
1464 }
1465 case Format::eR16G16Snorm:
1466 switch ( component )
1467 {
1468 case 0 : return 16;
1469 case 1 : return 16;
1470 default: VULKAN_HPP_ASSERT( false ); return 0;
1471 }
1472 case Format::eR16G16Uscaled:
1473 switch ( component )
1474 {
1475 case 0 : return 16;
1476 case 1 : return 16;
1477 default: VULKAN_HPP_ASSERT( false ); return 0;
1478 }
1479 case Format::eR16G16Sscaled:
1480 switch ( component )
1481 {
1482 case 0 : return 16;
1483 case 1 : return 16;
1484 default: VULKAN_HPP_ASSERT( false ); return 0;
1485 }
1486 case Format::eR16G16Uint:
1487 switch ( component )
1488 {
1489 case 0 : return 16;
1490 case 1 : return 16;
1491 default: VULKAN_HPP_ASSERT( false ); return 0;
1492 }
1493 case Format::eR16G16Sint:
1494 switch ( component )
1495 {
1496 case 0 : return 16;
1497 case 1 : return 16;
1498 default: VULKAN_HPP_ASSERT( false ); return 0;
1499 }
1500 case Format::eR16G16Sfloat:
1501 switch ( component )
1502 {
1503 case 0 : return 16;
1504 case 1 : return 16;
1505 default: VULKAN_HPP_ASSERT( false ); return 0;
1506 }
1507 case Format::eR16G16B16Unorm:
1508 switch ( component )
1509 {
1510 case 0 : return 16;
1511 case 1 : return 16;
1512 case 2 : return 16;
1513 default: VULKAN_HPP_ASSERT( false ); return 0;
1514 }
1515 case Format::eR16G16B16Snorm:
1516 switch ( component )
1517 {
1518 case 0 : return 16;
1519 case 1 : return 16;
1520 case 2 : return 16;
1521 default: VULKAN_HPP_ASSERT( false ); return 0;
1522 }
1523 case Format::eR16G16B16Uscaled:
1524 switch ( component )
1525 {
1526 case 0 : return 16;
1527 case 1 : return 16;
1528 case 2 : return 16;
1529 default: VULKAN_HPP_ASSERT( false ); return 0;
1530 }
1531 case Format::eR16G16B16Sscaled:
1532 switch ( component )
1533 {
1534 case 0 : return 16;
1535 case 1 : return 16;
1536 case 2 : return 16;
1537 default: VULKAN_HPP_ASSERT( false ); return 0;
1538 }
1539 case Format::eR16G16B16Uint:
1540 switch ( component )
1541 {
1542 case 0 : return 16;
1543 case 1 : return 16;
1544 case 2 : return 16;
1545 default: VULKAN_HPP_ASSERT( false ); return 0;
1546 }
1547 case Format::eR16G16B16Sint:
1548 switch ( component )
1549 {
1550 case 0 : return 16;
1551 case 1 : return 16;
1552 case 2 : return 16;
1553 default: VULKAN_HPP_ASSERT( false ); return 0;
1554 }
1555 case Format::eR16G16B16Sfloat:
1556 switch ( component )
1557 {
1558 case 0 : return 16;
1559 case 1 : return 16;
1560 case 2 : return 16;
1561 default: VULKAN_HPP_ASSERT( false ); return 0;
1562 }
1563 case Format::eR16G16B16A16Unorm:
1564 switch ( component )
1565 {
1566 case 0 : return 16;
1567 case 1 : return 16;
1568 case 2 : return 16;
1569 case 3 : return 16;
1570 default: VULKAN_HPP_ASSERT( false ); return 0;
1571 }
1572 case Format::eR16G16B16A16Snorm:
1573 switch ( component )
1574 {
1575 case 0 : return 16;
1576 case 1 : return 16;
1577 case 2 : return 16;
1578 case 3 : return 16;
1579 default: VULKAN_HPP_ASSERT( false ); return 0;
1580 }
1581 case Format::eR16G16B16A16Uscaled:
1582 switch ( component )
1583 {
1584 case 0 : return 16;
1585 case 1 : return 16;
1586 case 2 : return 16;
1587 case 3 : return 16;
1588 default: VULKAN_HPP_ASSERT( false ); return 0;
1589 }
1590 case Format::eR16G16B16A16Sscaled:
1591 switch ( component )
1592 {
1593 case 0 : return 16;
1594 case 1 : return 16;
1595 case 2 : return 16;
1596 case 3 : return 16;
1597 default: VULKAN_HPP_ASSERT( false ); return 0;
1598 }
1599 case Format::eR16G16B16A16Uint:
1600 switch ( component )
1601 {
1602 case 0 : return 16;
1603 case 1 : return 16;
1604 case 2 : return 16;
1605 case 3 : return 16;
1606 default: VULKAN_HPP_ASSERT( false ); return 0;
1607 }
1608 case Format::eR16G16B16A16Sint:
1609 switch ( component )
1610 {
1611 case 0 : return 16;
1612 case 1 : return 16;
1613 case 2 : return 16;
1614 case 3 : return 16;
1615 default: VULKAN_HPP_ASSERT( false ); return 0;
1616 }
1617 case Format::eR16G16B16A16Sfloat:
1618 switch ( component )
1619 {
1620 case 0 : return 16;
1621 case 1 : return 16;
1622 case 2 : return 16;
1623 case 3 : return 16;
1624 default: VULKAN_HPP_ASSERT( false ); return 0;
1625 }
1626 case Format::eR32Uint:
1627 switch ( component )
1628 {
1629 case 0 : return 32;
1630 default: VULKAN_HPP_ASSERT( false ); return 0;
1631 }
1632 case Format::eR32Sint:
1633 switch ( component )
1634 {
1635 case 0 : return 32;
1636 default: VULKAN_HPP_ASSERT( false ); return 0;
1637 }
1638 case Format::eR32Sfloat:
1639 switch ( component )
1640 {
1641 case 0 : return 32;
1642 default: VULKAN_HPP_ASSERT( false ); return 0;
1643 }
1644 case Format::eR32G32Uint:
1645 switch ( component )
1646 {
1647 case 0 : return 32;
1648 case 1 : return 32;
1649 default: VULKAN_HPP_ASSERT( false ); return 0;
1650 }
1651 case Format::eR32G32Sint:
1652 switch ( component )
1653 {
1654 case 0 : return 32;
1655 case 1 : return 32;
1656 default: VULKAN_HPP_ASSERT( false ); return 0;
1657 }
1658 case Format::eR32G32Sfloat:
1659 switch ( component )
1660 {
1661 case 0 : return 32;
1662 case 1 : return 32;
1663 default: VULKAN_HPP_ASSERT( false ); return 0;
1664 }
1665 case Format::eR32G32B32Uint:
1666 switch ( component )
1667 {
1668 case 0 : return 32;
1669 case 1 : return 32;
1670 case 2 : return 32;
1671 default: VULKAN_HPP_ASSERT( false ); return 0;
1672 }
1673 case Format::eR32G32B32Sint:
1674 switch ( component )
1675 {
1676 case 0 : return 32;
1677 case 1 : return 32;
1678 case 2 : return 32;
1679 default: VULKAN_HPP_ASSERT( false ); return 0;
1680 }
1681 case Format::eR32G32B32Sfloat:
1682 switch ( component )
1683 {
1684 case 0 : return 32;
1685 case 1 : return 32;
1686 case 2 : return 32;
1687 default: VULKAN_HPP_ASSERT( false ); return 0;
1688 }
1689 case Format::eR32G32B32A32Uint:
1690 switch ( component )
1691 {
1692 case 0 : return 32;
1693 case 1 : return 32;
1694 case 2 : return 32;
1695 case 3 : return 32;
1696 default: VULKAN_HPP_ASSERT( false ); return 0;
1697 }
1698 case Format::eR32G32B32A32Sint:
1699 switch ( component )
1700 {
1701 case 0 : return 32;
1702 case 1 : return 32;
1703 case 2 : return 32;
1704 case 3 : return 32;
1705 default: VULKAN_HPP_ASSERT( false ); return 0;
1706 }
1707 case Format::eR32G32B32A32Sfloat:
1708 switch ( component )
1709 {
1710 case 0 : return 32;
1711 case 1 : return 32;
1712 case 2 : return 32;
1713 case 3 : return 32;
1714 default: VULKAN_HPP_ASSERT( false ); return 0;
1715 }
1716 case Format::eR64Uint:
1717 switch ( component )
1718 {
1719 case 0 : return 64;
1720 default: VULKAN_HPP_ASSERT( false ); return 0;
1721 }
1722 case Format::eR64Sint:
1723 switch ( component )
1724 {
1725 case 0 : return 64;
1726 default: VULKAN_HPP_ASSERT( false ); return 0;
1727 }
1728 case Format::eR64Sfloat:
1729 switch ( component )
1730 {
1731 case 0 : return 64;
1732 default: VULKAN_HPP_ASSERT( false ); return 0;
1733 }
1734 case Format::eR64G64Uint:
1735 switch ( component )
1736 {
1737 case 0 : return 64;
1738 case 1 : return 64;
1739 default: VULKAN_HPP_ASSERT( false ); return 0;
1740 }
1741 case Format::eR64G64Sint:
1742 switch ( component )
1743 {
1744 case 0 : return 64;
1745 case 1 : return 64;
1746 default: VULKAN_HPP_ASSERT( false ); return 0;
1747 }
1748 case Format::eR64G64Sfloat:
1749 switch ( component )
1750 {
1751 case 0 : return 64;
1752 case 1 : return 64;
1753 default: VULKAN_HPP_ASSERT( false ); return 0;
1754 }
1755 case Format::eR64G64B64Uint:
1756 switch ( component )
1757 {
1758 case 0 : return 64;
1759 case 1 : return 64;
1760 case 2 : return 64;
1761 default: VULKAN_HPP_ASSERT( false ); return 0;
1762 }
1763 case Format::eR64G64B64Sint:
1764 switch ( component )
1765 {
1766 case 0 : return 64;
1767 case 1 : return 64;
1768 case 2 : return 64;
1769 default: VULKAN_HPP_ASSERT( false ); return 0;
1770 }
1771 case Format::eR64G64B64Sfloat:
1772 switch ( component )
1773 {
1774 case 0 : return 64;
1775 case 1 : return 64;
1776 case 2 : return 64;
1777 default: VULKAN_HPP_ASSERT( false ); return 0;
1778 }
1779 case Format::eR64G64B64A64Uint:
1780 switch ( component )
1781 {
1782 case 0 : return 64;
1783 case 1 : return 64;
1784 case 2 : return 64;
1785 case 3 : return 64;
1786 default: VULKAN_HPP_ASSERT( false ); return 0;
1787 }
1788 case Format::eR64G64B64A64Sint:
1789 switch ( component )
1790 {
1791 case 0 : return 64;
1792 case 1 : return 64;
1793 case 2 : return 64;
1794 case 3 : return 64;
1795 default: VULKAN_HPP_ASSERT( false ); return 0;
1796 }
1797 case Format::eR64G64B64A64Sfloat:
1798 switch ( component )
1799 {
1800 case 0 : return 64;
1801 case 1 : return 64;
1802 case 2 : return 64;
1803 case 3 : return 64;
1804 default: VULKAN_HPP_ASSERT( false ); return 0;
1805 }
1806 case Format::eB10G11R11UfloatPack32:
1807 switch ( component )
1808 {
1809 case 0 : return 10;
1810 case 1 : return 11;
1811 case 2 : return 11;
1812 default: VULKAN_HPP_ASSERT( false ); return 0;
1813 }
1814 case Format::eE5B9G9R9UfloatPack32:
1815 switch ( component )
1816 {
1817 case 0 : return 9;
1818 case 1 : return 9;
1819 case 2 : return 9;
1820 default: VULKAN_HPP_ASSERT( false ); return 0;
1821 }
1822 case Format::eD16Unorm:
1823 switch ( component )
1824 {
1825 case 0 : return 16;
1826 default: VULKAN_HPP_ASSERT( false ); return 0;
1827 }
1828 case Format::eX8D24UnormPack32:
1829 switch ( component )
1830 {
1831 case 0 : return 24;
1832 default: VULKAN_HPP_ASSERT( false ); return 0;
1833 }
1834 case Format::eD32Sfloat:
1835 switch ( component )
1836 {
1837 case 0 : return 32;
1838 default: VULKAN_HPP_ASSERT( false ); return 0;
1839 }
1840 case Format::eS8Uint:
1841 switch ( component )
1842 {
1843 case 0 : return 8;
1844 default: VULKAN_HPP_ASSERT( false ); return 0;
1845 }
1846 case Format::eD16UnormS8Uint:
1847 switch ( component )
1848 {
1849 case 0 : return 16;
1850 case 1 : return 8;
1851 default: VULKAN_HPP_ASSERT( false ); return 0;
1852 }
1853 case Format::eD24UnormS8Uint:
1854 switch ( component )
1855 {
1856 case 0 : return 24;
1857 case 1 : return 8;
1858 default: VULKAN_HPP_ASSERT( false ); return 0;
1859 }
1860 case Format::eD32SfloatS8Uint:
1861 switch ( component )
1862 {
1863 case 0 : return 32;
1864 case 1 : return 8;
1865 default: VULKAN_HPP_ASSERT( false ); return 0;
1866 }
1867 case Format::eEacR11UnormBlock:
1868 switch ( component )
1869 {
1870 case 0 : return 11;
1871 default: VULKAN_HPP_ASSERT( false ); return 0;
1872 }
1873 case Format::eEacR11SnormBlock:
1874 switch ( component )
1875 {
1876 case 0 : return 11;
1877 default: VULKAN_HPP_ASSERT( false ); return 0;
1878 }
1879 case Format::eEacR11G11UnormBlock:
1880 switch ( component )
1881 {
1882 case 0 : return 11;
1883 case 1 : return 11;
1884 default: VULKAN_HPP_ASSERT( false ); return 0;
1885 }
1886 case Format::eEacR11G11SnormBlock:
1887 switch ( component )
1888 {
1889 case 0 : return 11;
1890 case 1 : return 11;
1891 default: VULKAN_HPP_ASSERT( false ); return 0;
1892 }
1893 case Format::eG8B8G8R8422Unorm:
1894 switch ( component )
1895 {
1896 case 0 : return 8;
1897 case 1 : return 8;
1898 case 2 : return 8;
1899 case 3 : return 8;
1900 default: VULKAN_HPP_ASSERT( false ); return 0;
1901 }
1902 case Format::eB8G8R8G8422Unorm:
1903 switch ( component )
1904 {
1905 case 0 : return 8;
1906 case 1 : return 8;
1907 case 2 : return 8;
1908 case 3 : return 8;
1909 default: VULKAN_HPP_ASSERT( false ); return 0;
1910 }
1911 case Format::eG8B8R83Plane420Unorm:
1912 switch ( component )
1913 {
1914 case 0 : return 8;
1915 case 1 : return 8;
1916 case 2 : return 8;
1917 default: VULKAN_HPP_ASSERT( false ); return 0;
1918 }
1919 case Format::eG8B8R82Plane420Unorm:
1920 switch ( component )
1921 {
1922 case 0 : return 8;
1923 case 1 : return 8;
1924 case 2 : return 8;
1925 default: VULKAN_HPP_ASSERT( false ); return 0;
1926 }
1927 case Format::eG8B8R83Plane422Unorm:
1928 switch ( component )
1929 {
1930 case 0 : return 8;
1931 case 1 : return 8;
1932 case 2 : return 8;
1933 default: VULKAN_HPP_ASSERT( false ); return 0;
1934 }
1935 case Format::eG8B8R82Plane422Unorm:
1936 switch ( component )
1937 {
1938 case 0 : return 8;
1939 case 1 : return 8;
1940 case 2 : return 8;
1941 default: VULKAN_HPP_ASSERT( false ); return 0;
1942 }
1943 case Format::eG8B8R83Plane444Unorm:
1944 switch ( component )
1945 {
1946 case 0 : return 8;
1947 case 1 : return 8;
1948 case 2 : return 8;
1949 default: VULKAN_HPP_ASSERT( false ); return 0;
1950 }
1951 case Format::eR10X6UnormPack16:
1952 switch ( component )
1953 {
1954 case 0 : return 10;
1955 default: VULKAN_HPP_ASSERT( false ); return 0;
1956 }
1957 case Format::eR10X6G10X6Unorm2Pack16:
1958 switch ( component )
1959 {
1960 case 0 : return 10;
1961 case 1 : return 10;
1962 default: VULKAN_HPP_ASSERT( false ); return 0;
1963 }
1964 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
1965 switch ( component )
1966 {
1967 case 0 : return 10;
1968 case 1 : return 10;
1969 case 2 : return 10;
1970 case 3 : return 10;
1971 default: VULKAN_HPP_ASSERT( false ); return 0;
1972 }
1973 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
1974 switch ( component )
1975 {
1976 case 0 : return 10;
1977 case 1 : return 10;
1978 case 2 : return 10;
1979 case 3 : return 10;
1980 default: VULKAN_HPP_ASSERT( false ); return 0;
1981 }
1982 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
1983 switch ( component )
1984 {
1985 case 0 : return 10;
1986 case 1 : return 10;
1987 case 2 : return 10;
1988 case 3 : return 10;
1989 default: VULKAN_HPP_ASSERT( false ); return 0;
1990 }
1991 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
1992 switch ( component )
1993 {
1994 case 0 : return 10;
1995 case 1 : return 10;
1996 case 2 : return 10;
1997 default: VULKAN_HPP_ASSERT( false ); return 0;
1998 }
1999 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
2000 switch ( component )
2001 {
2002 case 0 : return 10;
2003 case 1 : return 10;
2004 case 2 : return 10;
2005 default: VULKAN_HPP_ASSERT( false ); return 0;
2006 }
2007 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
2008 switch ( component )
2009 {
2010 case 0 : return 10;
2011 case 1 : return 10;
2012 case 2 : return 10;
2013 default: VULKAN_HPP_ASSERT( false ); return 0;
2014 }
2015 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
2016 switch ( component )
2017 {
2018 case 0 : return 10;
2019 case 1 : return 10;
2020 case 2 : return 10;
2021 default: VULKAN_HPP_ASSERT( false ); return 0;
2022 }
2023 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
2024 switch ( component )
2025 {
2026 case 0 : return 10;
2027 case 1 : return 10;
2028 case 2 : return 10;
2029 default: VULKAN_HPP_ASSERT( false ); return 0;
2030 }
2031 case Format::eR12X4UnormPack16:
2032 switch ( component )
2033 {
2034 case 0 : return 12;
2035 default: VULKAN_HPP_ASSERT( false ); return 0;
2036 }
2037 case Format::eR12X4G12X4Unorm2Pack16:
2038 switch ( component )
2039 {
2040 case 0 : return 12;
2041 case 1 : return 12;
2042 default: VULKAN_HPP_ASSERT( false ); return 0;
2043 }
2044 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
2045 switch ( component )
2046 {
2047 case 0 : return 12;
2048 case 1 : return 12;
2049 case 2 : return 12;
2050 case 3 : return 12;
2051 default: VULKAN_HPP_ASSERT( false ); return 0;
2052 }
2053 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16:
2054 switch ( component )
2055 {
2056 case 0 : return 12;
2057 case 1 : return 12;
2058 case 2 : return 12;
2059 case 3 : return 12;
2060 default: VULKAN_HPP_ASSERT( false ); return 0;
2061 }
2062 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16:
2063 switch ( component )
2064 {
2065 case 0 : return 12;
2066 case 1 : return 12;
2067 case 2 : return 12;
2068 case 3 : return 12;
2069 default: VULKAN_HPP_ASSERT( false ); return 0;
2070 }
2071 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
2072 switch ( component )
2073 {
2074 case 0 : return 12;
2075 case 1 : return 12;
2076 case 2 : return 12;
2077 default: VULKAN_HPP_ASSERT( false ); return 0;
2078 }
2079 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
2080 switch ( component )
2081 {
2082 case 0 : return 12;
2083 case 1 : return 12;
2084 case 2 : return 12;
2085 default: VULKAN_HPP_ASSERT( false ); return 0;
2086 }
2087 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
2088 switch ( component )
2089 {
2090 case 0 : return 12;
2091 case 1 : return 12;
2092 case 2 : return 12;
2093 default: VULKAN_HPP_ASSERT( false ); return 0;
2094 }
2095 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
2096 switch ( component )
2097 {
2098 case 0 : return 12;
2099 case 1 : return 12;
2100 case 2 : return 12;
2101 default: VULKAN_HPP_ASSERT( false ); return 0;
2102 }
2103 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
2104 switch ( component )
2105 {
2106 case 0 : return 12;
2107 case 1 : return 12;
2108 case 2 : return 12;
2109 default: VULKAN_HPP_ASSERT( false ); return 0;
2110 }
2111 case Format::eG16B16G16R16422Unorm:
2112 switch ( component )
2113 {
2114 case 0 : return 16;
2115 case 1 : return 16;
2116 case 2 : return 16;
2117 case 3 : return 16;
2118 default: VULKAN_HPP_ASSERT( false ); return 0;
2119 }
2120 case Format::eB16G16R16G16422Unorm:
2121 switch ( component )
2122 {
2123 case 0 : return 16;
2124 case 1 : return 16;
2125 case 2 : return 16;
2126 case 3 : return 16;
2127 default: VULKAN_HPP_ASSERT( false ); return 0;
2128 }
2129 case Format::eG16B16R163Plane420Unorm:
2130 switch ( component )
2131 {
2132 case 0 : return 16;
2133 case 1 : return 16;
2134 case 2 : return 16;
2135 default: VULKAN_HPP_ASSERT( false ); return 0;
2136 }
2137 case Format::eG16B16R162Plane420Unorm:
2138 switch ( component )
2139 {
2140 case 0 : return 16;
2141 case 1 : return 16;
2142 case 2 : return 16;
2143 default: VULKAN_HPP_ASSERT( false ); return 0;
2144 }
2145 case Format::eG16B16R163Plane422Unorm:
2146 switch ( component )
2147 {
2148 case 0 : return 16;
2149 case 1 : return 16;
2150 case 2 : return 16;
2151 default: VULKAN_HPP_ASSERT( false ); return 0;
2152 }
2153 case Format::eG16B16R162Plane422Unorm:
2154 switch ( component )
2155 {
2156 case 0 : return 16;
2157 case 1 : return 16;
2158 case 2 : return 16;
2159 default: VULKAN_HPP_ASSERT( false ); return 0;
2160 }
2161 case Format::eG16B16R163Plane444Unorm:
2162 switch ( component )
2163 {
2164 case 0 : return 16;
2165 case 1 : return 16;
2166 case 2 : return 16;
2167 default: VULKAN_HPP_ASSERT( false ); return 0;
2168 }
2169 case Format::eG8B8R82Plane444Unorm:
2170 switch ( component )
2171 {
2172 case 0 : return 8;
2173 case 1 : return 8;
2174 case 2 : return 8;
2175 default: VULKAN_HPP_ASSERT( false ); return 0;
2176 }
2177 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
2178 switch ( component )
2179 {
2180 case 0 : return 10;
2181 case 1 : return 10;
2182 case 2 : return 10;
2183 default: VULKAN_HPP_ASSERT( false ); return 0;
2184 }
2185 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
2186 switch ( component )
2187 {
2188 case 0 : return 12;
2189 case 1 : return 12;
2190 case 2 : return 12;
2191 default: VULKAN_HPP_ASSERT( false ); return 0;
2192 }
2193 case Format::eG16B16R162Plane444Unorm:
2194 switch ( component )
2195 {
2196 case 0 : return 16;
2197 case 1 : return 16;
2198 case 2 : return 16;
2199 default: VULKAN_HPP_ASSERT( false ); return 0;
2200 }
2201 case Format::eA4R4G4B4UnormPack16:
2202 switch ( component )
2203 {
2204 case 0 : return 4;
2205 case 1 : return 4;
2206 case 2 : return 4;
2207 case 3 : return 4;
2208 default: VULKAN_HPP_ASSERT( false ); return 0;
2209 }
2210 case Format::eA4B4G4R4UnormPack16:
2211 switch ( component )
2212 {
2213 case 0 : return 4;
2214 case 1 : return 4;
2215 case 2 : return 4;
2216 case 3 : return 4;
2217 default: VULKAN_HPP_ASSERT( false ); return 0;
2218 }
2219 case Format::eA1B5G5R5UnormPack16:
2220 switch ( component )
2221 {
2222 case 0 : return 1;
2223 case 1 : return 5;
2224 case 2 : return 5;
2225 case 3 : return 5;
2226 default: VULKAN_HPP_ASSERT( false ); return 0;
2227 }
2228 case Format::eA8Unorm:
2229 switch ( component )
2230 {
2231 case 0 : return 8;
2232 default: VULKAN_HPP_ASSERT( false ); return 0;
2233 }
2234 case Format::eR8BoolARM:
2235 switch ( component )
2236 {
2237 case 0 : return 8;
2238 default: VULKAN_HPP_ASSERT( false ); return 0;
2239 }
2240 case Format::eR16G16Sfixed5NV:
2241 switch ( component )
2242 {
2243 case 0 : return 16;
2244 case 1 : return 16;
2245 default: VULKAN_HPP_ASSERT( false ); return 0;
2246 }
2247 case Format::eR10X6UintPack16ARM:
2248 switch ( component )
2249 {
2250 case 0 : return 10;
2251 default: VULKAN_HPP_ASSERT( false ); return 0;
2252 }
2253 case Format::eR10X6G10X6Uint2Pack16ARM:
2254 switch ( component )
2255 {
2256 case 0 : return 10;
2257 case 1 : return 10;
2258 default: VULKAN_HPP_ASSERT( false ); return 0;
2259 }
2260 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
2261 switch ( component )
2262 {
2263 case 0 : return 10;
2264 case 1 : return 10;
2265 case 2 : return 10;
2266 case 3 : return 10;
2267 default: VULKAN_HPP_ASSERT( false ); return 0;
2268 }
2269 case Format::eR12X4UintPack16ARM:
2270 switch ( component )
2271 {
2272 case 0 : return 12;
2273 default: VULKAN_HPP_ASSERT( false ); return 0;
2274 }
2275 case Format::eR12X4G12X4Uint2Pack16ARM:
2276 switch ( component )
2277 {
2278 case 0 : return 12;
2279 case 1 : return 12;
2280 default: VULKAN_HPP_ASSERT( false ); return 0;
2281 }
2282 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
2283 switch ( component )
2284 {
2285 case 0 : return 12;
2286 case 1 : return 12;
2287 case 2 : return 12;
2288 case 3 : return 12;
2289 default: VULKAN_HPP_ASSERT( false ); return 0;
2290 }
2291 case Format::eR14X2UintPack16ARM:
2292 switch ( component )
2293 {
2294 case 0 : return 14;
2295 default: VULKAN_HPP_ASSERT( false ); return 0;
2296 }
2297 case Format::eR14X2G14X2Uint2Pack16ARM:
2298 switch ( component )
2299 {
2300 case 0 : return 14;
2301 case 1 : return 14;
2302 default: VULKAN_HPP_ASSERT( false ); return 0;
2303 }
2304 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
2305 switch ( component )
2306 {
2307 case 0 : return 14;
2308 case 1 : return 14;
2309 case 2 : return 14;
2310 case 3 : return 14;
2311 default: VULKAN_HPP_ASSERT( false ); return 0;
2312 }
2313 case Format::eR14X2UnormPack16ARM:
2314 switch ( component )
2315 {
2316 case 0 : return 14;
2317 default: VULKAN_HPP_ASSERT( false ); return 0;
2318 }
2319 case Format::eR14X2G14X2Unorm2Pack16ARM:
2320 switch ( component )
2321 {
2322 case 0 : return 14;
2323 case 1 : return 14;
2324 default: VULKAN_HPP_ASSERT( false ); return 0;
2325 }
2326 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM:
2327 switch ( component )
2328 {
2329 case 0 : return 14;
2330 case 1 : return 14;
2331 case 2 : return 14;
2332 case 3 : return 14;
2333 default: VULKAN_HPP_ASSERT( false ); return 0;
2334 }
2335 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
2336 switch ( component )
2337 {
2338 case 0 : return 14;
2339 case 1 : return 14;
2340 case 2 : return 14;
2341 default: VULKAN_HPP_ASSERT( false ); return 0;
2342 }
2343 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
2344 switch ( component )
2345 {
2346 case 0 : return 14;
2347 case 1 : return 14;
2348 case 2 : return 14;
2349 default: VULKAN_HPP_ASSERT( false ); return 0;
2350 }
2351
2352 default: return 0;
2353 }
2354 }
2355
2356 // The number of components of this format.
2357 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t componentCount( Format format )
2358 {
2359 switch ( format )
2360 {
2361 case Format::eR4G4UnormPack8 : return 2;
2362 case Format::eR4G4B4A4UnormPack16 : return 4;
2363 case Format::eB4G4R4A4UnormPack16 : return 4;
2364 case Format::eR5G6B5UnormPack16 : return 3;
2365 case Format::eB5G6R5UnormPack16 : return 3;
2366 case Format::eR5G5B5A1UnormPack16 : return 4;
2367 case Format::eB5G5R5A1UnormPack16 : return 4;
2368 case Format::eA1R5G5B5UnormPack16 : return 4;
2369 case Format::eR8Unorm : return 1;
2370 case Format::eR8Snorm : return 1;
2371 case Format::eR8Uscaled : return 1;
2372 case Format::eR8Sscaled : return 1;
2373 case Format::eR8Uint : return 1;
2374 case Format::eR8Sint : return 1;
2375 case Format::eR8Srgb : return 1;
2376 case Format::eR8G8Unorm : return 2;
2377 case Format::eR8G8Snorm : return 2;
2378 case Format::eR8G8Uscaled : return 2;
2379 case Format::eR8G8Sscaled : return 2;
2380 case Format::eR8G8Uint : return 2;
2381 case Format::eR8G8Sint : return 2;
2382 case Format::eR8G8Srgb : return 2;
2383 case Format::eR8G8B8Unorm : return 3;
2384 case Format::eR8G8B8Snorm : return 3;
2385 case Format::eR8G8B8Uscaled : return 3;
2386 case Format::eR8G8B8Sscaled : return 3;
2387 case Format::eR8G8B8Uint : return 3;
2388 case Format::eR8G8B8Sint : return 3;
2389 case Format::eR8G8B8Srgb : return 3;
2390 case Format::eB8G8R8Unorm : return 3;
2391 case Format::eB8G8R8Snorm : return 3;
2392 case Format::eB8G8R8Uscaled : return 3;
2393 case Format::eB8G8R8Sscaled : return 3;
2394 case Format::eB8G8R8Uint : return 3;
2395 case Format::eB8G8R8Sint : return 3;
2396 case Format::eB8G8R8Srgb : return 3;
2397 case Format::eR8G8B8A8Unorm : return 4;
2398 case Format::eR8G8B8A8Snorm : return 4;
2399 case Format::eR8G8B8A8Uscaled : return 4;
2400 case Format::eR8G8B8A8Sscaled : return 4;
2401 case Format::eR8G8B8A8Uint : return 4;
2402 case Format::eR8G8B8A8Sint : return 4;
2403 case Format::eR8G8B8A8Srgb : return 4;
2404 case Format::eB8G8R8A8Unorm : return 4;
2405 case Format::eB8G8R8A8Snorm : return 4;
2406 case Format::eB8G8R8A8Uscaled : return 4;
2407 case Format::eB8G8R8A8Sscaled : return 4;
2408 case Format::eB8G8R8A8Uint : return 4;
2409 case Format::eB8G8R8A8Sint : return 4;
2410 case Format::eB8G8R8A8Srgb : return 4;
2411 case Format::eA8B8G8R8UnormPack32 : return 4;
2412 case Format::eA8B8G8R8SnormPack32 : return 4;
2413 case Format::eA8B8G8R8UscaledPack32 : return 4;
2414 case Format::eA8B8G8R8SscaledPack32 : return 4;
2415 case Format::eA8B8G8R8UintPack32 : return 4;
2416 case Format::eA8B8G8R8SintPack32 : return 4;
2417 case Format::eA8B8G8R8SrgbPack32 : return 4;
2418 case Format::eA2R10G10B10UnormPack32 : return 4;
2419 case Format::eA2R10G10B10SnormPack32 : return 4;
2420 case Format::eA2R10G10B10UscaledPack32 : return 4;
2421 case Format::eA2R10G10B10SscaledPack32 : return 4;
2422 case Format::eA2R10G10B10UintPack32 : return 4;
2423 case Format::eA2R10G10B10SintPack32 : return 4;
2424 case Format::eA2B10G10R10UnormPack32 : return 4;
2425 case Format::eA2B10G10R10SnormPack32 : return 4;
2426 case Format::eA2B10G10R10UscaledPack32 : return 4;
2427 case Format::eA2B10G10R10SscaledPack32 : return 4;
2428 case Format::eA2B10G10R10UintPack32 : return 4;
2429 case Format::eA2B10G10R10SintPack32 : return 4;
2430 case Format::eR16Unorm : return 1;
2431 case Format::eR16Snorm : return 1;
2432 case Format::eR16Uscaled : return 1;
2433 case Format::eR16Sscaled : return 1;
2434 case Format::eR16Uint : return 1;
2435 case Format::eR16Sint : return 1;
2436 case Format::eR16Sfloat : return 1;
2437 case Format::eR16G16Unorm : return 2;
2438 case Format::eR16G16Snorm : return 2;
2439 case Format::eR16G16Uscaled : return 2;
2440 case Format::eR16G16Sscaled : return 2;
2441 case Format::eR16G16Uint : return 2;
2442 case Format::eR16G16Sint : return 2;
2443 case Format::eR16G16Sfloat : return 2;
2444 case Format::eR16G16B16Unorm : return 3;
2445 case Format::eR16G16B16Snorm : return 3;
2446 case Format::eR16G16B16Uscaled : return 3;
2447 case Format::eR16G16B16Sscaled : return 3;
2448 case Format::eR16G16B16Uint : return 3;
2449 case Format::eR16G16B16Sint : return 3;
2450 case Format::eR16G16B16Sfloat : return 3;
2451 case Format::eR16G16B16A16Unorm : return 4;
2452 case Format::eR16G16B16A16Snorm : return 4;
2453 case Format::eR16G16B16A16Uscaled : return 4;
2454 case Format::eR16G16B16A16Sscaled : return 4;
2455 case Format::eR16G16B16A16Uint : return 4;
2456 case Format::eR16G16B16A16Sint : return 4;
2457 case Format::eR16G16B16A16Sfloat : return 4;
2458 case Format::eR32Uint : return 1;
2459 case Format::eR32Sint : return 1;
2460 case Format::eR32Sfloat : return 1;
2461 case Format::eR32G32Uint : return 2;
2462 case Format::eR32G32Sint : return 2;
2463 case Format::eR32G32Sfloat : return 2;
2464 case Format::eR32G32B32Uint : return 3;
2465 case Format::eR32G32B32Sint : return 3;
2466 case Format::eR32G32B32Sfloat : return 3;
2467 case Format::eR32G32B32A32Uint : return 4;
2468 case Format::eR32G32B32A32Sint : return 4;
2469 case Format::eR32G32B32A32Sfloat : return 4;
2470 case Format::eR64Uint : return 1;
2471 case Format::eR64Sint : return 1;
2472 case Format::eR64Sfloat : return 1;
2473 case Format::eR64G64Uint : return 2;
2474 case Format::eR64G64Sint : return 2;
2475 case Format::eR64G64Sfloat : return 2;
2476 case Format::eR64G64B64Uint : return 3;
2477 case Format::eR64G64B64Sint : return 3;
2478 case Format::eR64G64B64Sfloat : return 3;
2479 case Format::eR64G64B64A64Uint : return 4;
2480 case Format::eR64G64B64A64Sint : return 4;
2481 case Format::eR64G64B64A64Sfloat : return 4;
2482 case Format::eB10G11R11UfloatPack32 : return 3;
2483 case Format::eE5B9G9R9UfloatPack32 : return 3;
2484 case Format::eD16Unorm : return 1;
2485 case Format::eX8D24UnormPack32 : return 1;
2486 case Format::eD32Sfloat : return 1;
2487 case Format::eS8Uint : return 1;
2488 case Format::eD16UnormS8Uint : return 2;
2489 case Format::eD24UnormS8Uint : return 2;
2490 case Format::eD32SfloatS8Uint : return 2;
2491 case Format::eBc1RgbUnormBlock : return 3;
2492 case Format::eBc1RgbSrgbBlock : return 3;
2493 case Format::eBc1RgbaUnormBlock : return 4;
2494 case Format::eBc1RgbaSrgbBlock : return 4;
2495 case Format::eBc2UnormBlock : return 4;
2496 case Format::eBc2SrgbBlock : return 4;
2497 case Format::eBc3UnormBlock : return 4;
2498 case Format::eBc3SrgbBlock : return 4;
2499 case Format::eBc4UnormBlock : return 1;
2500 case Format::eBc4SnormBlock : return 1;
2501 case Format::eBc5UnormBlock : return 2;
2502 case Format::eBc5SnormBlock : return 2;
2503 case Format::eBc6HUfloatBlock : return 3;
2504 case Format::eBc6HSfloatBlock : return 3;
2505 case Format::eBc7UnormBlock : return 4;
2506 case Format::eBc7SrgbBlock : return 4;
2507 case Format::eEtc2R8G8B8UnormBlock : return 3;
2508 case Format::eEtc2R8G8B8SrgbBlock : return 3;
2509 case Format::eEtc2R8G8B8A1UnormBlock : return 4;
2510 case Format::eEtc2R8G8B8A1SrgbBlock : return 4;
2511 case Format::eEtc2R8G8B8A8UnormBlock : return 4;
2512 case Format::eEtc2R8G8B8A8SrgbBlock : return 4;
2513 case Format::eEacR11UnormBlock : return 1;
2514 case Format::eEacR11SnormBlock : return 1;
2515 case Format::eEacR11G11UnormBlock : return 2;
2516 case Format::eEacR11G11SnormBlock : return 2;
2517 case Format::eAstc4x4UnormBlock : return 4;
2518 case Format::eAstc4x4SrgbBlock : return 4;
2519 case Format::eAstc5x4UnormBlock : return 4;
2520 case Format::eAstc5x4SrgbBlock : return 4;
2521 case Format::eAstc5x5UnormBlock : return 4;
2522 case Format::eAstc5x5SrgbBlock : return 4;
2523 case Format::eAstc6x5UnormBlock : return 4;
2524 case Format::eAstc6x5SrgbBlock : return 4;
2525 case Format::eAstc6x6UnormBlock : return 4;
2526 case Format::eAstc6x6SrgbBlock : return 4;
2527 case Format::eAstc8x5UnormBlock : return 4;
2528 case Format::eAstc8x5SrgbBlock : return 4;
2529 case Format::eAstc8x6UnormBlock : return 4;
2530 case Format::eAstc8x6SrgbBlock : return 4;
2531 case Format::eAstc8x8UnormBlock : return 4;
2532 case Format::eAstc8x8SrgbBlock : return 4;
2533 case Format::eAstc10x5UnormBlock : return 4;
2534 case Format::eAstc10x5SrgbBlock : return 4;
2535 case Format::eAstc10x6UnormBlock : return 4;
2536 case Format::eAstc10x6SrgbBlock : return 4;
2537 case Format::eAstc10x8UnormBlock : return 4;
2538 case Format::eAstc10x8SrgbBlock : return 4;
2539 case Format::eAstc10x10UnormBlock : return 4;
2540 case Format::eAstc10x10SrgbBlock : return 4;
2541 case Format::eAstc12x10UnormBlock : return 4;
2542 case Format::eAstc12x10SrgbBlock : return 4;
2543 case Format::eAstc12x12UnormBlock : return 4;
2544 case Format::eAstc12x12SrgbBlock : return 4;
2545 case Format::eG8B8G8R8422Unorm : return 4;
2546 case Format::eB8G8R8G8422Unorm : return 4;
2547 case Format::eG8B8R83Plane420Unorm : return 3;
2548 case Format::eG8B8R82Plane420Unorm : return 3;
2549 case Format::eG8B8R83Plane422Unorm : return 3;
2550 case Format::eG8B8R82Plane422Unorm : return 3;
2551 case Format::eG8B8R83Plane444Unorm : return 3;
2552 case Format::eR10X6UnormPack16 : return 1;
2553 case Format::eR10X6G10X6Unorm2Pack16 : return 2;
2554 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16 : return 4;
2555 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16 : return 4;
2556 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16 : return 4;
2557 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16 : return 3;
2558 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16 : return 3;
2559 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16 : return 3;
2560 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16 : return 3;
2561 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16 : return 3;
2562 case Format::eR12X4UnormPack16 : return 1;
2563 case Format::eR12X4G12X4Unorm2Pack16 : return 2;
2564 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16 : return 4;
2565 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16 : return 4;
2566 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16 : return 4;
2567 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16 : return 3;
2568 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16 : return 3;
2569 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16 : return 3;
2570 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16 : return 3;
2571 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16 : return 3;
2572 case Format::eG16B16G16R16422Unorm : return 4;
2573 case Format::eB16G16R16G16422Unorm : return 4;
2574 case Format::eG16B16R163Plane420Unorm : return 3;
2575 case Format::eG16B16R162Plane420Unorm : return 3;
2576 case Format::eG16B16R163Plane422Unorm : return 3;
2577 case Format::eG16B16R162Plane422Unorm : return 3;
2578 case Format::eG16B16R163Plane444Unorm : return 3;
2579 case Format::eG8B8R82Plane444Unorm : return 3;
2580 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16 : return 3;
2581 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16 : return 3;
2582 case Format::eG16B16R162Plane444Unorm : return 3;
2583 case Format::eA4R4G4B4UnormPack16 : return 4;
2584 case Format::eA4B4G4R4UnormPack16 : return 4;
2585 case Format::eAstc4x4SfloatBlock : return 4;
2586 case Format::eAstc5x4SfloatBlock : return 4;
2587 case Format::eAstc5x5SfloatBlock : return 4;
2588 case Format::eAstc6x5SfloatBlock : return 4;
2589 case Format::eAstc6x6SfloatBlock : return 4;
2590 case Format::eAstc8x5SfloatBlock : return 4;
2591 case Format::eAstc8x6SfloatBlock : return 4;
2592 case Format::eAstc8x8SfloatBlock : return 4;
2593 case Format::eAstc10x5SfloatBlock : return 4;
2594 case Format::eAstc10x6SfloatBlock : return 4;
2595 case Format::eAstc10x8SfloatBlock : return 4;
2596 case Format::eAstc10x10SfloatBlock : return 4;
2597 case Format::eAstc12x10SfloatBlock : return 4;
2598 case Format::eAstc12x12SfloatBlock : return 4;
2599 case Format::eA1B5G5R5UnormPack16 : return 4;
2600 case Format::eA8Unorm : return 1;
2601 case Format::ePvrtc12BppUnormBlockIMG : return 4;
2602 case Format::ePvrtc14BppUnormBlockIMG : return 4;
2603 case Format::ePvrtc22BppUnormBlockIMG : return 4;
2604 case Format::ePvrtc24BppUnormBlockIMG : return 4;
2605 case Format::ePvrtc12BppSrgbBlockIMG : return 4;
2606 case Format::ePvrtc14BppSrgbBlockIMG : return 4;
2607 case Format::ePvrtc22BppSrgbBlockIMG : return 4;
2608 case Format::ePvrtc24BppSrgbBlockIMG : return 4;
2609 case Format::eAstc3x3x3UnormBlockEXT : return 4;
2610 case Format::eAstc3x3x3SrgbBlockEXT : return 4;
2611 case Format::eAstc3x3x3SfloatBlockEXT : return 4;
2612 case Format::eAstc4x3x3UnormBlockEXT : return 4;
2613 case Format::eAstc4x3x3SrgbBlockEXT : return 4;
2614 case Format::eAstc4x3x3SfloatBlockEXT : return 4;
2615 case Format::eAstc4x4x3UnormBlockEXT : return 4;
2616 case Format::eAstc4x4x3SrgbBlockEXT : return 4;
2617 case Format::eAstc4x4x3SfloatBlockEXT : return 4;
2618 case Format::eAstc4x4x4UnormBlockEXT : return 4;
2619 case Format::eAstc4x4x4SrgbBlockEXT : return 4;
2620 case Format::eAstc4x4x4SfloatBlockEXT : return 4;
2621 case Format::eAstc5x4x4UnormBlockEXT : return 4;
2622 case Format::eAstc5x4x4SrgbBlockEXT : return 4;
2623 case Format::eAstc5x4x4SfloatBlockEXT : return 4;
2624 case Format::eAstc5x5x4UnormBlockEXT : return 4;
2625 case Format::eAstc5x5x4SrgbBlockEXT : return 4;
2626 case Format::eAstc5x5x4SfloatBlockEXT : return 4;
2627 case Format::eAstc5x5x5UnormBlockEXT : return 4;
2628 case Format::eAstc5x5x5SrgbBlockEXT : return 4;
2629 case Format::eAstc5x5x5SfloatBlockEXT : return 4;
2630 case Format::eAstc6x5x5UnormBlockEXT : return 4;
2631 case Format::eAstc6x5x5SrgbBlockEXT : return 4;
2632 case Format::eAstc6x5x5SfloatBlockEXT : return 4;
2633 case Format::eAstc6x6x5UnormBlockEXT : return 4;
2634 case Format::eAstc6x6x5SrgbBlockEXT : return 4;
2635 case Format::eAstc6x6x5SfloatBlockEXT : return 4;
2636 case Format::eAstc6x6x6UnormBlockEXT : return 4;
2637 case Format::eAstc6x6x6SrgbBlockEXT : return 4;
2638 case Format::eAstc6x6x6SfloatBlockEXT : return 4;
2639 case Format::eR8BoolARM : return 1;
2640 case Format::eR16G16Sfixed5NV : return 2;
2641 case Format::eR10X6UintPack16ARM : return 1;
2642 case Format::eR10X6G10X6Uint2Pack16ARM : return 2;
2643 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM : return 4;
2644 case Format::eR12X4UintPack16ARM : return 1;
2645 case Format::eR12X4G12X4Uint2Pack16ARM : return 2;
2646 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM : return 4;
2647 case Format::eR14X2UintPack16ARM : return 1;
2648 case Format::eR14X2G14X2Uint2Pack16ARM : return 2;
2649 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM : return 4;
2650 case Format::eR14X2UnormPack16ARM : return 1;
2651 case Format::eR14X2G14X2Unorm2Pack16ARM : return 2;
2652 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM : return 4;
2653 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM: return 3;
2654 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return 3;
2655
2656 default: return 0;
2657 }
2658 }
2659
2660 // The name of the component
2661 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 char const * componentName( Format format, uint8_t component )
2662 {
2663 switch ( format )
2664 {
2665 case Format::eR4G4UnormPack8:
2666 switch ( component )
2667 {
2668 case 0 : return "R";
2669 case 1 : return "G";
2670 default: VULKAN_HPP_ASSERT( false ); return "";
2671 }
2672 case Format::eR4G4B4A4UnormPack16:
2673 switch ( component )
2674 {
2675 case 0 : return "R";
2676 case 1 : return "G";
2677 case 2 : return "B";
2678 case 3 : return "A";
2679 default: VULKAN_HPP_ASSERT( false ); return "";
2680 }
2681 case Format::eB4G4R4A4UnormPack16:
2682 switch ( component )
2683 {
2684 case 0 : return "B";
2685 case 1 : return "G";
2686 case 2 : return "R";
2687 case 3 : return "A";
2688 default: VULKAN_HPP_ASSERT( false ); return "";
2689 }
2690 case Format::eR5G6B5UnormPack16:
2691 switch ( component )
2692 {
2693 case 0 : return "R";
2694 case 1 : return "G";
2695 case 2 : return "B";
2696 default: VULKAN_HPP_ASSERT( false ); return "";
2697 }
2698 case Format::eB5G6R5UnormPack16:
2699 switch ( component )
2700 {
2701 case 0 : return "B";
2702 case 1 : return "G";
2703 case 2 : return "R";
2704 default: VULKAN_HPP_ASSERT( false ); return "";
2705 }
2706 case Format::eR5G5B5A1UnormPack16:
2707 switch ( component )
2708 {
2709 case 0 : return "R";
2710 case 1 : return "G";
2711 case 2 : return "B";
2712 case 3 : return "A";
2713 default: VULKAN_HPP_ASSERT( false ); return "";
2714 }
2715 case Format::eB5G5R5A1UnormPack16:
2716 switch ( component )
2717 {
2718 case 0 : return "B";
2719 case 1 : return "G";
2720 case 2 : return "R";
2721 case 3 : return "A";
2722 default: VULKAN_HPP_ASSERT( false ); return "";
2723 }
2724 case Format::eA1R5G5B5UnormPack16:
2725 switch ( component )
2726 {
2727 case 0 : return "A";
2728 case 1 : return "R";
2729 case 2 : return "G";
2730 case 3 : return "B";
2731 default: VULKAN_HPP_ASSERT( false ); return "";
2732 }
2733 case Format::eR8Unorm:
2734 switch ( component )
2735 {
2736 case 0 : return "R";
2737 default: VULKAN_HPP_ASSERT( false ); return "";
2738 }
2739 case Format::eR8Snorm:
2740 switch ( component )
2741 {
2742 case 0 : return "R";
2743 default: VULKAN_HPP_ASSERT( false ); return "";
2744 }
2745 case Format::eR8Uscaled:
2746 switch ( component )
2747 {
2748 case 0 : return "R";
2749 default: VULKAN_HPP_ASSERT( false ); return "";
2750 }
2751 case Format::eR8Sscaled:
2752 switch ( component )
2753 {
2754 case 0 : return "R";
2755 default: VULKAN_HPP_ASSERT( false ); return "";
2756 }
2757 case Format::eR8Uint:
2758 switch ( component )
2759 {
2760 case 0 : return "R";
2761 default: VULKAN_HPP_ASSERT( false ); return "";
2762 }
2763 case Format::eR8Sint:
2764 switch ( component )
2765 {
2766 case 0 : return "R";
2767 default: VULKAN_HPP_ASSERT( false ); return "";
2768 }
2769 case Format::eR8Srgb:
2770 switch ( component )
2771 {
2772 case 0 : return "R";
2773 default: VULKAN_HPP_ASSERT( false ); return "";
2774 }
2775 case Format::eR8G8Unorm:
2776 switch ( component )
2777 {
2778 case 0 : return "R";
2779 case 1 : return "G";
2780 default: VULKAN_HPP_ASSERT( false ); return "";
2781 }
2782 case Format::eR8G8Snorm:
2783 switch ( component )
2784 {
2785 case 0 : return "R";
2786 case 1 : return "G";
2787 default: VULKAN_HPP_ASSERT( false ); return "";
2788 }
2789 case Format::eR8G8Uscaled:
2790 switch ( component )
2791 {
2792 case 0 : return "R";
2793 case 1 : return "G";
2794 default: VULKAN_HPP_ASSERT( false ); return "";
2795 }
2796 case Format::eR8G8Sscaled:
2797 switch ( component )
2798 {
2799 case 0 : return "R";
2800 case 1 : return "G";
2801 default: VULKAN_HPP_ASSERT( false ); return "";
2802 }
2803 case Format::eR8G8Uint:
2804 switch ( component )
2805 {
2806 case 0 : return "R";
2807 case 1 : return "G";
2808 default: VULKAN_HPP_ASSERT( false ); return "";
2809 }
2810 case Format::eR8G8Sint:
2811 switch ( component )
2812 {
2813 case 0 : return "R";
2814 case 1 : return "G";
2815 default: VULKAN_HPP_ASSERT( false ); return "";
2816 }
2817 case Format::eR8G8Srgb:
2818 switch ( component )
2819 {
2820 case 0 : return "R";
2821 case 1 : return "G";
2822 default: VULKAN_HPP_ASSERT( false ); return "";
2823 }
2824 case Format::eR8G8B8Unorm:
2825 switch ( component )
2826 {
2827 case 0 : return "R";
2828 case 1 : return "G";
2829 case 2 : return "B";
2830 default: VULKAN_HPP_ASSERT( false ); return "";
2831 }
2832 case Format::eR8G8B8Snorm:
2833 switch ( component )
2834 {
2835 case 0 : return "R";
2836 case 1 : return "G";
2837 case 2 : return "B";
2838 default: VULKAN_HPP_ASSERT( false ); return "";
2839 }
2840 case Format::eR8G8B8Uscaled:
2841 switch ( component )
2842 {
2843 case 0 : return "R";
2844 case 1 : return "G";
2845 case 2 : return "B";
2846 default: VULKAN_HPP_ASSERT( false ); return "";
2847 }
2848 case Format::eR8G8B8Sscaled:
2849 switch ( component )
2850 {
2851 case 0 : return "R";
2852 case 1 : return "G";
2853 case 2 : return "B";
2854 default: VULKAN_HPP_ASSERT( false ); return "";
2855 }
2856 case Format::eR8G8B8Uint:
2857 switch ( component )
2858 {
2859 case 0 : return "R";
2860 case 1 : return "G";
2861 case 2 : return "B";
2862 default: VULKAN_HPP_ASSERT( false ); return "";
2863 }
2864 case Format::eR8G8B8Sint:
2865 switch ( component )
2866 {
2867 case 0 : return "R";
2868 case 1 : return "G";
2869 case 2 : return "B";
2870 default: VULKAN_HPP_ASSERT( false ); return "";
2871 }
2872 case Format::eR8G8B8Srgb:
2873 switch ( component )
2874 {
2875 case 0 : return "R";
2876 case 1 : return "G";
2877 case 2 : return "B";
2878 default: VULKAN_HPP_ASSERT( false ); return "";
2879 }
2880 case Format::eB8G8R8Unorm:
2881 switch ( component )
2882 {
2883 case 0 : return "B";
2884 case 1 : return "G";
2885 case 2 : return "R";
2886 default: VULKAN_HPP_ASSERT( false ); return "";
2887 }
2888 case Format::eB8G8R8Snorm:
2889 switch ( component )
2890 {
2891 case 0 : return "B";
2892 case 1 : return "G";
2893 case 2 : return "R";
2894 default: VULKAN_HPP_ASSERT( false ); return "";
2895 }
2896 case Format::eB8G8R8Uscaled:
2897 switch ( component )
2898 {
2899 case 0 : return "B";
2900 case 1 : return "G";
2901 case 2 : return "R";
2902 default: VULKAN_HPP_ASSERT( false ); return "";
2903 }
2904 case Format::eB8G8R8Sscaled:
2905 switch ( component )
2906 {
2907 case 0 : return "B";
2908 case 1 : return "G";
2909 case 2 : return "R";
2910 default: VULKAN_HPP_ASSERT( false ); return "";
2911 }
2912 case Format::eB8G8R8Uint:
2913 switch ( component )
2914 {
2915 case 0 : return "B";
2916 case 1 : return "G";
2917 case 2 : return "R";
2918 default: VULKAN_HPP_ASSERT( false ); return "";
2919 }
2920 case Format::eB8G8R8Sint:
2921 switch ( component )
2922 {
2923 case 0 : return "B";
2924 case 1 : return "G";
2925 case 2 : return "R";
2926 default: VULKAN_HPP_ASSERT( false ); return "";
2927 }
2928 case Format::eB8G8R8Srgb:
2929 switch ( component )
2930 {
2931 case 0 : return "B";
2932 case 1 : return "G";
2933 case 2 : return "R";
2934 default: VULKAN_HPP_ASSERT( false ); return "";
2935 }
2936 case Format::eR8G8B8A8Unorm:
2937 switch ( component )
2938 {
2939 case 0 : return "R";
2940 case 1 : return "G";
2941 case 2 : return "B";
2942 case 3 : return "A";
2943 default: VULKAN_HPP_ASSERT( false ); return "";
2944 }
2945 case Format::eR8G8B8A8Snorm:
2946 switch ( component )
2947 {
2948 case 0 : return "R";
2949 case 1 : return "G";
2950 case 2 : return "B";
2951 case 3 : return "A";
2952 default: VULKAN_HPP_ASSERT( false ); return "";
2953 }
2954 case Format::eR8G8B8A8Uscaled:
2955 switch ( component )
2956 {
2957 case 0 : return "R";
2958 case 1 : return "G";
2959 case 2 : return "B";
2960 case 3 : return "A";
2961 default: VULKAN_HPP_ASSERT( false ); return "";
2962 }
2963 case Format::eR8G8B8A8Sscaled:
2964 switch ( component )
2965 {
2966 case 0 : return "R";
2967 case 1 : return "G";
2968 case 2 : return "B";
2969 case 3 : return "A";
2970 default: VULKAN_HPP_ASSERT( false ); return "";
2971 }
2972 case Format::eR8G8B8A8Uint:
2973 switch ( component )
2974 {
2975 case 0 : return "R";
2976 case 1 : return "G";
2977 case 2 : return "B";
2978 case 3 : return "A";
2979 default: VULKAN_HPP_ASSERT( false ); return "";
2980 }
2981 case Format::eR8G8B8A8Sint:
2982 switch ( component )
2983 {
2984 case 0 : return "R";
2985 case 1 : return "G";
2986 case 2 : return "B";
2987 case 3 : return "A";
2988 default: VULKAN_HPP_ASSERT( false ); return "";
2989 }
2990 case Format::eR8G8B8A8Srgb:
2991 switch ( component )
2992 {
2993 case 0 : return "R";
2994 case 1 : return "G";
2995 case 2 : return "B";
2996 case 3 : return "A";
2997 default: VULKAN_HPP_ASSERT( false ); return "";
2998 }
2999 case Format::eB8G8R8A8Unorm:
3000 switch ( component )
3001 {
3002 case 0 : return "B";
3003 case 1 : return "G";
3004 case 2 : return "R";
3005 case 3 : return "A";
3006 default: VULKAN_HPP_ASSERT( false ); return "";
3007 }
3008 case Format::eB8G8R8A8Snorm:
3009 switch ( component )
3010 {
3011 case 0 : return "B";
3012 case 1 : return "G";
3013 case 2 : return "R";
3014 case 3 : return "A";
3015 default: VULKAN_HPP_ASSERT( false ); return "";
3016 }
3017 case Format::eB8G8R8A8Uscaled:
3018 switch ( component )
3019 {
3020 case 0 : return "B";
3021 case 1 : return "G";
3022 case 2 : return "R";
3023 case 3 : return "A";
3024 default: VULKAN_HPP_ASSERT( false ); return "";
3025 }
3026 case Format::eB8G8R8A8Sscaled:
3027 switch ( component )
3028 {
3029 case 0 : return "B";
3030 case 1 : return "G";
3031 case 2 : return "R";
3032 case 3 : return "A";
3033 default: VULKAN_HPP_ASSERT( false ); return "";
3034 }
3035 case Format::eB8G8R8A8Uint:
3036 switch ( component )
3037 {
3038 case 0 : return "B";
3039 case 1 : return "G";
3040 case 2 : return "R";
3041 case 3 : return "A";
3042 default: VULKAN_HPP_ASSERT( false ); return "";
3043 }
3044 case Format::eB8G8R8A8Sint:
3045 switch ( component )
3046 {
3047 case 0 : return "B";
3048 case 1 : return "G";
3049 case 2 : return "R";
3050 case 3 : return "A";
3051 default: VULKAN_HPP_ASSERT( false ); return "";
3052 }
3053 case Format::eB8G8R8A8Srgb:
3054 switch ( component )
3055 {
3056 case 0 : return "B";
3057 case 1 : return "G";
3058 case 2 : return "R";
3059 case 3 : return "A";
3060 default: VULKAN_HPP_ASSERT( false ); return "";
3061 }
3062 case Format::eA8B8G8R8UnormPack32:
3063 switch ( component )
3064 {
3065 case 0 : return "A";
3066 case 1 : return "B";
3067 case 2 : return "G";
3068 case 3 : return "R";
3069 default: VULKAN_HPP_ASSERT( false ); return "";
3070 }
3071 case Format::eA8B8G8R8SnormPack32:
3072 switch ( component )
3073 {
3074 case 0 : return "A";
3075 case 1 : return "B";
3076 case 2 : return "G";
3077 case 3 : return "R";
3078 default: VULKAN_HPP_ASSERT( false ); return "";
3079 }
3080 case Format::eA8B8G8R8UscaledPack32:
3081 switch ( component )
3082 {
3083 case 0 : return "A";
3084 case 1 : return "B";
3085 case 2 : return "G";
3086 case 3 : return "R";
3087 default: VULKAN_HPP_ASSERT( false ); return "";
3088 }
3089 case Format::eA8B8G8R8SscaledPack32:
3090 switch ( component )
3091 {
3092 case 0 : return "A";
3093 case 1 : return "B";
3094 case 2 : return "G";
3095 case 3 : return "R";
3096 default: VULKAN_HPP_ASSERT( false ); return "";
3097 }
3098 case Format::eA8B8G8R8UintPack32:
3099 switch ( component )
3100 {
3101 case 0 : return "A";
3102 case 1 : return "B";
3103 case 2 : return "G";
3104 case 3 : return "R";
3105 default: VULKAN_HPP_ASSERT( false ); return "";
3106 }
3107 case Format::eA8B8G8R8SintPack32:
3108 switch ( component )
3109 {
3110 case 0 : return "A";
3111 case 1 : return "B";
3112 case 2 : return "G";
3113 case 3 : return "R";
3114 default: VULKAN_HPP_ASSERT( false ); return "";
3115 }
3116 case Format::eA8B8G8R8SrgbPack32:
3117 switch ( component )
3118 {
3119 case 0 : return "A";
3120 case 1 : return "B";
3121 case 2 : return "G";
3122 case 3 : return "R";
3123 default: VULKAN_HPP_ASSERT( false ); return "";
3124 }
3125 case Format::eA2R10G10B10UnormPack32:
3126 switch ( component )
3127 {
3128 case 0 : return "A";
3129 case 1 : return "R";
3130 case 2 : return "G";
3131 case 3 : return "B";
3132 default: VULKAN_HPP_ASSERT( false ); return "";
3133 }
3134 case Format::eA2R10G10B10SnormPack32:
3135 switch ( component )
3136 {
3137 case 0 : return "A";
3138 case 1 : return "R";
3139 case 2 : return "G";
3140 case 3 : return "B";
3141 default: VULKAN_HPP_ASSERT( false ); return "";
3142 }
3143 case Format::eA2R10G10B10UscaledPack32:
3144 switch ( component )
3145 {
3146 case 0 : return "A";
3147 case 1 : return "R";
3148 case 2 : return "G";
3149 case 3 : return "B";
3150 default: VULKAN_HPP_ASSERT( false ); return "";
3151 }
3152 case Format::eA2R10G10B10SscaledPack32:
3153 switch ( component )
3154 {
3155 case 0 : return "A";
3156 case 1 : return "R";
3157 case 2 : return "G";
3158 case 3 : return "B";
3159 default: VULKAN_HPP_ASSERT( false ); return "";
3160 }
3161 case Format::eA2R10G10B10UintPack32:
3162 switch ( component )
3163 {
3164 case 0 : return "A";
3165 case 1 : return "R";
3166 case 2 : return "G";
3167 case 3 : return "B";
3168 default: VULKAN_HPP_ASSERT( false ); return "";
3169 }
3170 case Format::eA2R10G10B10SintPack32:
3171 switch ( component )
3172 {
3173 case 0 : return "A";
3174 case 1 : return "R";
3175 case 2 : return "G";
3176 case 3 : return "B";
3177 default: VULKAN_HPP_ASSERT( false ); return "";
3178 }
3179 case Format::eA2B10G10R10UnormPack32:
3180 switch ( component )
3181 {
3182 case 0 : return "A";
3183 case 1 : return "B";
3184 case 2 : return "G";
3185 case 3 : return "R";
3186 default: VULKAN_HPP_ASSERT( false ); return "";
3187 }
3188 case Format::eA2B10G10R10SnormPack32:
3189 switch ( component )
3190 {
3191 case 0 : return "A";
3192 case 1 : return "B";
3193 case 2 : return "G";
3194 case 3 : return "R";
3195 default: VULKAN_HPP_ASSERT( false ); return "";
3196 }
3197 case Format::eA2B10G10R10UscaledPack32:
3198 switch ( component )
3199 {
3200 case 0 : return "A";
3201 case 1 : return "B";
3202 case 2 : return "G";
3203 case 3 : return "R";
3204 default: VULKAN_HPP_ASSERT( false ); return "";
3205 }
3206 case Format::eA2B10G10R10SscaledPack32:
3207 switch ( component )
3208 {
3209 case 0 : return "A";
3210 case 1 : return "B";
3211 case 2 : return "G";
3212 case 3 : return "R";
3213 default: VULKAN_HPP_ASSERT( false ); return "";
3214 }
3215 case Format::eA2B10G10R10UintPack32:
3216 switch ( component )
3217 {
3218 case 0 : return "A";
3219 case 1 : return "B";
3220 case 2 : return "G";
3221 case 3 : return "R";
3222 default: VULKAN_HPP_ASSERT( false ); return "";
3223 }
3224 case Format::eA2B10G10R10SintPack32:
3225 switch ( component )
3226 {
3227 case 0 : return "A";
3228 case 1 : return "B";
3229 case 2 : return "G";
3230 case 3 : return "R";
3231 default: VULKAN_HPP_ASSERT( false ); return "";
3232 }
3233 case Format::eR16Unorm:
3234 switch ( component )
3235 {
3236 case 0 : return "R";
3237 default: VULKAN_HPP_ASSERT( false ); return "";
3238 }
3239 case Format::eR16Snorm:
3240 switch ( component )
3241 {
3242 case 0 : return "R";
3243 default: VULKAN_HPP_ASSERT( false ); return "";
3244 }
3245 case Format::eR16Uscaled:
3246 switch ( component )
3247 {
3248 case 0 : return "R";
3249 default: VULKAN_HPP_ASSERT( false ); return "";
3250 }
3251 case Format::eR16Sscaled:
3252 switch ( component )
3253 {
3254 case 0 : return "R";
3255 default: VULKAN_HPP_ASSERT( false ); return "";
3256 }
3257 case Format::eR16Uint:
3258 switch ( component )
3259 {
3260 case 0 : return "R";
3261 default: VULKAN_HPP_ASSERT( false ); return "";
3262 }
3263 case Format::eR16Sint:
3264 switch ( component )
3265 {
3266 case 0 : return "R";
3267 default: VULKAN_HPP_ASSERT( false ); return "";
3268 }
3269 case Format::eR16Sfloat:
3270 switch ( component )
3271 {
3272 case 0 : return "R";
3273 default: VULKAN_HPP_ASSERT( false ); return "";
3274 }
3275 case Format::eR16G16Unorm:
3276 switch ( component )
3277 {
3278 case 0 : return "R";
3279 case 1 : return "G";
3280 default: VULKAN_HPP_ASSERT( false ); return "";
3281 }
3282 case Format::eR16G16Snorm:
3283 switch ( component )
3284 {
3285 case 0 : return "R";
3286 case 1 : return "G";
3287 default: VULKAN_HPP_ASSERT( false ); return "";
3288 }
3289 case Format::eR16G16Uscaled:
3290 switch ( component )
3291 {
3292 case 0 : return "R";
3293 case 1 : return "G";
3294 default: VULKAN_HPP_ASSERT( false ); return "";
3295 }
3296 case Format::eR16G16Sscaled:
3297 switch ( component )
3298 {
3299 case 0 : return "R";
3300 case 1 : return "G";
3301 default: VULKAN_HPP_ASSERT( false ); return "";
3302 }
3303 case Format::eR16G16Uint:
3304 switch ( component )
3305 {
3306 case 0 : return "R";
3307 case 1 : return "G";
3308 default: VULKAN_HPP_ASSERT( false ); return "";
3309 }
3310 case Format::eR16G16Sint:
3311 switch ( component )
3312 {
3313 case 0 : return "R";
3314 case 1 : return "G";
3315 default: VULKAN_HPP_ASSERT( false ); return "";
3316 }
3317 case Format::eR16G16Sfloat:
3318 switch ( component )
3319 {
3320 case 0 : return "R";
3321 case 1 : return "G";
3322 default: VULKAN_HPP_ASSERT( false ); return "";
3323 }
3324 case Format::eR16G16B16Unorm:
3325 switch ( component )
3326 {
3327 case 0 : return "R";
3328 case 1 : return "G";
3329 case 2 : return "B";
3330 default: VULKAN_HPP_ASSERT( false ); return "";
3331 }
3332 case Format::eR16G16B16Snorm:
3333 switch ( component )
3334 {
3335 case 0 : return "R";
3336 case 1 : return "G";
3337 case 2 : return "B";
3338 default: VULKAN_HPP_ASSERT( false ); return "";
3339 }
3340 case Format::eR16G16B16Uscaled:
3341 switch ( component )
3342 {
3343 case 0 : return "R";
3344 case 1 : return "G";
3345 case 2 : return "B";
3346 default: VULKAN_HPP_ASSERT( false ); return "";
3347 }
3348 case Format::eR16G16B16Sscaled:
3349 switch ( component )
3350 {
3351 case 0 : return "R";
3352 case 1 : return "G";
3353 case 2 : return "B";
3354 default: VULKAN_HPP_ASSERT( false ); return "";
3355 }
3356 case Format::eR16G16B16Uint:
3357 switch ( component )
3358 {
3359 case 0 : return "R";
3360 case 1 : return "G";
3361 case 2 : return "B";
3362 default: VULKAN_HPP_ASSERT( false ); return "";
3363 }
3364 case Format::eR16G16B16Sint:
3365 switch ( component )
3366 {
3367 case 0 : return "R";
3368 case 1 : return "G";
3369 case 2 : return "B";
3370 default: VULKAN_HPP_ASSERT( false ); return "";
3371 }
3372 case Format::eR16G16B16Sfloat:
3373 switch ( component )
3374 {
3375 case 0 : return "R";
3376 case 1 : return "G";
3377 case 2 : return "B";
3378 default: VULKAN_HPP_ASSERT( false ); return "";
3379 }
3380 case Format::eR16G16B16A16Unorm:
3381 switch ( component )
3382 {
3383 case 0 : return "R";
3384 case 1 : return "G";
3385 case 2 : return "B";
3386 case 3 : return "A";
3387 default: VULKAN_HPP_ASSERT( false ); return "";
3388 }
3389 case Format::eR16G16B16A16Snorm:
3390 switch ( component )
3391 {
3392 case 0 : return "R";
3393 case 1 : return "G";
3394 case 2 : return "B";
3395 case 3 : return "A";
3396 default: VULKAN_HPP_ASSERT( false ); return "";
3397 }
3398 case Format::eR16G16B16A16Uscaled:
3399 switch ( component )
3400 {
3401 case 0 : return "R";
3402 case 1 : return "G";
3403 case 2 : return "B";
3404 case 3 : return "A";
3405 default: VULKAN_HPP_ASSERT( false ); return "";
3406 }
3407 case Format::eR16G16B16A16Sscaled:
3408 switch ( component )
3409 {
3410 case 0 : return "R";
3411 case 1 : return "G";
3412 case 2 : return "B";
3413 case 3 : return "A";
3414 default: VULKAN_HPP_ASSERT( false ); return "";
3415 }
3416 case Format::eR16G16B16A16Uint:
3417 switch ( component )
3418 {
3419 case 0 : return "R";
3420 case 1 : return "G";
3421 case 2 : return "B";
3422 case 3 : return "A";
3423 default: VULKAN_HPP_ASSERT( false ); return "";
3424 }
3425 case Format::eR16G16B16A16Sint:
3426 switch ( component )
3427 {
3428 case 0 : return "R";
3429 case 1 : return "G";
3430 case 2 : return "B";
3431 case 3 : return "A";
3432 default: VULKAN_HPP_ASSERT( false ); return "";
3433 }
3434 case Format::eR16G16B16A16Sfloat:
3435 switch ( component )
3436 {
3437 case 0 : return "R";
3438 case 1 : return "G";
3439 case 2 : return "B";
3440 case 3 : return "A";
3441 default: VULKAN_HPP_ASSERT( false ); return "";
3442 }
3443 case Format::eR32Uint:
3444 switch ( component )
3445 {
3446 case 0 : return "R";
3447 default: VULKAN_HPP_ASSERT( false ); return "";
3448 }
3449 case Format::eR32Sint:
3450 switch ( component )
3451 {
3452 case 0 : return "R";
3453 default: VULKAN_HPP_ASSERT( false ); return "";
3454 }
3455 case Format::eR32Sfloat:
3456 switch ( component )
3457 {
3458 case 0 : return "R";
3459 default: VULKAN_HPP_ASSERT( false ); return "";
3460 }
3461 case Format::eR32G32Uint:
3462 switch ( component )
3463 {
3464 case 0 : return "R";
3465 case 1 : return "G";
3466 default: VULKAN_HPP_ASSERT( false ); return "";
3467 }
3468 case Format::eR32G32Sint:
3469 switch ( component )
3470 {
3471 case 0 : return "R";
3472 case 1 : return "G";
3473 default: VULKAN_HPP_ASSERT( false ); return "";
3474 }
3475 case Format::eR32G32Sfloat:
3476 switch ( component )
3477 {
3478 case 0 : return "R";
3479 case 1 : return "G";
3480 default: VULKAN_HPP_ASSERT( false ); return "";
3481 }
3482 case Format::eR32G32B32Uint:
3483 switch ( component )
3484 {
3485 case 0 : return "R";
3486 case 1 : return "G";
3487 case 2 : return "B";
3488 default: VULKAN_HPP_ASSERT( false ); return "";
3489 }
3490 case Format::eR32G32B32Sint:
3491 switch ( component )
3492 {
3493 case 0 : return "R";
3494 case 1 : return "G";
3495 case 2 : return "B";
3496 default: VULKAN_HPP_ASSERT( false ); return "";
3497 }
3498 case Format::eR32G32B32Sfloat:
3499 switch ( component )
3500 {
3501 case 0 : return "R";
3502 case 1 : return "G";
3503 case 2 : return "B";
3504 default: VULKAN_HPP_ASSERT( false ); return "";
3505 }
3506 case Format::eR32G32B32A32Uint:
3507 switch ( component )
3508 {
3509 case 0 : return "R";
3510 case 1 : return "G";
3511 case 2 : return "B";
3512 case 3 : return "A";
3513 default: VULKAN_HPP_ASSERT( false ); return "";
3514 }
3515 case Format::eR32G32B32A32Sint:
3516 switch ( component )
3517 {
3518 case 0 : return "R";
3519 case 1 : return "G";
3520 case 2 : return "B";
3521 case 3 : return "A";
3522 default: VULKAN_HPP_ASSERT( false ); return "";
3523 }
3524 case Format::eR32G32B32A32Sfloat:
3525 switch ( component )
3526 {
3527 case 0 : return "R";
3528 case 1 : return "G";
3529 case 2 : return "B";
3530 case 3 : return "A";
3531 default: VULKAN_HPP_ASSERT( false ); return "";
3532 }
3533 case Format::eR64Uint:
3534 switch ( component )
3535 {
3536 case 0 : return "R";
3537 default: VULKAN_HPP_ASSERT( false ); return "";
3538 }
3539 case Format::eR64Sint:
3540 switch ( component )
3541 {
3542 case 0 : return "R";
3543 default: VULKAN_HPP_ASSERT( false ); return "";
3544 }
3545 case Format::eR64Sfloat:
3546 switch ( component )
3547 {
3548 case 0 : return "R";
3549 default: VULKAN_HPP_ASSERT( false ); return "";
3550 }
3551 case Format::eR64G64Uint:
3552 switch ( component )
3553 {
3554 case 0 : return "R";
3555 case 1 : return "G";
3556 default: VULKAN_HPP_ASSERT( false ); return "";
3557 }
3558 case Format::eR64G64Sint:
3559 switch ( component )
3560 {
3561 case 0 : return "R";
3562 case 1 : return "G";
3563 default: VULKAN_HPP_ASSERT( false ); return "";
3564 }
3565 case Format::eR64G64Sfloat:
3566 switch ( component )
3567 {
3568 case 0 : return "R";
3569 case 1 : return "G";
3570 default: VULKAN_HPP_ASSERT( false ); return "";
3571 }
3572 case Format::eR64G64B64Uint:
3573 switch ( component )
3574 {
3575 case 0 : return "R";
3576 case 1 : return "G";
3577 case 2 : return "B";
3578 default: VULKAN_HPP_ASSERT( false ); return "";
3579 }
3580 case Format::eR64G64B64Sint:
3581 switch ( component )
3582 {
3583 case 0 : return "R";
3584 case 1 : return "G";
3585 case 2 : return "B";
3586 default: VULKAN_HPP_ASSERT( false ); return "";
3587 }
3588 case Format::eR64G64B64Sfloat:
3589 switch ( component )
3590 {
3591 case 0 : return "R";
3592 case 1 : return "G";
3593 case 2 : return "B";
3594 default: VULKAN_HPP_ASSERT( false ); return "";
3595 }
3596 case Format::eR64G64B64A64Uint:
3597 switch ( component )
3598 {
3599 case 0 : return "R";
3600 case 1 : return "G";
3601 case 2 : return "B";
3602 case 3 : return "A";
3603 default: VULKAN_HPP_ASSERT( false ); return "";
3604 }
3605 case Format::eR64G64B64A64Sint:
3606 switch ( component )
3607 {
3608 case 0 : return "R";
3609 case 1 : return "G";
3610 case 2 : return "B";
3611 case 3 : return "A";
3612 default: VULKAN_HPP_ASSERT( false ); return "";
3613 }
3614 case Format::eR64G64B64A64Sfloat:
3615 switch ( component )
3616 {
3617 case 0 : return "R";
3618 case 1 : return "G";
3619 case 2 : return "B";
3620 case 3 : return "A";
3621 default: VULKAN_HPP_ASSERT( false ); return "";
3622 }
3623 case Format::eB10G11R11UfloatPack32:
3624 switch ( component )
3625 {
3626 case 0 : return "B";
3627 case 1 : return "G";
3628 case 2 : return "R";
3629 default: VULKAN_HPP_ASSERT( false ); return "";
3630 }
3631 case Format::eE5B9G9R9UfloatPack32:
3632 switch ( component )
3633 {
3634 case 0 : return "B";
3635 case 1 : return "G";
3636 case 2 : return "R";
3637 default: VULKAN_HPP_ASSERT( false ); return "";
3638 }
3639 case Format::eD16Unorm:
3640 switch ( component )
3641 {
3642 case 0 : return "D";
3643 default: VULKAN_HPP_ASSERT( false ); return "";
3644 }
3645 case Format::eX8D24UnormPack32:
3646 switch ( component )
3647 {
3648 case 0 : return "D";
3649 default: VULKAN_HPP_ASSERT( false ); return "";
3650 }
3651 case Format::eD32Sfloat:
3652 switch ( component )
3653 {
3654 case 0 : return "D";
3655 default: VULKAN_HPP_ASSERT( false ); return "";
3656 }
3657 case Format::eS8Uint:
3658 switch ( component )
3659 {
3660 case 0 : return "S";
3661 default: VULKAN_HPP_ASSERT( false ); return "";
3662 }
3663 case Format::eD16UnormS8Uint:
3664 switch ( component )
3665 {
3666 case 0 : return "D";
3667 case 1 : return "S";
3668 default: VULKAN_HPP_ASSERT( false ); return "";
3669 }
3670 case Format::eD24UnormS8Uint:
3671 switch ( component )
3672 {
3673 case 0 : return "D";
3674 case 1 : return "S";
3675 default: VULKAN_HPP_ASSERT( false ); return "";
3676 }
3677 case Format::eD32SfloatS8Uint:
3678 switch ( component )
3679 {
3680 case 0 : return "D";
3681 case 1 : return "S";
3682 default: VULKAN_HPP_ASSERT( false ); return "";
3683 }
3684 case Format::eBc1RgbUnormBlock:
3685 switch ( component )
3686 {
3687 case 0 : return "R";
3688 case 1 : return "G";
3689 case 2 : return "B";
3690 default: VULKAN_HPP_ASSERT( false ); return "";
3691 }
3692 case Format::eBc1RgbSrgbBlock:
3693 switch ( component )
3694 {
3695 case 0 : return "R";
3696 case 1 : return "G";
3697 case 2 : return "B";
3698 default: VULKAN_HPP_ASSERT( false ); return "";
3699 }
3700 case Format::eBc1RgbaUnormBlock:
3701 switch ( component )
3702 {
3703 case 0 : return "R";
3704 case 1 : return "G";
3705 case 2 : return "B";
3706 case 3 : return "A";
3707 default: VULKAN_HPP_ASSERT( false ); return "";
3708 }
3709 case Format::eBc1RgbaSrgbBlock:
3710 switch ( component )
3711 {
3712 case 0 : return "R";
3713 case 1 : return "G";
3714 case 2 : return "B";
3715 case 3 : return "A";
3716 default: VULKAN_HPP_ASSERT( false ); return "";
3717 }
3718 case Format::eBc2UnormBlock:
3719 switch ( component )
3720 {
3721 case 0 : return "R";
3722 case 1 : return "G";
3723 case 2 : return "B";
3724 case 3 : return "A";
3725 default: VULKAN_HPP_ASSERT( false ); return "";
3726 }
3727 case Format::eBc2SrgbBlock:
3728 switch ( component )
3729 {
3730 case 0 : return "R";
3731 case 1 : return "G";
3732 case 2 : return "B";
3733 case 3 : return "A";
3734 default: VULKAN_HPP_ASSERT( false ); return "";
3735 }
3736 case Format::eBc3UnormBlock:
3737 switch ( component )
3738 {
3739 case 0 : return "R";
3740 case 1 : return "G";
3741 case 2 : return "B";
3742 case 3 : return "A";
3743 default: VULKAN_HPP_ASSERT( false ); return "";
3744 }
3745 case Format::eBc3SrgbBlock:
3746 switch ( component )
3747 {
3748 case 0 : return "R";
3749 case 1 : return "G";
3750 case 2 : return "B";
3751 case 3 : return "A";
3752 default: VULKAN_HPP_ASSERT( false ); return "";
3753 }
3754 case Format::eBc4UnormBlock:
3755 switch ( component )
3756 {
3757 case 0 : return "R";
3758 default: VULKAN_HPP_ASSERT( false ); return "";
3759 }
3760 case Format::eBc4SnormBlock:
3761 switch ( component )
3762 {
3763 case 0 : return "R";
3764 default: VULKAN_HPP_ASSERT( false ); return "";
3765 }
3766 case Format::eBc5UnormBlock:
3767 switch ( component )
3768 {
3769 case 0 : return "R";
3770 case 1 : return "G";
3771 default: VULKAN_HPP_ASSERT( false ); return "";
3772 }
3773 case Format::eBc5SnormBlock:
3774 switch ( component )
3775 {
3776 case 0 : return "R";
3777 case 1 : return "G";
3778 default: VULKAN_HPP_ASSERT( false ); return "";
3779 }
3780 case Format::eBc6HUfloatBlock:
3781 switch ( component )
3782 {
3783 case 0 : return "R";
3784 case 1 : return "G";
3785 case 2 : return "B";
3786 default: VULKAN_HPP_ASSERT( false ); return "";
3787 }
3788 case Format::eBc6HSfloatBlock:
3789 switch ( component )
3790 {
3791 case 0 : return "R";
3792 case 1 : return "G";
3793 case 2 : return "B";
3794 default: VULKAN_HPP_ASSERT( false ); return "";
3795 }
3796 case Format::eBc7UnormBlock:
3797 switch ( component )
3798 {
3799 case 0 : return "R";
3800 case 1 : return "G";
3801 case 2 : return "B";
3802 case 3 : return "A";
3803 default: VULKAN_HPP_ASSERT( false ); return "";
3804 }
3805 case Format::eBc7SrgbBlock:
3806 switch ( component )
3807 {
3808 case 0 : return "R";
3809 case 1 : return "G";
3810 case 2 : return "B";
3811 case 3 : return "A";
3812 default: VULKAN_HPP_ASSERT( false ); return "";
3813 }
3814 case Format::eEtc2R8G8B8UnormBlock:
3815 switch ( component )
3816 {
3817 case 0 : return "R";
3818 case 1 : return "G";
3819 case 2 : return "B";
3820 default: VULKAN_HPP_ASSERT( false ); return "";
3821 }
3822 case Format::eEtc2R8G8B8SrgbBlock:
3823 switch ( component )
3824 {
3825 case 0 : return "R";
3826 case 1 : return "G";
3827 case 2 : return "B";
3828 default: VULKAN_HPP_ASSERT( false ); return "";
3829 }
3830 case Format::eEtc2R8G8B8A1UnormBlock:
3831 switch ( component )
3832 {
3833 case 0 : return "R";
3834 case 1 : return "G";
3835 case 2 : return "B";
3836 case 3 : return "A";
3837 default: VULKAN_HPP_ASSERT( false ); return "";
3838 }
3839 case Format::eEtc2R8G8B8A1SrgbBlock:
3840 switch ( component )
3841 {
3842 case 0 : return "R";
3843 case 1 : return "G";
3844 case 2 : return "B";
3845 case 3 : return "A";
3846 default: VULKAN_HPP_ASSERT( false ); return "";
3847 }
3848 case Format::eEtc2R8G8B8A8UnormBlock:
3849 switch ( component )
3850 {
3851 case 0 : return "R";
3852 case 1 : return "G";
3853 case 2 : return "B";
3854 case 3 : return "A";
3855 default: VULKAN_HPP_ASSERT( false ); return "";
3856 }
3857 case Format::eEtc2R8G8B8A8SrgbBlock:
3858 switch ( component )
3859 {
3860 case 0 : return "R";
3861 case 1 : return "G";
3862 case 2 : return "B";
3863 case 3 : return "A";
3864 default: VULKAN_HPP_ASSERT( false ); return "";
3865 }
3866 case Format::eEacR11UnormBlock:
3867 switch ( component )
3868 {
3869 case 0 : return "R";
3870 default: VULKAN_HPP_ASSERT( false ); return "";
3871 }
3872 case Format::eEacR11SnormBlock:
3873 switch ( component )
3874 {
3875 case 0 : return "R";
3876 default: VULKAN_HPP_ASSERT( false ); return "";
3877 }
3878 case Format::eEacR11G11UnormBlock:
3879 switch ( component )
3880 {
3881 case 0 : return "R";
3882 case 1 : return "G";
3883 default: VULKAN_HPP_ASSERT( false ); return "";
3884 }
3885 case Format::eEacR11G11SnormBlock:
3886 switch ( component )
3887 {
3888 case 0 : return "R";
3889 case 1 : return "G";
3890 default: VULKAN_HPP_ASSERT( false ); return "";
3891 }
3892 case Format::eAstc4x4UnormBlock:
3893 switch ( component )
3894 {
3895 case 0 : return "R";
3896 case 1 : return "G";
3897 case 2 : return "B";
3898 case 3 : return "A";
3899 default: VULKAN_HPP_ASSERT( false ); return "";
3900 }
3901 case Format::eAstc4x4SrgbBlock:
3902 switch ( component )
3903 {
3904 case 0 : return "R";
3905 case 1 : return "G";
3906 case 2 : return "B";
3907 case 3 : return "A";
3908 default: VULKAN_HPP_ASSERT( false ); return "";
3909 }
3910 case Format::eAstc5x4UnormBlock:
3911 switch ( component )
3912 {
3913 case 0 : return "R";
3914 case 1 : return "G";
3915 case 2 : return "B";
3916 case 3 : return "A";
3917 default: VULKAN_HPP_ASSERT( false ); return "";
3918 }
3919 case Format::eAstc5x4SrgbBlock:
3920 switch ( component )
3921 {
3922 case 0 : return "R";
3923 case 1 : return "G";
3924 case 2 : return "B";
3925 case 3 : return "A";
3926 default: VULKAN_HPP_ASSERT( false ); return "";
3927 }
3928 case Format::eAstc5x5UnormBlock:
3929 switch ( component )
3930 {
3931 case 0 : return "R";
3932 case 1 : return "G";
3933 case 2 : return "B";
3934 case 3 : return "A";
3935 default: VULKAN_HPP_ASSERT( false ); return "";
3936 }
3937 case Format::eAstc5x5SrgbBlock:
3938 switch ( component )
3939 {
3940 case 0 : return "R";
3941 case 1 : return "G";
3942 case 2 : return "B";
3943 case 3 : return "A";
3944 default: VULKAN_HPP_ASSERT( false ); return "";
3945 }
3946 case Format::eAstc6x5UnormBlock:
3947 switch ( component )
3948 {
3949 case 0 : return "R";
3950 case 1 : return "G";
3951 case 2 : return "B";
3952 case 3 : return "A";
3953 default: VULKAN_HPP_ASSERT( false ); return "";
3954 }
3955 case Format::eAstc6x5SrgbBlock:
3956 switch ( component )
3957 {
3958 case 0 : return "R";
3959 case 1 : return "G";
3960 case 2 : return "B";
3961 case 3 : return "A";
3962 default: VULKAN_HPP_ASSERT( false ); return "";
3963 }
3964 case Format::eAstc6x6UnormBlock:
3965 switch ( component )
3966 {
3967 case 0 : return "R";
3968 case 1 : return "G";
3969 case 2 : return "B";
3970 case 3 : return "A";
3971 default: VULKAN_HPP_ASSERT( false ); return "";
3972 }
3973 case Format::eAstc6x6SrgbBlock:
3974 switch ( component )
3975 {
3976 case 0 : return "R";
3977 case 1 : return "G";
3978 case 2 : return "B";
3979 case 3 : return "A";
3980 default: VULKAN_HPP_ASSERT( false ); return "";
3981 }
3982 case Format::eAstc8x5UnormBlock:
3983 switch ( component )
3984 {
3985 case 0 : return "R";
3986 case 1 : return "G";
3987 case 2 : return "B";
3988 case 3 : return "A";
3989 default: VULKAN_HPP_ASSERT( false ); return "";
3990 }
3991 case Format::eAstc8x5SrgbBlock:
3992 switch ( component )
3993 {
3994 case 0 : return "R";
3995 case 1 : return "G";
3996 case 2 : return "B";
3997 case 3 : return "A";
3998 default: VULKAN_HPP_ASSERT( false ); return "";
3999 }
4000 case Format::eAstc8x6UnormBlock:
4001 switch ( component )
4002 {
4003 case 0 : return "R";
4004 case 1 : return "G";
4005 case 2 : return "B";
4006 case 3 : return "A";
4007 default: VULKAN_HPP_ASSERT( false ); return "";
4008 }
4009 case Format::eAstc8x6SrgbBlock:
4010 switch ( component )
4011 {
4012 case 0 : return "R";
4013 case 1 : return "G";
4014 case 2 : return "B";
4015 case 3 : return "A";
4016 default: VULKAN_HPP_ASSERT( false ); return "";
4017 }
4018 case Format::eAstc8x8UnormBlock:
4019 switch ( component )
4020 {
4021 case 0 : return "R";
4022 case 1 : return "G";
4023 case 2 : return "B";
4024 case 3 : return "A";
4025 default: VULKAN_HPP_ASSERT( false ); return "";
4026 }
4027 case Format::eAstc8x8SrgbBlock:
4028 switch ( component )
4029 {
4030 case 0 : return "R";
4031 case 1 : return "G";
4032 case 2 : return "B";
4033 case 3 : return "A";
4034 default: VULKAN_HPP_ASSERT( false ); return "";
4035 }
4036 case Format::eAstc10x5UnormBlock:
4037 switch ( component )
4038 {
4039 case 0 : return "R";
4040 case 1 : return "G";
4041 case 2 : return "B";
4042 case 3 : return "A";
4043 default: VULKAN_HPP_ASSERT( false ); return "";
4044 }
4045 case Format::eAstc10x5SrgbBlock:
4046 switch ( component )
4047 {
4048 case 0 : return "R";
4049 case 1 : return "G";
4050 case 2 : return "B";
4051 case 3 : return "A";
4052 default: VULKAN_HPP_ASSERT( false ); return "";
4053 }
4054 case Format::eAstc10x6UnormBlock:
4055 switch ( component )
4056 {
4057 case 0 : return "R";
4058 case 1 : return "G";
4059 case 2 : return "B";
4060 case 3 : return "A";
4061 default: VULKAN_HPP_ASSERT( false ); return "";
4062 }
4063 case Format::eAstc10x6SrgbBlock:
4064 switch ( component )
4065 {
4066 case 0 : return "R";
4067 case 1 : return "G";
4068 case 2 : return "B";
4069 case 3 : return "A";
4070 default: VULKAN_HPP_ASSERT( false ); return "";
4071 }
4072 case Format::eAstc10x8UnormBlock:
4073 switch ( component )
4074 {
4075 case 0 : return "R";
4076 case 1 : return "G";
4077 case 2 : return "B";
4078 case 3 : return "A";
4079 default: VULKAN_HPP_ASSERT( false ); return "";
4080 }
4081 case Format::eAstc10x8SrgbBlock:
4082 switch ( component )
4083 {
4084 case 0 : return "R";
4085 case 1 : return "G";
4086 case 2 : return "B";
4087 case 3 : return "A";
4088 default: VULKAN_HPP_ASSERT( false ); return "";
4089 }
4090 case Format::eAstc10x10UnormBlock:
4091 switch ( component )
4092 {
4093 case 0 : return "R";
4094 case 1 : return "G";
4095 case 2 : return "B";
4096 case 3 : return "A";
4097 default: VULKAN_HPP_ASSERT( false ); return "";
4098 }
4099 case Format::eAstc10x10SrgbBlock:
4100 switch ( component )
4101 {
4102 case 0 : return "R";
4103 case 1 : return "G";
4104 case 2 : return "B";
4105 case 3 : return "A";
4106 default: VULKAN_HPP_ASSERT( false ); return "";
4107 }
4108 case Format::eAstc12x10UnormBlock:
4109 switch ( component )
4110 {
4111 case 0 : return "R";
4112 case 1 : return "G";
4113 case 2 : return "B";
4114 case 3 : return "A";
4115 default: VULKAN_HPP_ASSERT( false ); return "";
4116 }
4117 case Format::eAstc12x10SrgbBlock:
4118 switch ( component )
4119 {
4120 case 0 : return "R";
4121 case 1 : return "G";
4122 case 2 : return "B";
4123 case 3 : return "A";
4124 default: VULKAN_HPP_ASSERT( false ); return "";
4125 }
4126 case Format::eAstc12x12UnormBlock:
4127 switch ( component )
4128 {
4129 case 0 : return "R";
4130 case 1 : return "G";
4131 case 2 : return "B";
4132 case 3 : return "A";
4133 default: VULKAN_HPP_ASSERT( false ); return "";
4134 }
4135 case Format::eAstc12x12SrgbBlock:
4136 switch ( component )
4137 {
4138 case 0 : return "R";
4139 case 1 : return "G";
4140 case 2 : return "B";
4141 case 3 : return "A";
4142 default: VULKAN_HPP_ASSERT( false ); return "";
4143 }
4144 case Format::eG8B8G8R8422Unorm:
4145 switch ( component )
4146 {
4147 case 0 : return "G";
4148 case 1 : return "B";
4149 case 2 : return "G";
4150 case 3 : return "R";
4151 default: VULKAN_HPP_ASSERT( false ); return "";
4152 }
4153 case Format::eB8G8R8G8422Unorm:
4154 switch ( component )
4155 {
4156 case 0 : return "B";
4157 case 1 : return "G";
4158 case 2 : return "R";
4159 case 3 : return "G";
4160 default: VULKAN_HPP_ASSERT( false ); return "";
4161 }
4162 case Format::eG8B8R83Plane420Unorm:
4163 switch ( component )
4164 {
4165 case 0 : return "G";
4166 case 1 : return "B";
4167 case 2 : return "R";
4168 default: VULKAN_HPP_ASSERT( false ); return "";
4169 }
4170 case Format::eG8B8R82Plane420Unorm:
4171 switch ( component )
4172 {
4173 case 0 : return "G";
4174 case 1 : return "B";
4175 case 2 : return "R";
4176 default: VULKAN_HPP_ASSERT( false ); return "";
4177 }
4178 case Format::eG8B8R83Plane422Unorm:
4179 switch ( component )
4180 {
4181 case 0 : return "G";
4182 case 1 : return "B";
4183 case 2 : return "R";
4184 default: VULKAN_HPP_ASSERT( false ); return "";
4185 }
4186 case Format::eG8B8R82Plane422Unorm:
4187 switch ( component )
4188 {
4189 case 0 : return "G";
4190 case 1 : return "B";
4191 case 2 : return "R";
4192 default: VULKAN_HPP_ASSERT( false ); return "";
4193 }
4194 case Format::eG8B8R83Plane444Unorm:
4195 switch ( component )
4196 {
4197 case 0 : return "G";
4198 case 1 : return "B";
4199 case 2 : return "R";
4200 default: VULKAN_HPP_ASSERT( false ); return "";
4201 }
4202 case Format::eR10X6UnormPack16:
4203 switch ( component )
4204 {
4205 case 0 : return "R";
4206 default: VULKAN_HPP_ASSERT( false ); return "";
4207 }
4208 case Format::eR10X6G10X6Unorm2Pack16:
4209 switch ( component )
4210 {
4211 case 0 : return "R";
4212 case 1 : return "G";
4213 default: VULKAN_HPP_ASSERT( false ); return "";
4214 }
4215 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
4216 switch ( component )
4217 {
4218 case 0 : return "R";
4219 case 1 : return "G";
4220 case 2 : return "B";
4221 case 3 : return "A";
4222 default: VULKAN_HPP_ASSERT( false ); return "";
4223 }
4224 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
4225 switch ( component )
4226 {
4227 case 0 : return "G";
4228 case 1 : return "B";
4229 case 2 : return "G";
4230 case 3 : return "R";
4231 default: VULKAN_HPP_ASSERT( false ); return "";
4232 }
4233 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
4234 switch ( component )
4235 {
4236 case 0 : return "B";
4237 case 1 : return "G";
4238 case 2 : return "R";
4239 case 3 : return "G";
4240 default: VULKAN_HPP_ASSERT( false ); return "";
4241 }
4242 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
4243 switch ( component )
4244 {
4245 case 0 : return "G";
4246 case 1 : return "B";
4247 case 2 : return "R";
4248 default: VULKAN_HPP_ASSERT( false ); return "";
4249 }
4250 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
4251 switch ( component )
4252 {
4253 case 0 : return "G";
4254 case 1 : return "B";
4255 case 2 : return "R";
4256 default: VULKAN_HPP_ASSERT( false ); return "";
4257 }
4258 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
4259 switch ( component )
4260 {
4261 case 0 : return "G";
4262 case 1 : return "B";
4263 case 2 : return "R";
4264 default: VULKAN_HPP_ASSERT( false ); return "";
4265 }
4266 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
4267 switch ( component )
4268 {
4269 case 0 : return "G";
4270 case 1 : return "B";
4271 case 2 : return "R";
4272 default: VULKAN_HPP_ASSERT( false ); return "";
4273 }
4274 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
4275 switch ( component )
4276 {
4277 case 0 : return "G";
4278 case 1 : return "B";
4279 case 2 : return "R";
4280 default: VULKAN_HPP_ASSERT( false ); return "";
4281 }
4282 case Format::eR12X4UnormPack16:
4283 switch ( component )
4284 {
4285 case 0 : return "R";
4286 default: VULKAN_HPP_ASSERT( false ); return "";
4287 }
4288 case Format::eR12X4G12X4Unorm2Pack16:
4289 switch ( component )
4290 {
4291 case 0 : return "R";
4292 case 1 : return "G";
4293 default: VULKAN_HPP_ASSERT( false ); return "";
4294 }
4295 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
4296 switch ( component )
4297 {
4298 case 0 : return "R";
4299 case 1 : return "G";
4300 case 2 : return "B";
4301 case 3 : return "A";
4302 default: VULKAN_HPP_ASSERT( false ); return "";
4303 }
4304 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16:
4305 switch ( component )
4306 {
4307 case 0 : return "G";
4308 case 1 : return "B";
4309 case 2 : return "G";
4310 case 3 : return "R";
4311 default: VULKAN_HPP_ASSERT( false ); return "";
4312 }
4313 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16:
4314 switch ( component )
4315 {
4316 case 0 : return "B";
4317 case 1 : return "G";
4318 case 2 : return "R";
4319 case 3 : return "G";
4320 default: VULKAN_HPP_ASSERT( false ); return "";
4321 }
4322 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
4323 switch ( component )
4324 {
4325 case 0 : return "G";
4326 case 1 : return "B";
4327 case 2 : return "R";
4328 default: VULKAN_HPP_ASSERT( false ); return "";
4329 }
4330 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
4331 switch ( component )
4332 {
4333 case 0 : return "G";
4334 case 1 : return "B";
4335 case 2 : return "R";
4336 default: VULKAN_HPP_ASSERT( false ); return "";
4337 }
4338 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
4339 switch ( component )
4340 {
4341 case 0 : return "G";
4342 case 1 : return "B";
4343 case 2 : return "R";
4344 default: VULKAN_HPP_ASSERT( false ); return "";
4345 }
4346 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
4347 switch ( component )
4348 {
4349 case 0 : return "G";
4350 case 1 : return "B";
4351 case 2 : return "R";
4352 default: VULKAN_HPP_ASSERT( false ); return "";
4353 }
4354 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
4355 switch ( component )
4356 {
4357 case 0 : return "G";
4358 case 1 : return "B";
4359 case 2 : return "R";
4360 default: VULKAN_HPP_ASSERT( false ); return "";
4361 }
4362 case Format::eG16B16G16R16422Unorm:
4363 switch ( component )
4364 {
4365 case 0 : return "G";
4366 case 1 : return "B";
4367 case 2 : return "G";
4368 case 3 : return "R";
4369 default: VULKAN_HPP_ASSERT( false ); return "";
4370 }
4371 case Format::eB16G16R16G16422Unorm:
4372 switch ( component )
4373 {
4374 case 0 : return "B";
4375 case 1 : return "G";
4376 case 2 : return "R";
4377 case 3 : return "G";
4378 default: VULKAN_HPP_ASSERT( false ); return "";
4379 }
4380 case Format::eG16B16R163Plane420Unorm:
4381 switch ( component )
4382 {
4383 case 0 : return "G";
4384 case 1 : return "B";
4385 case 2 : return "R";
4386 default: VULKAN_HPP_ASSERT( false ); return "";
4387 }
4388 case Format::eG16B16R162Plane420Unorm:
4389 switch ( component )
4390 {
4391 case 0 : return "G";
4392 case 1 : return "B";
4393 case 2 : return "R";
4394 default: VULKAN_HPP_ASSERT( false ); return "";
4395 }
4396 case Format::eG16B16R163Plane422Unorm:
4397 switch ( component )
4398 {
4399 case 0 : return "G";
4400 case 1 : return "B";
4401 case 2 : return "R";
4402 default: VULKAN_HPP_ASSERT( false ); return "";
4403 }
4404 case Format::eG16B16R162Plane422Unorm:
4405 switch ( component )
4406 {
4407 case 0 : return "G";
4408 case 1 : return "B";
4409 case 2 : return "R";
4410 default: VULKAN_HPP_ASSERT( false ); return "";
4411 }
4412 case Format::eG16B16R163Plane444Unorm:
4413 switch ( component )
4414 {
4415 case 0 : return "G";
4416 case 1 : return "B";
4417 case 2 : return "R";
4418 default: VULKAN_HPP_ASSERT( false ); return "";
4419 }
4420 case Format::eG8B8R82Plane444Unorm:
4421 switch ( component )
4422 {
4423 case 0 : return "G";
4424 case 1 : return "B";
4425 case 2 : return "R";
4426 default: VULKAN_HPP_ASSERT( false ); return "";
4427 }
4428 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
4429 switch ( component )
4430 {
4431 case 0 : return "G";
4432 case 1 : return "B";
4433 case 2 : return "R";
4434 default: VULKAN_HPP_ASSERT( false ); return "";
4435 }
4436 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
4437 switch ( component )
4438 {
4439 case 0 : return "G";
4440 case 1 : return "B";
4441 case 2 : return "R";
4442 default: VULKAN_HPP_ASSERT( false ); return "";
4443 }
4444 case Format::eG16B16R162Plane444Unorm:
4445 switch ( component )
4446 {
4447 case 0 : return "G";
4448 case 1 : return "B";
4449 case 2 : return "R";
4450 default: VULKAN_HPP_ASSERT( false ); return "";
4451 }
4452 case Format::eA4R4G4B4UnormPack16:
4453 switch ( component )
4454 {
4455 case 0 : return "A";
4456 case 1 : return "R";
4457 case 2 : return "G";
4458 case 3 : return "B";
4459 default: VULKAN_HPP_ASSERT( false ); return "";
4460 }
4461 case Format::eA4B4G4R4UnormPack16:
4462 switch ( component )
4463 {
4464 case 0 : return "A";
4465 case 1 : return "B";
4466 case 2 : return "G";
4467 case 3 : return "R";
4468 default: VULKAN_HPP_ASSERT( false ); return "";
4469 }
4470 case Format::eAstc4x4SfloatBlock:
4471 switch ( component )
4472 {
4473 case 0 : return "R";
4474 case 1 : return "G";
4475 case 2 : return "B";
4476 case 3 : return "A";
4477 default: VULKAN_HPP_ASSERT( false ); return "";
4478 }
4479 case Format::eAstc5x4SfloatBlock:
4480 switch ( component )
4481 {
4482 case 0 : return "R";
4483 case 1 : return "G";
4484 case 2 : return "B";
4485 case 3 : return "A";
4486 default: VULKAN_HPP_ASSERT( false ); return "";
4487 }
4488 case Format::eAstc5x5SfloatBlock:
4489 switch ( component )
4490 {
4491 case 0 : return "R";
4492 case 1 : return "G";
4493 case 2 : return "B";
4494 case 3 : return "A";
4495 default: VULKAN_HPP_ASSERT( false ); return "";
4496 }
4497 case Format::eAstc6x5SfloatBlock:
4498 switch ( component )
4499 {
4500 case 0 : return "R";
4501 case 1 : return "G";
4502 case 2 : return "B";
4503 case 3 : return "A";
4504 default: VULKAN_HPP_ASSERT( false ); return "";
4505 }
4506 case Format::eAstc6x6SfloatBlock:
4507 switch ( component )
4508 {
4509 case 0 : return "R";
4510 case 1 : return "G";
4511 case 2 : return "B";
4512 case 3 : return "A";
4513 default: VULKAN_HPP_ASSERT( false ); return "";
4514 }
4515 case Format::eAstc8x5SfloatBlock:
4516 switch ( component )
4517 {
4518 case 0 : return "R";
4519 case 1 : return "G";
4520 case 2 : return "B";
4521 case 3 : return "A";
4522 default: VULKAN_HPP_ASSERT( false ); return "";
4523 }
4524 case Format::eAstc8x6SfloatBlock:
4525 switch ( component )
4526 {
4527 case 0 : return "R";
4528 case 1 : return "G";
4529 case 2 : return "B";
4530 case 3 : return "A";
4531 default: VULKAN_HPP_ASSERT( false ); return "";
4532 }
4533 case Format::eAstc8x8SfloatBlock:
4534 switch ( component )
4535 {
4536 case 0 : return "R";
4537 case 1 : return "G";
4538 case 2 : return "B";
4539 case 3 : return "A";
4540 default: VULKAN_HPP_ASSERT( false ); return "";
4541 }
4542 case Format::eAstc10x5SfloatBlock:
4543 switch ( component )
4544 {
4545 case 0 : return "R";
4546 case 1 : return "G";
4547 case 2 : return "B";
4548 case 3 : return "A";
4549 default: VULKAN_HPP_ASSERT( false ); return "";
4550 }
4551 case Format::eAstc10x6SfloatBlock:
4552 switch ( component )
4553 {
4554 case 0 : return "R";
4555 case 1 : return "G";
4556 case 2 : return "B";
4557 case 3 : return "A";
4558 default: VULKAN_HPP_ASSERT( false ); return "";
4559 }
4560 case Format::eAstc10x8SfloatBlock:
4561 switch ( component )
4562 {
4563 case 0 : return "R";
4564 case 1 : return "G";
4565 case 2 : return "B";
4566 case 3 : return "A";
4567 default: VULKAN_HPP_ASSERT( false ); return "";
4568 }
4569 case Format::eAstc10x10SfloatBlock:
4570 switch ( component )
4571 {
4572 case 0 : return "R";
4573 case 1 : return "G";
4574 case 2 : return "B";
4575 case 3 : return "A";
4576 default: VULKAN_HPP_ASSERT( false ); return "";
4577 }
4578 case Format::eAstc12x10SfloatBlock:
4579 switch ( component )
4580 {
4581 case 0 : return "R";
4582 case 1 : return "G";
4583 case 2 : return "B";
4584 case 3 : return "A";
4585 default: VULKAN_HPP_ASSERT( false ); return "";
4586 }
4587 case Format::eAstc12x12SfloatBlock:
4588 switch ( component )
4589 {
4590 case 0 : return "R";
4591 case 1 : return "G";
4592 case 2 : return "B";
4593 case 3 : return "A";
4594 default: VULKAN_HPP_ASSERT( false ); return "";
4595 }
4596 case Format::eA1B5G5R5UnormPack16:
4597 switch ( component )
4598 {
4599 case 0 : return "A";
4600 case 1 : return "B";
4601 case 2 : return "G";
4602 case 3 : return "R";
4603 default: VULKAN_HPP_ASSERT( false ); return "";
4604 }
4605 case Format::eA8Unorm:
4606 switch ( component )
4607 {
4608 case 0 : return "A";
4609 default: VULKAN_HPP_ASSERT( false ); return "";
4610 }
4611 case Format::ePvrtc12BppUnormBlockIMG:
4612 switch ( component )
4613 {
4614 case 0 : return "R";
4615 case 1 : return "G";
4616 case 2 : return "B";
4617 case 3 : return "A";
4618 default: VULKAN_HPP_ASSERT( false ); return "";
4619 }
4620 case Format::ePvrtc14BppUnormBlockIMG:
4621 switch ( component )
4622 {
4623 case 0 : return "R";
4624 case 1 : return "G";
4625 case 2 : return "B";
4626 case 3 : return "A";
4627 default: VULKAN_HPP_ASSERT( false ); return "";
4628 }
4629 case Format::ePvrtc22BppUnormBlockIMG:
4630 switch ( component )
4631 {
4632 case 0 : return "R";
4633 case 1 : return "G";
4634 case 2 : return "B";
4635 case 3 : return "A";
4636 default: VULKAN_HPP_ASSERT( false ); return "";
4637 }
4638 case Format::ePvrtc24BppUnormBlockIMG:
4639 switch ( component )
4640 {
4641 case 0 : return "R";
4642 case 1 : return "G";
4643 case 2 : return "B";
4644 case 3 : return "A";
4645 default: VULKAN_HPP_ASSERT( false ); return "";
4646 }
4647 case Format::ePvrtc12BppSrgbBlockIMG:
4648 switch ( component )
4649 {
4650 case 0 : return "R";
4651 case 1 : return "G";
4652 case 2 : return "B";
4653 case 3 : return "A";
4654 default: VULKAN_HPP_ASSERT( false ); return "";
4655 }
4656 case Format::ePvrtc14BppSrgbBlockIMG:
4657 switch ( component )
4658 {
4659 case 0 : return "R";
4660 case 1 : return "G";
4661 case 2 : return "B";
4662 case 3 : return "A";
4663 default: VULKAN_HPP_ASSERT( false ); return "";
4664 }
4665 case Format::ePvrtc22BppSrgbBlockIMG:
4666 switch ( component )
4667 {
4668 case 0 : return "R";
4669 case 1 : return "G";
4670 case 2 : return "B";
4671 case 3 : return "A";
4672 default: VULKAN_HPP_ASSERT( false ); return "";
4673 }
4674 case Format::ePvrtc24BppSrgbBlockIMG:
4675 switch ( component )
4676 {
4677 case 0 : return "R";
4678 case 1 : return "G";
4679 case 2 : return "B";
4680 case 3 : return "A";
4681 default: VULKAN_HPP_ASSERT( false ); return "";
4682 }
4683 case Format::eAstc3x3x3UnormBlockEXT:
4684 switch ( component )
4685 {
4686 case 0 : return "R";
4687 case 1 : return "G";
4688 case 2 : return "B";
4689 case 3 : return "A";
4690 default: VULKAN_HPP_ASSERT( false ); return "";
4691 }
4692 case Format::eAstc3x3x3SrgbBlockEXT:
4693 switch ( component )
4694 {
4695 case 0 : return "R";
4696 case 1 : return "G";
4697 case 2 : return "B";
4698 case 3 : return "A";
4699 default: VULKAN_HPP_ASSERT( false ); return "";
4700 }
4701 case Format::eAstc3x3x3SfloatBlockEXT:
4702 switch ( component )
4703 {
4704 case 0 : return "R";
4705 case 1 : return "G";
4706 case 2 : return "B";
4707 case 3 : return "A";
4708 default: VULKAN_HPP_ASSERT( false ); return "";
4709 }
4710 case Format::eAstc4x3x3UnormBlockEXT:
4711 switch ( component )
4712 {
4713 case 0 : return "R";
4714 case 1 : return "G";
4715 case 2 : return "B";
4716 case 3 : return "A";
4717 default: VULKAN_HPP_ASSERT( false ); return "";
4718 }
4719 case Format::eAstc4x3x3SrgbBlockEXT:
4720 switch ( component )
4721 {
4722 case 0 : return "R";
4723 case 1 : return "G";
4724 case 2 : return "B";
4725 case 3 : return "A";
4726 default: VULKAN_HPP_ASSERT( false ); return "";
4727 }
4728 case Format::eAstc4x3x3SfloatBlockEXT:
4729 switch ( component )
4730 {
4731 case 0 : return "R";
4732 case 1 : return "G";
4733 case 2 : return "B";
4734 case 3 : return "A";
4735 default: VULKAN_HPP_ASSERT( false ); return "";
4736 }
4737 case Format::eAstc4x4x3UnormBlockEXT:
4738 switch ( component )
4739 {
4740 case 0 : return "R";
4741 case 1 : return "G";
4742 case 2 : return "B";
4743 case 3 : return "A";
4744 default: VULKAN_HPP_ASSERT( false ); return "";
4745 }
4746 case Format::eAstc4x4x3SrgbBlockEXT:
4747 switch ( component )
4748 {
4749 case 0 : return "R";
4750 case 1 : return "G";
4751 case 2 : return "B";
4752 case 3 : return "A";
4753 default: VULKAN_HPP_ASSERT( false ); return "";
4754 }
4755 case Format::eAstc4x4x3SfloatBlockEXT:
4756 switch ( component )
4757 {
4758 case 0 : return "R";
4759 case 1 : return "G";
4760 case 2 : return "B";
4761 case 3 : return "A";
4762 default: VULKAN_HPP_ASSERT( false ); return "";
4763 }
4764 case Format::eAstc4x4x4UnormBlockEXT:
4765 switch ( component )
4766 {
4767 case 0 : return "R";
4768 case 1 : return "G";
4769 case 2 : return "B";
4770 case 3 : return "A";
4771 default: VULKAN_HPP_ASSERT( false ); return "";
4772 }
4773 case Format::eAstc4x4x4SrgbBlockEXT:
4774 switch ( component )
4775 {
4776 case 0 : return "R";
4777 case 1 : return "G";
4778 case 2 : return "B";
4779 case 3 : return "A";
4780 default: VULKAN_HPP_ASSERT( false ); return "";
4781 }
4782 case Format::eAstc4x4x4SfloatBlockEXT:
4783 switch ( component )
4784 {
4785 case 0 : return "R";
4786 case 1 : return "G";
4787 case 2 : return "B";
4788 case 3 : return "A";
4789 default: VULKAN_HPP_ASSERT( false ); return "";
4790 }
4791 case Format::eAstc5x4x4UnormBlockEXT:
4792 switch ( component )
4793 {
4794 case 0 : return "R";
4795 case 1 : return "G";
4796 case 2 : return "B";
4797 case 3 : return "A";
4798 default: VULKAN_HPP_ASSERT( false ); return "";
4799 }
4800 case Format::eAstc5x4x4SrgbBlockEXT:
4801 switch ( component )
4802 {
4803 case 0 : return "R";
4804 case 1 : return "G";
4805 case 2 : return "B";
4806 case 3 : return "A";
4807 default: VULKAN_HPP_ASSERT( false ); return "";
4808 }
4809 case Format::eAstc5x4x4SfloatBlockEXT:
4810 switch ( component )
4811 {
4812 case 0 : return "R";
4813 case 1 : return "G";
4814 case 2 : return "B";
4815 case 3 : return "A";
4816 default: VULKAN_HPP_ASSERT( false ); return "";
4817 }
4818 case Format::eAstc5x5x4UnormBlockEXT:
4819 switch ( component )
4820 {
4821 case 0 : return "R";
4822 case 1 : return "G";
4823 case 2 : return "B";
4824 case 3 : return "A";
4825 default: VULKAN_HPP_ASSERT( false ); return "";
4826 }
4827 case Format::eAstc5x5x4SrgbBlockEXT:
4828 switch ( component )
4829 {
4830 case 0 : return "R";
4831 case 1 : return "G";
4832 case 2 : return "B";
4833 case 3 : return "A";
4834 default: VULKAN_HPP_ASSERT( false ); return "";
4835 }
4836 case Format::eAstc5x5x4SfloatBlockEXT:
4837 switch ( component )
4838 {
4839 case 0 : return "R";
4840 case 1 : return "G";
4841 case 2 : return "B";
4842 case 3 : return "A";
4843 default: VULKAN_HPP_ASSERT( false ); return "";
4844 }
4845 case Format::eAstc5x5x5UnormBlockEXT:
4846 switch ( component )
4847 {
4848 case 0 : return "R";
4849 case 1 : return "G";
4850 case 2 : return "B";
4851 case 3 : return "A";
4852 default: VULKAN_HPP_ASSERT( false ); return "";
4853 }
4854 case Format::eAstc5x5x5SrgbBlockEXT:
4855 switch ( component )
4856 {
4857 case 0 : return "R";
4858 case 1 : return "G";
4859 case 2 : return "B";
4860 case 3 : return "A";
4861 default: VULKAN_HPP_ASSERT( false ); return "";
4862 }
4863 case Format::eAstc5x5x5SfloatBlockEXT:
4864 switch ( component )
4865 {
4866 case 0 : return "R";
4867 case 1 : return "G";
4868 case 2 : return "B";
4869 case 3 : return "A";
4870 default: VULKAN_HPP_ASSERT( false ); return "";
4871 }
4872 case Format::eAstc6x5x5UnormBlockEXT:
4873 switch ( component )
4874 {
4875 case 0 : return "R";
4876 case 1 : return "G";
4877 case 2 : return "B";
4878 case 3 : return "A";
4879 default: VULKAN_HPP_ASSERT( false ); return "";
4880 }
4881 case Format::eAstc6x5x5SrgbBlockEXT:
4882 switch ( component )
4883 {
4884 case 0 : return "R";
4885 case 1 : return "G";
4886 case 2 : return "B";
4887 case 3 : return "A";
4888 default: VULKAN_HPP_ASSERT( false ); return "";
4889 }
4890 case Format::eAstc6x5x5SfloatBlockEXT:
4891 switch ( component )
4892 {
4893 case 0 : return "R";
4894 case 1 : return "G";
4895 case 2 : return "B";
4896 case 3 : return "A";
4897 default: VULKAN_HPP_ASSERT( false ); return "";
4898 }
4899 case Format::eAstc6x6x5UnormBlockEXT:
4900 switch ( component )
4901 {
4902 case 0 : return "R";
4903 case 1 : return "G";
4904 case 2 : return "B";
4905 case 3 : return "A";
4906 default: VULKAN_HPP_ASSERT( false ); return "";
4907 }
4908 case Format::eAstc6x6x5SrgbBlockEXT:
4909 switch ( component )
4910 {
4911 case 0 : return "R";
4912 case 1 : return "G";
4913 case 2 : return "B";
4914 case 3 : return "A";
4915 default: VULKAN_HPP_ASSERT( false ); return "";
4916 }
4917 case Format::eAstc6x6x5SfloatBlockEXT:
4918 switch ( component )
4919 {
4920 case 0 : return "R";
4921 case 1 : return "G";
4922 case 2 : return "B";
4923 case 3 : return "A";
4924 default: VULKAN_HPP_ASSERT( false ); return "";
4925 }
4926 case Format::eAstc6x6x6UnormBlockEXT:
4927 switch ( component )
4928 {
4929 case 0 : return "R";
4930 case 1 : return "G";
4931 case 2 : return "B";
4932 case 3 : return "A";
4933 default: VULKAN_HPP_ASSERT( false ); return "";
4934 }
4935 case Format::eAstc6x6x6SrgbBlockEXT:
4936 switch ( component )
4937 {
4938 case 0 : return "R";
4939 case 1 : return "G";
4940 case 2 : return "B";
4941 case 3 : return "A";
4942 default: VULKAN_HPP_ASSERT( false ); return "";
4943 }
4944 case Format::eAstc6x6x6SfloatBlockEXT:
4945 switch ( component )
4946 {
4947 case 0 : return "R";
4948 case 1 : return "G";
4949 case 2 : return "B";
4950 case 3 : return "A";
4951 default: VULKAN_HPP_ASSERT( false ); return "";
4952 }
4953 case Format::eR8BoolARM:
4954 switch ( component )
4955 {
4956 case 0 : return "R";
4957 default: VULKAN_HPP_ASSERT( false ); return "";
4958 }
4959 case Format::eR16G16Sfixed5NV:
4960 switch ( component )
4961 {
4962 case 0 : return "R";
4963 case 1 : return "G";
4964 default: VULKAN_HPP_ASSERT( false ); return "";
4965 }
4966 case Format::eR10X6UintPack16ARM:
4967 switch ( component )
4968 {
4969 case 0 : return "R";
4970 default: VULKAN_HPP_ASSERT( false ); return "";
4971 }
4972 case Format::eR10X6G10X6Uint2Pack16ARM:
4973 switch ( component )
4974 {
4975 case 0 : return "R";
4976 case 1 : return "G";
4977 default: VULKAN_HPP_ASSERT( false ); return "";
4978 }
4979 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
4980 switch ( component )
4981 {
4982 case 0 : return "R";
4983 case 1 : return "G";
4984 case 2 : return "B";
4985 case 3 : return "A";
4986 default: VULKAN_HPP_ASSERT( false ); return "";
4987 }
4988 case Format::eR12X4UintPack16ARM:
4989 switch ( component )
4990 {
4991 case 0 : return "R";
4992 default: VULKAN_HPP_ASSERT( false ); return "";
4993 }
4994 case Format::eR12X4G12X4Uint2Pack16ARM:
4995 switch ( component )
4996 {
4997 case 0 : return "R";
4998 case 1 : return "G";
4999 default: VULKAN_HPP_ASSERT( false ); return "";
5000 }
5001 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
5002 switch ( component )
5003 {
5004 case 0 : return "R";
5005 case 1 : return "G";
5006 case 2 : return "B";
5007 case 3 : return "A";
5008 default: VULKAN_HPP_ASSERT( false ); return "";
5009 }
5010 case Format::eR14X2UintPack16ARM:
5011 switch ( component )
5012 {
5013 case 0 : return "R";
5014 default: VULKAN_HPP_ASSERT( false ); return "";
5015 }
5016 case Format::eR14X2G14X2Uint2Pack16ARM:
5017 switch ( component )
5018 {
5019 case 0 : return "R";
5020 case 1 : return "G";
5021 default: VULKAN_HPP_ASSERT( false ); return "";
5022 }
5023 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
5024 switch ( component )
5025 {
5026 case 0 : return "R";
5027 case 1 : return "G";
5028 case 2 : return "B";
5029 case 3 : return "A";
5030 default: VULKAN_HPP_ASSERT( false ); return "";
5031 }
5032 case Format::eR14X2UnormPack16ARM:
5033 switch ( component )
5034 {
5035 case 0 : return "R";
5036 default: VULKAN_HPP_ASSERT( false ); return "";
5037 }
5038 case Format::eR14X2G14X2Unorm2Pack16ARM:
5039 switch ( component )
5040 {
5041 case 0 : return "R";
5042 case 1 : return "G";
5043 default: VULKAN_HPP_ASSERT( false ); return "";
5044 }
5045 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM:
5046 switch ( component )
5047 {
5048 case 0 : return "R";
5049 case 1 : return "G";
5050 case 2 : return "B";
5051 case 3 : return "A";
5052 default: VULKAN_HPP_ASSERT( false ); return "";
5053 }
5054 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
5055 switch ( component )
5056 {
5057 case 0 : return "G";
5058 case 1 : return "B";
5059 case 2 : return "R";
5060 default: VULKAN_HPP_ASSERT( false ); return "";
5061 }
5062 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
5063 switch ( component )
5064 {
5065 case 0 : return "G";
5066 case 1 : return "B";
5067 case 2 : return "R";
5068 default: VULKAN_HPP_ASSERT( false ); return "";
5069 }
5070
5071 default: return "";
5072 }
5073 }
5074
5075 // The numeric format of the component
5076 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 char const * componentNumericFormat( Format format, uint8_t component )
5077 {
5078 switch ( format )
5079 {
5080 case Format::eR4G4UnormPack8:
5081 switch ( component )
5082 {
5083 case 0 : return "UNORM";
5084 case 1 : return "UNORM";
5085 default: VULKAN_HPP_ASSERT( false ); return "";
5086 }
5087 case Format::eR4G4B4A4UnormPack16:
5088 switch ( component )
5089 {
5090 case 0 : return "UNORM";
5091 case 1 : return "UNORM";
5092 case 2 : return "UNORM";
5093 case 3 : return "UNORM";
5094 default: VULKAN_HPP_ASSERT( false ); return "";
5095 }
5096 case Format::eB4G4R4A4UnormPack16:
5097 switch ( component )
5098 {
5099 case 0 : return "UNORM";
5100 case 1 : return "UNORM";
5101 case 2 : return "UNORM";
5102 case 3 : return "UNORM";
5103 default: VULKAN_HPP_ASSERT( false ); return "";
5104 }
5105 case Format::eR5G6B5UnormPack16:
5106 switch ( component )
5107 {
5108 case 0 : return "UNORM";
5109 case 1 : return "UNORM";
5110 case 2 : return "UNORM";
5111 default: VULKAN_HPP_ASSERT( false ); return "";
5112 }
5113 case Format::eB5G6R5UnormPack16:
5114 switch ( component )
5115 {
5116 case 0 : return "UNORM";
5117 case 1 : return "UNORM";
5118 case 2 : return "UNORM";
5119 default: VULKAN_HPP_ASSERT( false ); return "";
5120 }
5121 case Format::eR5G5B5A1UnormPack16:
5122 switch ( component )
5123 {
5124 case 0 : return "UNORM";
5125 case 1 : return "UNORM";
5126 case 2 : return "UNORM";
5127 case 3 : return "UNORM";
5128 default: VULKAN_HPP_ASSERT( false ); return "";
5129 }
5130 case Format::eB5G5R5A1UnormPack16:
5131 switch ( component )
5132 {
5133 case 0 : return "UNORM";
5134 case 1 : return "UNORM";
5135 case 2 : return "UNORM";
5136 case 3 : return "UNORM";
5137 default: VULKAN_HPP_ASSERT( false ); return "";
5138 }
5139 case Format::eA1R5G5B5UnormPack16:
5140 switch ( component )
5141 {
5142 case 0 : return "UNORM";
5143 case 1 : return "UNORM";
5144 case 2 : return "UNORM";
5145 case 3 : return "UNORM";
5146 default: VULKAN_HPP_ASSERT( false ); return "";
5147 }
5148 case Format::eR8Unorm:
5149 switch ( component )
5150 {
5151 case 0 : return "UNORM";
5152 default: VULKAN_HPP_ASSERT( false ); return "";
5153 }
5154 case Format::eR8Snorm:
5155 switch ( component )
5156 {
5157 case 0 : return "SNORM";
5158 default: VULKAN_HPP_ASSERT( false ); return "";
5159 }
5160 case Format::eR8Uscaled:
5161 switch ( component )
5162 {
5163 case 0 : return "USCALED";
5164 default: VULKAN_HPP_ASSERT( false ); return "";
5165 }
5166 case Format::eR8Sscaled:
5167 switch ( component )
5168 {
5169 case 0 : return "SSCALED";
5170 default: VULKAN_HPP_ASSERT( false ); return "";
5171 }
5172 case Format::eR8Uint:
5173 switch ( component )
5174 {
5175 case 0 : return "UINT";
5176 default: VULKAN_HPP_ASSERT( false ); return "";
5177 }
5178 case Format::eR8Sint:
5179 switch ( component )
5180 {
5181 case 0 : return "SINT";
5182 default: VULKAN_HPP_ASSERT( false ); return "";
5183 }
5184 case Format::eR8Srgb:
5185 switch ( component )
5186 {
5187 case 0 : return "SRGB";
5188 default: VULKAN_HPP_ASSERT( false ); return "";
5189 }
5190 case Format::eR8G8Unorm:
5191 switch ( component )
5192 {
5193 case 0 : return "UNORM";
5194 case 1 : return "UNORM";
5195 default: VULKAN_HPP_ASSERT( false ); return "";
5196 }
5197 case Format::eR8G8Snorm:
5198 switch ( component )
5199 {
5200 case 0 : return "SNORM";
5201 case 1 : return "SNORM";
5202 default: VULKAN_HPP_ASSERT( false ); return "";
5203 }
5204 case Format::eR8G8Uscaled:
5205 switch ( component )
5206 {
5207 case 0 : return "USCALED";
5208 case 1 : return "USCALED";
5209 default: VULKAN_HPP_ASSERT( false ); return "";
5210 }
5211 case Format::eR8G8Sscaled:
5212 switch ( component )
5213 {
5214 case 0 : return "SSCALED";
5215 case 1 : return "SSCALED";
5216 default: VULKAN_HPP_ASSERT( false ); return "";
5217 }
5218 case Format::eR8G8Uint:
5219 switch ( component )
5220 {
5221 case 0 : return "UINT";
5222 case 1 : return "UINT";
5223 default: VULKAN_HPP_ASSERT( false ); return "";
5224 }
5225 case Format::eR8G8Sint:
5226 switch ( component )
5227 {
5228 case 0 : return "SINT";
5229 case 1 : return "SINT";
5230 default: VULKAN_HPP_ASSERT( false ); return "";
5231 }
5232 case Format::eR8G8Srgb:
5233 switch ( component )
5234 {
5235 case 0 : return "SRGB";
5236 case 1 : return "SRGB";
5237 default: VULKAN_HPP_ASSERT( false ); return "";
5238 }
5239 case Format::eR8G8B8Unorm:
5240 switch ( component )
5241 {
5242 case 0 : return "UNORM";
5243 case 1 : return "UNORM";
5244 case 2 : return "UNORM";
5245 default: VULKAN_HPP_ASSERT( false ); return "";
5246 }
5247 case Format::eR8G8B8Snorm:
5248 switch ( component )
5249 {
5250 case 0 : return "SNORM";
5251 case 1 : return "SNORM";
5252 case 2 : return "SNORM";
5253 default: VULKAN_HPP_ASSERT( false ); return "";
5254 }
5255 case Format::eR8G8B8Uscaled:
5256 switch ( component )
5257 {
5258 case 0 : return "USCALED";
5259 case 1 : return "USCALED";
5260 case 2 : return "USCALED";
5261 default: VULKAN_HPP_ASSERT( false ); return "";
5262 }
5263 case Format::eR8G8B8Sscaled:
5264 switch ( component )
5265 {
5266 case 0 : return "SSCALED";
5267 case 1 : return "SSCALED";
5268 case 2 : return "SSCALED";
5269 default: VULKAN_HPP_ASSERT( false ); return "";
5270 }
5271 case Format::eR8G8B8Uint:
5272 switch ( component )
5273 {
5274 case 0 : return "UINT";
5275 case 1 : return "UINT";
5276 case 2 : return "UINT";
5277 default: VULKAN_HPP_ASSERT( false ); return "";
5278 }
5279 case Format::eR8G8B8Sint:
5280 switch ( component )
5281 {
5282 case 0 : return "SINT";
5283 case 1 : return "SINT";
5284 case 2 : return "SINT";
5285 default: VULKAN_HPP_ASSERT( false ); return "";
5286 }
5287 case Format::eR8G8B8Srgb:
5288 switch ( component )
5289 {
5290 case 0 : return "SRGB";
5291 case 1 : return "SRGB";
5292 case 2 : return "SRGB";
5293 default: VULKAN_HPP_ASSERT( false ); return "";
5294 }
5295 case Format::eB8G8R8Unorm:
5296 switch ( component )
5297 {
5298 case 0 : return "UNORM";
5299 case 1 : return "UNORM";
5300 case 2 : return "UNORM";
5301 default: VULKAN_HPP_ASSERT( false ); return "";
5302 }
5303 case Format::eB8G8R8Snorm:
5304 switch ( component )
5305 {
5306 case 0 : return "SNORM";
5307 case 1 : return "SNORM";
5308 case 2 : return "SNORM";
5309 default: VULKAN_HPP_ASSERT( false ); return "";
5310 }
5311 case Format::eB8G8R8Uscaled:
5312 switch ( component )
5313 {
5314 case 0 : return "USCALED";
5315 case 1 : return "USCALED";
5316 case 2 : return "USCALED";
5317 default: VULKAN_HPP_ASSERT( false ); return "";
5318 }
5319 case Format::eB8G8R8Sscaled:
5320 switch ( component )
5321 {
5322 case 0 : return "SSCALED";
5323 case 1 : return "SSCALED";
5324 case 2 : return "SSCALED";
5325 default: VULKAN_HPP_ASSERT( false ); return "";
5326 }
5327 case Format::eB8G8R8Uint:
5328 switch ( component )
5329 {
5330 case 0 : return "UINT";
5331 case 1 : return "UINT";
5332 case 2 : return "UINT";
5333 default: VULKAN_HPP_ASSERT( false ); return "";
5334 }
5335 case Format::eB8G8R8Sint:
5336 switch ( component )
5337 {
5338 case 0 : return "SINT";
5339 case 1 : return "SINT";
5340 case 2 : return "SINT";
5341 default: VULKAN_HPP_ASSERT( false ); return "";
5342 }
5343 case Format::eB8G8R8Srgb:
5344 switch ( component )
5345 {
5346 case 0 : return "SRGB";
5347 case 1 : return "SRGB";
5348 case 2 : return "SRGB";
5349 default: VULKAN_HPP_ASSERT( false ); return "";
5350 }
5351 case Format::eR8G8B8A8Unorm:
5352 switch ( component )
5353 {
5354 case 0 : return "UNORM";
5355 case 1 : return "UNORM";
5356 case 2 : return "UNORM";
5357 case 3 : return "UNORM";
5358 default: VULKAN_HPP_ASSERT( false ); return "";
5359 }
5360 case Format::eR8G8B8A8Snorm:
5361 switch ( component )
5362 {
5363 case 0 : return "SNORM";
5364 case 1 : return "SNORM";
5365 case 2 : return "SNORM";
5366 case 3 : return "SNORM";
5367 default: VULKAN_HPP_ASSERT( false ); return "";
5368 }
5369 case Format::eR8G8B8A8Uscaled:
5370 switch ( component )
5371 {
5372 case 0 : return "USCALED";
5373 case 1 : return "USCALED";
5374 case 2 : return "USCALED";
5375 case 3 : return "USCALED";
5376 default: VULKAN_HPP_ASSERT( false ); return "";
5377 }
5378 case Format::eR8G8B8A8Sscaled:
5379 switch ( component )
5380 {
5381 case 0 : return "SSCALED";
5382 case 1 : return "SSCALED";
5383 case 2 : return "SSCALED";
5384 case 3 : return "SSCALED";
5385 default: VULKAN_HPP_ASSERT( false ); return "";
5386 }
5387 case Format::eR8G8B8A8Uint:
5388 switch ( component )
5389 {
5390 case 0 : return "UINT";
5391 case 1 : return "UINT";
5392 case 2 : return "UINT";
5393 case 3 : return "UINT";
5394 default: VULKAN_HPP_ASSERT( false ); return "";
5395 }
5396 case Format::eR8G8B8A8Sint:
5397 switch ( component )
5398 {
5399 case 0 : return "SINT";
5400 case 1 : return "SINT";
5401 case 2 : return "SINT";
5402 case 3 : return "SINT";
5403 default: VULKAN_HPP_ASSERT( false ); return "";
5404 }
5405 case Format::eR8G8B8A8Srgb:
5406 switch ( component )
5407 {
5408 case 0 : return "SRGB";
5409 case 1 : return "SRGB";
5410 case 2 : return "SRGB";
5411 case 3 : return "UNORM";
5412 default: VULKAN_HPP_ASSERT( false ); return "";
5413 }
5414 case Format::eB8G8R8A8Unorm:
5415 switch ( component )
5416 {
5417 case 0 : return "UNORM";
5418 case 1 : return "UNORM";
5419 case 2 : return "UNORM";
5420 case 3 : return "UNORM";
5421 default: VULKAN_HPP_ASSERT( false ); return "";
5422 }
5423 case Format::eB8G8R8A8Snorm:
5424 switch ( component )
5425 {
5426 case 0 : return "SNORM";
5427 case 1 : return "SNORM";
5428 case 2 : return "SNORM";
5429 case 3 : return "SNORM";
5430 default: VULKAN_HPP_ASSERT( false ); return "";
5431 }
5432 case Format::eB8G8R8A8Uscaled:
5433 switch ( component )
5434 {
5435 case 0 : return "USCALED";
5436 case 1 : return "USCALED";
5437 case 2 : return "USCALED";
5438 case 3 : return "USCALED";
5439 default: VULKAN_HPP_ASSERT( false ); return "";
5440 }
5441 case Format::eB8G8R8A8Sscaled:
5442 switch ( component )
5443 {
5444 case 0 : return "SSCALED";
5445 case 1 : return "SSCALED";
5446 case 2 : return "SSCALED";
5447 case 3 : return "SSCALED";
5448 default: VULKAN_HPP_ASSERT( false ); return "";
5449 }
5450 case Format::eB8G8R8A8Uint:
5451 switch ( component )
5452 {
5453 case 0 : return "UINT";
5454 case 1 : return "UINT";
5455 case 2 : return "UINT";
5456 case 3 : return "UINT";
5457 default: VULKAN_HPP_ASSERT( false ); return "";
5458 }
5459 case Format::eB8G8R8A8Sint:
5460 switch ( component )
5461 {
5462 case 0 : return "SINT";
5463 case 1 : return "SINT";
5464 case 2 : return "SINT";
5465 case 3 : return "SINT";
5466 default: VULKAN_HPP_ASSERT( false ); return "";
5467 }
5468 case Format::eB8G8R8A8Srgb:
5469 switch ( component )
5470 {
5471 case 0 : return "SRGB";
5472 case 1 : return "SRGB";
5473 case 2 : return "SRGB";
5474 case 3 : return "UNORM";
5475 default: VULKAN_HPP_ASSERT( false ); return "";
5476 }
5477 case Format::eA8B8G8R8UnormPack32:
5478 switch ( component )
5479 {
5480 case 0 : return "UNORM";
5481 case 1 : return "UNORM";
5482 case 2 : return "UNORM";
5483 case 3 : return "UNORM";
5484 default: VULKAN_HPP_ASSERT( false ); return "";
5485 }
5486 case Format::eA8B8G8R8SnormPack32:
5487 switch ( component )
5488 {
5489 case 0 : return "SNORM";
5490 case 1 : return "SNORM";
5491 case 2 : return "SNORM";
5492 case 3 : return "SNORM";
5493 default: VULKAN_HPP_ASSERT( false ); return "";
5494 }
5495 case Format::eA8B8G8R8UscaledPack32:
5496 switch ( component )
5497 {
5498 case 0 : return "USCALED";
5499 case 1 : return "USCALED";
5500 case 2 : return "USCALED";
5501 case 3 : return "USCALED";
5502 default: VULKAN_HPP_ASSERT( false ); return "";
5503 }
5504 case Format::eA8B8G8R8SscaledPack32:
5505 switch ( component )
5506 {
5507 case 0 : return "SSCALED";
5508 case 1 : return "SSCALED";
5509 case 2 : return "SSCALED";
5510 case 3 : return "SSCALED";
5511 default: VULKAN_HPP_ASSERT( false ); return "";
5512 }
5513 case Format::eA8B8G8R8UintPack32:
5514 switch ( component )
5515 {
5516 case 0 : return "UINT";
5517 case 1 : return "UINT";
5518 case 2 : return "UINT";
5519 case 3 : return "UINT";
5520 default: VULKAN_HPP_ASSERT( false ); return "";
5521 }
5522 case Format::eA8B8G8R8SintPack32:
5523 switch ( component )
5524 {
5525 case 0 : return "SINT";
5526 case 1 : return "SINT";
5527 case 2 : return "SINT";
5528 case 3 : return "SINT";
5529 default: VULKAN_HPP_ASSERT( false ); return "";
5530 }
5531 case Format::eA8B8G8R8SrgbPack32:
5532 switch ( component )
5533 {
5534 case 0 : return "UNORM";
5535 case 1 : return "SRGB";
5536 case 2 : return "SRGB";
5537 case 3 : return "SRGB";
5538 default: VULKAN_HPP_ASSERT( false ); return "";
5539 }
5540 case Format::eA2R10G10B10UnormPack32:
5541 switch ( component )
5542 {
5543 case 0 : return "UNORM";
5544 case 1 : return "UNORM";
5545 case 2 : return "UNORM";
5546 case 3 : return "UNORM";
5547 default: VULKAN_HPP_ASSERT( false ); return "";
5548 }
5549 case Format::eA2R10G10B10SnormPack32:
5550 switch ( component )
5551 {
5552 case 0 : return "SNORM";
5553 case 1 : return "SNORM";
5554 case 2 : return "SNORM";
5555 case 3 : return "SNORM";
5556 default: VULKAN_HPP_ASSERT( false ); return "";
5557 }
5558 case Format::eA2R10G10B10UscaledPack32:
5559 switch ( component )
5560 {
5561 case 0 : return "USCALED";
5562 case 1 : return "USCALED";
5563 case 2 : return "USCALED";
5564 case 3 : return "USCALED";
5565 default: VULKAN_HPP_ASSERT( false ); return "";
5566 }
5567 case Format::eA2R10G10B10SscaledPack32:
5568 switch ( component )
5569 {
5570 case 0 : return "SSCALED";
5571 case 1 : return "SSCALED";
5572 case 2 : return "SSCALED";
5573 case 3 : return "SSCALED";
5574 default: VULKAN_HPP_ASSERT( false ); return "";
5575 }
5576 case Format::eA2R10G10B10UintPack32:
5577 switch ( component )
5578 {
5579 case 0 : return "UINT";
5580 case 1 : return "UINT";
5581 case 2 : return "UINT";
5582 case 3 : return "UINT";
5583 default: VULKAN_HPP_ASSERT( false ); return "";
5584 }
5585 case Format::eA2R10G10B10SintPack32:
5586 switch ( component )
5587 {
5588 case 0 : return "SINT";
5589 case 1 : return "SINT";
5590 case 2 : return "SINT";
5591 case 3 : return "SINT";
5592 default: VULKAN_HPP_ASSERT( false ); return "";
5593 }
5594 case Format::eA2B10G10R10UnormPack32:
5595 switch ( component )
5596 {
5597 case 0 : return "UNORM";
5598 case 1 : return "UNORM";
5599 case 2 : return "UNORM";
5600 case 3 : return "UNORM";
5601 default: VULKAN_HPP_ASSERT( false ); return "";
5602 }
5603 case Format::eA2B10G10R10SnormPack32:
5604 switch ( component )
5605 {
5606 case 0 : return "SNORM";
5607 case 1 : return "SNORM";
5608 case 2 : return "SNORM";
5609 case 3 : return "SNORM";
5610 default: VULKAN_HPP_ASSERT( false ); return "";
5611 }
5612 case Format::eA2B10G10R10UscaledPack32:
5613 switch ( component )
5614 {
5615 case 0 : return "USCALED";
5616 case 1 : return "USCALED";
5617 case 2 : return "USCALED";
5618 case 3 : return "USCALED";
5619 default: VULKAN_HPP_ASSERT( false ); return "";
5620 }
5621 case Format::eA2B10G10R10SscaledPack32:
5622 switch ( component )
5623 {
5624 case 0 : return "SSCALED";
5625 case 1 : return "SSCALED";
5626 case 2 : return "SSCALED";
5627 case 3 : return "SSCALED";
5628 default: VULKAN_HPP_ASSERT( false ); return "";
5629 }
5630 case Format::eA2B10G10R10UintPack32:
5631 switch ( component )
5632 {
5633 case 0 : return "UINT";
5634 case 1 : return "UINT";
5635 case 2 : return "UINT";
5636 case 3 : return "UINT";
5637 default: VULKAN_HPP_ASSERT( false ); return "";
5638 }
5639 case Format::eA2B10G10R10SintPack32:
5640 switch ( component )
5641 {
5642 case 0 : return "SINT";
5643 case 1 : return "SINT";
5644 case 2 : return "SINT";
5645 case 3 : return "SINT";
5646 default: VULKAN_HPP_ASSERT( false ); return "";
5647 }
5648 case Format::eR16Unorm:
5649 switch ( component )
5650 {
5651 case 0 : return "UNORM";
5652 default: VULKAN_HPP_ASSERT( false ); return "";
5653 }
5654 case Format::eR16Snorm:
5655 switch ( component )
5656 {
5657 case 0 : return "SNORM";
5658 default: VULKAN_HPP_ASSERT( false ); return "";
5659 }
5660 case Format::eR16Uscaled:
5661 switch ( component )
5662 {
5663 case 0 : return "USCALED";
5664 default: VULKAN_HPP_ASSERT( false ); return "";
5665 }
5666 case Format::eR16Sscaled:
5667 switch ( component )
5668 {
5669 case 0 : return "SSCALED";
5670 default: VULKAN_HPP_ASSERT( false ); return "";
5671 }
5672 case Format::eR16Uint:
5673 switch ( component )
5674 {
5675 case 0 : return "UINT";
5676 default: VULKAN_HPP_ASSERT( false ); return "";
5677 }
5678 case Format::eR16Sint:
5679 switch ( component )
5680 {
5681 case 0 : return "SINT";
5682 default: VULKAN_HPP_ASSERT( false ); return "";
5683 }
5684 case Format::eR16Sfloat:
5685 switch ( component )
5686 {
5687 case 0 : return "SFLOAT";
5688 default: VULKAN_HPP_ASSERT( false ); return "";
5689 }
5690 case Format::eR16G16Unorm:
5691 switch ( component )
5692 {
5693 case 0 : return "UNORM";
5694 case 1 : return "UNORM";
5695 default: VULKAN_HPP_ASSERT( false ); return "";
5696 }
5697 case Format::eR16G16Snorm:
5698 switch ( component )
5699 {
5700 case 0 : return "SNORM";
5701 case 1 : return "SNORM";
5702 default: VULKAN_HPP_ASSERT( false ); return "";
5703 }
5704 case Format::eR16G16Uscaled:
5705 switch ( component )
5706 {
5707 case 0 : return "USCALED";
5708 case 1 : return "USCALED";
5709 default: VULKAN_HPP_ASSERT( false ); return "";
5710 }
5711 case Format::eR16G16Sscaled:
5712 switch ( component )
5713 {
5714 case 0 : return "SSCALED";
5715 case 1 : return "SSCALED";
5716 default: VULKAN_HPP_ASSERT( false ); return "";
5717 }
5718 case Format::eR16G16Uint:
5719 switch ( component )
5720 {
5721 case 0 : return "UINT";
5722 case 1 : return "UINT";
5723 default: VULKAN_HPP_ASSERT( false ); return "";
5724 }
5725 case Format::eR16G16Sint:
5726 switch ( component )
5727 {
5728 case 0 : return "SINT";
5729 case 1 : return "SINT";
5730 default: VULKAN_HPP_ASSERT( false ); return "";
5731 }
5732 case Format::eR16G16Sfloat:
5733 switch ( component )
5734 {
5735 case 0 : return "SFLOAT";
5736 case 1 : return "SFLOAT";
5737 default: VULKAN_HPP_ASSERT( false ); return "";
5738 }
5739 case Format::eR16G16B16Unorm:
5740 switch ( component )
5741 {
5742 case 0 : return "UNORM";
5743 case 1 : return "UNORM";
5744 case 2 : return "UNORM";
5745 default: VULKAN_HPP_ASSERT( false ); return "";
5746 }
5747 case Format::eR16G16B16Snorm:
5748 switch ( component )
5749 {
5750 case 0 : return "SNORM";
5751 case 1 : return "SNORM";
5752 case 2 : return "SNORM";
5753 default: VULKAN_HPP_ASSERT( false ); return "";
5754 }
5755 case Format::eR16G16B16Uscaled:
5756 switch ( component )
5757 {
5758 case 0 : return "USCALED";
5759 case 1 : return "USCALED";
5760 case 2 : return "USCALED";
5761 default: VULKAN_HPP_ASSERT( false ); return "";
5762 }
5763 case Format::eR16G16B16Sscaled:
5764 switch ( component )
5765 {
5766 case 0 : return "SSCALED";
5767 case 1 : return "SSCALED";
5768 case 2 : return "SSCALED";
5769 default: VULKAN_HPP_ASSERT( false ); return "";
5770 }
5771 case Format::eR16G16B16Uint:
5772 switch ( component )
5773 {
5774 case 0 : return "UINT";
5775 case 1 : return "UINT";
5776 case 2 : return "UINT";
5777 default: VULKAN_HPP_ASSERT( false ); return "";
5778 }
5779 case Format::eR16G16B16Sint:
5780 switch ( component )
5781 {
5782 case 0 : return "SINT";
5783 case 1 : return "SINT";
5784 case 2 : return "SINT";
5785 default: VULKAN_HPP_ASSERT( false ); return "";
5786 }
5787 case Format::eR16G16B16Sfloat:
5788 switch ( component )
5789 {
5790 case 0 : return "SFLOAT";
5791 case 1 : return "SFLOAT";
5792 case 2 : return "SFLOAT";
5793 default: VULKAN_HPP_ASSERT( false ); return "";
5794 }
5795 case Format::eR16G16B16A16Unorm:
5796 switch ( component )
5797 {
5798 case 0 : return "UNORM";
5799 case 1 : return "UNORM";
5800 case 2 : return "UNORM";
5801 case 3 : return "UNORM";
5802 default: VULKAN_HPP_ASSERT( false ); return "";
5803 }
5804 case Format::eR16G16B16A16Snorm:
5805 switch ( component )
5806 {
5807 case 0 : return "SNORM";
5808 case 1 : return "SNORM";
5809 case 2 : return "SNORM";
5810 case 3 : return "SNORM";
5811 default: VULKAN_HPP_ASSERT( false ); return "";
5812 }
5813 case Format::eR16G16B16A16Uscaled:
5814 switch ( component )
5815 {
5816 case 0 : return "USCALED";
5817 case 1 : return "USCALED";
5818 case 2 : return "USCALED";
5819 case 3 : return "USCALED";
5820 default: VULKAN_HPP_ASSERT( false ); return "";
5821 }
5822 case Format::eR16G16B16A16Sscaled:
5823 switch ( component )
5824 {
5825 case 0 : return "SSCALED";
5826 case 1 : return "SSCALED";
5827 case 2 : return "SSCALED";
5828 case 3 : return "SSCALED";
5829 default: VULKAN_HPP_ASSERT( false ); return "";
5830 }
5831 case Format::eR16G16B16A16Uint:
5832 switch ( component )
5833 {
5834 case 0 : return "UINT";
5835 case 1 : return "UINT";
5836 case 2 : return "UINT";
5837 case 3 : return "UINT";
5838 default: VULKAN_HPP_ASSERT( false ); return "";
5839 }
5840 case Format::eR16G16B16A16Sint:
5841 switch ( component )
5842 {
5843 case 0 : return "SINT";
5844 case 1 : return "SINT";
5845 case 2 : return "SINT";
5846 case 3 : return "SINT";
5847 default: VULKAN_HPP_ASSERT( false ); return "";
5848 }
5849 case Format::eR16G16B16A16Sfloat:
5850 switch ( component )
5851 {
5852 case 0 : return "SFLOAT";
5853 case 1 : return "SFLOAT";
5854 case 2 : return "SFLOAT";
5855 case 3 : return "SFLOAT";
5856 default: VULKAN_HPP_ASSERT( false ); return "";
5857 }
5858 case Format::eR32Uint:
5859 switch ( component )
5860 {
5861 case 0 : return "UINT";
5862 default: VULKAN_HPP_ASSERT( false ); return "";
5863 }
5864 case Format::eR32Sint:
5865 switch ( component )
5866 {
5867 case 0 : return "SINT";
5868 default: VULKAN_HPP_ASSERT( false ); return "";
5869 }
5870 case Format::eR32Sfloat:
5871 switch ( component )
5872 {
5873 case 0 : return "SFLOAT";
5874 default: VULKAN_HPP_ASSERT( false ); return "";
5875 }
5876 case Format::eR32G32Uint:
5877 switch ( component )
5878 {
5879 case 0 : return "UINT";
5880 case 1 : return "UINT";
5881 default: VULKAN_HPP_ASSERT( false ); return "";
5882 }
5883 case Format::eR32G32Sint:
5884 switch ( component )
5885 {
5886 case 0 : return "SINT";
5887 case 1 : return "SINT";
5888 default: VULKAN_HPP_ASSERT( false ); return "";
5889 }
5890 case Format::eR32G32Sfloat:
5891 switch ( component )
5892 {
5893 case 0 : return "SFLOAT";
5894 case 1 : return "SFLOAT";
5895 default: VULKAN_HPP_ASSERT( false ); return "";
5896 }
5897 case Format::eR32G32B32Uint:
5898 switch ( component )
5899 {
5900 case 0 : return "UINT";
5901 case 1 : return "UINT";
5902 case 2 : return "UINT";
5903 default: VULKAN_HPP_ASSERT( false ); return "";
5904 }
5905 case Format::eR32G32B32Sint:
5906 switch ( component )
5907 {
5908 case 0 : return "SINT";
5909 case 1 : return "SINT";
5910 case 2 : return "SINT";
5911 default: VULKAN_HPP_ASSERT( false ); return "";
5912 }
5913 case Format::eR32G32B32Sfloat:
5914 switch ( component )
5915 {
5916 case 0 : return "SFLOAT";
5917 case 1 : return "SFLOAT";
5918 case 2 : return "SFLOAT";
5919 default: VULKAN_HPP_ASSERT( false ); return "";
5920 }
5921 case Format::eR32G32B32A32Uint:
5922 switch ( component )
5923 {
5924 case 0 : return "UINT";
5925 case 1 : return "UINT";
5926 case 2 : return "UINT";
5927 case 3 : return "UINT";
5928 default: VULKAN_HPP_ASSERT( false ); return "";
5929 }
5930 case Format::eR32G32B32A32Sint:
5931 switch ( component )
5932 {
5933 case 0 : return "SINT";
5934 case 1 : return "SINT";
5935 case 2 : return "SINT";
5936 case 3 : return "SINT";
5937 default: VULKAN_HPP_ASSERT( false ); return "";
5938 }
5939 case Format::eR32G32B32A32Sfloat:
5940 switch ( component )
5941 {
5942 case 0 : return "SFLOAT";
5943 case 1 : return "SFLOAT";
5944 case 2 : return "SFLOAT";
5945 case 3 : return "SFLOAT";
5946 default: VULKAN_HPP_ASSERT( false ); return "";
5947 }
5948 case Format::eR64Uint:
5949 switch ( component )
5950 {
5951 case 0 : return "UINT";
5952 default: VULKAN_HPP_ASSERT( false ); return "";
5953 }
5954 case Format::eR64Sint:
5955 switch ( component )
5956 {
5957 case 0 : return "SINT";
5958 default: VULKAN_HPP_ASSERT( false ); return "";
5959 }
5960 case Format::eR64Sfloat:
5961 switch ( component )
5962 {
5963 case 0 : return "SFLOAT";
5964 default: VULKAN_HPP_ASSERT( false ); return "";
5965 }
5966 case Format::eR64G64Uint:
5967 switch ( component )
5968 {
5969 case 0 : return "UINT";
5970 case 1 : return "UINT";
5971 default: VULKAN_HPP_ASSERT( false ); return "";
5972 }
5973 case Format::eR64G64Sint:
5974 switch ( component )
5975 {
5976 case 0 : return "SINT";
5977 case 1 : return "SINT";
5978 default: VULKAN_HPP_ASSERT( false ); return "";
5979 }
5980 case Format::eR64G64Sfloat:
5981 switch ( component )
5982 {
5983 case 0 : return "SFLOAT";
5984 case 1 : return "SFLOAT";
5985 default: VULKAN_HPP_ASSERT( false ); return "";
5986 }
5987 case Format::eR64G64B64Uint:
5988 switch ( component )
5989 {
5990 case 0 : return "UINT";
5991 case 1 : return "UINT";
5992 case 2 : return "UINT";
5993 default: VULKAN_HPP_ASSERT( false ); return "";
5994 }
5995 case Format::eR64G64B64Sint:
5996 switch ( component )
5997 {
5998 case 0 : return "SINT";
5999 case 1 : return "SINT";
6000 case 2 : return "SINT";
6001 default: VULKAN_HPP_ASSERT( false ); return "";
6002 }
6003 case Format::eR64G64B64Sfloat:
6004 switch ( component )
6005 {
6006 case 0 : return "SFLOAT";
6007 case 1 : return "SFLOAT";
6008 case 2 : return "SFLOAT";
6009 default: VULKAN_HPP_ASSERT( false ); return "";
6010 }
6011 case Format::eR64G64B64A64Uint:
6012 switch ( component )
6013 {
6014 case 0 : return "UINT";
6015 case 1 : return "UINT";
6016 case 2 : return "UINT";
6017 case 3 : return "UINT";
6018 default: VULKAN_HPP_ASSERT( false ); return "";
6019 }
6020 case Format::eR64G64B64A64Sint:
6021 switch ( component )
6022 {
6023 case 0 : return "SINT";
6024 case 1 : return "SINT";
6025 case 2 : return "SINT";
6026 case 3 : return "SINT";
6027 default: VULKAN_HPP_ASSERT( false ); return "";
6028 }
6029 case Format::eR64G64B64A64Sfloat:
6030 switch ( component )
6031 {
6032 case 0 : return "SFLOAT";
6033 case 1 : return "SFLOAT";
6034 case 2 : return "SFLOAT";
6035 case 3 : return "SFLOAT";
6036 default: VULKAN_HPP_ASSERT( false ); return "";
6037 }
6038 case Format::eB10G11R11UfloatPack32:
6039 switch ( component )
6040 {
6041 case 0 : return "UFLOAT";
6042 case 1 : return "UFLOAT";
6043 case 2 : return "UFLOAT";
6044 default: VULKAN_HPP_ASSERT( false ); return "";
6045 }
6046 case Format::eE5B9G9R9UfloatPack32:
6047 switch ( component )
6048 {
6049 case 0 : return "UFLOAT";
6050 case 1 : return "UFLOAT";
6051 case 2 : return "UFLOAT";
6052 default: VULKAN_HPP_ASSERT( false ); return "";
6053 }
6054 case Format::eD16Unorm:
6055 switch ( component )
6056 {
6057 case 0 : return "UNORM";
6058 default: VULKAN_HPP_ASSERT( false ); return "";
6059 }
6060 case Format::eX8D24UnormPack32:
6061 switch ( component )
6062 {
6063 case 0 : return "UNORM";
6064 default: VULKAN_HPP_ASSERT( false ); return "";
6065 }
6066 case Format::eD32Sfloat:
6067 switch ( component )
6068 {
6069 case 0 : return "SFLOAT";
6070 default: VULKAN_HPP_ASSERT( false ); return "";
6071 }
6072 case Format::eS8Uint:
6073 switch ( component )
6074 {
6075 case 0 : return "UINT";
6076 default: VULKAN_HPP_ASSERT( false ); return "";
6077 }
6078 case Format::eD16UnormS8Uint:
6079 switch ( component )
6080 {
6081 case 0 : return "UNORM";
6082 case 1 : return "UINT";
6083 default: VULKAN_HPP_ASSERT( false ); return "";
6084 }
6085 case Format::eD24UnormS8Uint:
6086 switch ( component )
6087 {
6088 case 0 : return "UNORM";
6089 case 1 : return "UINT";
6090 default: VULKAN_HPP_ASSERT( false ); return "";
6091 }
6092 case Format::eD32SfloatS8Uint:
6093 switch ( component )
6094 {
6095 case 0 : return "SFLOAT";
6096 case 1 : return "UINT";
6097 default: VULKAN_HPP_ASSERT( false ); return "";
6098 }
6099 case Format::eBc1RgbUnormBlock:
6100 switch ( component )
6101 {
6102 case 0 : return "UNORM";
6103 case 1 : return "UNORM";
6104 case 2 : return "UNORM";
6105 default: VULKAN_HPP_ASSERT( false ); return "";
6106 }
6107 case Format::eBc1RgbSrgbBlock:
6108 switch ( component )
6109 {
6110 case 0 : return "SRGB";
6111 case 1 : return "SRGB";
6112 case 2 : return "SRGB";
6113 default: VULKAN_HPP_ASSERT( false ); return "";
6114 }
6115 case Format::eBc1RgbaUnormBlock:
6116 switch ( component )
6117 {
6118 case 0 : return "UNORM";
6119 case 1 : return "UNORM";
6120 case 2 : return "UNORM";
6121 case 3 : return "UNORM";
6122 default: VULKAN_HPP_ASSERT( false ); return "";
6123 }
6124 case Format::eBc1RgbaSrgbBlock:
6125 switch ( component )
6126 {
6127 case 0 : return "SRGB";
6128 case 1 : return "SRGB";
6129 case 2 : return "SRGB";
6130 case 3 : return "UNORM";
6131 default: VULKAN_HPP_ASSERT( false ); return "";
6132 }
6133 case Format::eBc2UnormBlock:
6134 switch ( component )
6135 {
6136 case 0 : return "UNORM";
6137 case 1 : return "UNORM";
6138 case 2 : return "UNORM";
6139 case 3 : return "UNORM";
6140 default: VULKAN_HPP_ASSERT( false ); return "";
6141 }
6142 case Format::eBc2SrgbBlock:
6143 switch ( component )
6144 {
6145 case 0 : return "SRGB";
6146 case 1 : return "SRGB";
6147 case 2 : return "SRGB";
6148 case 3 : return "UNORM";
6149 default: VULKAN_HPP_ASSERT( false ); return "";
6150 }
6151 case Format::eBc3UnormBlock:
6152 switch ( component )
6153 {
6154 case 0 : return "UNORM";
6155 case 1 : return "UNORM";
6156 case 2 : return "UNORM";
6157 case 3 : return "UNORM";
6158 default: VULKAN_HPP_ASSERT( false ); return "";
6159 }
6160 case Format::eBc3SrgbBlock:
6161 switch ( component )
6162 {
6163 case 0 : return "SRGB";
6164 case 1 : return "SRGB";
6165 case 2 : return "SRGB";
6166 case 3 : return "UNORM";
6167 default: VULKAN_HPP_ASSERT( false ); return "";
6168 }
6169 case Format::eBc4UnormBlock:
6170 switch ( component )
6171 {
6172 case 0 : return "UNORM";
6173 default: VULKAN_HPP_ASSERT( false ); return "";
6174 }
6175 case Format::eBc4SnormBlock:
6176 switch ( component )
6177 {
6178 case 0 : return "SNORM";
6179 default: VULKAN_HPP_ASSERT( false ); return "";
6180 }
6181 case Format::eBc5UnormBlock:
6182 switch ( component )
6183 {
6184 case 0 : return "UNORM";
6185 case 1 : return "UNORM";
6186 default: VULKAN_HPP_ASSERT( false ); return "";
6187 }
6188 case Format::eBc5SnormBlock:
6189 switch ( component )
6190 {
6191 case 0 : return "SNORM";
6192 case 1 : return "SNORM";
6193 default: VULKAN_HPP_ASSERT( false ); return "";
6194 }
6195 case Format::eBc6HUfloatBlock:
6196 switch ( component )
6197 {
6198 case 0 : return "UFLOAT";
6199 case 1 : return "UFLOAT";
6200 case 2 : return "UFLOAT";
6201 default: VULKAN_HPP_ASSERT( false ); return "";
6202 }
6203 case Format::eBc6HSfloatBlock:
6204 switch ( component )
6205 {
6206 case 0 : return "SFLOAT";
6207 case 1 : return "SFLOAT";
6208 case 2 : return "SFLOAT";
6209 default: VULKAN_HPP_ASSERT( false ); return "";
6210 }
6211 case Format::eBc7UnormBlock:
6212 switch ( component )
6213 {
6214 case 0 : return "UNORM";
6215 case 1 : return "UNORM";
6216 case 2 : return "UNORM";
6217 case 3 : return "UNORM";
6218 default: VULKAN_HPP_ASSERT( false ); return "";
6219 }
6220 case Format::eBc7SrgbBlock:
6221 switch ( component )
6222 {
6223 case 0 : return "SRGB";
6224 case 1 : return "SRGB";
6225 case 2 : return "SRGB";
6226 case 3 : return "UNORM";
6227 default: VULKAN_HPP_ASSERT( false ); return "";
6228 }
6229 case Format::eEtc2R8G8B8UnormBlock:
6230 switch ( component )
6231 {
6232 case 0 : return "UNORM";
6233 case 1 : return "UNORM";
6234 case 2 : return "UNORM";
6235 default: VULKAN_HPP_ASSERT( false ); return "";
6236 }
6237 case Format::eEtc2R8G8B8SrgbBlock:
6238 switch ( component )
6239 {
6240 case 0 : return "SRGB";
6241 case 1 : return "SRGB";
6242 case 2 : return "SRGB";
6243 default: VULKAN_HPP_ASSERT( false ); return "";
6244 }
6245 case Format::eEtc2R8G8B8A1UnormBlock:
6246 switch ( component )
6247 {
6248 case 0 : return "UNORM";
6249 case 1 : return "UNORM";
6250 case 2 : return "UNORM";
6251 case 3 : return "UNORM";
6252 default: VULKAN_HPP_ASSERT( false ); return "";
6253 }
6254 case Format::eEtc2R8G8B8A1SrgbBlock:
6255 switch ( component )
6256 {
6257 case 0 : return "SRGB";
6258 case 1 : return "SRGB";
6259 case 2 : return "SRGB";
6260 case 3 : return "UNORM";
6261 default: VULKAN_HPP_ASSERT( false ); return "";
6262 }
6263 case Format::eEtc2R8G8B8A8UnormBlock:
6264 switch ( component )
6265 {
6266 case 0 : return "UNORM";
6267 case 1 : return "UNORM";
6268 case 2 : return "UNORM";
6269 case 3 : return "UNORM";
6270 default: VULKAN_HPP_ASSERT( false ); return "";
6271 }
6272 case Format::eEtc2R8G8B8A8SrgbBlock:
6273 switch ( component )
6274 {
6275 case 0 : return "SRGB";
6276 case 1 : return "SRGB";
6277 case 2 : return "SRGB";
6278 case 3 : return "UNORM";
6279 default: VULKAN_HPP_ASSERT( false ); return "";
6280 }
6281 case Format::eEacR11UnormBlock:
6282 switch ( component )
6283 {
6284 case 0 : return "UNORM";
6285 default: VULKAN_HPP_ASSERT( false ); return "";
6286 }
6287 case Format::eEacR11SnormBlock:
6288 switch ( component )
6289 {
6290 case 0 : return "SNORM";
6291 default: VULKAN_HPP_ASSERT( false ); return "";
6292 }
6293 case Format::eEacR11G11UnormBlock:
6294 switch ( component )
6295 {
6296 case 0 : return "UNORM";
6297 case 1 : return "UNORM";
6298 default: VULKAN_HPP_ASSERT( false ); return "";
6299 }
6300 case Format::eEacR11G11SnormBlock:
6301 switch ( component )
6302 {
6303 case 0 : return "SNORM";
6304 case 1 : return "SNORM";
6305 default: VULKAN_HPP_ASSERT( false ); return "";
6306 }
6307 case Format::eAstc4x4UnormBlock:
6308 switch ( component )
6309 {
6310 case 0 : return "UNORM";
6311 case 1 : return "UNORM";
6312 case 2 : return "UNORM";
6313 case 3 : return "UNORM";
6314 default: VULKAN_HPP_ASSERT( false ); return "";
6315 }
6316 case Format::eAstc4x4SrgbBlock:
6317 switch ( component )
6318 {
6319 case 0 : return "SRGB";
6320 case 1 : return "SRGB";
6321 case 2 : return "SRGB";
6322 case 3 : return "UNORM";
6323 default: VULKAN_HPP_ASSERT( false ); return "";
6324 }
6325 case Format::eAstc5x4UnormBlock:
6326 switch ( component )
6327 {
6328 case 0 : return "UNORM";
6329 case 1 : return "UNORM";
6330 case 2 : return "UNORM";
6331 case 3 : return "UNORM";
6332 default: VULKAN_HPP_ASSERT( false ); return "";
6333 }
6334 case Format::eAstc5x4SrgbBlock:
6335 switch ( component )
6336 {
6337 case 0 : return "SRGB";
6338 case 1 : return "SRGB";
6339 case 2 : return "SRGB";
6340 case 3 : return "UNORM";
6341 default: VULKAN_HPP_ASSERT( false ); return "";
6342 }
6343 case Format::eAstc5x5UnormBlock:
6344 switch ( component )
6345 {
6346 case 0 : return "UNORM";
6347 case 1 : return "UNORM";
6348 case 2 : return "UNORM";
6349 case 3 : return "UNORM";
6350 default: VULKAN_HPP_ASSERT( false ); return "";
6351 }
6352 case Format::eAstc5x5SrgbBlock:
6353 switch ( component )
6354 {
6355 case 0 : return "SRGB";
6356 case 1 : return "SRGB";
6357 case 2 : return "SRGB";
6358 case 3 : return "UNORM";
6359 default: VULKAN_HPP_ASSERT( false ); return "";
6360 }
6361 case Format::eAstc6x5UnormBlock:
6362 switch ( component )
6363 {
6364 case 0 : return "UNORM";
6365 case 1 : return "UNORM";
6366 case 2 : return "UNORM";
6367 case 3 : return "UNORM";
6368 default: VULKAN_HPP_ASSERT( false ); return "";
6369 }
6370 case Format::eAstc6x5SrgbBlock:
6371 switch ( component )
6372 {
6373 case 0 : return "SRGB";
6374 case 1 : return "SRGB";
6375 case 2 : return "SRGB";
6376 case 3 : return "UNORM";
6377 default: VULKAN_HPP_ASSERT( false ); return "";
6378 }
6379 case Format::eAstc6x6UnormBlock:
6380 switch ( component )
6381 {
6382 case 0 : return "UNORM";
6383 case 1 : return "UNORM";
6384 case 2 : return "UNORM";
6385 case 3 : return "UNORM";
6386 default: VULKAN_HPP_ASSERT( false ); return "";
6387 }
6388 case Format::eAstc6x6SrgbBlock:
6389 switch ( component )
6390 {
6391 case 0 : return "SRGB";
6392 case 1 : return "SRGB";
6393 case 2 : return "SRGB";
6394 case 3 : return "UNORM";
6395 default: VULKAN_HPP_ASSERT( false ); return "";
6396 }
6397 case Format::eAstc8x5UnormBlock:
6398 switch ( component )
6399 {
6400 case 0 : return "UNORM";
6401 case 1 : return "UNORM";
6402 case 2 : return "UNORM";
6403 case 3 : return "UNORM";
6404 default: VULKAN_HPP_ASSERT( false ); return "";
6405 }
6406 case Format::eAstc8x5SrgbBlock:
6407 switch ( component )
6408 {
6409 case 0 : return "SRGB";
6410 case 1 : return "SRGB";
6411 case 2 : return "SRGB";
6412 case 3 : return "UNORM";
6413 default: VULKAN_HPP_ASSERT( false ); return "";
6414 }
6415 case Format::eAstc8x6UnormBlock:
6416 switch ( component )
6417 {
6418 case 0 : return "UNORM";
6419 case 1 : return "UNORM";
6420 case 2 : return "UNORM";
6421 case 3 : return "UNORM";
6422 default: VULKAN_HPP_ASSERT( false ); return "";
6423 }
6424 case Format::eAstc8x6SrgbBlock:
6425 switch ( component )
6426 {
6427 case 0 : return "SRGB";
6428 case 1 : return "SRGB";
6429 case 2 : return "SRGB";
6430 case 3 : return "UNORM";
6431 default: VULKAN_HPP_ASSERT( false ); return "";
6432 }
6433 case Format::eAstc8x8UnormBlock:
6434 switch ( component )
6435 {
6436 case 0 : return "UNORM";
6437 case 1 : return "UNORM";
6438 case 2 : return "UNORM";
6439 case 3 : return "UNORM";
6440 default: VULKAN_HPP_ASSERT( false ); return "";
6441 }
6442 case Format::eAstc8x8SrgbBlock:
6443 switch ( component )
6444 {
6445 case 0 : return "SRGB";
6446 case 1 : return "SRGB";
6447 case 2 : return "SRGB";
6448 case 3 : return "UNORM";
6449 default: VULKAN_HPP_ASSERT( false ); return "";
6450 }
6451 case Format::eAstc10x5UnormBlock:
6452 switch ( component )
6453 {
6454 case 0 : return "UNORM";
6455 case 1 : return "UNORM";
6456 case 2 : return "UNORM";
6457 case 3 : return "UNORM";
6458 default: VULKAN_HPP_ASSERT( false ); return "";
6459 }
6460 case Format::eAstc10x5SrgbBlock:
6461 switch ( component )
6462 {
6463 case 0 : return "SRGB";
6464 case 1 : return "SRGB";
6465 case 2 : return "SRGB";
6466 case 3 : return "UNORM";
6467 default: VULKAN_HPP_ASSERT( false ); return "";
6468 }
6469 case Format::eAstc10x6UnormBlock:
6470 switch ( component )
6471 {
6472 case 0 : return "UNORM";
6473 case 1 : return "UNORM";
6474 case 2 : return "UNORM";
6475 case 3 : return "UNORM";
6476 default: VULKAN_HPP_ASSERT( false ); return "";
6477 }
6478 case Format::eAstc10x6SrgbBlock:
6479 switch ( component )
6480 {
6481 case 0 : return "SRGB";
6482 case 1 : return "SRGB";
6483 case 2 : return "SRGB";
6484 case 3 : return "UNORM";
6485 default: VULKAN_HPP_ASSERT( false ); return "";
6486 }
6487 case Format::eAstc10x8UnormBlock:
6488 switch ( component )
6489 {
6490 case 0 : return "UNORM";
6491 case 1 : return "UNORM";
6492 case 2 : return "UNORM";
6493 case 3 : return "UNORM";
6494 default: VULKAN_HPP_ASSERT( false ); return "";
6495 }
6496 case Format::eAstc10x8SrgbBlock:
6497 switch ( component )
6498 {
6499 case 0 : return "SRGB";
6500 case 1 : return "SRGB";
6501 case 2 : return "SRGB";
6502 case 3 : return "UNORM";
6503 default: VULKAN_HPP_ASSERT( false ); return "";
6504 }
6505 case Format::eAstc10x10UnormBlock:
6506 switch ( component )
6507 {
6508 case 0 : return "UNORM";
6509 case 1 : return "UNORM";
6510 case 2 : return "UNORM";
6511 case 3 : return "UNORM";
6512 default: VULKAN_HPP_ASSERT( false ); return "";
6513 }
6514 case Format::eAstc10x10SrgbBlock:
6515 switch ( component )
6516 {
6517 case 0 : return "SRGB";
6518 case 1 : return "SRGB";
6519 case 2 : return "SRGB";
6520 case 3 : return "UNORM";
6521 default: VULKAN_HPP_ASSERT( false ); return "";
6522 }
6523 case Format::eAstc12x10UnormBlock:
6524 switch ( component )
6525 {
6526 case 0 : return "UNORM";
6527 case 1 : return "UNORM";
6528 case 2 : return "UNORM";
6529 case 3 : return "UNORM";
6530 default: VULKAN_HPP_ASSERT( false ); return "";
6531 }
6532 case Format::eAstc12x10SrgbBlock:
6533 switch ( component )
6534 {
6535 case 0 : return "SRGB";
6536 case 1 : return "SRGB";
6537 case 2 : return "SRGB";
6538 case 3 : return "UNORM";
6539 default: VULKAN_HPP_ASSERT( false ); return "";
6540 }
6541 case Format::eAstc12x12UnormBlock:
6542 switch ( component )
6543 {
6544 case 0 : return "UNORM";
6545 case 1 : return "UNORM";
6546 case 2 : return "UNORM";
6547 case 3 : return "UNORM";
6548 default: VULKAN_HPP_ASSERT( false ); return "";
6549 }
6550 case Format::eAstc12x12SrgbBlock:
6551 switch ( component )
6552 {
6553 case 0 : return "SRGB";
6554 case 1 : return "SRGB";
6555 case 2 : return "SRGB";
6556 case 3 : return "UNORM";
6557 default: VULKAN_HPP_ASSERT( false ); return "";
6558 }
6559 case Format::eG8B8G8R8422Unorm:
6560 switch ( component )
6561 {
6562 case 0 : return "UNORM";
6563 case 1 : return "UNORM";
6564 case 2 : return "UNORM";
6565 case 3 : return "UNORM";
6566 default: VULKAN_HPP_ASSERT( false ); return "";
6567 }
6568 case Format::eB8G8R8G8422Unorm:
6569 switch ( component )
6570 {
6571 case 0 : return "UNORM";
6572 case 1 : return "UNORM";
6573 case 2 : return "UNORM";
6574 case 3 : return "UNORM";
6575 default: VULKAN_HPP_ASSERT( false ); return "";
6576 }
6577 case Format::eG8B8R83Plane420Unorm:
6578 switch ( component )
6579 {
6580 case 0 : return "UNORM";
6581 case 1 : return "UNORM";
6582 case 2 : return "UNORM";
6583 default: VULKAN_HPP_ASSERT( false ); return "";
6584 }
6585 case Format::eG8B8R82Plane420Unorm:
6586 switch ( component )
6587 {
6588 case 0 : return "UNORM";
6589 case 1 : return "UNORM";
6590 case 2 : return "UNORM";
6591 default: VULKAN_HPP_ASSERT( false ); return "";
6592 }
6593 case Format::eG8B8R83Plane422Unorm:
6594 switch ( component )
6595 {
6596 case 0 : return "UNORM";
6597 case 1 : return "UNORM";
6598 case 2 : return "UNORM";
6599 default: VULKAN_HPP_ASSERT( false ); return "";
6600 }
6601 case Format::eG8B8R82Plane422Unorm:
6602 switch ( component )
6603 {
6604 case 0 : return "UNORM";
6605 case 1 : return "UNORM";
6606 case 2 : return "UNORM";
6607 default: VULKAN_HPP_ASSERT( false ); return "";
6608 }
6609 case Format::eG8B8R83Plane444Unorm:
6610 switch ( component )
6611 {
6612 case 0 : return "UNORM";
6613 case 1 : return "UNORM";
6614 case 2 : return "UNORM";
6615 default: VULKAN_HPP_ASSERT( false ); return "";
6616 }
6617 case Format::eR10X6UnormPack16:
6618 switch ( component )
6619 {
6620 case 0 : return "UNORM";
6621 default: VULKAN_HPP_ASSERT( false ); return "";
6622 }
6623 case Format::eR10X6G10X6Unorm2Pack16:
6624 switch ( component )
6625 {
6626 case 0 : return "UNORM";
6627 case 1 : return "UNORM";
6628 default: VULKAN_HPP_ASSERT( false ); return "";
6629 }
6630 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
6631 switch ( component )
6632 {
6633 case 0 : return "UNORM";
6634 case 1 : return "UNORM";
6635 case 2 : return "UNORM";
6636 case 3 : return "UNORM";
6637 default: VULKAN_HPP_ASSERT( false ); return "";
6638 }
6639 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
6640 switch ( component )
6641 {
6642 case 0 : return "UNORM";
6643 case 1 : return "UNORM";
6644 case 2 : return "UNORM";
6645 case 3 : return "UNORM";
6646 default: VULKAN_HPP_ASSERT( false ); return "";
6647 }
6648 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
6649 switch ( component )
6650 {
6651 case 0 : return "UNORM";
6652 case 1 : return "UNORM";
6653 case 2 : return "UNORM";
6654 case 3 : return "UNORM";
6655 default: VULKAN_HPP_ASSERT( false ); return "";
6656 }
6657 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
6658 switch ( component )
6659 {
6660 case 0 : return "UNORM";
6661 case 1 : return "UNORM";
6662 case 2 : return "UNORM";
6663 default: VULKAN_HPP_ASSERT( false ); return "";
6664 }
6665 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
6666 switch ( component )
6667 {
6668 case 0 : return "UNORM";
6669 case 1 : return "UNORM";
6670 case 2 : return "UNORM";
6671 default: VULKAN_HPP_ASSERT( false ); return "";
6672 }
6673 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
6674 switch ( component )
6675 {
6676 case 0 : return "UNORM";
6677 case 1 : return "UNORM";
6678 case 2 : return "UNORM";
6679 default: VULKAN_HPP_ASSERT( false ); return "";
6680 }
6681 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
6682 switch ( component )
6683 {
6684 case 0 : return "UNORM";
6685 case 1 : return "UNORM";
6686 case 2 : return "UNORM";
6687 default: VULKAN_HPP_ASSERT( false ); return "";
6688 }
6689 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
6690 switch ( component )
6691 {
6692 case 0 : return "UNORM";
6693 case 1 : return "UNORM";
6694 case 2 : return "UNORM";
6695 default: VULKAN_HPP_ASSERT( false ); return "";
6696 }
6697 case Format::eR12X4UnormPack16:
6698 switch ( component )
6699 {
6700 case 0 : return "UNORM";
6701 default: VULKAN_HPP_ASSERT( false ); return "";
6702 }
6703 case Format::eR12X4G12X4Unorm2Pack16:
6704 switch ( component )
6705 {
6706 case 0 : return "UNORM";
6707 case 1 : return "UNORM";
6708 default: VULKAN_HPP_ASSERT( false ); return "";
6709 }
6710 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
6711 switch ( component )
6712 {
6713 case 0 : return "UNORM";
6714 case 1 : return "UNORM";
6715 case 2 : return "UNORM";
6716 case 3 : return "UNORM";
6717 default: VULKAN_HPP_ASSERT( false ); return "";
6718 }
6719 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16:
6720 switch ( component )
6721 {
6722 case 0 : return "UNORM";
6723 case 1 : return "UNORM";
6724 case 2 : return "UNORM";
6725 case 3 : return "UNORM";
6726 default: VULKAN_HPP_ASSERT( false ); return "";
6727 }
6728 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16:
6729 switch ( component )
6730 {
6731 case 0 : return "UNORM";
6732 case 1 : return "UNORM";
6733 case 2 : return "UNORM";
6734 case 3 : return "UNORM";
6735 default: VULKAN_HPP_ASSERT( false ); return "";
6736 }
6737 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
6738 switch ( component )
6739 {
6740 case 0 : return "UNORM";
6741 case 1 : return "UNORM";
6742 case 2 : return "UNORM";
6743 default: VULKAN_HPP_ASSERT( false ); return "";
6744 }
6745 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
6746 switch ( component )
6747 {
6748 case 0 : return "UNORM";
6749 case 1 : return "UNORM";
6750 case 2 : return "UNORM";
6751 default: VULKAN_HPP_ASSERT( false ); return "";
6752 }
6753 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
6754 switch ( component )
6755 {
6756 case 0 : return "UNORM";
6757 case 1 : return "UNORM";
6758 case 2 : return "UNORM";
6759 default: VULKAN_HPP_ASSERT( false ); return "";
6760 }
6761 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
6762 switch ( component )
6763 {
6764 case 0 : return "UNORM";
6765 case 1 : return "UNORM";
6766 case 2 : return "UNORM";
6767 default: VULKAN_HPP_ASSERT( false ); return "";
6768 }
6769 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
6770 switch ( component )
6771 {
6772 case 0 : return "UNORM";
6773 case 1 : return "UNORM";
6774 case 2 : return "UNORM";
6775 default: VULKAN_HPP_ASSERT( false ); return "";
6776 }
6777 case Format::eG16B16G16R16422Unorm:
6778 switch ( component )
6779 {
6780 case 0 : return "UNORM";
6781 case 1 : return "UNORM";
6782 case 2 : return "UNORM";
6783 case 3 : return "UNORM";
6784 default: VULKAN_HPP_ASSERT( false ); return "";
6785 }
6786 case Format::eB16G16R16G16422Unorm:
6787 switch ( component )
6788 {
6789 case 0 : return "UNORM";
6790 case 1 : return "UNORM";
6791 case 2 : return "UNORM";
6792 case 3 : return "UNORM";
6793 default: VULKAN_HPP_ASSERT( false ); return "";
6794 }
6795 case Format::eG16B16R163Plane420Unorm:
6796 switch ( component )
6797 {
6798 case 0 : return "UNORM";
6799 case 1 : return "UNORM";
6800 case 2 : return "UNORM";
6801 default: VULKAN_HPP_ASSERT( false ); return "";
6802 }
6803 case Format::eG16B16R162Plane420Unorm:
6804 switch ( component )
6805 {
6806 case 0 : return "UNORM";
6807 case 1 : return "UNORM";
6808 case 2 : return "UNORM";
6809 default: VULKAN_HPP_ASSERT( false ); return "";
6810 }
6811 case Format::eG16B16R163Plane422Unorm:
6812 switch ( component )
6813 {
6814 case 0 : return "UNORM";
6815 case 1 : return "UNORM";
6816 case 2 : return "UNORM";
6817 default: VULKAN_HPP_ASSERT( false ); return "";
6818 }
6819 case Format::eG16B16R162Plane422Unorm:
6820 switch ( component )
6821 {
6822 case 0 : return "UNORM";
6823 case 1 : return "UNORM";
6824 case 2 : return "UNORM";
6825 default: VULKAN_HPP_ASSERT( false ); return "";
6826 }
6827 case Format::eG16B16R163Plane444Unorm:
6828 switch ( component )
6829 {
6830 case 0 : return "UNORM";
6831 case 1 : return "UNORM";
6832 case 2 : return "UNORM";
6833 default: VULKAN_HPP_ASSERT( false ); return "";
6834 }
6835 case Format::eG8B8R82Plane444Unorm:
6836 switch ( component )
6837 {
6838 case 0 : return "UNORM";
6839 case 1 : return "UNORM";
6840 case 2 : return "UNORM";
6841 default: VULKAN_HPP_ASSERT( false ); return "";
6842 }
6843 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
6844 switch ( component )
6845 {
6846 case 0 : return "UNORM";
6847 case 1 : return "UNORM";
6848 case 2 : return "UNORM";
6849 default: VULKAN_HPP_ASSERT( false ); return "";
6850 }
6851 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
6852 switch ( component )
6853 {
6854 case 0 : return "UNORM";
6855 case 1 : return "UNORM";
6856 case 2 : return "UNORM";
6857 default: VULKAN_HPP_ASSERT( false ); return "";
6858 }
6859 case Format::eG16B16R162Plane444Unorm:
6860 switch ( component )
6861 {
6862 case 0 : return "UNORM";
6863 case 1 : return "UNORM";
6864 case 2 : return "UNORM";
6865 default: VULKAN_HPP_ASSERT( false ); return "";
6866 }
6867 case Format::eA4R4G4B4UnormPack16:
6868 switch ( component )
6869 {
6870 case 0 : return "UNORM";
6871 case 1 : return "UNORM";
6872 case 2 : return "UNORM";
6873 case 3 : return "UNORM";
6874 default: VULKAN_HPP_ASSERT( false ); return "";
6875 }
6876 case Format::eA4B4G4R4UnormPack16:
6877 switch ( component )
6878 {
6879 case 0 : return "UNORM";
6880 case 1 : return "UNORM";
6881 case 2 : return "UNORM";
6882 case 3 : return "UNORM";
6883 default: VULKAN_HPP_ASSERT( false ); return "";
6884 }
6885 case Format::eAstc4x4SfloatBlock:
6886 switch ( component )
6887 {
6888 case 0 : return "SFLOAT";
6889 case 1 : return "SFLOAT";
6890 case 2 : return "SFLOAT";
6891 case 3 : return "SFLOAT";
6892 default: VULKAN_HPP_ASSERT( false ); return "";
6893 }
6894 case Format::eAstc5x4SfloatBlock:
6895 switch ( component )
6896 {
6897 case 0 : return "SFLOAT";
6898 case 1 : return "SFLOAT";
6899 case 2 : return "SFLOAT";
6900 case 3 : return "SFLOAT";
6901 default: VULKAN_HPP_ASSERT( false ); return "";
6902 }
6903 case Format::eAstc5x5SfloatBlock:
6904 switch ( component )
6905 {
6906 case 0 : return "SFLOAT";
6907 case 1 : return "SFLOAT";
6908 case 2 : return "SFLOAT";
6909 case 3 : return "SFLOAT";
6910 default: VULKAN_HPP_ASSERT( false ); return "";
6911 }
6912 case Format::eAstc6x5SfloatBlock:
6913 switch ( component )
6914 {
6915 case 0 : return "SFLOAT";
6916 case 1 : return "SFLOAT";
6917 case 2 : return "SFLOAT";
6918 case 3 : return "SFLOAT";
6919 default: VULKAN_HPP_ASSERT( false ); return "";
6920 }
6921 case Format::eAstc6x6SfloatBlock:
6922 switch ( component )
6923 {
6924 case 0 : return "SFLOAT";
6925 case 1 : return "SFLOAT";
6926 case 2 : return "SFLOAT";
6927 case 3 : return "SFLOAT";
6928 default: VULKAN_HPP_ASSERT( false ); return "";
6929 }
6930 case Format::eAstc8x5SfloatBlock:
6931 switch ( component )
6932 {
6933 case 0 : return "SFLOAT";
6934 case 1 : return "SFLOAT";
6935 case 2 : return "SFLOAT";
6936 case 3 : return "SFLOAT";
6937 default: VULKAN_HPP_ASSERT( false ); return "";
6938 }
6939 case Format::eAstc8x6SfloatBlock:
6940 switch ( component )
6941 {
6942 case 0 : return "SFLOAT";
6943 case 1 : return "SFLOAT";
6944 case 2 : return "SFLOAT";
6945 case 3 : return "SFLOAT";
6946 default: VULKAN_HPP_ASSERT( false ); return "";
6947 }
6948 case Format::eAstc8x8SfloatBlock:
6949 switch ( component )
6950 {
6951 case 0 : return "SFLOAT";
6952 case 1 : return "SFLOAT";
6953 case 2 : return "SFLOAT";
6954 case 3 : return "SFLOAT";
6955 default: VULKAN_HPP_ASSERT( false ); return "";
6956 }
6957 case Format::eAstc10x5SfloatBlock:
6958 switch ( component )
6959 {
6960 case 0 : return "SFLOAT";
6961 case 1 : return "SFLOAT";
6962 case 2 : return "SFLOAT";
6963 case 3 : return "SFLOAT";
6964 default: VULKAN_HPP_ASSERT( false ); return "";
6965 }
6966 case Format::eAstc10x6SfloatBlock:
6967 switch ( component )
6968 {
6969 case 0 : return "SFLOAT";
6970 case 1 : return "SFLOAT";
6971 case 2 : return "SFLOAT";
6972 case 3 : return "SFLOAT";
6973 default: VULKAN_HPP_ASSERT( false ); return "";
6974 }
6975 case Format::eAstc10x8SfloatBlock:
6976 switch ( component )
6977 {
6978 case 0 : return "SFLOAT";
6979 case 1 : return "SFLOAT";
6980 case 2 : return "SFLOAT";
6981 case 3 : return "SFLOAT";
6982 default: VULKAN_HPP_ASSERT( false ); return "";
6983 }
6984 case Format::eAstc10x10SfloatBlock:
6985 switch ( component )
6986 {
6987 case 0 : return "SFLOAT";
6988 case 1 : return "SFLOAT";
6989 case 2 : return "SFLOAT";
6990 case 3 : return "SFLOAT";
6991 default: VULKAN_HPP_ASSERT( false ); return "";
6992 }
6993 case Format::eAstc12x10SfloatBlock:
6994 switch ( component )
6995 {
6996 case 0 : return "SFLOAT";
6997 case 1 : return "SFLOAT";
6998 case 2 : return "SFLOAT";
6999 case 3 : return "SFLOAT";
7000 default: VULKAN_HPP_ASSERT( false ); return "";
7001 }
7002 case Format::eAstc12x12SfloatBlock:
7003 switch ( component )
7004 {
7005 case 0 : return "SFLOAT";
7006 case 1 : return "SFLOAT";
7007 case 2 : return "SFLOAT";
7008 case 3 : return "SFLOAT";
7009 default: VULKAN_HPP_ASSERT( false ); return "";
7010 }
7011 case Format::eA1B5G5R5UnormPack16:
7012 switch ( component )
7013 {
7014 case 0 : return "UNORM";
7015 case 1 : return "UNORM";
7016 case 2 : return "UNORM";
7017 case 3 : return "UNORM";
7018 default: VULKAN_HPP_ASSERT( false ); return "";
7019 }
7020 case Format::eA8Unorm:
7021 switch ( component )
7022 {
7023 case 0 : return "UNORM";
7024 default: VULKAN_HPP_ASSERT( false ); return "";
7025 }
7026 case Format::ePvrtc12BppUnormBlockIMG:
7027 switch ( component )
7028 {
7029 case 0 : return "UNORM";
7030 case 1 : return "UNORM";
7031 case 2 : return "UNORM";
7032 case 3 : return "UNORM";
7033 default: VULKAN_HPP_ASSERT( false ); return "";
7034 }
7035 case Format::ePvrtc14BppUnormBlockIMG:
7036 switch ( component )
7037 {
7038 case 0 : return "UNORM";
7039 case 1 : return "UNORM";
7040 case 2 : return "UNORM";
7041 case 3 : return "UNORM";
7042 default: VULKAN_HPP_ASSERT( false ); return "";
7043 }
7044 case Format::ePvrtc22BppUnormBlockIMG:
7045 switch ( component )
7046 {
7047 case 0 : return "UNORM";
7048 case 1 : return "UNORM";
7049 case 2 : return "UNORM";
7050 case 3 : return "UNORM";
7051 default: VULKAN_HPP_ASSERT( false ); return "";
7052 }
7053 case Format::ePvrtc24BppUnormBlockIMG:
7054 switch ( component )
7055 {
7056 case 0 : return "UNORM";
7057 case 1 : return "UNORM";
7058 case 2 : return "UNORM";
7059 case 3 : return "UNORM";
7060 default: VULKAN_HPP_ASSERT( false ); return "";
7061 }
7062 case Format::ePvrtc12BppSrgbBlockIMG:
7063 switch ( component )
7064 {
7065 case 0 : return "SRGB";
7066 case 1 : return "SRGB";
7067 case 2 : return "SRGB";
7068 case 3 : return "UNORM";
7069 default: VULKAN_HPP_ASSERT( false ); return "";
7070 }
7071 case Format::ePvrtc14BppSrgbBlockIMG:
7072 switch ( component )
7073 {
7074 case 0 : return "SRGB";
7075 case 1 : return "SRGB";
7076 case 2 : return "SRGB";
7077 case 3 : return "UNORM";
7078 default: VULKAN_HPP_ASSERT( false ); return "";
7079 }
7080 case Format::ePvrtc22BppSrgbBlockIMG:
7081 switch ( component )
7082 {
7083 case 0 : return "SRGB";
7084 case 1 : return "SRGB";
7085 case 2 : return "SRGB";
7086 case 3 : return "UNORM";
7087 default: VULKAN_HPP_ASSERT( false ); return "";
7088 }
7089 case Format::ePvrtc24BppSrgbBlockIMG:
7090 switch ( component )
7091 {
7092 case 0 : return "SRGB";
7093 case 1 : return "SRGB";
7094 case 2 : return "SRGB";
7095 case 3 : return "UNORM";
7096 default: VULKAN_HPP_ASSERT( false ); return "";
7097 }
7098 case Format::eAstc3x3x3UnormBlockEXT:
7099 switch ( component )
7100 {
7101 case 0 : return "UNORM";
7102 case 1 : return "UNORM";
7103 case 2 : return "UNORM";
7104 case 3 : return "UNORM";
7105 default: VULKAN_HPP_ASSERT( false ); return "";
7106 }
7107 case Format::eAstc3x3x3SrgbBlockEXT:
7108 switch ( component )
7109 {
7110 case 0 : return "SRGB";
7111 case 1 : return "SRGB";
7112 case 2 : return "SRGB";
7113 case 3 : return "SRGB";
7114 default: VULKAN_HPP_ASSERT( false ); return "";
7115 }
7116 case Format::eAstc3x3x3SfloatBlockEXT:
7117 switch ( component )
7118 {
7119 case 0 : return "SFLOAT";
7120 case 1 : return "SFLOAT";
7121 case 2 : return "SFLOAT";
7122 case 3 : return "SFLOAT";
7123 default: VULKAN_HPP_ASSERT( false ); return "";
7124 }
7125 case Format::eAstc4x3x3UnormBlockEXT:
7126 switch ( component )
7127 {
7128 case 0 : return "UNORM";
7129 case 1 : return "UNORM";
7130 case 2 : return "UNORM";
7131 case 3 : return "UNORM";
7132 default: VULKAN_HPP_ASSERT( false ); return "";
7133 }
7134 case Format::eAstc4x3x3SrgbBlockEXT:
7135 switch ( component )
7136 {
7137 case 0 : return "SRGB";
7138 case 1 : return "SRGB";
7139 case 2 : return "SRGB";
7140 case 3 : return "SRGB";
7141 default: VULKAN_HPP_ASSERT( false ); return "";
7142 }
7143 case Format::eAstc4x3x3SfloatBlockEXT:
7144 switch ( component )
7145 {
7146 case 0 : return "SFLOAT";
7147 case 1 : return "SFLOAT";
7148 case 2 : return "SFLOAT";
7149 case 3 : return "SFLOAT";
7150 default: VULKAN_HPP_ASSERT( false ); return "";
7151 }
7152 case Format::eAstc4x4x3UnormBlockEXT:
7153 switch ( component )
7154 {
7155 case 0 : return "UNORM";
7156 case 1 : return "UNORM";
7157 case 2 : return "UNORM";
7158 case 3 : return "UNORM";
7159 default: VULKAN_HPP_ASSERT( false ); return "";
7160 }
7161 case Format::eAstc4x4x3SrgbBlockEXT:
7162 switch ( component )
7163 {
7164 case 0 : return "SRGB";
7165 case 1 : return "SRGB";
7166 case 2 : return "SRGB";
7167 case 3 : return "SRGB";
7168 default: VULKAN_HPP_ASSERT( false ); return "";
7169 }
7170 case Format::eAstc4x4x3SfloatBlockEXT:
7171 switch ( component )
7172 {
7173 case 0 : return "SFLOAT";
7174 case 1 : return "SFLOAT";
7175 case 2 : return "SFLOAT";
7176 case 3 : return "SFLOAT";
7177 default: VULKAN_HPP_ASSERT( false ); return "";
7178 }
7179 case Format::eAstc4x4x4UnormBlockEXT:
7180 switch ( component )
7181 {
7182 case 0 : return "UNORM";
7183 case 1 : return "UNORM";
7184 case 2 : return "UNORM";
7185 case 3 : return "UNORM";
7186 default: VULKAN_HPP_ASSERT( false ); return "";
7187 }
7188 case Format::eAstc4x4x4SrgbBlockEXT:
7189 switch ( component )
7190 {
7191 case 0 : return "SRGB";
7192 case 1 : return "SRGB";
7193 case 2 : return "SRGB";
7194 case 3 : return "SRGB";
7195 default: VULKAN_HPP_ASSERT( false ); return "";
7196 }
7197 case Format::eAstc4x4x4SfloatBlockEXT:
7198 switch ( component )
7199 {
7200 case 0 : return "SFLOAT";
7201 case 1 : return "SFLOAT";
7202 case 2 : return "SFLOAT";
7203 case 3 : return "SFLOAT";
7204 default: VULKAN_HPP_ASSERT( false ); return "";
7205 }
7206 case Format::eAstc5x4x4UnormBlockEXT:
7207 switch ( component )
7208 {
7209 case 0 : return "UNORM";
7210 case 1 : return "UNORM";
7211 case 2 : return "UNORM";
7212 case 3 : return "UNORM";
7213 default: VULKAN_HPP_ASSERT( false ); return "";
7214 }
7215 case Format::eAstc5x4x4SrgbBlockEXT:
7216 switch ( component )
7217 {
7218 case 0 : return "SRGB";
7219 case 1 : return "SRGB";
7220 case 2 : return "SRGB";
7221 case 3 : return "SRGB";
7222 default: VULKAN_HPP_ASSERT( false ); return "";
7223 }
7224 case Format::eAstc5x4x4SfloatBlockEXT:
7225 switch ( component )
7226 {
7227 case 0 : return "SFLOAT";
7228 case 1 : return "SFLOAT";
7229 case 2 : return "SFLOAT";
7230 case 3 : return "SFLOAT";
7231 default: VULKAN_HPP_ASSERT( false ); return "";
7232 }
7233 case Format::eAstc5x5x4UnormBlockEXT:
7234 switch ( component )
7235 {
7236 case 0 : return "UNORM";
7237 case 1 : return "UNORM";
7238 case 2 : return "UNORM";
7239 case 3 : return "UNORM";
7240 default: VULKAN_HPP_ASSERT( false ); return "";
7241 }
7242 case Format::eAstc5x5x4SrgbBlockEXT:
7243 switch ( component )
7244 {
7245 case 0 : return "SRGB";
7246 case 1 : return "SRGB";
7247 case 2 : return "SRGB";
7248 case 3 : return "SRGB";
7249 default: VULKAN_HPP_ASSERT( false ); return "";
7250 }
7251 case Format::eAstc5x5x4SfloatBlockEXT:
7252 switch ( component )
7253 {
7254 case 0 : return "SFLOAT";
7255 case 1 : return "SFLOAT";
7256 case 2 : return "SFLOAT";
7257 case 3 : return "SFLOAT";
7258 default: VULKAN_HPP_ASSERT( false ); return "";
7259 }
7260 case Format::eAstc5x5x5UnormBlockEXT:
7261 switch ( component )
7262 {
7263 case 0 : return "UNORM";
7264 case 1 : return "UNORM";
7265 case 2 : return "UNORM";
7266 case 3 : return "UNORM";
7267 default: VULKAN_HPP_ASSERT( false ); return "";
7268 }
7269 case Format::eAstc5x5x5SrgbBlockEXT:
7270 switch ( component )
7271 {
7272 case 0 : return "SRGB";
7273 case 1 : return "SRGB";
7274 case 2 : return "SRGB";
7275 case 3 : return "SRGB";
7276 default: VULKAN_HPP_ASSERT( false ); return "";
7277 }
7278 case Format::eAstc5x5x5SfloatBlockEXT:
7279 switch ( component )
7280 {
7281 case 0 : return "SFLOAT";
7282 case 1 : return "SFLOAT";
7283 case 2 : return "SFLOAT";
7284 case 3 : return "SFLOAT";
7285 default: VULKAN_HPP_ASSERT( false ); return "";
7286 }
7287 case Format::eAstc6x5x5UnormBlockEXT:
7288 switch ( component )
7289 {
7290 case 0 : return "UNORM";
7291 case 1 : return "UNORM";
7292 case 2 : return "UNORM";
7293 case 3 : return "UNORM";
7294 default: VULKAN_HPP_ASSERT( false ); return "";
7295 }
7296 case Format::eAstc6x5x5SrgbBlockEXT:
7297 switch ( component )
7298 {
7299 case 0 : return "SRGB";
7300 case 1 : return "SRGB";
7301 case 2 : return "SRGB";
7302 case 3 : return "SRGB";
7303 default: VULKAN_HPP_ASSERT( false ); return "";
7304 }
7305 case Format::eAstc6x5x5SfloatBlockEXT:
7306 switch ( component )
7307 {
7308 case 0 : return "SFLOAT";
7309 case 1 : return "SFLOAT";
7310 case 2 : return "SFLOAT";
7311 case 3 : return "SFLOAT";
7312 default: VULKAN_HPP_ASSERT( false ); return "";
7313 }
7314 case Format::eAstc6x6x5UnormBlockEXT:
7315 switch ( component )
7316 {
7317 case 0 : return "UNORM";
7318 case 1 : return "UNORM";
7319 case 2 : return "UNORM";
7320 case 3 : return "UNORM";
7321 default: VULKAN_HPP_ASSERT( false ); return "";
7322 }
7323 case Format::eAstc6x6x5SrgbBlockEXT:
7324 switch ( component )
7325 {
7326 case 0 : return "SRGB";
7327 case 1 : return "SRGB";
7328 case 2 : return "SRGB";
7329 case 3 : return "SRGB";
7330 default: VULKAN_HPP_ASSERT( false ); return "";
7331 }
7332 case Format::eAstc6x6x5SfloatBlockEXT:
7333 switch ( component )
7334 {
7335 case 0 : return "SFLOAT";
7336 case 1 : return "SFLOAT";
7337 case 2 : return "SFLOAT";
7338 case 3 : return "SFLOAT";
7339 default: VULKAN_HPP_ASSERT( false ); return "";
7340 }
7341 case Format::eAstc6x6x6UnormBlockEXT:
7342 switch ( component )
7343 {
7344 case 0 : return "UNORM";
7345 case 1 : return "UNORM";
7346 case 2 : return "UNORM";
7347 case 3 : return "UNORM";
7348 default: VULKAN_HPP_ASSERT( false ); return "";
7349 }
7350 case Format::eAstc6x6x6SrgbBlockEXT:
7351 switch ( component )
7352 {
7353 case 0 : return "SRGB";
7354 case 1 : return "SRGB";
7355 case 2 : return "SRGB";
7356 case 3 : return "SRGB";
7357 default: VULKAN_HPP_ASSERT( false ); return "";
7358 }
7359 case Format::eAstc6x6x6SfloatBlockEXT:
7360 switch ( component )
7361 {
7362 case 0 : return "SFLOAT";
7363 case 1 : return "SFLOAT";
7364 case 2 : return "SFLOAT";
7365 case 3 : return "SFLOAT";
7366 default: VULKAN_HPP_ASSERT( false ); return "";
7367 }
7368 case Format::eR8BoolARM:
7369 switch ( component )
7370 {
7371 case 0 : return "BOOL";
7372 default: VULKAN_HPP_ASSERT( false ); return "";
7373 }
7374 case Format::eR16G16Sfixed5NV:
7375 switch ( component )
7376 {
7377 case 0 : return "SFIXED5";
7378 case 1 : return "SFIXED5";
7379 default: VULKAN_HPP_ASSERT( false ); return "";
7380 }
7381 case Format::eR10X6UintPack16ARM:
7382 switch ( component )
7383 {
7384 case 0 : return "UINT";
7385 default: VULKAN_HPP_ASSERT( false ); return "";
7386 }
7387 case Format::eR10X6G10X6Uint2Pack16ARM:
7388 switch ( component )
7389 {
7390 case 0 : return "UINT";
7391 case 1 : return "UINT";
7392 default: VULKAN_HPP_ASSERT( false ); return "";
7393 }
7394 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
7395 switch ( component )
7396 {
7397 case 0 : return "UINT";
7398 case 1 : return "UINT";
7399 case 2 : return "UINT";
7400 case 3 : return "UINT";
7401 default: VULKAN_HPP_ASSERT( false ); return "";
7402 }
7403 case Format::eR12X4UintPack16ARM:
7404 switch ( component )
7405 {
7406 case 0 : return "UINT";
7407 default: VULKAN_HPP_ASSERT( false ); return "";
7408 }
7409 case Format::eR12X4G12X4Uint2Pack16ARM:
7410 switch ( component )
7411 {
7412 case 0 : return "UINT";
7413 case 1 : return "UINT";
7414 default: VULKAN_HPP_ASSERT( false ); return "";
7415 }
7416 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
7417 switch ( component )
7418 {
7419 case 0 : return "UINT";
7420 case 1 : return "UINT";
7421 case 2 : return "UINT";
7422 case 3 : return "UINT";
7423 default: VULKAN_HPP_ASSERT( false ); return "";
7424 }
7425 case Format::eR14X2UintPack16ARM:
7426 switch ( component )
7427 {
7428 case 0 : return "UINT";
7429 default: VULKAN_HPP_ASSERT( false ); return "";
7430 }
7431 case Format::eR14X2G14X2Uint2Pack16ARM:
7432 switch ( component )
7433 {
7434 case 0 : return "UINT";
7435 case 1 : return "UINT";
7436 default: VULKAN_HPP_ASSERT( false ); return "";
7437 }
7438 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
7439 switch ( component )
7440 {
7441 case 0 : return "UINT";
7442 case 1 : return "UINT";
7443 case 2 : return "UINT";
7444 case 3 : return "UINT";
7445 default: VULKAN_HPP_ASSERT( false ); return "";
7446 }
7447 case Format::eR14X2UnormPack16ARM:
7448 switch ( component )
7449 {
7450 case 0 : return "UNORM";
7451 default: VULKAN_HPP_ASSERT( false ); return "";
7452 }
7453 case Format::eR14X2G14X2Unorm2Pack16ARM:
7454 switch ( component )
7455 {
7456 case 0 : return "UNORM";
7457 case 1 : return "UNORM";
7458 default: VULKAN_HPP_ASSERT( false ); return "";
7459 }
7460 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM:
7461 switch ( component )
7462 {
7463 case 0 : return "UNORM";
7464 case 1 : return "UNORM";
7465 case 2 : return "UNORM";
7466 case 3 : return "UNORM";
7467 default: VULKAN_HPP_ASSERT( false ); return "";
7468 }
7469 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
7470 switch ( component )
7471 {
7472 case 0 : return "UNORM";
7473 case 1 : return "UNORM";
7474 case 2 : return "UNORM";
7475 default: VULKAN_HPP_ASSERT( false ); return "";
7476 }
7477 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
7478 switch ( component )
7479 {
7480 case 0 : return "UNORM";
7481 case 1 : return "UNORM";
7482 case 2 : return "UNORM";
7483 default: VULKAN_HPP_ASSERT( false ); return "";
7484 }
7485
7486 default: return "";
7487 }
7488 }
7489
7490 // The plane this component lies in.
7491 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t componentPlaneIndex( Format format, uint8_t component )
7492 {
7493 switch ( format )
7494 {
7495 case Format::eG8B8R83Plane420Unorm:
7496 switch ( component )
7497 {
7498 case 0 : return 0;
7499 case 1 : return 1;
7500 case 2 : return 2;
7501 default: VULKAN_HPP_ASSERT( false ); return 0;
7502 }
7503 case Format::eG8B8R82Plane420Unorm:
7504 switch ( component )
7505 {
7506 case 0 : return 0;
7507 case 1 : return 1;
7508 case 2 : return 1;
7509 default: VULKAN_HPP_ASSERT( false ); return 0;
7510 }
7511 case Format::eG8B8R83Plane422Unorm:
7512 switch ( component )
7513 {
7514 case 0 : return 0;
7515 case 1 : return 1;
7516 case 2 : return 2;
7517 default: VULKAN_HPP_ASSERT( false ); return 0;
7518 }
7519 case Format::eG8B8R82Plane422Unorm:
7520 switch ( component )
7521 {
7522 case 0 : return 0;
7523 case 1 : return 1;
7524 case 2 : return 1;
7525 default: VULKAN_HPP_ASSERT( false ); return 0;
7526 }
7527 case Format::eG8B8R83Plane444Unorm:
7528 switch ( component )
7529 {
7530 case 0 : return 0;
7531 case 1 : return 1;
7532 case 2 : return 2;
7533 default: VULKAN_HPP_ASSERT( false ); return 0;
7534 }
7535 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
7536 switch ( component )
7537 {
7538 case 0 : return 0;
7539 case 1 : return 1;
7540 case 2 : return 2;
7541 default: VULKAN_HPP_ASSERT( false ); return 0;
7542 }
7543 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
7544 switch ( component )
7545 {
7546 case 0 : return 0;
7547 case 1 : return 1;
7548 case 2 : return 1;
7549 default: VULKAN_HPP_ASSERT( false ); return 0;
7550 }
7551 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
7552 switch ( component )
7553 {
7554 case 0 : return 0;
7555 case 1 : return 1;
7556 case 2 : return 2;
7557 default: VULKAN_HPP_ASSERT( false ); return 0;
7558 }
7559 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
7560 switch ( component )
7561 {
7562 case 0 : return 0;
7563 case 1 : return 1;
7564 case 2 : return 1;
7565 default: VULKAN_HPP_ASSERT( false ); return 0;
7566 }
7567 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
7568 switch ( component )
7569 {
7570 case 0 : return 0;
7571 case 1 : return 1;
7572 case 2 : return 2;
7573 default: VULKAN_HPP_ASSERT( false ); return 0;
7574 }
7575 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
7576 switch ( component )
7577 {
7578 case 0 : return 0;
7579 case 1 : return 1;
7580 case 2 : return 2;
7581 default: VULKAN_HPP_ASSERT( false ); return 0;
7582 }
7583 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
7584 switch ( component )
7585 {
7586 case 0 : return 0;
7587 case 1 : return 1;
7588 case 2 : return 1;
7589 default: VULKAN_HPP_ASSERT( false ); return 0;
7590 }
7591 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
7592 switch ( component )
7593 {
7594 case 0 : return 0;
7595 case 1 : return 1;
7596 case 2 : return 2;
7597 default: VULKAN_HPP_ASSERT( false ); return 0;
7598 }
7599 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
7600 switch ( component )
7601 {
7602 case 0 : return 0;
7603 case 1 : return 1;
7604 case 2 : return 1;
7605 default: VULKAN_HPP_ASSERT( false ); return 0;
7606 }
7607 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
7608 switch ( component )
7609 {
7610 case 0 : return 0;
7611 case 1 : return 1;
7612 case 2 : return 2;
7613 default: VULKAN_HPP_ASSERT( false ); return 0;
7614 }
7615 case Format::eG16B16R163Plane420Unorm:
7616 switch ( component )
7617 {
7618 case 0 : return 0;
7619 case 1 : return 1;
7620 case 2 : return 2;
7621 default: VULKAN_HPP_ASSERT( false ); return 0;
7622 }
7623 case Format::eG16B16R162Plane420Unorm:
7624 switch ( component )
7625 {
7626 case 0 : return 0;
7627 case 1 : return 1;
7628 case 2 : return 1;
7629 default: VULKAN_HPP_ASSERT( false ); return 0;
7630 }
7631 case Format::eG16B16R163Plane422Unorm:
7632 switch ( component )
7633 {
7634 case 0 : return 0;
7635 case 1 : return 1;
7636 case 2 : return 2;
7637 default: VULKAN_HPP_ASSERT( false ); return 0;
7638 }
7639 case Format::eG16B16R162Plane422Unorm:
7640 switch ( component )
7641 {
7642 case 0 : return 0;
7643 case 1 : return 1;
7644 case 2 : return 1;
7645 default: VULKAN_HPP_ASSERT( false ); return 0;
7646 }
7647 case Format::eG16B16R163Plane444Unorm:
7648 switch ( component )
7649 {
7650 case 0 : return 0;
7651 case 1 : return 1;
7652 case 2 : return 2;
7653 default: VULKAN_HPP_ASSERT( false ); return 0;
7654 }
7655 case Format::eG8B8R82Plane444Unorm:
7656 switch ( component )
7657 {
7658 case 0 : return 0;
7659 case 1 : return 1;
7660 case 2 : return 1;
7661 default: VULKAN_HPP_ASSERT( false ); return 0;
7662 }
7663 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
7664 switch ( component )
7665 {
7666 case 0 : return 0;
7667 case 1 : return 1;
7668 case 2 : return 1;
7669 default: VULKAN_HPP_ASSERT( false ); return 0;
7670 }
7671 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
7672 switch ( component )
7673 {
7674 case 0 : return 0;
7675 case 1 : return 1;
7676 case 2 : return 1;
7677 default: VULKAN_HPP_ASSERT( false ); return 0;
7678 }
7679 case Format::eG16B16R162Plane444Unorm:
7680 switch ( component )
7681 {
7682 case 0 : return 0;
7683 case 1 : return 1;
7684 case 2 : return 1;
7685 default: VULKAN_HPP_ASSERT( false ); return 0;
7686 }
7687 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
7688 switch ( component )
7689 {
7690 case 0 : return 0;
7691 case 1 : return 1;
7692 case 2 : return 1;
7693 default: VULKAN_HPP_ASSERT( false ); return 0;
7694 }
7695 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
7696 switch ( component )
7697 {
7698 case 0 : return 0;
7699 case 1 : return 1;
7700 case 2 : return 1;
7701 default: VULKAN_HPP_ASSERT( false ); return 0;
7702 }
7703
7704 default: return 0;
7705 }
7706 }
7707
7708 // True, if the components of this format are compressed, otherwise false.
7709 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool componentsAreCompressed( Format format )
7710 {
7711 switch ( format )
7712 {
7713 case Format::eBc1RgbUnormBlock:
7714 case Format::eBc1RgbSrgbBlock:
7715 case Format::eBc1RgbaUnormBlock:
7716 case Format::eBc1RgbaSrgbBlock:
7717 case Format::eBc2UnormBlock:
7718 case Format::eBc2SrgbBlock:
7719 case Format::eBc3UnormBlock:
7720 case Format::eBc3SrgbBlock:
7721 case Format::eBc4UnormBlock:
7722 case Format::eBc4SnormBlock:
7723 case Format::eBc5UnormBlock:
7724 case Format::eBc5SnormBlock:
7725 case Format::eBc6HUfloatBlock:
7726 case Format::eBc6HSfloatBlock:
7727 case Format::eBc7UnormBlock:
7728 case Format::eBc7SrgbBlock:
7729 case Format::eEtc2R8G8B8UnormBlock:
7730 case Format::eEtc2R8G8B8SrgbBlock:
7731 case Format::eEtc2R8G8B8A1UnormBlock:
7732 case Format::eEtc2R8G8B8A1SrgbBlock:
7733 case Format::eEtc2R8G8B8A8UnormBlock:
7734 case Format::eEtc2R8G8B8A8SrgbBlock:
7735 case Format::eAstc4x4UnormBlock:
7736 case Format::eAstc4x4SrgbBlock:
7737 case Format::eAstc5x4UnormBlock:
7738 case Format::eAstc5x4SrgbBlock:
7739 case Format::eAstc5x5UnormBlock:
7740 case Format::eAstc5x5SrgbBlock:
7741 case Format::eAstc6x5UnormBlock:
7742 case Format::eAstc6x5SrgbBlock:
7743 case Format::eAstc6x6UnormBlock:
7744 case Format::eAstc6x6SrgbBlock:
7745 case Format::eAstc8x5UnormBlock:
7746 case Format::eAstc8x5SrgbBlock:
7747 case Format::eAstc8x6UnormBlock:
7748 case Format::eAstc8x6SrgbBlock:
7749 case Format::eAstc8x8UnormBlock:
7750 case Format::eAstc8x8SrgbBlock:
7751 case Format::eAstc10x5UnormBlock:
7752 case Format::eAstc10x5SrgbBlock:
7753 case Format::eAstc10x6UnormBlock:
7754 case Format::eAstc10x6SrgbBlock:
7755 case Format::eAstc10x8UnormBlock:
7756 case Format::eAstc10x8SrgbBlock:
7757 case Format::eAstc10x10UnormBlock:
7758 case Format::eAstc10x10SrgbBlock:
7759 case Format::eAstc12x10UnormBlock:
7760 case Format::eAstc12x10SrgbBlock:
7761 case Format::eAstc12x12UnormBlock:
7762 case Format::eAstc12x12SrgbBlock:
7763 case Format::eAstc4x4SfloatBlock:
7764 case Format::eAstc5x4SfloatBlock:
7765 case Format::eAstc5x5SfloatBlock:
7766 case Format::eAstc6x5SfloatBlock:
7767 case Format::eAstc6x6SfloatBlock:
7768 case Format::eAstc8x5SfloatBlock:
7769 case Format::eAstc8x6SfloatBlock:
7770 case Format::eAstc8x8SfloatBlock:
7771 case Format::eAstc10x5SfloatBlock:
7772 case Format::eAstc10x6SfloatBlock:
7773 case Format::eAstc10x8SfloatBlock:
7774 case Format::eAstc10x10SfloatBlock:
7775 case Format::eAstc12x10SfloatBlock:
7776 case Format::eAstc12x12SfloatBlock:
7777 case Format::ePvrtc12BppUnormBlockIMG:
7778 case Format::ePvrtc14BppUnormBlockIMG:
7779 case Format::ePvrtc22BppUnormBlockIMG:
7780 case Format::ePvrtc24BppUnormBlockIMG:
7781 case Format::ePvrtc12BppSrgbBlockIMG:
7782 case Format::ePvrtc14BppSrgbBlockIMG:
7783 case Format::ePvrtc22BppSrgbBlockIMG:
7784 case Format::ePvrtc24BppSrgbBlockIMG:
7785 case Format::eAstc3x3x3UnormBlockEXT:
7786 case Format::eAstc3x3x3SrgbBlockEXT:
7787 case Format::eAstc3x3x3SfloatBlockEXT:
7788 case Format::eAstc4x3x3UnormBlockEXT:
7789 case Format::eAstc4x3x3SrgbBlockEXT:
7790 case Format::eAstc4x3x3SfloatBlockEXT:
7791 case Format::eAstc4x4x3UnormBlockEXT:
7792 case Format::eAstc4x4x3SrgbBlockEXT:
7793 case Format::eAstc4x4x3SfloatBlockEXT:
7794 case Format::eAstc4x4x4UnormBlockEXT:
7795 case Format::eAstc4x4x4SrgbBlockEXT:
7796 case Format::eAstc4x4x4SfloatBlockEXT:
7797 case Format::eAstc5x4x4UnormBlockEXT:
7798 case Format::eAstc5x4x4SrgbBlockEXT:
7799 case Format::eAstc5x4x4SfloatBlockEXT:
7800 case Format::eAstc5x5x4UnormBlockEXT:
7801 case Format::eAstc5x5x4SrgbBlockEXT:
7802 case Format::eAstc5x5x4SfloatBlockEXT:
7803 case Format::eAstc5x5x5UnormBlockEXT:
7804 case Format::eAstc5x5x5SrgbBlockEXT:
7805 case Format::eAstc5x5x5SfloatBlockEXT:
7806 case Format::eAstc6x5x5UnormBlockEXT:
7807 case Format::eAstc6x5x5SrgbBlockEXT:
7808 case Format::eAstc6x5x5SfloatBlockEXT:
7809 case Format::eAstc6x6x5UnormBlockEXT:
7810 case Format::eAstc6x6x5SrgbBlockEXT:
7811 case Format::eAstc6x6x5SfloatBlockEXT:
7812 case Format::eAstc6x6x6UnormBlockEXT:
7813 case Format::eAstc6x6x6SrgbBlockEXT:
7814 case Format::eAstc6x6x6SfloatBlockEXT: return true;
7815 default : return false;
7816 }
7817 }
7818
7819 // A textual description of the compression scheme, or an empty string if it is not compressed
7820 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 char const * compressionScheme( Format format )
7821 {
7822 switch ( format )
7823 {
7824 case Format::eBc1RgbUnormBlock : return "BC";
7825 case Format::eBc1RgbSrgbBlock : return "BC";
7826 case Format::eBc1RgbaUnormBlock : return "BC";
7827 case Format::eBc1RgbaSrgbBlock : return "BC";
7828 case Format::eBc2UnormBlock : return "BC";
7829 case Format::eBc2SrgbBlock : return "BC";
7830 case Format::eBc3UnormBlock : return "BC";
7831 case Format::eBc3SrgbBlock : return "BC";
7832 case Format::eBc4UnormBlock : return "BC";
7833 case Format::eBc4SnormBlock : return "BC";
7834 case Format::eBc5UnormBlock : return "BC";
7835 case Format::eBc5SnormBlock : return "BC";
7836 case Format::eBc6HUfloatBlock : return "BC";
7837 case Format::eBc6HSfloatBlock : return "BC";
7838 case Format::eBc7UnormBlock : return "BC";
7839 case Format::eBc7SrgbBlock : return "BC";
7840 case Format::eEtc2R8G8B8UnormBlock : return "ETC2";
7841 case Format::eEtc2R8G8B8SrgbBlock : return "ETC2";
7842 case Format::eEtc2R8G8B8A1UnormBlock : return "ETC2";
7843 case Format::eEtc2R8G8B8A1SrgbBlock : return "ETC2";
7844 case Format::eEtc2R8G8B8A8UnormBlock : return "ETC2";
7845 case Format::eEtc2R8G8B8A8SrgbBlock : return "ETC2";
7846 case Format::eEacR11UnormBlock : return "EAC";
7847 case Format::eEacR11SnormBlock : return "EAC";
7848 case Format::eEacR11G11UnormBlock : return "EAC";
7849 case Format::eEacR11G11SnormBlock : return "EAC";
7850 case Format::eAstc4x4UnormBlock : return "ASTC LDR";
7851 case Format::eAstc4x4SrgbBlock : return "ASTC LDR";
7852 case Format::eAstc5x4UnormBlock : return "ASTC LDR";
7853 case Format::eAstc5x4SrgbBlock : return "ASTC LDR";
7854 case Format::eAstc5x5UnormBlock : return "ASTC LDR";
7855 case Format::eAstc5x5SrgbBlock : return "ASTC LDR";
7856 case Format::eAstc6x5UnormBlock : return "ASTC LDR";
7857 case Format::eAstc6x5SrgbBlock : return "ASTC LDR";
7858 case Format::eAstc6x6UnormBlock : return "ASTC LDR";
7859 case Format::eAstc6x6SrgbBlock : return "ASTC LDR";
7860 case Format::eAstc8x5UnormBlock : return "ASTC LDR";
7861 case Format::eAstc8x5SrgbBlock : return "ASTC LDR";
7862 case Format::eAstc8x6UnormBlock : return "ASTC LDR";
7863 case Format::eAstc8x6SrgbBlock : return "ASTC LDR";
7864 case Format::eAstc8x8UnormBlock : return "ASTC LDR";
7865 case Format::eAstc8x8SrgbBlock : return "ASTC LDR";
7866 case Format::eAstc10x5UnormBlock : return "ASTC LDR";
7867 case Format::eAstc10x5SrgbBlock : return "ASTC LDR";
7868 case Format::eAstc10x6UnormBlock : return "ASTC LDR";
7869 case Format::eAstc10x6SrgbBlock : return "ASTC LDR";
7870 case Format::eAstc10x8UnormBlock : return "ASTC LDR";
7871 case Format::eAstc10x8SrgbBlock : return "ASTC LDR";
7872 case Format::eAstc10x10UnormBlock : return "ASTC LDR";
7873 case Format::eAstc10x10SrgbBlock : return "ASTC LDR";
7874 case Format::eAstc12x10UnormBlock : return "ASTC LDR";
7875 case Format::eAstc12x10SrgbBlock : return "ASTC LDR";
7876 case Format::eAstc12x12UnormBlock : return "ASTC LDR";
7877 case Format::eAstc12x12SrgbBlock : return "ASTC LDR";
7878 case Format::eAstc4x4SfloatBlock : return "ASTC HDR";
7879 case Format::eAstc5x4SfloatBlock : return "ASTC HDR";
7880 case Format::eAstc5x5SfloatBlock : return "ASTC HDR";
7881 case Format::eAstc6x5SfloatBlock : return "ASTC HDR";
7882 case Format::eAstc6x6SfloatBlock : return "ASTC HDR";
7883 case Format::eAstc8x5SfloatBlock : return "ASTC HDR";
7884 case Format::eAstc8x6SfloatBlock : return "ASTC HDR";
7885 case Format::eAstc8x8SfloatBlock : return "ASTC HDR";
7886 case Format::eAstc10x5SfloatBlock : return "ASTC HDR";
7887 case Format::eAstc10x6SfloatBlock : return "ASTC HDR";
7888 case Format::eAstc10x8SfloatBlock : return "ASTC HDR";
7889 case Format::eAstc10x10SfloatBlock : return "ASTC HDR";
7890 case Format::eAstc12x10SfloatBlock : return "ASTC HDR";
7891 case Format::eAstc12x12SfloatBlock : return "ASTC HDR";
7892 case Format::ePvrtc12BppUnormBlockIMG: return "PVRTC";
7893 case Format::ePvrtc14BppUnormBlockIMG: return "PVRTC";
7894 case Format::ePvrtc22BppUnormBlockIMG: return "PVRTC";
7895 case Format::ePvrtc24BppUnormBlockIMG: return "PVRTC";
7896 case Format::ePvrtc12BppSrgbBlockIMG : return "PVRTC";
7897 case Format::ePvrtc14BppSrgbBlockIMG : return "PVRTC";
7898 case Format::ePvrtc22BppSrgbBlockIMG : return "PVRTC";
7899 case Format::ePvrtc24BppSrgbBlockIMG : return "PVRTC";
7900 case Format::eAstc3x3x3UnormBlockEXT : return "ASTC LDR";
7901 case Format::eAstc3x3x3SrgbBlockEXT : return "ASTC LDR";
7902 case Format::eAstc3x3x3SfloatBlockEXT: return "ASTC HDR";
7903 case Format::eAstc4x3x3UnormBlockEXT : return "ASTC LDR";
7904 case Format::eAstc4x3x3SrgbBlockEXT : return "ASTC LDR";
7905 case Format::eAstc4x3x3SfloatBlockEXT: return "ASTC HDR";
7906 case Format::eAstc4x4x3UnormBlockEXT : return "ASTC LDR";
7907 case Format::eAstc4x4x3SrgbBlockEXT : return "ASTC LDR";
7908 case Format::eAstc4x4x3SfloatBlockEXT: return "ASTC HDR";
7909 case Format::eAstc4x4x4UnormBlockEXT : return "ASTC LDR";
7910 case Format::eAstc4x4x4SrgbBlockEXT : return "ASTC LDR";
7911 case Format::eAstc4x4x4SfloatBlockEXT: return "ASTC HDR";
7912 case Format::eAstc5x4x4UnormBlockEXT : return "ASTC LDR";
7913 case Format::eAstc5x4x4SrgbBlockEXT : return "ASTC LDR";
7914 case Format::eAstc5x4x4SfloatBlockEXT: return "ASTC HDR";
7915 case Format::eAstc5x5x4UnormBlockEXT : return "ASTC LDR";
7916 case Format::eAstc5x5x4SrgbBlockEXT : return "ASTC LDR";
7917 case Format::eAstc5x5x4SfloatBlockEXT: return "ASTC HDR";
7918 case Format::eAstc5x5x5UnormBlockEXT : return "ASTC LDR";
7919 case Format::eAstc5x5x5SrgbBlockEXT : return "ASTC LDR";
7920 case Format::eAstc5x5x5SfloatBlockEXT: return "ASTC HDR";
7921 case Format::eAstc6x5x5UnormBlockEXT : return "ASTC LDR";
7922 case Format::eAstc6x5x5SrgbBlockEXT : return "ASTC LDR";
7923 case Format::eAstc6x5x5SfloatBlockEXT: return "ASTC HDR";
7924 case Format::eAstc6x6x5UnormBlockEXT : return "ASTC LDR";
7925 case Format::eAstc6x6x5SrgbBlockEXT : return "ASTC LDR";
7926 case Format::eAstc6x6x5SfloatBlockEXT: return "ASTC HDR";
7927 case Format::eAstc6x6x6UnormBlockEXT : return "ASTC LDR";
7928 case Format::eAstc6x6x6SrgbBlockEXT : return "ASTC LDR";
7929 case Format::eAstc6x6x6SfloatBlockEXT: return "ASTC HDR";
7930
7931 default: return "";
7932 }
7933 }
7934
7935 // Get all formats
7936 VULKAN_HPP_INLINE std::vector<Format> const & getAllFormats()
7937 {
7938 static std::vector<Format> allFormats = { Format::eR4G4UnormPack8,
7939 Format::eR4G4B4A4UnormPack16,
7940 Format::eB4G4R4A4UnormPack16,
7941 Format::eR5G6B5UnormPack16,
7942 Format::eB5G6R5UnormPack16,
7943 Format::eR5G5B5A1UnormPack16,
7944 Format::eB5G5R5A1UnormPack16,
7945 Format::eA1R5G5B5UnormPack16,
7946 Format::eR8Unorm,
7947 Format::eR8Snorm,
7948 Format::eR8Uscaled,
7949 Format::eR8Sscaled,
7950 Format::eR8Uint,
7951 Format::eR8Sint,
7952 Format::eR8Srgb,
7953 Format::eR8G8Unorm,
7954 Format::eR8G8Snorm,
7955 Format::eR8G8Uscaled,
7956 Format::eR8G8Sscaled,
7957 Format::eR8G8Uint,
7958 Format::eR8G8Sint,
7959 Format::eR8G8Srgb,
7960 Format::eR8G8B8Unorm,
7961 Format::eR8G8B8Snorm,
7962 Format::eR8G8B8Uscaled,
7963 Format::eR8G8B8Sscaled,
7964 Format::eR8G8B8Uint,
7965 Format::eR8G8B8Sint,
7966 Format::eR8G8B8Srgb,
7967 Format::eB8G8R8Unorm,
7968 Format::eB8G8R8Snorm,
7969 Format::eB8G8R8Uscaled,
7970 Format::eB8G8R8Sscaled,
7971 Format::eB8G8R8Uint,
7972 Format::eB8G8R8Sint,
7973 Format::eB8G8R8Srgb,
7974 Format::eR8G8B8A8Unorm,
7975 Format::eR8G8B8A8Snorm,
7976 Format::eR8G8B8A8Uscaled,
7977 Format::eR8G8B8A8Sscaled,
7978 Format::eR8G8B8A8Uint,
7979 Format::eR8G8B8A8Sint,
7980 Format::eR8G8B8A8Srgb,
7981 Format::eB8G8R8A8Unorm,
7982 Format::eB8G8R8A8Snorm,
7983 Format::eB8G8R8A8Uscaled,
7984 Format::eB8G8R8A8Sscaled,
7985 Format::eB8G8R8A8Uint,
7986 Format::eB8G8R8A8Sint,
7987 Format::eB8G8R8A8Srgb,
7988 Format::eA8B8G8R8UnormPack32,
7989 Format::eA8B8G8R8SnormPack32,
7990 Format::eA8B8G8R8UscaledPack32,
7991 Format::eA8B8G8R8SscaledPack32,
7992 Format::eA8B8G8R8UintPack32,
7993 Format::eA8B8G8R8SintPack32,
7994 Format::eA8B8G8R8SrgbPack32,
7995 Format::eA2R10G10B10UnormPack32,
7996 Format::eA2R10G10B10SnormPack32,
7997 Format::eA2R10G10B10UscaledPack32,
7998 Format::eA2R10G10B10SscaledPack32,
7999 Format::eA2R10G10B10UintPack32,
8000 Format::eA2R10G10B10SintPack32,
8001 Format::eA2B10G10R10UnormPack32,
8002 Format::eA2B10G10R10SnormPack32,
8003 Format::eA2B10G10R10UscaledPack32,
8004 Format::eA2B10G10R10SscaledPack32,
8005 Format::eA2B10G10R10UintPack32,
8006 Format::eA2B10G10R10SintPack32,
8007 Format::eR16Unorm,
8008 Format::eR16Snorm,
8009 Format::eR16Uscaled,
8010 Format::eR16Sscaled,
8011 Format::eR16Uint,
8012 Format::eR16Sint,
8013 Format::eR16Sfloat,
8014 Format::eR16G16Unorm,
8015 Format::eR16G16Snorm,
8016 Format::eR16G16Uscaled,
8017 Format::eR16G16Sscaled,
8018 Format::eR16G16Uint,
8019 Format::eR16G16Sint,
8020 Format::eR16G16Sfloat,
8021 Format::eR16G16B16Unorm,
8022 Format::eR16G16B16Snorm,
8023 Format::eR16G16B16Uscaled,
8024 Format::eR16G16B16Sscaled,
8025 Format::eR16G16B16Uint,
8026 Format::eR16G16B16Sint,
8027 Format::eR16G16B16Sfloat,
8028 Format::eR16G16B16A16Unorm,
8029 Format::eR16G16B16A16Snorm,
8030 Format::eR16G16B16A16Uscaled,
8031 Format::eR16G16B16A16Sscaled,
8032 Format::eR16G16B16A16Uint,
8033 Format::eR16G16B16A16Sint,
8034 Format::eR16G16B16A16Sfloat,
8035 Format::eR32Uint,
8036 Format::eR32Sint,
8037 Format::eR32Sfloat,
8038 Format::eR32G32Uint,
8039 Format::eR32G32Sint,
8040 Format::eR32G32Sfloat,
8041 Format::eR32G32B32Uint,
8042 Format::eR32G32B32Sint,
8043 Format::eR32G32B32Sfloat,
8044 Format::eR32G32B32A32Uint,
8045 Format::eR32G32B32A32Sint,
8046 Format::eR32G32B32A32Sfloat,
8047 Format::eR64Uint,
8048 Format::eR64Sint,
8049 Format::eR64Sfloat,
8050 Format::eR64G64Uint,
8051 Format::eR64G64Sint,
8052 Format::eR64G64Sfloat,
8053 Format::eR64G64B64Uint,
8054 Format::eR64G64B64Sint,
8055 Format::eR64G64B64Sfloat,
8056 Format::eR64G64B64A64Uint,
8057 Format::eR64G64B64A64Sint,
8058 Format::eR64G64B64A64Sfloat,
8059 Format::eB10G11R11UfloatPack32,
8060 Format::eE5B9G9R9UfloatPack32,
8061 Format::eD16Unorm,
8062 Format::eX8D24UnormPack32,
8063 Format::eD32Sfloat,
8064 Format::eS8Uint,
8065 Format::eD16UnormS8Uint,
8066 Format::eD24UnormS8Uint,
8067 Format::eD32SfloatS8Uint,
8068 Format::eBc1RgbUnormBlock,
8069 Format::eBc1RgbSrgbBlock,
8070 Format::eBc1RgbaUnormBlock,
8071 Format::eBc1RgbaSrgbBlock,
8072 Format::eBc2UnormBlock,
8073 Format::eBc2SrgbBlock,
8074 Format::eBc3UnormBlock,
8075 Format::eBc3SrgbBlock,
8076 Format::eBc4UnormBlock,
8077 Format::eBc4SnormBlock,
8078 Format::eBc5UnormBlock,
8079 Format::eBc5SnormBlock,
8080 Format::eBc6HUfloatBlock,
8081 Format::eBc6HSfloatBlock,
8082 Format::eBc7UnormBlock,
8083 Format::eBc7SrgbBlock,
8084 Format::eEtc2R8G8B8UnormBlock,
8085 Format::eEtc2R8G8B8SrgbBlock,
8086 Format::eEtc2R8G8B8A1UnormBlock,
8087 Format::eEtc2R8G8B8A1SrgbBlock,
8088 Format::eEtc2R8G8B8A8UnormBlock,
8089 Format::eEtc2R8G8B8A8SrgbBlock,
8090 Format::eEacR11UnormBlock,
8091 Format::eEacR11SnormBlock,
8092 Format::eEacR11G11UnormBlock,
8093 Format::eEacR11G11SnormBlock,
8094 Format::eAstc4x4UnormBlock,
8095 Format::eAstc4x4SrgbBlock,
8096 Format::eAstc5x4UnormBlock,
8097 Format::eAstc5x4SrgbBlock,
8098 Format::eAstc5x5UnormBlock,
8099 Format::eAstc5x5SrgbBlock,
8100 Format::eAstc6x5UnormBlock,
8101 Format::eAstc6x5SrgbBlock,
8102 Format::eAstc6x6UnormBlock,
8103 Format::eAstc6x6SrgbBlock,
8104 Format::eAstc8x5UnormBlock,
8105 Format::eAstc8x5SrgbBlock,
8106 Format::eAstc8x6UnormBlock,
8107 Format::eAstc8x6SrgbBlock,
8108 Format::eAstc8x8UnormBlock,
8109 Format::eAstc8x8SrgbBlock,
8110 Format::eAstc10x5UnormBlock,
8111 Format::eAstc10x5SrgbBlock,
8112 Format::eAstc10x6UnormBlock,
8113 Format::eAstc10x6SrgbBlock,
8114 Format::eAstc10x8UnormBlock,
8115 Format::eAstc10x8SrgbBlock,
8116 Format::eAstc10x10UnormBlock,
8117 Format::eAstc10x10SrgbBlock,
8118 Format::eAstc12x10UnormBlock,
8119 Format::eAstc12x10SrgbBlock,
8120 Format::eAstc12x12UnormBlock,
8121 Format::eAstc12x12SrgbBlock,
8122 Format::eG8B8G8R8422Unorm,
8123 Format::eB8G8R8G8422Unorm,
8124 Format::eG8B8R83Plane420Unorm,
8125 Format::eG8B8R82Plane420Unorm,
8126 Format::eG8B8R83Plane422Unorm,
8127 Format::eG8B8R82Plane422Unorm,
8128 Format::eG8B8R83Plane444Unorm,
8129 Format::eR10X6UnormPack16,
8130 Format::eR10X6G10X6Unorm2Pack16,
8131 Format::eR10X6G10X6B10X6A10X6Unorm4Pack16,
8132 Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16,
8133 Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16,
8134 Format::eG10X6B10X6R10X63Plane420Unorm3Pack16,
8135 Format::eG10X6B10X6R10X62Plane420Unorm3Pack16,
8136 Format::eG10X6B10X6R10X63Plane422Unorm3Pack16,
8137 Format::eG10X6B10X6R10X62Plane422Unorm3Pack16,
8138 Format::eG10X6B10X6R10X63Plane444Unorm3Pack16,
8139 Format::eR12X4UnormPack16,
8140 Format::eR12X4G12X4Unorm2Pack16,
8141 Format::eR12X4G12X4B12X4A12X4Unorm4Pack16,
8142 Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16,
8143 Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16,
8144 Format::eG12X4B12X4R12X43Plane420Unorm3Pack16,
8145 Format::eG12X4B12X4R12X42Plane420Unorm3Pack16,
8146 Format::eG12X4B12X4R12X43Plane422Unorm3Pack16,
8147 Format::eG12X4B12X4R12X42Plane422Unorm3Pack16,
8148 Format::eG12X4B12X4R12X43Plane444Unorm3Pack16,
8149 Format::eG16B16G16R16422Unorm,
8150 Format::eB16G16R16G16422Unorm,
8151 Format::eG16B16R163Plane420Unorm,
8152 Format::eG16B16R162Plane420Unorm,
8153 Format::eG16B16R163Plane422Unorm,
8154 Format::eG16B16R162Plane422Unorm,
8155 Format::eG16B16R163Plane444Unorm,
8156 Format::eG8B8R82Plane444Unorm,
8157 Format::eG10X6B10X6R10X62Plane444Unorm3Pack16,
8158 Format::eG12X4B12X4R12X42Plane444Unorm3Pack16,
8159 Format::eG16B16R162Plane444Unorm,
8160 Format::eA4R4G4B4UnormPack16,
8161 Format::eA4B4G4R4UnormPack16,
8162 Format::eAstc4x4SfloatBlock,
8163 Format::eAstc5x4SfloatBlock,
8164 Format::eAstc5x5SfloatBlock,
8165 Format::eAstc6x5SfloatBlock,
8166 Format::eAstc6x6SfloatBlock,
8167 Format::eAstc8x5SfloatBlock,
8168 Format::eAstc8x6SfloatBlock,
8169 Format::eAstc8x8SfloatBlock,
8170 Format::eAstc10x5SfloatBlock,
8171 Format::eAstc10x6SfloatBlock,
8172 Format::eAstc10x8SfloatBlock,
8173 Format::eAstc10x10SfloatBlock,
8174 Format::eAstc12x10SfloatBlock,
8175 Format::eAstc12x12SfloatBlock,
8176 Format::eA1B5G5R5UnormPack16,
8177 Format::eA8Unorm,
8178 Format::ePvrtc12BppUnormBlockIMG,
8179 Format::ePvrtc14BppUnormBlockIMG,
8180 Format::ePvrtc22BppUnormBlockIMG,
8181 Format::ePvrtc24BppUnormBlockIMG,
8182 Format::ePvrtc12BppSrgbBlockIMG,
8183 Format::ePvrtc14BppSrgbBlockIMG,
8184 Format::ePvrtc22BppSrgbBlockIMG,
8185 Format::ePvrtc24BppSrgbBlockIMG,
8186 Format::eAstc3x3x3UnormBlockEXT,
8187 Format::eAstc3x3x3SrgbBlockEXT,
8188 Format::eAstc3x3x3SfloatBlockEXT,
8189 Format::eAstc4x3x3UnormBlockEXT,
8190 Format::eAstc4x3x3SrgbBlockEXT,
8191 Format::eAstc4x3x3SfloatBlockEXT,
8192 Format::eAstc4x4x3UnormBlockEXT,
8193 Format::eAstc4x4x3SrgbBlockEXT,
8194 Format::eAstc4x4x3SfloatBlockEXT,
8195 Format::eAstc4x4x4UnormBlockEXT,
8196 Format::eAstc4x4x4SrgbBlockEXT,
8197 Format::eAstc4x4x4SfloatBlockEXT,
8198 Format::eAstc5x4x4UnormBlockEXT,
8199 Format::eAstc5x4x4SrgbBlockEXT,
8200 Format::eAstc5x4x4SfloatBlockEXT,
8201 Format::eAstc5x5x4UnormBlockEXT,
8202 Format::eAstc5x5x4SrgbBlockEXT,
8203 Format::eAstc5x5x4SfloatBlockEXT,
8204 Format::eAstc5x5x5UnormBlockEXT,
8205 Format::eAstc5x5x5SrgbBlockEXT,
8206 Format::eAstc5x5x5SfloatBlockEXT,
8207 Format::eAstc6x5x5UnormBlockEXT,
8208 Format::eAstc6x5x5SrgbBlockEXT,
8209 Format::eAstc6x5x5SfloatBlockEXT,
8210 Format::eAstc6x6x5UnormBlockEXT,
8211 Format::eAstc6x6x5SrgbBlockEXT,
8212 Format::eAstc6x6x5SfloatBlockEXT,
8213 Format::eAstc6x6x6UnormBlockEXT,
8214 Format::eAstc6x6x6SrgbBlockEXT,
8215 Format::eAstc6x6x6SfloatBlockEXT,
8216 Format::eR8BoolARM,
8217 Format::eR16G16Sfixed5NV,
8218 Format::eR10X6UintPack16ARM,
8219 Format::eR10X6G10X6Uint2Pack16ARM,
8220 Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM,
8221 Format::eR12X4UintPack16ARM,
8222 Format::eR12X4G12X4Uint2Pack16ARM,
8223 Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM,
8224 Format::eR14X2UintPack16ARM,
8225 Format::eR14X2G14X2Uint2Pack16ARM,
8226 Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM,
8227 Format::eR14X2UnormPack16ARM,
8228 Format::eR14X2G14X2Unorm2Pack16ARM,
8229 Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM,
8230 Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM,
8231 Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM };
8232 return allFormats;
8233 }
8234
8235 // Get all formats with a color component
8236 VULKAN_HPP_INLINE std::vector<Format> const & getColorFormats()
8237 {
8238 static std::vector<Format> colorFormats = { Format::eR4G4UnormPack8,
8239 Format::eR4G4B4A4UnormPack16,
8240 Format::eB4G4R4A4UnormPack16,
8241 Format::eR5G6B5UnormPack16,
8242 Format::eB5G6R5UnormPack16,
8243 Format::eR5G5B5A1UnormPack16,
8244 Format::eB5G5R5A1UnormPack16,
8245 Format::eA1R5G5B5UnormPack16,
8246 Format::eR8Unorm,
8247 Format::eR8Snorm,
8248 Format::eR8Uscaled,
8249 Format::eR8Sscaled,
8250 Format::eR8Uint,
8251 Format::eR8Sint,
8252 Format::eR8Srgb,
8253 Format::eR8G8Unorm,
8254 Format::eR8G8Snorm,
8255 Format::eR8G8Uscaled,
8256 Format::eR8G8Sscaled,
8257 Format::eR8G8Uint,
8258 Format::eR8G8Sint,
8259 Format::eR8G8Srgb,
8260 Format::eR8G8B8Unorm,
8261 Format::eR8G8B8Snorm,
8262 Format::eR8G8B8Uscaled,
8263 Format::eR8G8B8Sscaled,
8264 Format::eR8G8B8Uint,
8265 Format::eR8G8B8Sint,
8266 Format::eR8G8B8Srgb,
8267 Format::eB8G8R8Unorm,
8268 Format::eB8G8R8Snorm,
8269 Format::eB8G8R8Uscaled,
8270 Format::eB8G8R8Sscaled,
8271 Format::eB8G8R8Uint,
8272 Format::eB8G8R8Sint,
8273 Format::eB8G8R8Srgb,
8274 Format::eR8G8B8A8Unorm,
8275 Format::eR8G8B8A8Snorm,
8276 Format::eR8G8B8A8Uscaled,
8277 Format::eR8G8B8A8Sscaled,
8278 Format::eR8G8B8A8Uint,
8279 Format::eR8G8B8A8Sint,
8280 Format::eR8G8B8A8Srgb,
8281 Format::eB8G8R8A8Unorm,
8282 Format::eB8G8R8A8Snorm,
8283 Format::eB8G8R8A8Uscaled,
8284 Format::eB8G8R8A8Sscaled,
8285 Format::eB8G8R8A8Uint,
8286 Format::eB8G8R8A8Sint,
8287 Format::eB8G8R8A8Srgb,
8288 Format::eA8B8G8R8UnormPack32,
8289 Format::eA8B8G8R8SnormPack32,
8290 Format::eA8B8G8R8UscaledPack32,
8291 Format::eA8B8G8R8SscaledPack32,
8292 Format::eA8B8G8R8UintPack32,
8293 Format::eA8B8G8R8SintPack32,
8294 Format::eA8B8G8R8SrgbPack32,
8295 Format::eA2R10G10B10UnormPack32,
8296 Format::eA2R10G10B10SnormPack32,
8297 Format::eA2R10G10B10UscaledPack32,
8298 Format::eA2R10G10B10SscaledPack32,
8299 Format::eA2R10G10B10UintPack32,
8300 Format::eA2R10G10B10SintPack32,
8301 Format::eA2B10G10R10UnormPack32,
8302 Format::eA2B10G10R10SnormPack32,
8303 Format::eA2B10G10R10UscaledPack32,
8304 Format::eA2B10G10R10SscaledPack32,
8305 Format::eA2B10G10R10UintPack32,
8306 Format::eA2B10G10R10SintPack32,
8307 Format::eR16Unorm,
8308 Format::eR16Snorm,
8309 Format::eR16Uscaled,
8310 Format::eR16Sscaled,
8311 Format::eR16Uint,
8312 Format::eR16Sint,
8313 Format::eR16Sfloat,
8314 Format::eR16G16Unorm,
8315 Format::eR16G16Snorm,
8316 Format::eR16G16Uscaled,
8317 Format::eR16G16Sscaled,
8318 Format::eR16G16Uint,
8319 Format::eR16G16Sint,
8320 Format::eR16G16Sfloat,
8321 Format::eR16G16B16Unorm,
8322 Format::eR16G16B16Snorm,
8323 Format::eR16G16B16Uscaled,
8324 Format::eR16G16B16Sscaled,
8325 Format::eR16G16B16Uint,
8326 Format::eR16G16B16Sint,
8327 Format::eR16G16B16Sfloat,
8328 Format::eR16G16B16A16Unorm,
8329 Format::eR16G16B16A16Snorm,
8330 Format::eR16G16B16A16Uscaled,
8331 Format::eR16G16B16A16Sscaled,
8332 Format::eR16G16B16A16Uint,
8333 Format::eR16G16B16A16Sint,
8334 Format::eR16G16B16A16Sfloat,
8335 Format::eR32Uint,
8336 Format::eR32Sint,
8337 Format::eR32Sfloat,
8338 Format::eR32G32Uint,
8339 Format::eR32G32Sint,
8340 Format::eR32G32Sfloat,
8341 Format::eR32G32B32Uint,
8342 Format::eR32G32B32Sint,
8343 Format::eR32G32B32Sfloat,
8344 Format::eR32G32B32A32Uint,
8345 Format::eR32G32B32A32Sint,
8346 Format::eR32G32B32A32Sfloat,
8347 Format::eR64Uint,
8348 Format::eR64Sint,
8349 Format::eR64Sfloat,
8350 Format::eR64G64Uint,
8351 Format::eR64G64Sint,
8352 Format::eR64G64Sfloat,
8353 Format::eR64G64B64Uint,
8354 Format::eR64G64B64Sint,
8355 Format::eR64G64B64Sfloat,
8356 Format::eR64G64B64A64Uint,
8357 Format::eR64G64B64A64Sint,
8358 Format::eR64G64B64A64Sfloat,
8359 Format::eB10G11R11UfloatPack32,
8360 Format::eE5B9G9R9UfloatPack32,
8361 Format::eBc1RgbUnormBlock,
8362 Format::eBc1RgbSrgbBlock,
8363 Format::eBc1RgbaUnormBlock,
8364 Format::eBc1RgbaSrgbBlock,
8365 Format::eBc2UnormBlock,
8366 Format::eBc2SrgbBlock,
8367 Format::eBc3UnormBlock,
8368 Format::eBc3SrgbBlock,
8369 Format::eBc4UnormBlock,
8370 Format::eBc4SnormBlock,
8371 Format::eBc5UnormBlock,
8372 Format::eBc5SnormBlock,
8373 Format::eBc6HUfloatBlock,
8374 Format::eBc6HSfloatBlock,
8375 Format::eBc7UnormBlock,
8376 Format::eBc7SrgbBlock,
8377 Format::eEtc2R8G8B8UnormBlock,
8378 Format::eEtc2R8G8B8SrgbBlock,
8379 Format::eEtc2R8G8B8A1UnormBlock,
8380 Format::eEtc2R8G8B8A1SrgbBlock,
8381 Format::eEtc2R8G8B8A8UnormBlock,
8382 Format::eEtc2R8G8B8A8SrgbBlock,
8383 Format::eEacR11UnormBlock,
8384 Format::eEacR11SnormBlock,
8385 Format::eEacR11G11UnormBlock,
8386 Format::eEacR11G11SnormBlock,
8387 Format::eAstc4x4UnormBlock,
8388 Format::eAstc4x4SrgbBlock,
8389 Format::eAstc5x4UnormBlock,
8390 Format::eAstc5x4SrgbBlock,
8391 Format::eAstc5x5UnormBlock,
8392 Format::eAstc5x5SrgbBlock,
8393 Format::eAstc6x5UnormBlock,
8394 Format::eAstc6x5SrgbBlock,
8395 Format::eAstc6x6UnormBlock,
8396 Format::eAstc6x6SrgbBlock,
8397 Format::eAstc8x5UnormBlock,
8398 Format::eAstc8x5SrgbBlock,
8399 Format::eAstc8x6UnormBlock,
8400 Format::eAstc8x6SrgbBlock,
8401 Format::eAstc8x8UnormBlock,
8402 Format::eAstc8x8SrgbBlock,
8403 Format::eAstc10x5UnormBlock,
8404 Format::eAstc10x5SrgbBlock,
8405 Format::eAstc10x6UnormBlock,
8406 Format::eAstc10x6SrgbBlock,
8407 Format::eAstc10x8UnormBlock,
8408 Format::eAstc10x8SrgbBlock,
8409 Format::eAstc10x10UnormBlock,
8410 Format::eAstc10x10SrgbBlock,
8411 Format::eAstc12x10UnormBlock,
8412 Format::eAstc12x10SrgbBlock,
8413 Format::eAstc12x12UnormBlock,
8414 Format::eAstc12x12SrgbBlock,
8415 Format::eG8B8G8R8422Unorm,
8416 Format::eB8G8R8G8422Unorm,
8417 Format::eG8B8R83Plane420Unorm,
8418 Format::eG8B8R82Plane420Unorm,
8419 Format::eG8B8R83Plane422Unorm,
8420 Format::eG8B8R82Plane422Unorm,
8421 Format::eG8B8R83Plane444Unorm,
8422 Format::eR10X6UnormPack16,
8423 Format::eR10X6G10X6Unorm2Pack16,
8424 Format::eR10X6G10X6B10X6A10X6Unorm4Pack16,
8425 Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16,
8426 Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16,
8427 Format::eG10X6B10X6R10X63Plane420Unorm3Pack16,
8428 Format::eG10X6B10X6R10X62Plane420Unorm3Pack16,
8429 Format::eG10X6B10X6R10X63Plane422Unorm3Pack16,
8430 Format::eG10X6B10X6R10X62Plane422Unorm3Pack16,
8431 Format::eG10X6B10X6R10X63Plane444Unorm3Pack16,
8432 Format::eR12X4UnormPack16,
8433 Format::eR12X4G12X4Unorm2Pack16,
8434 Format::eR12X4G12X4B12X4A12X4Unorm4Pack16,
8435 Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16,
8436 Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16,
8437 Format::eG12X4B12X4R12X43Plane420Unorm3Pack16,
8438 Format::eG12X4B12X4R12X42Plane420Unorm3Pack16,
8439 Format::eG12X4B12X4R12X43Plane422Unorm3Pack16,
8440 Format::eG12X4B12X4R12X42Plane422Unorm3Pack16,
8441 Format::eG12X4B12X4R12X43Plane444Unorm3Pack16,
8442 Format::eG16B16G16R16422Unorm,
8443 Format::eB16G16R16G16422Unorm,
8444 Format::eG16B16R163Plane420Unorm,
8445 Format::eG16B16R162Plane420Unorm,
8446 Format::eG16B16R163Plane422Unorm,
8447 Format::eG16B16R162Plane422Unorm,
8448 Format::eG16B16R163Plane444Unorm,
8449 Format::eG8B8R82Plane444Unorm,
8450 Format::eG10X6B10X6R10X62Plane444Unorm3Pack16,
8451 Format::eG12X4B12X4R12X42Plane444Unorm3Pack16,
8452 Format::eG16B16R162Plane444Unorm,
8453 Format::eA4R4G4B4UnormPack16,
8454 Format::eA4B4G4R4UnormPack16,
8455 Format::eAstc4x4SfloatBlock,
8456 Format::eAstc5x4SfloatBlock,
8457 Format::eAstc5x5SfloatBlock,
8458 Format::eAstc6x5SfloatBlock,
8459 Format::eAstc6x6SfloatBlock,
8460 Format::eAstc8x5SfloatBlock,
8461 Format::eAstc8x6SfloatBlock,
8462 Format::eAstc8x8SfloatBlock,
8463 Format::eAstc10x5SfloatBlock,
8464 Format::eAstc10x6SfloatBlock,
8465 Format::eAstc10x8SfloatBlock,
8466 Format::eAstc10x10SfloatBlock,
8467 Format::eAstc12x10SfloatBlock,
8468 Format::eAstc12x12SfloatBlock,
8469 Format::eA1B5G5R5UnormPack16,
8470 Format::eA8Unorm,
8471 Format::ePvrtc12BppUnormBlockIMG,
8472 Format::ePvrtc14BppUnormBlockIMG,
8473 Format::ePvrtc22BppUnormBlockIMG,
8474 Format::ePvrtc24BppUnormBlockIMG,
8475 Format::ePvrtc12BppSrgbBlockIMG,
8476 Format::ePvrtc14BppSrgbBlockIMG,
8477 Format::ePvrtc22BppSrgbBlockIMG,
8478 Format::ePvrtc24BppSrgbBlockIMG,
8479 Format::eAstc3x3x3UnormBlockEXT,
8480 Format::eAstc3x3x3SrgbBlockEXT,
8481 Format::eAstc3x3x3SfloatBlockEXT,
8482 Format::eAstc4x3x3UnormBlockEXT,
8483 Format::eAstc4x3x3SrgbBlockEXT,
8484 Format::eAstc4x3x3SfloatBlockEXT,
8485 Format::eAstc4x4x3UnormBlockEXT,
8486 Format::eAstc4x4x3SrgbBlockEXT,
8487 Format::eAstc4x4x3SfloatBlockEXT,
8488 Format::eAstc4x4x4UnormBlockEXT,
8489 Format::eAstc4x4x4SrgbBlockEXT,
8490 Format::eAstc4x4x4SfloatBlockEXT,
8491 Format::eAstc5x4x4UnormBlockEXT,
8492 Format::eAstc5x4x4SrgbBlockEXT,
8493 Format::eAstc5x4x4SfloatBlockEXT,
8494 Format::eAstc5x5x4UnormBlockEXT,
8495 Format::eAstc5x5x4SrgbBlockEXT,
8496 Format::eAstc5x5x4SfloatBlockEXT,
8497 Format::eAstc5x5x5UnormBlockEXT,
8498 Format::eAstc5x5x5SrgbBlockEXT,
8499 Format::eAstc5x5x5SfloatBlockEXT,
8500 Format::eAstc6x5x5UnormBlockEXT,
8501 Format::eAstc6x5x5SrgbBlockEXT,
8502 Format::eAstc6x5x5SfloatBlockEXT,
8503 Format::eAstc6x6x5UnormBlockEXT,
8504 Format::eAstc6x6x5SrgbBlockEXT,
8505 Format::eAstc6x6x5SfloatBlockEXT,
8506 Format::eAstc6x6x6UnormBlockEXT,
8507 Format::eAstc6x6x6SrgbBlockEXT,
8508 Format::eAstc6x6x6SfloatBlockEXT,
8509 Format::eR8BoolARM,
8510 Format::eR16G16Sfixed5NV,
8511 Format::eR10X6UintPack16ARM,
8512 Format::eR10X6G10X6Uint2Pack16ARM,
8513 Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM,
8514 Format::eR12X4UintPack16ARM,
8515 Format::eR12X4G12X4Uint2Pack16ARM,
8516 Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM,
8517 Format::eR14X2UintPack16ARM,
8518 Format::eR14X2G14X2Uint2Pack16ARM,
8519 Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM,
8520 Format::eR14X2UnormPack16ARM,
8521 Format::eR14X2G14X2Unorm2Pack16ARM,
8522 Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM,
8523 Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM,
8524 Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM };
8525 return colorFormats;
8526 }
8527
8528 // Get all formats with a depth component
8529 VULKAN_HPP_INLINE std::vector<Format> const & getDepthFormats()
8530 {
8531 static std::vector<Format> depthFormats = { Format::eD16Unorm, Format::eX8D24UnormPack32, Format::eD32Sfloat,
8532 Format::eD16UnormS8Uint, Format::eD24UnormS8Uint, Format::eD32SfloatS8Uint };
8533 return depthFormats;
8534 }
8535
8536 // Get all formats with a depth and a stencil component
8537 VULKAN_HPP_INLINE std::vector<Format> const & getDepthStencilFormats()
8538 {
8539 static std::vector<Format> depthStencilFormats = { Format::eD16UnormS8Uint, Format::eD24UnormS8Uint, Format::eD32SfloatS8Uint };
8540 return depthStencilFormats;
8541 }
8542
8543 // Get all formats with a stencil component
8544 VULKAN_HPP_INLINE std::vector<Format> const & getStencilFormats()
8545 {
8546 static std::vector<Format> stencilFormats = { Format::eS8Uint, Format::eD16UnormS8Uint, Format::eD24UnormS8Uint, Format::eD32SfloatS8Uint };
8547 return stencilFormats;
8548 }
8549
8550 // True, if this format has an alpha component
8551 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool hasAlphaComponent( Format format )
8552 {
8553 switch ( format )
8554 {
8555 case Format::eR4G4B4A4UnormPack16:
8556 case Format::eB4G4R4A4UnormPack16:
8557 case Format::eR5G5B5A1UnormPack16:
8558 case Format::eB5G5R5A1UnormPack16:
8559 case Format::eA1R5G5B5UnormPack16:
8560 case Format::eR8G8B8A8Unorm:
8561 case Format::eR8G8B8A8Snorm:
8562 case Format::eR8G8B8A8Uscaled:
8563 case Format::eR8G8B8A8Sscaled:
8564 case Format::eR8G8B8A8Uint:
8565 case Format::eR8G8B8A8Sint:
8566 case Format::eR8G8B8A8Srgb:
8567 case Format::eB8G8R8A8Unorm:
8568 case Format::eB8G8R8A8Snorm:
8569 case Format::eB8G8R8A8Uscaled:
8570 case Format::eB8G8R8A8Sscaled:
8571 case Format::eB8G8R8A8Uint:
8572 case Format::eB8G8R8A8Sint:
8573 case Format::eB8G8R8A8Srgb:
8574 case Format::eA8B8G8R8UnormPack32:
8575 case Format::eA8B8G8R8SnormPack32:
8576 case Format::eA8B8G8R8UscaledPack32:
8577 case Format::eA8B8G8R8SscaledPack32:
8578 case Format::eA8B8G8R8UintPack32:
8579 case Format::eA8B8G8R8SintPack32:
8580 case Format::eA8B8G8R8SrgbPack32:
8581 case Format::eA2R10G10B10UnormPack32:
8582 case Format::eA2R10G10B10SnormPack32:
8583 case Format::eA2R10G10B10UscaledPack32:
8584 case Format::eA2R10G10B10SscaledPack32:
8585 case Format::eA2R10G10B10UintPack32:
8586 case Format::eA2R10G10B10SintPack32:
8587 case Format::eA2B10G10R10UnormPack32:
8588 case Format::eA2B10G10R10SnormPack32:
8589 case Format::eA2B10G10R10UscaledPack32:
8590 case Format::eA2B10G10R10SscaledPack32:
8591 case Format::eA2B10G10R10UintPack32:
8592 case Format::eA2B10G10R10SintPack32:
8593 case Format::eR16G16B16A16Unorm:
8594 case Format::eR16G16B16A16Snorm:
8595 case Format::eR16G16B16A16Uscaled:
8596 case Format::eR16G16B16A16Sscaled:
8597 case Format::eR16G16B16A16Uint:
8598 case Format::eR16G16B16A16Sint:
8599 case Format::eR16G16B16A16Sfloat:
8600 case Format::eR32G32B32A32Uint:
8601 case Format::eR32G32B32A32Sint:
8602 case Format::eR32G32B32A32Sfloat:
8603 case Format::eR64G64B64A64Uint:
8604 case Format::eR64G64B64A64Sint:
8605 case Format::eR64G64B64A64Sfloat:
8606 case Format::eBc1RgbaUnormBlock:
8607 case Format::eBc1RgbaSrgbBlock:
8608 case Format::eBc2UnormBlock:
8609 case Format::eBc2SrgbBlock:
8610 case Format::eBc3UnormBlock:
8611 case Format::eBc3SrgbBlock:
8612 case Format::eBc7UnormBlock:
8613 case Format::eBc7SrgbBlock:
8614 case Format::eEtc2R8G8B8A1UnormBlock:
8615 case Format::eEtc2R8G8B8A1SrgbBlock:
8616 case Format::eEtc2R8G8B8A8UnormBlock:
8617 case Format::eEtc2R8G8B8A8SrgbBlock:
8618 case Format::eAstc4x4UnormBlock:
8619 case Format::eAstc4x4SrgbBlock:
8620 case Format::eAstc5x4UnormBlock:
8621 case Format::eAstc5x4SrgbBlock:
8622 case Format::eAstc5x5UnormBlock:
8623 case Format::eAstc5x5SrgbBlock:
8624 case Format::eAstc6x5UnormBlock:
8625 case Format::eAstc6x5SrgbBlock:
8626 case Format::eAstc6x6UnormBlock:
8627 case Format::eAstc6x6SrgbBlock:
8628 case Format::eAstc8x5UnormBlock:
8629 case Format::eAstc8x5SrgbBlock:
8630 case Format::eAstc8x6UnormBlock:
8631 case Format::eAstc8x6SrgbBlock:
8632 case Format::eAstc8x8UnormBlock:
8633 case Format::eAstc8x8SrgbBlock:
8634 case Format::eAstc10x5UnormBlock:
8635 case Format::eAstc10x5SrgbBlock:
8636 case Format::eAstc10x6UnormBlock:
8637 case Format::eAstc10x6SrgbBlock:
8638 case Format::eAstc10x8UnormBlock:
8639 case Format::eAstc10x8SrgbBlock:
8640 case Format::eAstc10x10UnormBlock:
8641 case Format::eAstc10x10SrgbBlock:
8642 case Format::eAstc12x10UnormBlock:
8643 case Format::eAstc12x10SrgbBlock:
8644 case Format::eAstc12x12UnormBlock:
8645 case Format::eAstc12x12SrgbBlock:
8646 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
8647 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
8648 case Format::eA4R4G4B4UnormPack16:
8649 case Format::eA4B4G4R4UnormPack16:
8650 case Format::eAstc4x4SfloatBlock:
8651 case Format::eAstc5x4SfloatBlock:
8652 case Format::eAstc5x5SfloatBlock:
8653 case Format::eAstc6x5SfloatBlock:
8654 case Format::eAstc6x6SfloatBlock:
8655 case Format::eAstc8x5SfloatBlock:
8656 case Format::eAstc8x6SfloatBlock:
8657 case Format::eAstc8x8SfloatBlock:
8658 case Format::eAstc10x5SfloatBlock:
8659 case Format::eAstc10x6SfloatBlock:
8660 case Format::eAstc10x8SfloatBlock:
8661 case Format::eAstc10x10SfloatBlock:
8662 case Format::eAstc12x10SfloatBlock:
8663 case Format::eAstc12x12SfloatBlock:
8664 case Format::eA1B5G5R5UnormPack16:
8665 case Format::eA8Unorm:
8666 case Format::ePvrtc12BppUnormBlockIMG:
8667 case Format::ePvrtc14BppUnormBlockIMG:
8668 case Format::ePvrtc22BppUnormBlockIMG:
8669 case Format::ePvrtc24BppUnormBlockIMG:
8670 case Format::ePvrtc12BppSrgbBlockIMG:
8671 case Format::ePvrtc14BppSrgbBlockIMG:
8672 case Format::ePvrtc22BppSrgbBlockIMG:
8673 case Format::ePvrtc24BppSrgbBlockIMG:
8674 case Format::eAstc3x3x3UnormBlockEXT:
8675 case Format::eAstc3x3x3SrgbBlockEXT:
8676 case Format::eAstc3x3x3SfloatBlockEXT:
8677 case Format::eAstc4x3x3UnormBlockEXT:
8678 case Format::eAstc4x3x3SrgbBlockEXT:
8679 case Format::eAstc4x3x3SfloatBlockEXT:
8680 case Format::eAstc4x4x3UnormBlockEXT:
8681 case Format::eAstc4x4x3SrgbBlockEXT:
8682 case Format::eAstc4x4x3SfloatBlockEXT:
8683 case Format::eAstc4x4x4UnormBlockEXT:
8684 case Format::eAstc4x4x4SrgbBlockEXT:
8685 case Format::eAstc4x4x4SfloatBlockEXT:
8686 case Format::eAstc5x4x4UnormBlockEXT:
8687 case Format::eAstc5x4x4SrgbBlockEXT:
8688 case Format::eAstc5x4x4SfloatBlockEXT:
8689 case Format::eAstc5x5x4UnormBlockEXT:
8690 case Format::eAstc5x5x4SrgbBlockEXT:
8691 case Format::eAstc5x5x4SfloatBlockEXT:
8692 case Format::eAstc5x5x5UnormBlockEXT:
8693 case Format::eAstc5x5x5SrgbBlockEXT:
8694 case Format::eAstc5x5x5SfloatBlockEXT:
8695 case Format::eAstc6x5x5UnormBlockEXT:
8696 case Format::eAstc6x5x5SrgbBlockEXT:
8697 case Format::eAstc6x5x5SfloatBlockEXT:
8698 case Format::eAstc6x6x5UnormBlockEXT:
8699 case Format::eAstc6x6x5SrgbBlockEXT:
8700 case Format::eAstc6x6x5SfloatBlockEXT:
8701 case Format::eAstc6x6x6UnormBlockEXT:
8702 case Format::eAstc6x6x6SrgbBlockEXT:
8703 case Format::eAstc6x6x6SfloatBlockEXT:
8704 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
8705 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
8706 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
8707 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM: return true;
8708 default : return false;
8709 }
8710 }
8711
8712 // True, if this format has a blue component
8713 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool hasBlueComponent( Format format )
8714 {
8715 switch ( format )
8716 {
8717 case Format::eR4G4B4A4UnormPack16:
8718 case Format::eB4G4R4A4UnormPack16:
8719 case Format::eR5G6B5UnormPack16:
8720 case Format::eB5G6R5UnormPack16:
8721 case Format::eR5G5B5A1UnormPack16:
8722 case Format::eB5G5R5A1UnormPack16:
8723 case Format::eA1R5G5B5UnormPack16:
8724 case Format::eR8G8B8Unorm:
8725 case Format::eR8G8B8Snorm:
8726 case Format::eR8G8B8Uscaled:
8727 case Format::eR8G8B8Sscaled:
8728 case Format::eR8G8B8Uint:
8729 case Format::eR8G8B8Sint:
8730 case Format::eR8G8B8Srgb:
8731 case Format::eB8G8R8Unorm:
8732 case Format::eB8G8R8Snorm:
8733 case Format::eB8G8R8Uscaled:
8734 case Format::eB8G8R8Sscaled:
8735 case Format::eB8G8R8Uint:
8736 case Format::eB8G8R8Sint:
8737 case Format::eB8G8R8Srgb:
8738 case Format::eR8G8B8A8Unorm:
8739 case Format::eR8G8B8A8Snorm:
8740 case Format::eR8G8B8A8Uscaled:
8741 case Format::eR8G8B8A8Sscaled:
8742 case Format::eR8G8B8A8Uint:
8743 case Format::eR8G8B8A8Sint:
8744 case Format::eR8G8B8A8Srgb:
8745 case Format::eB8G8R8A8Unorm:
8746 case Format::eB8G8R8A8Snorm:
8747 case Format::eB8G8R8A8Uscaled:
8748 case Format::eB8G8R8A8Sscaled:
8749 case Format::eB8G8R8A8Uint:
8750 case Format::eB8G8R8A8Sint:
8751 case Format::eB8G8R8A8Srgb:
8752 case Format::eA8B8G8R8UnormPack32:
8753 case Format::eA8B8G8R8SnormPack32:
8754 case Format::eA8B8G8R8UscaledPack32:
8755 case Format::eA8B8G8R8SscaledPack32:
8756 case Format::eA8B8G8R8UintPack32:
8757 case Format::eA8B8G8R8SintPack32:
8758 case Format::eA8B8G8R8SrgbPack32:
8759 case Format::eA2R10G10B10UnormPack32:
8760 case Format::eA2R10G10B10SnormPack32:
8761 case Format::eA2R10G10B10UscaledPack32:
8762 case Format::eA2R10G10B10SscaledPack32:
8763 case Format::eA2R10G10B10UintPack32:
8764 case Format::eA2R10G10B10SintPack32:
8765 case Format::eA2B10G10R10UnormPack32:
8766 case Format::eA2B10G10R10SnormPack32:
8767 case Format::eA2B10G10R10UscaledPack32:
8768 case Format::eA2B10G10R10SscaledPack32:
8769 case Format::eA2B10G10R10UintPack32:
8770 case Format::eA2B10G10R10SintPack32:
8771 case Format::eR16G16B16Unorm:
8772 case Format::eR16G16B16Snorm:
8773 case Format::eR16G16B16Uscaled:
8774 case Format::eR16G16B16Sscaled:
8775 case Format::eR16G16B16Uint:
8776 case Format::eR16G16B16Sint:
8777 case Format::eR16G16B16Sfloat:
8778 case Format::eR16G16B16A16Unorm:
8779 case Format::eR16G16B16A16Snorm:
8780 case Format::eR16G16B16A16Uscaled:
8781 case Format::eR16G16B16A16Sscaled:
8782 case Format::eR16G16B16A16Uint:
8783 case Format::eR16G16B16A16Sint:
8784 case Format::eR16G16B16A16Sfloat:
8785 case Format::eR32G32B32Uint:
8786 case Format::eR32G32B32Sint:
8787 case Format::eR32G32B32Sfloat:
8788 case Format::eR32G32B32A32Uint:
8789 case Format::eR32G32B32A32Sint:
8790 case Format::eR32G32B32A32Sfloat:
8791 case Format::eR64G64B64Uint:
8792 case Format::eR64G64B64Sint:
8793 case Format::eR64G64B64Sfloat:
8794 case Format::eR64G64B64A64Uint:
8795 case Format::eR64G64B64A64Sint:
8796 case Format::eR64G64B64A64Sfloat:
8797 case Format::eB10G11R11UfloatPack32:
8798 case Format::eE5B9G9R9UfloatPack32:
8799 case Format::eBc1RgbUnormBlock:
8800 case Format::eBc1RgbSrgbBlock:
8801 case Format::eBc1RgbaUnormBlock:
8802 case Format::eBc1RgbaSrgbBlock:
8803 case Format::eBc2UnormBlock:
8804 case Format::eBc2SrgbBlock:
8805 case Format::eBc3UnormBlock:
8806 case Format::eBc3SrgbBlock:
8807 case Format::eBc6HUfloatBlock:
8808 case Format::eBc6HSfloatBlock:
8809 case Format::eBc7UnormBlock:
8810 case Format::eBc7SrgbBlock:
8811 case Format::eEtc2R8G8B8UnormBlock:
8812 case Format::eEtc2R8G8B8SrgbBlock:
8813 case Format::eEtc2R8G8B8A1UnormBlock:
8814 case Format::eEtc2R8G8B8A1SrgbBlock:
8815 case Format::eEtc2R8G8B8A8UnormBlock:
8816 case Format::eEtc2R8G8B8A8SrgbBlock:
8817 case Format::eAstc4x4UnormBlock:
8818 case Format::eAstc4x4SrgbBlock:
8819 case Format::eAstc5x4UnormBlock:
8820 case Format::eAstc5x4SrgbBlock:
8821 case Format::eAstc5x5UnormBlock:
8822 case Format::eAstc5x5SrgbBlock:
8823 case Format::eAstc6x5UnormBlock:
8824 case Format::eAstc6x5SrgbBlock:
8825 case Format::eAstc6x6UnormBlock:
8826 case Format::eAstc6x6SrgbBlock:
8827 case Format::eAstc8x5UnormBlock:
8828 case Format::eAstc8x5SrgbBlock:
8829 case Format::eAstc8x6UnormBlock:
8830 case Format::eAstc8x6SrgbBlock:
8831 case Format::eAstc8x8UnormBlock:
8832 case Format::eAstc8x8SrgbBlock:
8833 case Format::eAstc10x5UnormBlock:
8834 case Format::eAstc10x5SrgbBlock:
8835 case Format::eAstc10x6UnormBlock:
8836 case Format::eAstc10x6SrgbBlock:
8837 case Format::eAstc10x8UnormBlock:
8838 case Format::eAstc10x8SrgbBlock:
8839 case Format::eAstc10x10UnormBlock:
8840 case Format::eAstc10x10SrgbBlock:
8841 case Format::eAstc12x10UnormBlock:
8842 case Format::eAstc12x10SrgbBlock:
8843 case Format::eAstc12x12UnormBlock:
8844 case Format::eAstc12x12SrgbBlock:
8845 case Format::eG8B8G8R8422Unorm:
8846 case Format::eB8G8R8G8422Unorm:
8847 case Format::eG8B8R83Plane420Unorm:
8848 case Format::eG8B8R82Plane420Unorm:
8849 case Format::eG8B8R83Plane422Unorm:
8850 case Format::eG8B8R82Plane422Unorm:
8851 case Format::eG8B8R83Plane444Unorm:
8852 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
8853 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
8854 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
8855 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
8856 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
8857 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
8858 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
8859 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
8860 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
8861 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16:
8862 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16:
8863 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
8864 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
8865 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
8866 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
8867 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
8868 case Format::eG16B16G16R16422Unorm:
8869 case Format::eB16G16R16G16422Unorm:
8870 case Format::eG16B16R163Plane420Unorm:
8871 case Format::eG16B16R162Plane420Unorm:
8872 case Format::eG16B16R163Plane422Unorm:
8873 case Format::eG16B16R162Plane422Unorm:
8874 case Format::eG16B16R163Plane444Unorm:
8875 case Format::eG8B8R82Plane444Unorm:
8876 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
8877 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
8878 case Format::eG16B16R162Plane444Unorm:
8879 case Format::eA4R4G4B4UnormPack16:
8880 case Format::eA4B4G4R4UnormPack16:
8881 case Format::eAstc4x4SfloatBlock:
8882 case Format::eAstc5x4SfloatBlock:
8883 case Format::eAstc5x5SfloatBlock:
8884 case Format::eAstc6x5SfloatBlock:
8885 case Format::eAstc6x6SfloatBlock:
8886 case Format::eAstc8x5SfloatBlock:
8887 case Format::eAstc8x6SfloatBlock:
8888 case Format::eAstc8x8SfloatBlock:
8889 case Format::eAstc10x5SfloatBlock:
8890 case Format::eAstc10x6SfloatBlock:
8891 case Format::eAstc10x8SfloatBlock:
8892 case Format::eAstc10x10SfloatBlock:
8893 case Format::eAstc12x10SfloatBlock:
8894 case Format::eAstc12x12SfloatBlock:
8895 case Format::eA1B5G5R5UnormPack16:
8896 case Format::ePvrtc12BppUnormBlockIMG:
8897 case Format::ePvrtc14BppUnormBlockIMG:
8898 case Format::ePvrtc22BppUnormBlockIMG:
8899 case Format::ePvrtc24BppUnormBlockIMG:
8900 case Format::ePvrtc12BppSrgbBlockIMG:
8901 case Format::ePvrtc14BppSrgbBlockIMG:
8902 case Format::ePvrtc22BppSrgbBlockIMG:
8903 case Format::ePvrtc24BppSrgbBlockIMG:
8904 case Format::eAstc3x3x3UnormBlockEXT:
8905 case Format::eAstc3x3x3SrgbBlockEXT:
8906 case Format::eAstc3x3x3SfloatBlockEXT:
8907 case Format::eAstc4x3x3UnormBlockEXT:
8908 case Format::eAstc4x3x3SrgbBlockEXT:
8909 case Format::eAstc4x3x3SfloatBlockEXT:
8910 case Format::eAstc4x4x3UnormBlockEXT:
8911 case Format::eAstc4x4x3SrgbBlockEXT:
8912 case Format::eAstc4x4x3SfloatBlockEXT:
8913 case Format::eAstc4x4x4UnormBlockEXT:
8914 case Format::eAstc4x4x4SrgbBlockEXT:
8915 case Format::eAstc4x4x4SfloatBlockEXT:
8916 case Format::eAstc5x4x4UnormBlockEXT:
8917 case Format::eAstc5x4x4SrgbBlockEXT:
8918 case Format::eAstc5x4x4SfloatBlockEXT:
8919 case Format::eAstc5x5x4UnormBlockEXT:
8920 case Format::eAstc5x5x4SrgbBlockEXT:
8921 case Format::eAstc5x5x4SfloatBlockEXT:
8922 case Format::eAstc5x5x5UnormBlockEXT:
8923 case Format::eAstc5x5x5SrgbBlockEXT:
8924 case Format::eAstc5x5x5SfloatBlockEXT:
8925 case Format::eAstc6x5x5UnormBlockEXT:
8926 case Format::eAstc6x5x5SrgbBlockEXT:
8927 case Format::eAstc6x5x5SfloatBlockEXT:
8928 case Format::eAstc6x6x5UnormBlockEXT:
8929 case Format::eAstc6x6x5SrgbBlockEXT:
8930 case Format::eAstc6x6x5SfloatBlockEXT:
8931 case Format::eAstc6x6x6UnormBlockEXT:
8932 case Format::eAstc6x6x6SrgbBlockEXT:
8933 case Format::eAstc6x6x6SfloatBlockEXT:
8934 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
8935 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
8936 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
8937 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM:
8938 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
8939 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return true;
8940 default : return false;
8941 }
8942 }
8943
8944 // True, if this format has a depth component
8945 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool hasDepthComponent( Format format )
8946 {
8947 switch ( format )
8948 {
8949 case Format::eD16Unorm:
8950 case Format::eX8D24UnormPack32:
8951 case Format::eD32Sfloat:
8952 case Format::eD16UnormS8Uint:
8953 case Format::eD24UnormS8Uint:
8954 case Format::eD32SfloatS8Uint : return true;
8955 default : return false;
8956 }
8957 }
8958
8959 // True, if this format has a green component
8960 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool hasGreenComponent( Format format )
8961 {
8962 switch ( format )
8963 {
8964 case Format::eR4G4UnormPack8:
8965 case Format::eR4G4B4A4UnormPack16:
8966 case Format::eB4G4R4A4UnormPack16:
8967 case Format::eR5G6B5UnormPack16:
8968 case Format::eB5G6R5UnormPack16:
8969 case Format::eR5G5B5A1UnormPack16:
8970 case Format::eB5G5R5A1UnormPack16:
8971 case Format::eA1R5G5B5UnormPack16:
8972 case Format::eR8G8Unorm:
8973 case Format::eR8G8Snorm:
8974 case Format::eR8G8Uscaled:
8975 case Format::eR8G8Sscaled:
8976 case Format::eR8G8Uint:
8977 case Format::eR8G8Sint:
8978 case Format::eR8G8Srgb:
8979 case Format::eR8G8B8Unorm:
8980 case Format::eR8G8B8Snorm:
8981 case Format::eR8G8B8Uscaled:
8982 case Format::eR8G8B8Sscaled:
8983 case Format::eR8G8B8Uint:
8984 case Format::eR8G8B8Sint:
8985 case Format::eR8G8B8Srgb:
8986 case Format::eB8G8R8Unorm:
8987 case Format::eB8G8R8Snorm:
8988 case Format::eB8G8R8Uscaled:
8989 case Format::eB8G8R8Sscaled:
8990 case Format::eB8G8R8Uint:
8991 case Format::eB8G8R8Sint:
8992 case Format::eB8G8R8Srgb:
8993 case Format::eR8G8B8A8Unorm:
8994 case Format::eR8G8B8A8Snorm:
8995 case Format::eR8G8B8A8Uscaled:
8996 case Format::eR8G8B8A8Sscaled:
8997 case Format::eR8G8B8A8Uint:
8998 case Format::eR8G8B8A8Sint:
8999 case Format::eR8G8B8A8Srgb:
9000 case Format::eB8G8R8A8Unorm:
9001 case Format::eB8G8R8A8Snorm:
9002 case Format::eB8G8R8A8Uscaled:
9003 case Format::eB8G8R8A8Sscaled:
9004 case Format::eB8G8R8A8Uint:
9005 case Format::eB8G8R8A8Sint:
9006 case Format::eB8G8R8A8Srgb:
9007 case Format::eA8B8G8R8UnormPack32:
9008 case Format::eA8B8G8R8SnormPack32:
9009 case Format::eA8B8G8R8UscaledPack32:
9010 case Format::eA8B8G8R8SscaledPack32:
9011 case Format::eA8B8G8R8UintPack32:
9012 case Format::eA8B8G8R8SintPack32:
9013 case Format::eA8B8G8R8SrgbPack32:
9014 case Format::eA2R10G10B10UnormPack32:
9015 case Format::eA2R10G10B10SnormPack32:
9016 case Format::eA2R10G10B10UscaledPack32:
9017 case Format::eA2R10G10B10SscaledPack32:
9018 case Format::eA2R10G10B10UintPack32:
9019 case Format::eA2R10G10B10SintPack32:
9020 case Format::eA2B10G10R10UnormPack32:
9021 case Format::eA2B10G10R10SnormPack32:
9022 case Format::eA2B10G10R10UscaledPack32:
9023 case Format::eA2B10G10R10SscaledPack32:
9024 case Format::eA2B10G10R10UintPack32:
9025 case Format::eA2B10G10R10SintPack32:
9026 case Format::eR16G16Unorm:
9027 case Format::eR16G16Snorm:
9028 case Format::eR16G16Uscaled:
9029 case Format::eR16G16Sscaled:
9030 case Format::eR16G16Uint:
9031 case Format::eR16G16Sint:
9032 case Format::eR16G16Sfloat:
9033 case Format::eR16G16B16Unorm:
9034 case Format::eR16G16B16Snorm:
9035 case Format::eR16G16B16Uscaled:
9036 case Format::eR16G16B16Sscaled:
9037 case Format::eR16G16B16Uint:
9038 case Format::eR16G16B16Sint:
9039 case Format::eR16G16B16Sfloat:
9040 case Format::eR16G16B16A16Unorm:
9041 case Format::eR16G16B16A16Snorm:
9042 case Format::eR16G16B16A16Uscaled:
9043 case Format::eR16G16B16A16Sscaled:
9044 case Format::eR16G16B16A16Uint:
9045 case Format::eR16G16B16A16Sint:
9046 case Format::eR16G16B16A16Sfloat:
9047 case Format::eR32G32Uint:
9048 case Format::eR32G32Sint:
9049 case Format::eR32G32Sfloat:
9050 case Format::eR32G32B32Uint:
9051 case Format::eR32G32B32Sint:
9052 case Format::eR32G32B32Sfloat:
9053 case Format::eR32G32B32A32Uint:
9054 case Format::eR32G32B32A32Sint:
9055 case Format::eR32G32B32A32Sfloat:
9056 case Format::eR64G64Uint:
9057 case Format::eR64G64Sint:
9058 case Format::eR64G64Sfloat:
9059 case Format::eR64G64B64Uint:
9060 case Format::eR64G64B64Sint:
9061 case Format::eR64G64B64Sfloat:
9062 case Format::eR64G64B64A64Uint:
9063 case Format::eR64G64B64A64Sint:
9064 case Format::eR64G64B64A64Sfloat:
9065 case Format::eB10G11R11UfloatPack32:
9066 case Format::eE5B9G9R9UfloatPack32:
9067 case Format::eBc1RgbUnormBlock:
9068 case Format::eBc1RgbSrgbBlock:
9069 case Format::eBc1RgbaUnormBlock:
9070 case Format::eBc1RgbaSrgbBlock:
9071 case Format::eBc2UnormBlock:
9072 case Format::eBc2SrgbBlock:
9073 case Format::eBc3UnormBlock:
9074 case Format::eBc3SrgbBlock:
9075 case Format::eBc5UnormBlock:
9076 case Format::eBc5SnormBlock:
9077 case Format::eBc6HUfloatBlock:
9078 case Format::eBc6HSfloatBlock:
9079 case Format::eBc7UnormBlock:
9080 case Format::eBc7SrgbBlock:
9081 case Format::eEtc2R8G8B8UnormBlock:
9082 case Format::eEtc2R8G8B8SrgbBlock:
9083 case Format::eEtc2R8G8B8A1UnormBlock:
9084 case Format::eEtc2R8G8B8A1SrgbBlock:
9085 case Format::eEtc2R8G8B8A8UnormBlock:
9086 case Format::eEtc2R8G8B8A8SrgbBlock:
9087 case Format::eEacR11G11UnormBlock:
9088 case Format::eEacR11G11SnormBlock:
9089 case Format::eAstc4x4UnormBlock:
9090 case Format::eAstc4x4SrgbBlock:
9091 case Format::eAstc5x4UnormBlock:
9092 case Format::eAstc5x4SrgbBlock:
9093 case Format::eAstc5x5UnormBlock:
9094 case Format::eAstc5x5SrgbBlock:
9095 case Format::eAstc6x5UnormBlock:
9096 case Format::eAstc6x5SrgbBlock:
9097 case Format::eAstc6x6UnormBlock:
9098 case Format::eAstc6x6SrgbBlock:
9099 case Format::eAstc8x5UnormBlock:
9100 case Format::eAstc8x5SrgbBlock:
9101 case Format::eAstc8x6UnormBlock:
9102 case Format::eAstc8x6SrgbBlock:
9103 case Format::eAstc8x8UnormBlock:
9104 case Format::eAstc8x8SrgbBlock:
9105 case Format::eAstc10x5UnormBlock:
9106 case Format::eAstc10x5SrgbBlock:
9107 case Format::eAstc10x6UnormBlock:
9108 case Format::eAstc10x6SrgbBlock:
9109 case Format::eAstc10x8UnormBlock:
9110 case Format::eAstc10x8SrgbBlock:
9111 case Format::eAstc10x10UnormBlock:
9112 case Format::eAstc10x10SrgbBlock:
9113 case Format::eAstc12x10UnormBlock:
9114 case Format::eAstc12x10SrgbBlock:
9115 case Format::eAstc12x12UnormBlock:
9116 case Format::eAstc12x12SrgbBlock:
9117 case Format::eG8B8G8R8422Unorm:
9118 case Format::eB8G8R8G8422Unorm:
9119 case Format::eG8B8R83Plane420Unorm:
9120 case Format::eG8B8R82Plane420Unorm:
9121 case Format::eG8B8R83Plane422Unorm:
9122 case Format::eG8B8R82Plane422Unorm:
9123 case Format::eG8B8R83Plane444Unorm:
9124 case Format::eR10X6G10X6Unorm2Pack16:
9125 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
9126 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
9127 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
9128 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
9129 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
9130 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
9131 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
9132 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
9133 case Format::eR12X4G12X4Unorm2Pack16:
9134 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
9135 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16:
9136 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16:
9137 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
9138 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
9139 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
9140 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
9141 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
9142 case Format::eG16B16G16R16422Unorm:
9143 case Format::eB16G16R16G16422Unorm:
9144 case Format::eG16B16R163Plane420Unorm:
9145 case Format::eG16B16R162Plane420Unorm:
9146 case Format::eG16B16R163Plane422Unorm:
9147 case Format::eG16B16R162Plane422Unorm:
9148 case Format::eG16B16R163Plane444Unorm:
9149 case Format::eG8B8R82Plane444Unorm:
9150 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
9151 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
9152 case Format::eG16B16R162Plane444Unorm:
9153 case Format::eA4R4G4B4UnormPack16:
9154 case Format::eA4B4G4R4UnormPack16:
9155 case Format::eAstc4x4SfloatBlock:
9156 case Format::eAstc5x4SfloatBlock:
9157 case Format::eAstc5x5SfloatBlock:
9158 case Format::eAstc6x5SfloatBlock:
9159 case Format::eAstc6x6SfloatBlock:
9160 case Format::eAstc8x5SfloatBlock:
9161 case Format::eAstc8x6SfloatBlock:
9162 case Format::eAstc8x8SfloatBlock:
9163 case Format::eAstc10x5SfloatBlock:
9164 case Format::eAstc10x6SfloatBlock:
9165 case Format::eAstc10x8SfloatBlock:
9166 case Format::eAstc10x10SfloatBlock:
9167 case Format::eAstc12x10SfloatBlock:
9168 case Format::eAstc12x12SfloatBlock:
9169 case Format::eA1B5G5R5UnormPack16:
9170 case Format::ePvrtc12BppUnormBlockIMG:
9171 case Format::ePvrtc14BppUnormBlockIMG:
9172 case Format::ePvrtc22BppUnormBlockIMG:
9173 case Format::ePvrtc24BppUnormBlockIMG:
9174 case Format::ePvrtc12BppSrgbBlockIMG:
9175 case Format::ePvrtc14BppSrgbBlockIMG:
9176 case Format::ePvrtc22BppSrgbBlockIMG:
9177 case Format::ePvrtc24BppSrgbBlockIMG:
9178 case Format::eAstc3x3x3UnormBlockEXT:
9179 case Format::eAstc3x3x3SrgbBlockEXT:
9180 case Format::eAstc3x3x3SfloatBlockEXT:
9181 case Format::eAstc4x3x3UnormBlockEXT:
9182 case Format::eAstc4x3x3SrgbBlockEXT:
9183 case Format::eAstc4x3x3SfloatBlockEXT:
9184 case Format::eAstc4x4x3UnormBlockEXT:
9185 case Format::eAstc4x4x3SrgbBlockEXT:
9186 case Format::eAstc4x4x3SfloatBlockEXT:
9187 case Format::eAstc4x4x4UnormBlockEXT:
9188 case Format::eAstc4x4x4SrgbBlockEXT:
9189 case Format::eAstc4x4x4SfloatBlockEXT:
9190 case Format::eAstc5x4x4UnormBlockEXT:
9191 case Format::eAstc5x4x4SrgbBlockEXT:
9192 case Format::eAstc5x4x4SfloatBlockEXT:
9193 case Format::eAstc5x5x4UnormBlockEXT:
9194 case Format::eAstc5x5x4SrgbBlockEXT:
9195 case Format::eAstc5x5x4SfloatBlockEXT:
9196 case Format::eAstc5x5x5UnormBlockEXT:
9197 case Format::eAstc5x5x5SrgbBlockEXT:
9198 case Format::eAstc5x5x5SfloatBlockEXT:
9199 case Format::eAstc6x5x5UnormBlockEXT:
9200 case Format::eAstc6x5x5SrgbBlockEXT:
9201 case Format::eAstc6x5x5SfloatBlockEXT:
9202 case Format::eAstc6x6x5UnormBlockEXT:
9203 case Format::eAstc6x6x5SrgbBlockEXT:
9204 case Format::eAstc6x6x5SfloatBlockEXT:
9205 case Format::eAstc6x6x6UnormBlockEXT:
9206 case Format::eAstc6x6x6SrgbBlockEXT:
9207 case Format::eAstc6x6x6SfloatBlockEXT:
9208 case Format::eR16G16Sfixed5NV:
9209 case Format::eR10X6G10X6Uint2Pack16ARM:
9210 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
9211 case Format::eR12X4G12X4Uint2Pack16ARM:
9212 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
9213 case Format::eR14X2G14X2Uint2Pack16ARM:
9214 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
9215 case Format::eR14X2G14X2Unorm2Pack16ARM:
9216 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM:
9217 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
9218 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return true;
9219 default : return false;
9220 }
9221 }
9222
9223 // True, if this format has a red component
9224 VULKAN_HPP_CONSTEXPR_14 bool hasRedComponent( Format format )
9225 {
9226 switch ( format )
9227 {
9228 case Format::eR4G4UnormPack8:
9229 case Format::eR4G4B4A4UnormPack16:
9230 case Format::eB4G4R4A4UnormPack16:
9231 case Format::eR5G6B5UnormPack16:
9232 case Format::eB5G6R5UnormPack16:
9233 case Format::eR5G5B5A1UnormPack16:
9234 case Format::eB5G5R5A1UnormPack16:
9235 case Format::eA1R5G5B5UnormPack16:
9236 case Format::eR8Unorm:
9237 case Format::eR8Snorm:
9238 case Format::eR8Uscaled:
9239 case Format::eR8Sscaled:
9240 case Format::eR8Uint:
9241 case Format::eR8Sint:
9242 case Format::eR8Srgb:
9243 case Format::eR8G8Unorm:
9244 case Format::eR8G8Snorm:
9245 case Format::eR8G8Uscaled:
9246 case Format::eR8G8Sscaled:
9247 case Format::eR8G8Uint:
9248 case Format::eR8G8Sint:
9249 case Format::eR8G8Srgb:
9250 case Format::eR8G8B8Unorm:
9251 case Format::eR8G8B8Snorm:
9252 case Format::eR8G8B8Uscaled:
9253 case Format::eR8G8B8Sscaled:
9254 case Format::eR8G8B8Uint:
9255 case Format::eR8G8B8Sint:
9256 case Format::eR8G8B8Srgb:
9257 case Format::eB8G8R8Unorm:
9258 case Format::eB8G8R8Snorm:
9259 case Format::eB8G8R8Uscaled:
9260 case Format::eB8G8R8Sscaled:
9261 case Format::eB8G8R8Uint:
9262 case Format::eB8G8R8Sint:
9263 case Format::eB8G8R8Srgb:
9264 case Format::eR8G8B8A8Unorm:
9265 case Format::eR8G8B8A8Snorm:
9266 case Format::eR8G8B8A8Uscaled:
9267 case Format::eR8G8B8A8Sscaled:
9268 case Format::eR8G8B8A8Uint:
9269 case Format::eR8G8B8A8Sint:
9270 case Format::eR8G8B8A8Srgb:
9271 case Format::eB8G8R8A8Unorm:
9272 case Format::eB8G8R8A8Snorm:
9273 case Format::eB8G8R8A8Uscaled:
9274 case Format::eB8G8R8A8Sscaled:
9275 case Format::eB8G8R8A8Uint:
9276 case Format::eB8G8R8A8Sint:
9277 case Format::eB8G8R8A8Srgb:
9278 case Format::eA8B8G8R8UnormPack32:
9279 case Format::eA8B8G8R8SnormPack32:
9280 case Format::eA8B8G8R8UscaledPack32:
9281 case Format::eA8B8G8R8SscaledPack32:
9282 case Format::eA8B8G8R8UintPack32:
9283 case Format::eA8B8G8R8SintPack32:
9284 case Format::eA8B8G8R8SrgbPack32:
9285 case Format::eA2R10G10B10UnormPack32:
9286 case Format::eA2R10G10B10SnormPack32:
9287 case Format::eA2R10G10B10UscaledPack32:
9288 case Format::eA2R10G10B10SscaledPack32:
9289 case Format::eA2R10G10B10UintPack32:
9290 case Format::eA2R10G10B10SintPack32:
9291 case Format::eA2B10G10R10UnormPack32:
9292 case Format::eA2B10G10R10SnormPack32:
9293 case Format::eA2B10G10R10UscaledPack32:
9294 case Format::eA2B10G10R10SscaledPack32:
9295 case Format::eA2B10G10R10UintPack32:
9296 case Format::eA2B10G10R10SintPack32:
9297 case Format::eR16Unorm:
9298 case Format::eR16Snorm:
9299 case Format::eR16Uscaled:
9300 case Format::eR16Sscaled:
9301 case Format::eR16Uint:
9302 case Format::eR16Sint:
9303 case Format::eR16Sfloat:
9304 case Format::eR16G16Unorm:
9305 case Format::eR16G16Snorm:
9306 case Format::eR16G16Uscaled:
9307 case Format::eR16G16Sscaled:
9308 case Format::eR16G16Uint:
9309 case Format::eR16G16Sint:
9310 case Format::eR16G16Sfloat:
9311 case Format::eR16G16B16Unorm:
9312 case Format::eR16G16B16Snorm:
9313 case Format::eR16G16B16Uscaled:
9314 case Format::eR16G16B16Sscaled:
9315 case Format::eR16G16B16Uint:
9316 case Format::eR16G16B16Sint:
9317 case Format::eR16G16B16Sfloat:
9318 case Format::eR16G16B16A16Unorm:
9319 case Format::eR16G16B16A16Snorm:
9320 case Format::eR16G16B16A16Uscaled:
9321 case Format::eR16G16B16A16Sscaled:
9322 case Format::eR16G16B16A16Uint:
9323 case Format::eR16G16B16A16Sint:
9324 case Format::eR16G16B16A16Sfloat:
9325 case Format::eR32Uint:
9326 case Format::eR32Sint:
9327 case Format::eR32Sfloat:
9328 case Format::eR32G32Uint:
9329 case Format::eR32G32Sint:
9330 case Format::eR32G32Sfloat:
9331 case Format::eR32G32B32Uint:
9332 case Format::eR32G32B32Sint:
9333 case Format::eR32G32B32Sfloat:
9334 case Format::eR32G32B32A32Uint:
9335 case Format::eR32G32B32A32Sint:
9336 case Format::eR32G32B32A32Sfloat:
9337 case Format::eR64Uint:
9338 case Format::eR64Sint:
9339 case Format::eR64Sfloat:
9340 case Format::eR64G64Uint:
9341 case Format::eR64G64Sint:
9342 case Format::eR64G64Sfloat:
9343 case Format::eR64G64B64Uint:
9344 case Format::eR64G64B64Sint:
9345 case Format::eR64G64B64Sfloat:
9346 case Format::eR64G64B64A64Uint:
9347 case Format::eR64G64B64A64Sint:
9348 case Format::eR64G64B64A64Sfloat:
9349 case Format::eB10G11R11UfloatPack32:
9350 case Format::eE5B9G9R9UfloatPack32:
9351 case Format::eBc1RgbUnormBlock:
9352 case Format::eBc1RgbSrgbBlock:
9353 case Format::eBc1RgbaUnormBlock:
9354 case Format::eBc1RgbaSrgbBlock:
9355 case Format::eBc2UnormBlock:
9356 case Format::eBc2SrgbBlock:
9357 case Format::eBc3UnormBlock:
9358 case Format::eBc3SrgbBlock:
9359 case Format::eBc4UnormBlock:
9360 case Format::eBc4SnormBlock:
9361 case Format::eBc5UnormBlock:
9362 case Format::eBc5SnormBlock:
9363 case Format::eBc6HUfloatBlock:
9364 case Format::eBc6HSfloatBlock:
9365 case Format::eBc7UnormBlock:
9366 case Format::eBc7SrgbBlock:
9367 case Format::eEtc2R8G8B8UnormBlock:
9368 case Format::eEtc2R8G8B8SrgbBlock:
9369 case Format::eEtc2R8G8B8A1UnormBlock:
9370 case Format::eEtc2R8G8B8A1SrgbBlock:
9371 case Format::eEtc2R8G8B8A8UnormBlock:
9372 case Format::eEtc2R8G8B8A8SrgbBlock:
9373 case Format::eEacR11UnormBlock:
9374 case Format::eEacR11SnormBlock:
9375 case Format::eEacR11G11UnormBlock:
9376 case Format::eEacR11G11SnormBlock:
9377 case Format::eAstc4x4UnormBlock:
9378 case Format::eAstc4x4SrgbBlock:
9379 case Format::eAstc5x4UnormBlock:
9380 case Format::eAstc5x4SrgbBlock:
9381 case Format::eAstc5x5UnormBlock:
9382 case Format::eAstc5x5SrgbBlock:
9383 case Format::eAstc6x5UnormBlock:
9384 case Format::eAstc6x5SrgbBlock:
9385 case Format::eAstc6x6UnormBlock:
9386 case Format::eAstc6x6SrgbBlock:
9387 case Format::eAstc8x5UnormBlock:
9388 case Format::eAstc8x5SrgbBlock:
9389 case Format::eAstc8x6UnormBlock:
9390 case Format::eAstc8x6SrgbBlock:
9391 case Format::eAstc8x8UnormBlock:
9392 case Format::eAstc8x8SrgbBlock:
9393 case Format::eAstc10x5UnormBlock:
9394 case Format::eAstc10x5SrgbBlock:
9395 case Format::eAstc10x6UnormBlock:
9396 case Format::eAstc10x6SrgbBlock:
9397 case Format::eAstc10x8UnormBlock:
9398 case Format::eAstc10x8SrgbBlock:
9399 case Format::eAstc10x10UnormBlock:
9400 case Format::eAstc10x10SrgbBlock:
9401 case Format::eAstc12x10UnormBlock:
9402 case Format::eAstc12x10SrgbBlock:
9403 case Format::eAstc12x12UnormBlock:
9404 case Format::eAstc12x12SrgbBlock:
9405 case Format::eG8B8G8R8422Unorm:
9406 case Format::eB8G8R8G8422Unorm:
9407 case Format::eG8B8R83Plane420Unorm:
9408 case Format::eG8B8R82Plane420Unorm:
9409 case Format::eG8B8R83Plane422Unorm:
9410 case Format::eG8B8R82Plane422Unorm:
9411 case Format::eG8B8R83Plane444Unorm:
9412 case Format::eR10X6UnormPack16:
9413 case Format::eR10X6G10X6Unorm2Pack16:
9414 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16:
9415 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16:
9416 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16:
9417 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
9418 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
9419 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
9420 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
9421 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
9422 case Format::eR12X4UnormPack16:
9423 case Format::eR12X4G12X4Unorm2Pack16:
9424 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16:
9425 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16:
9426 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16:
9427 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
9428 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
9429 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
9430 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
9431 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
9432 case Format::eG16B16G16R16422Unorm:
9433 case Format::eB16G16R16G16422Unorm:
9434 case Format::eG16B16R163Plane420Unorm:
9435 case Format::eG16B16R162Plane420Unorm:
9436 case Format::eG16B16R163Plane422Unorm:
9437 case Format::eG16B16R162Plane422Unorm:
9438 case Format::eG16B16R163Plane444Unorm:
9439 case Format::eG8B8R82Plane444Unorm:
9440 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
9441 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
9442 case Format::eG16B16R162Plane444Unorm:
9443 case Format::eA4R4G4B4UnormPack16:
9444 case Format::eA4B4G4R4UnormPack16:
9445 case Format::eAstc4x4SfloatBlock:
9446 case Format::eAstc5x4SfloatBlock:
9447 case Format::eAstc5x5SfloatBlock:
9448 case Format::eAstc6x5SfloatBlock:
9449 case Format::eAstc6x6SfloatBlock:
9450 case Format::eAstc8x5SfloatBlock:
9451 case Format::eAstc8x6SfloatBlock:
9452 case Format::eAstc8x8SfloatBlock:
9453 case Format::eAstc10x5SfloatBlock:
9454 case Format::eAstc10x6SfloatBlock:
9455 case Format::eAstc10x8SfloatBlock:
9456 case Format::eAstc10x10SfloatBlock:
9457 case Format::eAstc12x10SfloatBlock:
9458 case Format::eAstc12x12SfloatBlock:
9459 case Format::eA1B5G5R5UnormPack16:
9460 case Format::ePvrtc12BppUnormBlockIMG:
9461 case Format::ePvrtc14BppUnormBlockIMG:
9462 case Format::ePvrtc22BppUnormBlockIMG:
9463 case Format::ePvrtc24BppUnormBlockIMG:
9464 case Format::ePvrtc12BppSrgbBlockIMG:
9465 case Format::ePvrtc14BppSrgbBlockIMG:
9466 case Format::ePvrtc22BppSrgbBlockIMG:
9467 case Format::ePvrtc24BppSrgbBlockIMG:
9468 case Format::eAstc3x3x3UnormBlockEXT:
9469 case Format::eAstc3x3x3SrgbBlockEXT:
9470 case Format::eAstc3x3x3SfloatBlockEXT:
9471 case Format::eAstc4x3x3UnormBlockEXT:
9472 case Format::eAstc4x3x3SrgbBlockEXT:
9473 case Format::eAstc4x3x3SfloatBlockEXT:
9474 case Format::eAstc4x4x3UnormBlockEXT:
9475 case Format::eAstc4x4x3SrgbBlockEXT:
9476 case Format::eAstc4x4x3SfloatBlockEXT:
9477 case Format::eAstc4x4x4UnormBlockEXT:
9478 case Format::eAstc4x4x4SrgbBlockEXT:
9479 case Format::eAstc4x4x4SfloatBlockEXT:
9480 case Format::eAstc5x4x4UnormBlockEXT:
9481 case Format::eAstc5x4x4SrgbBlockEXT:
9482 case Format::eAstc5x4x4SfloatBlockEXT:
9483 case Format::eAstc5x5x4UnormBlockEXT:
9484 case Format::eAstc5x5x4SrgbBlockEXT:
9485 case Format::eAstc5x5x4SfloatBlockEXT:
9486 case Format::eAstc5x5x5UnormBlockEXT:
9487 case Format::eAstc5x5x5SrgbBlockEXT:
9488 case Format::eAstc5x5x5SfloatBlockEXT:
9489 case Format::eAstc6x5x5UnormBlockEXT:
9490 case Format::eAstc6x5x5SrgbBlockEXT:
9491 case Format::eAstc6x5x5SfloatBlockEXT:
9492 case Format::eAstc6x6x5UnormBlockEXT:
9493 case Format::eAstc6x6x5SrgbBlockEXT:
9494 case Format::eAstc6x6x5SfloatBlockEXT:
9495 case Format::eAstc6x6x6UnormBlockEXT:
9496 case Format::eAstc6x6x6SrgbBlockEXT:
9497 case Format::eAstc6x6x6SfloatBlockEXT:
9498 case Format::eR8BoolARM:
9499 case Format::eR16G16Sfixed5NV:
9500 case Format::eR10X6UintPack16ARM:
9501 case Format::eR10X6G10X6Uint2Pack16ARM:
9502 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM:
9503 case Format::eR12X4UintPack16ARM:
9504 case Format::eR12X4G12X4Uint2Pack16ARM:
9505 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM:
9506 case Format::eR14X2UintPack16ARM:
9507 case Format::eR14X2G14X2Uint2Pack16ARM:
9508 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM:
9509 case Format::eR14X2UnormPack16ARM:
9510 case Format::eR14X2G14X2Unorm2Pack16ARM:
9511 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM:
9512 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
9513 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return true;
9514 default : return false;
9515 }
9516 }
9517
9518 // True, if this format has a stencil component
9519 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool hasStencilComponent( Format format )
9520 {
9521 switch ( format )
9522 {
9523 case Format::eS8Uint:
9524 case Format::eD16UnormS8Uint:
9525 case Format::eD24UnormS8Uint:
9526 case Format::eD32SfloatS8Uint: return true;
9527 default : return false;
9528 }
9529 }
9530
9531 // True, if this format is a color.
9532 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool isColor( Format format )
9533 {
9534 return hasRedComponent( format ) || hasGreenComponent( format ) || hasBlueComponent( format ) || hasAlphaComponent( format );
9535 }
9536
9537 // True, if this format is a compressed one.
9538 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 bool isCompressed( Format format )
9539 {
9540 return ( *compressionScheme( format ) != 0 );
9541 }
9542
9543 // The number of bits into which the format is packed. A single image element in this format
9544 // can be stored in the same space as a scalar type of this bit width.
9545 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t packed( Format format )
9546 {
9547 switch ( format )
9548 {
9549 case Format::eR4G4UnormPack8 : return 8;
9550 case Format::eR4G4B4A4UnormPack16 : return 16;
9551 case Format::eB4G4R4A4UnormPack16 : return 16;
9552 case Format::eR5G6B5UnormPack16 : return 16;
9553 case Format::eB5G6R5UnormPack16 : return 16;
9554 case Format::eR5G5B5A1UnormPack16 : return 16;
9555 case Format::eB5G5R5A1UnormPack16 : return 16;
9556 case Format::eA1R5G5B5UnormPack16 : return 16;
9557 case Format::eA8B8G8R8UnormPack32 : return 32;
9558 case Format::eA8B8G8R8SnormPack32 : return 32;
9559 case Format::eA8B8G8R8UscaledPack32 : return 32;
9560 case Format::eA8B8G8R8SscaledPack32 : return 32;
9561 case Format::eA8B8G8R8UintPack32 : return 32;
9562 case Format::eA8B8G8R8SintPack32 : return 32;
9563 case Format::eA8B8G8R8SrgbPack32 : return 32;
9564 case Format::eA2R10G10B10UnormPack32 : return 32;
9565 case Format::eA2R10G10B10SnormPack32 : return 32;
9566 case Format::eA2R10G10B10UscaledPack32 : return 32;
9567 case Format::eA2R10G10B10SscaledPack32 : return 32;
9568 case Format::eA2R10G10B10UintPack32 : return 32;
9569 case Format::eA2R10G10B10SintPack32 : return 32;
9570 case Format::eA2B10G10R10UnormPack32 : return 32;
9571 case Format::eA2B10G10R10SnormPack32 : return 32;
9572 case Format::eA2B10G10R10UscaledPack32 : return 32;
9573 case Format::eA2B10G10R10SscaledPack32 : return 32;
9574 case Format::eA2B10G10R10UintPack32 : return 32;
9575 case Format::eA2B10G10R10SintPack32 : return 32;
9576 case Format::eB10G11R11UfloatPack32 : return 32;
9577 case Format::eE5B9G9R9UfloatPack32 : return 32;
9578 case Format::eX8D24UnormPack32 : return 32;
9579 case Format::eR10X6UnormPack16 : return 16;
9580 case Format::eR10X6G10X6Unorm2Pack16 : return 16;
9581 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16 : return 16;
9582 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16 : return 16;
9583 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16 : return 16;
9584 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16 : return 16;
9585 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16 : return 16;
9586 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16 : return 16;
9587 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16 : return 16;
9588 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16 : return 16;
9589 case Format::eR12X4UnormPack16 : return 16;
9590 case Format::eR12X4G12X4Unorm2Pack16 : return 16;
9591 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16 : return 16;
9592 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16 : return 16;
9593 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16 : return 16;
9594 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16 : return 16;
9595 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16 : return 16;
9596 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16 : return 16;
9597 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16 : return 16;
9598 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16 : return 16;
9599 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16 : return 16;
9600 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16 : return 16;
9601 case Format::eA4R4G4B4UnormPack16 : return 16;
9602 case Format::eA4B4G4R4UnormPack16 : return 16;
9603 case Format::eA1B5G5R5UnormPack16 : return 16;
9604 case Format::eR10X6UintPack16ARM : return 16;
9605 case Format::eR10X6G10X6Uint2Pack16ARM : return 16;
9606 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM : return 16;
9607 case Format::eR12X4UintPack16ARM : return 16;
9608 case Format::eR12X4G12X4Uint2Pack16ARM : return 16;
9609 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM : return 16;
9610 case Format::eR14X2UintPack16ARM : return 16;
9611 case Format::eR14X2G14X2Uint2Pack16ARM : return 16;
9612 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM : return 16;
9613 case Format::eR14X2UnormPack16ARM : return 16;
9614 case Format::eR14X2G14X2Unorm2Pack16ARM : return 16;
9615 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM : return 16;
9616 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM: return 16;
9617 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return 16;
9618
9619 default: return 0;
9620 }
9621 }
9622
9623 // The single-plane format that this plane is compatible with.
9624 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 Format planeCompatibleFormat( Format format, uint8_t plane )
9625 {
9626 switch ( format )
9627 {
9628 case Format::eG8B8R83Plane420Unorm:
9629 switch ( plane )
9630 {
9631 case 0 : return Format::eR8Unorm;
9632 case 1 : return Format::eR8Unorm;
9633 case 2 : return Format::eR8Unorm;
9634 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9635 }
9636 case Format::eG8B8R82Plane420Unorm:
9637 switch ( plane )
9638 {
9639 case 0 : return Format::eR8Unorm;
9640 case 1 : return Format::eR8G8Unorm;
9641 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9642 }
9643 case Format::eG8B8R83Plane422Unorm:
9644 switch ( plane )
9645 {
9646 case 0 : return Format::eR8Unorm;
9647 case 1 : return Format::eR8Unorm;
9648 case 2 : return Format::eR8Unorm;
9649 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9650 }
9651 case Format::eG8B8R82Plane422Unorm:
9652 switch ( plane )
9653 {
9654 case 0 : return Format::eR8Unorm;
9655 case 1 : return Format::eR8G8Unorm;
9656 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9657 }
9658 case Format::eG8B8R83Plane444Unorm:
9659 switch ( plane )
9660 {
9661 case 0 : return Format::eR8Unorm;
9662 case 1 : return Format::eR8Unorm;
9663 case 2 : return Format::eR8Unorm;
9664 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9665 }
9666 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
9667 switch ( plane )
9668 {
9669 case 0 : return Format::eR10X6UnormPack16;
9670 case 1 : return Format::eR10X6UnormPack16;
9671 case 2 : return Format::eR10X6UnormPack16;
9672 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9673 }
9674 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
9675 switch ( plane )
9676 {
9677 case 0 : return Format::eR10X6UnormPack16;
9678 case 1 : return Format::eR10X6G10X6Unorm2Pack16;
9679 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9680 }
9681 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
9682 switch ( plane )
9683 {
9684 case 0 : return Format::eR10X6UnormPack16;
9685 case 1 : return Format::eR10X6UnormPack16;
9686 case 2 : return Format::eR10X6UnormPack16;
9687 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9688 }
9689 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
9690 switch ( plane )
9691 {
9692 case 0 : return Format::eR10X6UnormPack16;
9693 case 1 : return Format::eR10X6G10X6Unorm2Pack16;
9694 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9695 }
9696 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
9697 switch ( plane )
9698 {
9699 case 0 : return Format::eR10X6UnormPack16;
9700 case 1 : return Format::eR10X6UnormPack16;
9701 case 2 : return Format::eR10X6UnormPack16;
9702 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9703 }
9704 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
9705 switch ( plane )
9706 {
9707 case 0 : return Format::eR12X4UnormPack16;
9708 case 1 : return Format::eR12X4UnormPack16;
9709 case 2 : return Format::eR12X4UnormPack16;
9710 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9711 }
9712 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
9713 switch ( plane )
9714 {
9715 case 0 : return Format::eR12X4UnormPack16;
9716 case 1 : return Format::eR12X4G12X4Unorm2Pack16;
9717 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9718 }
9719 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
9720 switch ( plane )
9721 {
9722 case 0 : return Format::eR12X4UnormPack16;
9723 case 1 : return Format::eR12X4UnormPack16;
9724 case 2 : return Format::eR12X4UnormPack16;
9725 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9726 }
9727 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
9728 switch ( plane )
9729 {
9730 case 0 : return Format::eR12X4UnormPack16;
9731 case 1 : return Format::eR12X4G12X4Unorm2Pack16;
9732 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9733 }
9734 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
9735 switch ( plane )
9736 {
9737 case 0 : return Format::eR12X4UnormPack16;
9738 case 1 : return Format::eR12X4UnormPack16;
9739 case 2 : return Format::eR12X4UnormPack16;
9740 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9741 }
9742 case Format::eG16B16R163Plane420Unorm:
9743 switch ( plane )
9744 {
9745 case 0 : return Format::eR16Unorm;
9746 case 1 : return Format::eR16Unorm;
9747 case 2 : return Format::eR16Unorm;
9748 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9749 }
9750 case Format::eG16B16R162Plane420Unorm:
9751 switch ( plane )
9752 {
9753 case 0 : return Format::eR16Unorm;
9754 case 1 : return Format::eR16G16Unorm;
9755 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9756 }
9757 case Format::eG16B16R163Plane422Unorm:
9758 switch ( plane )
9759 {
9760 case 0 : return Format::eR16Unorm;
9761 case 1 : return Format::eR16Unorm;
9762 case 2 : return Format::eR16Unorm;
9763 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9764 }
9765 case Format::eG16B16R162Plane422Unorm:
9766 switch ( plane )
9767 {
9768 case 0 : return Format::eR16Unorm;
9769 case 1 : return Format::eR16G16Unorm;
9770 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9771 }
9772 case Format::eG16B16R163Plane444Unorm:
9773 switch ( plane )
9774 {
9775 case 0 : return Format::eR16Unorm;
9776 case 1 : return Format::eR16Unorm;
9777 case 2 : return Format::eR16Unorm;
9778 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9779 }
9780 case Format::eG8B8R82Plane444Unorm:
9781 switch ( plane )
9782 {
9783 case 0 : return Format::eR8Unorm;
9784 case 1 : return Format::eR8G8Unorm;
9785 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9786 }
9787 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
9788 switch ( plane )
9789 {
9790 case 0 : return Format::eR10X6UnormPack16;
9791 case 1 : return Format::eR10X6G10X6Unorm2Pack16;
9792 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9793 }
9794 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
9795 switch ( plane )
9796 {
9797 case 0 : return Format::eR12X4UnormPack16;
9798 case 1 : return Format::eR12X4G12X4Unorm2Pack16;
9799 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9800 }
9801 case Format::eG16B16R162Plane444Unorm:
9802 switch ( plane )
9803 {
9804 case 0 : return Format::eR16Unorm;
9805 case 1 : return Format::eR16G16Unorm;
9806 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9807 }
9808 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
9809 switch ( plane )
9810 {
9811 case 0 : return Format::eR14X2UnormPack16ARM;
9812 case 1 : return Format::eR14X2G14X2Unorm2Pack16ARM;
9813 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9814 }
9815 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
9816 switch ( plane )
9817 {
9818 case 0 : return Format::eR14X2UnormPack16ARM;
9819 case 1 : return Format::eR14X2G14X2Unorm2Pack16ARM;
9820 default: VULKAN_HPP_ASSERT( false ); return Format::eUndefined;
9821 }
9822
9823 default: VULKAN_HPP_ASSERT( plane == 0 ); return format;
9824 }
9825 }
9826
9827 // The number of image planes of this format.
9828 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t planeCount( Format format )
9829 {
9830 switch ( format )
9831 {
9832 case Format::eG8B8R83Plane420Unorm : return 3;
9833 case Format::eG8B8R82Plane420Unorm : return 2;
9834 case Format::eG8B8R83Plane422Unorm : return 3;
9835 case Format::eG8B8R82Plane422Unorm : return 2;
9836 case Format::eG8B8R83Plane444Unorm : return 3;
9837 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16 : return 3;
9838 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16 : return 2;
9839 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16 : return 3;
9840 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16 : return 2;
9841 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16 : return 3;
9842 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16 : return 3;
9843 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16 : return 2;
9844 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16 : return 3;
9845 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16 : return 2;
9846 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16 : return 3;
9847 case Format::eG16B16R163Plane420Unorm : return 3;
9848 case Format::eG16B16R162Plane420Unorm : return 2;
9849 case Format::eG16B16R163Plane422Unorm : return 3;
9850 case Format::eG16B16R162Plane422Unorm : return 2;
9851 case Format::eG16B16R163Plane444Unorm : return 3;
9852 case Format::eG8B8R82Plane444Unorm : return 2;
9853 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16 : return 2;
9854 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16 : return 2;
9855 case Format::eG16B16R162Plane444Unorm : return 2;
9856 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM: return 2;
9857 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return 2;
9858
9859 default: return 1;
9860 }
9861 }
9862
9863 // The relative height of this plane. A value of k means that this plane is 1/k the height of the overall format.
9864 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t planeHeightDivisor( Format format, uint8_t plane )
9865 {
9866 switch ( format )
9867 {
9868 case Format::eG8B8R83Plane420Unorm:
9869 switch ( plane )
9870 {
9871 case 0 : return 1;
9872 case 1 : return 2;
9873 case 2 : return 2;
9874 default: VULKAN_HPP_ASSERT( false ); return 1;
9875 }
9876 case Format::eG8B8R82Plane420Unorm:
9877 switch ( plane )
9878 {
9879 case 0 : return 1;
9880 case 1 : return 2;
9881 default: VULKAN_HPP_ASSERT( false ); return 1;
9882 }
9883 case Format::eG8B8R83Plane422Unorm:
9884 switch ( plane )
9885 {
9886 case 0 : return 1;
9887 case 1 : return 1;
9888 case 2 : return 1;
9889 default: VULKAN_HPP_ASSERT( false ); return 1;
9890 }
9891 case Format::eG8B8R82Plane422Unorm:
9892 switch ( plane )
9893 {
9894 case 0 : return 1;
9895 case 1 : return 1;
9896 default: VULKAN_HPP_ASSERT( false ); return 1;
9897 }
9898 case Format::eG8B8R83Plane444Unorm:
9899 switch ( plane )
9900 {
9901 case 0 : return 1;
9902 case 1 : return 1;
9903 case 2 : return 1;
9904 default: VULKAN_HPP_ASSERT( false ); return 1;
9905 }
9906 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
9907 switch ( plane )
9908 {
9909 case 0 : return 1;
9910 case 1 : return 2;
9911 case 2 : return 2;
9912 default: VULKAN_HPP_ASSERT( false ); return 1;
9913 }
9914 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
9915 switch ( plane )
9916 {
9917 case 0 : return 1;
9918 case 1 : return 2;
9919 default: VULKAN_HPP_ASSERT( false ); return 1;
9920 }
9921 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
9922 switch ( plane )
9923 {
9924 case 0 : return 1;
9925 case 1 : return 1;
9926 case 2 : return 1;
9927 default: VULKAN_HPP_ASSERT( false ); return 1;
9928 }
9929 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
9930 switch ( plane )
9931 {
9932 case 0 : return 1;
9933 case 1 : return 1;
9934 default: VULKAN_HPP_ASSERT( false ); return 1;
9935 }
9936 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
9937 switch ( plane )
9938 {
9939 case 0 : return 1;
9940 case 1 : return 1;
9941 case 2 : return 1;
9942 default: VULKAN_HPP_ASSERT( false ); return 1;
9943 }
9944 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
9945 switch ( plane )
9946 {
9947 case 0 : return 1;
9948 case 1 : return 2;
9949 case 2 : return 2;
9950 default: VULKAN_HPP_ASSERT( false ); return 1;
9951 }
9952 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
9953 switch ( plane )
9954 {
9955 case 0 : return 1;
9956 case 1 : return 2;
9957 default: VULKAN_HPP_ASSERT( false ); return 1;
9958 }
9959 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
9960 switch ( plane )
9961 {
9962 case 0 : return 1;
9963 case 1 : return 1;
9964 case 2 : return 1;
9965 default: VULKAN_HPP_ASSERT( false ); return 1;
9966 }
9967 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
9968 switch ( plane )
9969 {
9970 case 0 : return 1;
9971 case 1 : return 1;
9972 default: VULKAN_HPP_ASSERT( false ); return 1;
9973 }
9974 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
9975 switch ( plane )
9976 {
9977 case 0 : return 1;
9978 case 1 : return 1;
9979 case 2 : return 1;
9980 default: VULKAN_HPP_ASSERT( false ); return 1;
9981 }
9982 case Format::eG16B16R163Plane420Unorm:
9983 switch ( plane )
9984 {
9985 case 0 : return 1;
9986 case 1 : return 2;
9987 case 2 : return 2;
9988 default: VULKAN_HPP_ASSERT( false ); return 1;
9989 }
9990 case Format::eG16B16R162Plane420Unorm:
9991 switch ( plane )
9992 {
9993 case 0 : return 1;
9994 case 1 : return 2;
9995 default: VULKAN_HPP_ASSERT( false ); return 1;
9996 }
9997 case Format::eG16B16R163Plane422Unorm:
9998 switch ( plane )
9999 {
10000 case 0 : return 1;
10001 case 1 : return 1;
10002 case 2 : return 1;
10003 default: VULKAN_HPP_ASSERT( false ); return 1;
10004 }
10005 case Format::eG16B16R162Plane422Unorm:
10006 switch ( plane )
10007 {
10008 case 0 : return 1;
10009 case 1 : return 1;
10010 default: VULKAN_HPP_ASSERT( false ); return 1;
10011 }
10012 case Format::eG16B16R163Plane444Unorm:
10013 switch ( plane )
10014 {
10015 case 0 : return 1;
10016 case 1 : return 1;
10017 case 2 : return 1;
10018 default: VULKAN_HPP_ASSERT( false ); return 1;
10019 }
10020 case Format::eG8B8R82Plane444Unorm:
10021 switch ( plane )
10022 {
10023 case 0 : return 1;
10024 case 1 : return 1;
10025 default: VULKAN_HPP_ASSERT( false ); return 1;
10026 }
10027 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
10028 switch ( plane )
10029 {
10030 case 0 : return 1;
10031 case 1 : return 1;
10032 default: VULKAN_HPP_ASSERT( false ); return 1;
10033 }
10034 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
10035 switch ( plane )
10036 {
10037 case 0 : return 1;
10038 case 1 : return 1;
10039 default: VULKAN_HPP_ASSERT( false ); return 1;
10040 }
10041 case Format::eG16B16R162Plane444Unorm:
10042 switch ( plane )
10043 {
10044 case 0 : return 1;
10045 case 1 : return 1;
10046 default: VULKAN_HPP_ASSERT( false ); return 1;
10047 }
10048 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
10049 switch ( plane )
10050 {
10051 case 0 : return 1;
10052 case 1 : return 2;
10053 default: VULKAN_HPP_ASSERT( false ); return 1;
10054 }
10055 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
10056 switch ( plane )
10057 {
10058 case 0 : return 1;
10059 case 1 : return 1;
10060 default: VULKAN_HPP_ASSERT( false ); return 1;
10061 }
10062
10063 default: VULKAN_HPP_ASSERT( plane == 0 ); return 1;
10064 }
10065 }
10066
10067 // The relative width of this plane. A value of k means that this plane is 1/k the width of the overall format.
10068 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t planeWidthDivisor( Format format, uint8_t plane )
10069 {
10070 switch ( format )
10071 {
10072 case Format::eG8B8R83Plane420Unorm:
10073 switch ( plane )
10074 {
10075 case 0 : return 1;
10076 case 1 : return 2;
10077 case 2 : return 2;
10078 default: VULKAN_HPP_ASSERT( false ); return 1;
10079 }
10080 case Format::eG8B8R82Plane420Unorm:
10081 switch ( plane )
10082 {
10083 case 0 : return 1;
10084 case 1 : return 2;
10085 default: VULKAN_HPP_ASSERT( false ); return 1;
10086 }
10087 case Format::eG8B8R83Plane422Unorm:
10088 switch ( plane )
10089 {
10090 case 0 : return 1;
10091 case 1 : return 2;
10092 case 2 : return 2;
10093 default: VULKAN_HPP_ASSERT( false ); return 1;
10094 }
10095 case Format::eG8B8R82Plane422Unorm:
10096 switch ( plane )
10097 {
10098 case 0 : return 1;
10099 case 1 : return 2;
10100 default: VULKAN_HPP_ASSERT( false ); return 1;
10101 }
10102 case Format::eG8B8R83Plane444Unorm:
10103 switch ( plane )
10104 {
10105 case 0 : return 1;
10106 case 1 : return 1;
10107 case 2 : return 1;
10108 default: VULKAN_HPP_ASSERT( false ); return 1;
10109 }
10110 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16:
10111 switch ( plane )
10112 {
10113 case 0 : return 1;
10114 case 1 : return 2;
10115 case 2 : return 2;
10116 default: VULKAN_HPP_ASSERT( false ); return 1;
10117 }
10118 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16:
10119 switch ( plane )
10120 {
10121 case 0 : return 1;
10122 case 1 : return 2;
10123 default: VULKAN_HPP_ASSERT( false ); return 1;
10124 }
10125 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16:
10126 switch ( plane )
10127 {
10128 case 0 : return 1;
10129 case 1 : return 2;
10130 case 2 : return 2;
10131 default: VULKAN_HPP_ASSERT( false ); return 1;
10132 }
10133 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16:
10134 switch ( plane )
10135 {
10136 case 0 : return 1;
10137 case 1 : return 2;
10138 default: VULKAN_HPP_ASSERT( false ); return 1;
10139 }
10140 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16:
10141 switch ( plane )
10142 {
10143 case 0 : return 1;
10144 case 1 : return 1;
10145 case 2 : return 1;
10146 default: VULKAN_HPP_ASSERT( false ); return 1;
10147 }
10148 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16:
10149 switch ( plane )
10150 {
10151 case 0 : return 1;
10152 case 1 : return 2;
10153 case 2 : return 2;
10154 default: VULKAN_HPP_ASSERT( false ); return 1;
10155 }
10156 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16:
10157 switch ( plane )
10158 {
10159 case 0 : return 1;
10160 case 1 : return 2;
10161 default: VULKAN_HPP_ASSERT( false ); return 1;
10162 }
10163 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16:
10164 switch ( plane )
10165 {
10166 case 0 : return 1;
10167 case 1 : return 2;
10168 case 2 : return 2;
10169 default: VULKAN_HPP_ASSERT( false ); return 1;
10170 }
10171 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16:
10172 switch ( plane )
10173 {
10174 case 0 : return 1;
10175 case 1 : return 2;
10176 default: VULKAN_HPP_ASSERT( false ); return 1;
10177 }
10178 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16:
10179 switch ( plane )
10180 {
10181 case 0 : return 1;
10182 case 1 : return 1;
10183 case 2 : return 1;
10184 default: VULKAN_HPP_ASSERT( false ); return 1;
10185 }
10186 case Format::eG16B16R163Plane420Unorm:
10187 switch ( plane )
10188 {
10189 case 0 : return 1;
10190 case 1 : return 2;
10191 case 2 : return 2;
10192 default: VULKAN_HPP_ASSERT( false ); return 1;
10193 }
10194 case Format::eG16B16R162Plane420Unorm:
10195 switch ( plane )
10196 {
10197 case 0 : return 1;
10198 case 1 : return 2;
10199 default: VULKAN_HPP_ASSERT( false ); return 1;
10200 }
10201 case Format::eG16B16R163Plane422Unorm:
10202 switch ( plane )
10203 {
10204 case 0 : return 1;
10205 case 1 : return 2;
10206 case 2 : return 2;
10207 default: VULKAN_HPP_ASSERT( false ); return 1;
10208 }
10209 case Format::eG16B16R162Plane422Unorm:
10210 switch ( plane )
10211 {
10212 case 0 : return 1;
10213 case 1 : return 2;
10214 default: VULKAN_HPP_ASSERT( false ); return 1;
10215 }
10216 case Format::eG16B16R163Plane444Unorm:
10217 switch ( plane )
10218 {
10219 case 0 : return 1;
10220 case 1 : return 1;
10221 case 2 : return 1;
10222 default: VULKAN_HPP_ASSERT( false ); return 1;
10223 }
10224 case Format::eG8B8R82Plane444Unorm:
10225 switch ( plane )
10226 {
10227 case 0 : return 1;
10228 case 1 : return 1;
10229 default: VULKAN_HPP_ASSERT( false ); return 1;
10230 }
10231 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16:
10232 switch ( plane )
10233 {
10234 case 0 : return 1;
10235 case 1 : return 1;
10236 default: VULKAN_HPP_ASSERT( false ); return 1;
10237 }
10238 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16:
10239 switch ( plane )
10240 {
10241 case 0 : return 1;
10242 case 1 : return 1;
10243 default: VULKAN_HPP_ASSERT( false ); return 1;
10244 }
10245 case Format::eG16B16R162Plane444Unorm:
10246 switch ( plane )
10247 {
10248 case 0 : return 1;
10249 case 1 : return 1;
10250 default: VULKAN_HPP_ASSERT( false ); return 1;
10251 }
10252 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM:
10253 switch ( plane )
10254 {
10255 case 0 : return 1;
10256 case 1 : return 2;
10257 default: VULKAN_HPP_ASSERT( false ); return 1;
10258 }
10259 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM:
10260 switch ( plane )
10261 {
10262 case 0 : return 1;
10263 case 1 : return 2;
10264 default: VULKAN_HPP_ASSERT( false ); return 1;
10265 }
10266
10267 default: VULKAN_HPP_ASSERT( plane == 0 ); return 1;
10268 }
10269 }
10270
10271 // The number of texels in a texel block.
10272 VULKAN_HPP_INLINE VULKAN_HPP_CONSTEXPR_14 uint8_t texelsPerBlock( Format format )
10273 {
10274 switch ( format )
10275 {
10276 case Format::eR4G4UnormPack8 : return 1;
10277 case Format::eR4G4B4A4UnormPack16 : return 1;
10278 case Format::eB4G4R4A4UnormPack16 : return 1;
10279 case Format::eR5G6B5UnormPack16 : return 1;
10280 case Format::eB5G6R5UnormPack16 : return 1;
10281 case Format::eR5G5B5A1UnormPack16 : return 1;
10282 case Format::eB5G5R5A1UnormPack16 : return 1;
10283 case Format::eA1R5G5B5UnormPack16 : return 1;
10284 case Format::eR8Unorm : return 1;
10285 case Format::eR8Snorm : return 1;
10286 case Format::eR8Uscaled : return 1;
10287 case Format::eR8Sscaled : return 1;
10288 case Format::eR8Uint : return 1;
10289 case Format::eR8Sint : return 1;
10290 case Format::eR8Srgb : return 1;
10291 case Format::eR8G8Unorm : return 1;
10292 case Format::eR8G8Snorm : return 1;
10293 case Format::eR8G8Uscaled : return 1;
10294 case Format::eR8G8Sscaled : return 1;
10295 case Format::eR8G8Uint : return 1;
10296 case Format::eR8G8Sint : return 1;
10297 case Format::eR8G8Srgb : return 1;
10298 case Format::eR8G8B8Unorm : return 1;
10299 case Format::eR8G8B8Snorm : return 1;
10300 case Format::eR8G8B8Uscaled : return 1;
10301 case Format::eR8G8B8Sscaled : return 1;
10302 case Format::eR8G8B8Uint : return 1;
10303 case Format::eR8G8B8Sint : return 1;
10304 case Format::eR8G8B8Srgb : return 1;
10305 case Format::eB8G8R8Unorm : return 1;
10306 case Format::eB8G8R8Snorm : return 1;
10307 case Format::eB8G8R8Uscaled : return 1;
10308 case Format::eB8G8R8Sscaled : return 1;
10309 case Format::eB8G8R8Uint : return 1;
10310 case Format::eB8G8R8Sint : return 1;
10311 case Format::eB8G8R8Srgb : return 1;
10312 case Format::eR8G8B8A8Unorm : return 1;
10313 case Format::eR8G8B8A8Snorm : return 1;
10314 case Format::eR8G8B8A8Uscaled : return 1;
10315 case Format::eR8G8B8A8Sscaled : return 1;
10316 case Format::eR8G8B8A8Uint : return 1;
10317 case Format::eR8G8B8A8Sint : return 1;
10318 case Format::eR8G8B8A8Srgb : return 1;
10319 case Format::eB8G8R8A8Unorm : return 1;
10320 case Format::eB8G8R8A8Snorm : return 1;
10321 case Format::eB8G8R8A8Uscaled : return 1;
10322 case Format::eB8G8R8A8Sscaled : return 1;
10323 case Format::eB8G8R8A8Uint : return 1;
10324 case Format::eB8G8R8A8Sint : return 1;
10325 case Format::eB8G8R8A8Srgb : return 1;
10326 case Format::eA8B8G8R8UnormPack32 : return 1;
10327 case Format::eA8B8G8R8SnormPack32 : return 1;
10328 case Format::eA8B8G8R8UscaledPack32 : return 1;
10329 case Format::eA8B8G8R8SscaledPack32 : return 1;
10330 case Format::eA8B8G8R8UintPack32 : return 1;
10331 case Format::eA8B8G8R8SintPack32 : return 1;
10332 case Format::eA8B8G8R8SrgbPack32 : return 1;
10333 case Format::eA2R10G10B10UnormPack32 : return 1;
10334 case Format::eA2R10G10B10SnormPack32 : return 1;
10335 case Format::eA2R10G10B10UscaledPack32 : return 1;
10336 case Format::eA2R10G10B10SscaledPack32 : return 1;
10337 case Format::eA2R10G10B10UintPack32 : return 1;
10338 case Format::eA2R10G10B10SintPack32 : return 1;
10339 case Format::eA2B10G10R10UnormPack32 : return 1;
10340 case Format::eA2B10G10R10SnormPack32 : return 1;
10341 case Format::eA2B10G10R10UscaledPack32 : return 1;
10342 case Format::eA2B10G10R10SscaledPack32 : return 1;
10343 case Format::eA2B10G10R10UintPack32 : return 1;
10344 case Format::eA2B10G10R10SintPack32 : return 1;
10345 case Format::eR16Unorm : return 1;
10346 case Format::eR16Snorm : return 1;
10347 case Format::eR16Uscaled : return 1;
10348 case Format::eR16Sscaled : return 1;
10349 case Format::eR16Uint : return 1;
10350 case Format::eR16Sint : return 1;
10351 case Format::eR16Sfloat : return 1;
10352 case Format::eR16G16Unorm : return 1;
10353 case Format::eR16G16Snorm : return 1;
10354 case Format::eR16G16Uscaled : return 1;
10355 case Format::eR16G16Sscaled : return 1;
10356 case Format::eR16G16Uint : return 1;
10357 case Format::eR16G16Sint : return 1;
10358 case Format::eR16G16Sfloat : return 1;
10359 case Format::eR16G16B16Unorm : return 1;
10360 case Format::eR16G16B16Snorm : return 1;
10361 case Format::eR16G16B16Uscaled : return 1;
10362 case Format::eR16G16B16Sscaled : return 1;
10363 case Format::eR16G16B16Uint : return 1;
10364 case Format::eR16G16B16Sint : return 1;
10365 case Format::eR16G16B16Sfloat : return 1;
10366 case Format::eR16G16B16A16Unorm : return 1;
10367 case Format::eR16G16B16A16Snorm : return 1;
10368 case Format::eR16G16B16A16Uscaled : return 1;
10369 case Format::eR16G16B16A16Sscaled : return 1;
10370 case Format::eR16G16B16A16Uint : return 1;
10371 case Format::eR16G16B16A16Sint : return 1;
10372 case Format::eR16G16B16A16Sfloat : return 1;
10373 case Format::eR32Uint : return 1;
10374 case Format::eR32Sint : return 1;
10375 case Format::eR32Sfloat : return 1;
10376 case Format::eR32G32Uint : return 1;
10377 case Format::eR32G32Sint : return 1;
10378 case Format::eR32G32Sfloat : return 1;
10379 case Format::eR32G32B32Uint : return 1;
10380 case Format::eR32G32B32Sint : return 1;
10381 case Format::eR32G32B32Sfloat : return 1;
10382 case Format::eR32G32B32A32Uint : return 1;
10383 case Format::eR32G32B32A32Sint : return 1;
10384 case Format::eR32G32B32A32Sfloat : return 1;
10385 case Format::eR64Uint : return 1;
10386 case Format::eR64Sint : return 1;
10387 case Format::eR64Sfloat : return 1;
10388 case Format::eR64G64Uint : return 1;
10389 case Format::eR64G64Sint : return 1;
10390 case Format::eR64G64Sfloat : return 1;
10391 case Format::eR64G64B64Uint : return 1;
10392 case Format::eR64G64B64Sint : return 1;
10393 case Format::eR64G64B64Sfloat : return 1;
10394 case Format::eR64G64B64A64Uint : return 1;
10395 case Format::eR64G64B64A64Sint : return 1;
10396 case Format::eR64G64B64A64Sfloat : return 1;
10397 case Format::eB10G11R11UfloatPack32 : return 1;
10398 case Format::eE5B9G9R9UfloatPack32 : return 1;
10399 case Format::eD16Unorm : return 1;
10400 case Format::eX8D24UnormPack32 : return 1;
10401 case Format::eD32Sfloat : return 1;
10402 case Format::eS8Uint : return 1;
10403 case Format::eD16UnormS8Uint : return 1;
10404 case Format::eD24UnormS8Uint : return 1;
10405 case Format::eD32SfloatS8Uint : return 1;
10406 case Format::eBc1RgbUnormBlock : return 16;
10407 case Format::eBc1RgbSrgbBlock : return 16;
10408 case Format::eBc1RgbaUnormBlock : return 16;
10409 case Format::eBc1RgbaSrgbBlock : return 16;
10410 case Format::eBc2UnormBlock : return 16;
10411 case Format::eBc2SrgbBlock : return 16;
10412 case Format::eBc3UnormBlock : return 16;
10413 case Format::eBc3SrgbBlock : return 16;
10414 case Format::eBc4UnormBlock : return 16;
10415 case Format::eBc4SnormBlock : return 16;
10416 case Format::eBc5UnormBlock : return 16;
10417 case Format::eBc5SnormBlock : return 16;
10418 case Format::eBc6HUfloatBlock : return 16;
10419 case Format::eBc6HSfloatBlock : return 16;
10420 case Format::eBc7UnormBlock : return 16;
10421 case Format::eBc7SrgbBlock : return 16;
10422 case Format::eEtc2R8G8B8UnormBlock : return 16;
10423 case Format::eEtc2R8G8B8SrgbBlock : return 16;
10424 case Format::eEtc2R8G8B8A1UnormBlock : return 16;
10425 case Format::eEtc2R8G8B8A1SrgbBlock : return 16;
10426 case Format::eEtc2R8G8B8A8UnormBlock : return 16;
10427 case Format::eEtc2R8G8B8A8SrgbBlock : return 16;
10428 case Format::eEacR11UnormBlock : return 16;
10429 case Format::eEacR11SnormBlock : return 16;
10430 case Format::eEacR11G11UnormBlock : return 16;
10431 case Format::eEacR11G11SnormBlock : return 16;
10432 case Format::eAstc4x4UnormBlock : return 16;
10433 case Format::eAstc4x4SrgbBlock : return 16;
10434 case Format::eAstc5x4UnormBlock : return 20;
10435 case Format::eAstc5x4SrgbBlock : return 20;
10436 case Format::eAstc5x5UnormBlock : return 25;
10437 case Format::eAstc5x5SrgbBlock : return 25;
10438 case Format::eAstc6x5UnormBlock : return 30;
10439 case Format::eAstc6x5SrgbBlock : return 30;
10440 case Format::eAstc6x6UnormBlock : return 36;
10441 case Format::eAstc6x6SrgbBlock : return 36;
10442 case Format::eAstc8x5UnormBlock : return 40;
10443 case Format::eAstc8x5SrgbBlock : return 40;
10444 case Format::eAstc8x6UnormBlock : return 48;
10445 case Format::eAstc8x6SrgbBlock : return 48;
10446 case Format::eAstc8x8UnormBlock : return 64;
10447 case Format::eAstc8x8SrgbBlock : return 64;
10448 case Format::eAstc10x5UnormBlock : return 50;
10449 case Format::eAstc10x5SrgbBlock : return 50;
10450 case Format::eAstc10x6UnormBlock : return 60;
10451 case Format::eAstc10x6SrgbBlock : return 60;
10452 case Format::eAstc10x8UnormBlock : return 80;
10453 case Format::eAstc10x8SrgbBlock : return 80;
10454 case Format::eAstc10x10UnormBlock : return 100;
10455 case Format::eAstc10x10SrgbBlock : return 100;
10456 case Format::eAstc12x10UnormBlock : return 120;
10457 case Format::eAstc12x10SrgbBlock : return 120;
10458 case Format::eAstc12x12UnormBlock : return 144;
10459 case Format::eAstc12x12SrgbBlock : return 144;
10460 case Format::eG8B8G8R8422Unorm : return 1;
10461 case Format::eB8G8R8G8422Unorm : return 1;
10462 case Format::eG8B8R83Plane420Unorm : return 1;
10463 case Format::eG8B8R82Plane420Unorm : return 1;
10464 case Format::eG8B8R83Plane422Unorm : return 1;
10465 case Format::eG8B8R82Plane422Unorm : return 1;
10466 case Format::eG8B8R83Plane444Unorm : return 1;
10467 case Format::eR10X6UnormPack16 : return 1;
10468 case Format::eR10X6G10X6Unorm2Pack16 : return 1;
10469 case Format::eR10X6G10X6B10X6A10X6Unorm4Pack16 : return 1;
10470 case Format::eG10X6B10X6G10X6R10X6422Unorm4Pack16 : return 1;
10471 case Format::eB10X6G10X6R10X6G10X6422Unorm4Pack16 : return 1;
10472 case Format::eG10X6B10X6R10X63Plane420Unorm3Pack16 : return 1;
10473 case Format::eG10X6B10X6R10X62Plane420Unorm3Pack16 : return 1;
10474 case Format::eG10X6B10X6R10X63Plane422Unorm3Pack16 : return 1;
10475 case Format::eG10X6B10X6R10X62Plane422Unorm3Pack16 : return 1;
10476 case Format::eG10X6B10X6R10X63Plane444Unorm3Pack16 : return 1;
10477 case Format::eR12X4UnormPack16 : return 1;
10478 case Format::eR12X4G12X4Unorm2Pack16 : return 1;
10479 case Format::eR12X4G12X4B12X4A12X4Unorm4Pack16 : return 1;
10480 case Format::eG12X4B12X4G12X4R12X4422Unorm4Pack16 : return 1;
10481 case Format::eB12X4G12X4R12X4G12X4422Unorm4Pack16 : return 1;
10482 case Format::eG12X4B12X4R12X43Plane420Unorm3Pack16 : return 1;
10483 case Format::eG12X4B12X4R12X42Plane420Unorm3Pack16 : return 1;
10484 case Format::eG12X4B12X4R12X43Plane422Unorm3Pack16 : return 1;
10485 case Format::eG12X4B12X4R12X42Plane422Unorm3Pack16 : return 1;
10486 case Format::eG12X4B12X4R12X43Plane444Unorm3Pack16 : return 1;
10487 case Format::eG16B16G16R16422Unorm : return 1;
10488 case Format::eB16G16R16G16422Unorm : return 1;
10489 case Format::eG16B16R163Plane420Unorm : return 1;
10490 case Format::eG16B16R162Plane420Unorm : return 1;
10491 case Format::eG16B16R163Plane422Unorm : return 1;
10492 case Format::eG16B16R162Plane422Unorm : return 1;
10493 case Format::eG16B16R163Plane444Unorm : return 1;
10494 case Format::eG8B8R82Plane444Unorm : return 1;
10495 case Format::eG10X6B10X6R10X62Plane444Unorm3Pack16 : return 1;
10496 case Format::eG12X4B12X4R12X42Plane444Unorm3Pack16 : return 1;
10497 case Format::eG16B16R162Plane444Unorm : return 1;
10498 case Format::eA4R4G4B4UnormPack16 : return 1;
10499 case Format::eA4B4G4R4UnormPack16 : return 1;
10500 case Format::eAstc4x4SfloatBlock : return 16;
10501 case Format::eAstc5x4SfloatBlock : return 20;
10502 case Format::eAstc5x5SfloatBlock : return 25;
10503 case Format::eAstc6x5SfloatBlock : return 30;
10504 case Format::eAstc6x6SfloatBlock : return 36;
10505 case Format::eAstc8x5SfloatBlock : return 40;
10506 case Format::eAstc8x6SfloatBlock : return 48;
10507 case Format::eAstc8x8SfloatBlock : return 64;
10508 case Format::eAstc10x5SfloatBlock : return 50;
10509 case Format::eAstc10x6SfloatBlock : return 60;
10510 case Format::eAstc10x8SfloatBlock : return 80;
10511 case Format::eAstc10x10SfloatBlock : return 100;
10512 case Format::eAstc12x10SfloatBlock : return 120;
10513 case Format::eAstc12x12SfloatBlock : return 144;
10514 case Format::eA1B5G5R5UnormPack16 : return 1;
10515 case Format::eA8Unorm : return 1;
10516 case Format::ePvrtc12BppUnormBlockIMG : return 1;
10517 case Format::ePvrtc14BppUnormBlockIMG : return 1;
10518 case Format::ePvrtc22BppUnormBlockIMG : return 1;
10519 case Format::ePvrtc24BppUnormBlockIMG : return 1;
10520 case Format::ePvrtc12BppSrgbBlockIMG : return 1;
10521 case Format::ePvrtc14BppSrgbBlockIMG : return 1;
10522 case Format::ePvrtc22BppSrgbBlockIMG : return 1;
10523 case Format::ePvrtc24BppSrgbBlockIMG : return 1;
10524 case Format::eAstc3x3x3UnormBlockEXT : return 27;
10525 case Format::eAstc3x3x3SrgbBlockEXT : return 27;
10526 case Format::eAstc3x3x3SfloatBlockEXT : return 27;
10527 case Format::eAstc4x3x3UnormBlockEXT : return 36;
10528 case Format::eAstc4x3x3SrgbBlockEXT : return 36;
10529 case Format::eAstc4x3x3SfloatBlockEXT : return 36;
10530 case Format::eAstc4x4x3UnormBlockEXT : return 48;
10531 case Format::eAstc4x4x3SrgbBlockEXT : return 48;
10532 case Format::eAstc4x4x3SfloatBlockEXT : return 48;
10533 case Format::eAstc4x4x4UnormBlockEXT : return 64;
10534 case Format::eAstc4x4x4SrgbBlockEXT : return 64;
10535 case Format::eAstc4x4x4SfloatBlockEXT : return 64;
10536 case Format::eAstc5x4x4UnormBlockEXT : return 80;
10537 case Format::eAstc5x4x4SrgbBlockEXT : return 80;
10538 case Format::eAstc5x4x4SfloatBlockEXT : return 80;
10539 case Format::eAstc5x5x4UnormBlockEXT : return 100;
10540 case Format::eAstc5x5x4SrgbBlockEXT : return 100;
10541 case Format::eAstc5x5x4SfloatBlockEXT : return 100;
10542 case Format::eAstc5x5x5UnormBlockEXT : return 125;
10543 case Format::eAstc5x5x5SrgbBlockEXT : return 125;
10544 case Format::eAstc5x5x5SfloatBlockEXT : return 125;
10545 case Format::eAstc6x5x5UnormBlockEXT : return 150;
10546 case Format::eAstc6x5x5SrgbBlockEXT : return 150;
10547 case Format::eAstc6x5x5SfloatBlockEXT : return 150;
10548 case Format::eAstc6x6x5UnormBlockEXT : return 180;
10549 case Format::eAstc6x6x5SrgbBlockEXT : return 180;
10550 case Format::eAstc6x6x5SfloatBlockEXT : return 180;
10551 case Format::eAstc6x6x6UnormBlockEXT : return 216;
10552 case Format::eAstc6x6x6SrgbBlockEXT : return 216;
10553 case Format::eAstc6x6x6SfloatBlockEXT : return 216;
10554 case Format::eR8BoolARM : return 1;
10555 case Format::eR16G16Sfixed5NV : return 1;
10556 case Format::eR10X6UintPack16ARM : return 1;
10557 case Format::eR10X6G10X6Uint2Pack16ARM : return 1;
10558 case Format::eR10X6G10X6B10X6A10X6Uint4Pack16ARM : return 1;
10559 case Format::eR12X4UintPack16ARM : return 1;
10560 case Format::eR12X4G12X4Uint2Pack16ARM : return 1;
10561 case Format::eR12X4G12X4B12X4A12X4Uint4Pack16ARM : return 1;
10562 case Format::eR14X2UintPack16ARM : return 1;
10563 case Format::eR14X2G14X2Uint2Pack16ARM : return 1;
10564 case Format::eR14X2G14X2B14X2A14X2Uint4Pack16ARM : return 1;
10565 case Format::eR14X2UnormPack16ARM : return 1;
10566 case Format::eR14X2G14X2Unorm2Pack16ARM : return 1;
10567 case Format::eR14X2G14X2B14X2A14X2Unorm4Pack16ARM : return 1;
10568 case Format::eG14X2B14X2R14X22Plane420Unorm3Pack16ARM: return 1;
10569 case Format::eG14X2B14X2R14X22Plane422Unorm3Pack16ARM: return 1;
10570
10571 default: VULKAN_HPP_ASSERT( false ); return 0;
10572 }
10573 }
10574
10575 } // namespace VULKAN_HPP_NAMESPACE
10576 #endif