• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Autogenerated file -- do not edit
2  * generated by gen_enum_to_str.py
3  *
4  * Copyright © 2017 Intel Corporation
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23  */
24 
25 #include <vulkan/vulkan.h>
26 #include <vulkan/vk_android_native_buffer.h>
27 #include "util/macros.h"
28 #include "vk_enum_to_str.h"
29 
30 
31 const char *
vk_AttachmentLoadOp_to_str(VkAttachmentLoadOp input)32 vk_AttachmentLoadOp_to_str(VkAttachmentLoadOp input)
33 {
34     switch(input) {
35         case 0:
36             return "VK_ATTACHMENT_LOAD_OP_LOAD";
37         case 1:
38             return "VK_ATTACHMENT_LOAD_OP_CLEAR";
39         case 2:
40             return "VK_ATTACHMENT_LOAD_OP_DONT_CARE";
41     default:
42         unreachable("Undefined enum value.");
43     }
44 }
45 
46 const char *
vk_AttachmentStoreOp_to_str(VkAttachmentStoreOp input)47 vk_AttachmentStoreOp_to_str(VkAttachmentStoreOp input)
48 {
49     switch(input) {
50         case 0:
51             return "VK_ATTACHMENT_STORE_OP_STORE";
52         case 1:
53             return "VK_ATTACHMENT_STORE_OP_DONT_CARE";
54     default:
55         unreachable("Undefined enum value.");
56     }
57 }
58 
59 const char *
vk_BlendFactor_to_str(VkBlendFactor input)60 vk_BlendFactor_to_str(VkBlendFactor input)
61 {
62     switch(input) {
63         case 0:
64             return "VK_BLEND_FACTOR_ZERO";
65         case 1:
66             return "VK_BLEND_FACTOR_ONE";
67         case 2:
68             return "VK_BLEND_FACTOR_SRC_COLOR";
69         case 3:
70             return "VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR";
71         case 4:
72             return "VK_BLEND_FACTOR_DST_COLOR";
73         case 5:
74             return "VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR";
75         case 6:
76             return "VK_BLEND_FACTOR_SRC_ALPHA";
77         case 7:
78             return "VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA";
79         case 8:
80             return "VK_BLEND_FACTOR_DST_ALPHA";
81         case 9:
82             return "VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA";
83         case 10:
84             return "VK_BLEND_FACTOR_CONSTANT_COLOR";
85         case 11:
86             return "VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR";
87         case 12:
88             return "VK_BLEND_FACTOR_CONSTANT_ALPHA";
89         case 13:
90             return "VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA";
91         case 14:
92             return "VK_BLEND_FACTOR_SRC_ALPHA_SATURATE";
93         case 15:
94             return "VK_BLEND_FACTOR_SRC1_COLOR";
95         case 16:
96             return "VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR";
97         case 17:
98             return "VK_BLEND_FACTOR_SRC1_ALPHA";
99         case 18:
100             return "VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA";
101     default:
102         unreachable("Undefined enum value.");
103     }
104 }
105 
106 const char *
vk_BlendOp_to_str(VkBlendOp input)107 vk_BlendOp_to_str(VkBlendOp input)
108 {
109     switch(input) {
110         case 0:
111             return "VK_BLEND_OP_ADD";
112         case 1:
113             return "VK_BLEND_OP_SUBTRACT";
114         case 2:
115             return "VK_BLEND_OP_REVERSE_SUBTRACT";
116         case 3:
117             return "VK_BLEND_OP_MIN";
118         case 4:
119             return "VK_BLEND_OP_MAX";
120         case 1000148000:
121             return "VK_BLEND_OP_ZERO_EXT";
122         case 1000148001:
123             return "VK_BLEND_OP_SRC_EXT";
124         case 1000148002:
125             return "VK_BLEND_OP_DST_EXT";
126         case 1000148003:
127             return "VK_BLEND_OP_SRC_OVER_EXT";
128         case 1000148004:
129             return "VK_BLEND_OP_DST_OVER_EXT";
130         case 1000148005:
131             return "VK_BLEND_OP_SRC_IN_EXT";
132         case 1000148006:
133             return "VK_BLEND_OP_DST_IN_EXT";
134         case 1000148007:
135             return "VK_BLEND_OP_SRC_OUT_EXT";
136         case 1000148008:
137             return "VK_BLEND_OP_DST_OUT_EXT";
138         case 1000148009:
139             return "VK_BLEND_OP_SRC_ATOP_EXT";
140         case 1000148010:
141             return "VK_BLEND_OP_DST_ATOP_EXT";
142         case 1000148011:
143             return "VK_BLEND_OP_XOR_EXT";
144         case 1000148012:
145             return "VK_BLEND_OP_MULTIPLY_EXT";
146         case 1000148013:
147             return "VK_BLEND_OP_SCREEN_EXT";
148         case 1000148014:
149             return "VK_BLEND_OP_OVERLAY_EXT";
150         case 1000148015:
151             return "VK_BLEND_OP_DARKEN_EXT";
152         case 1000148016:
153             return "VK_BLEND_OP_LIGHTEN_EXT";
154         case 1000148017:
155             return "VK_BLEND_OP_COLORDODGE_EXT";
156         case 1000148018:
157             return "VK_BLEND_OP_COLORBURN_EXT";
158         case 1000148019:
159             return "VK_BLEND_OP_HARDLIGHT_EXT";
160         case 1000148020:
161             return "VK_BLEND_OP_SOFTLIGHT_EXT";
162         case 1000148021:
163             return "VK_BLEND_OP_DIFFERENCE_EXT";
164         case 1000148022:
165             return "VK_BLEND_OP_EXCLUSION_EXT";
166         case 1000148023:
167             return "VK_BLEND_OP_INVERT_EXT";
168         case 1000148024:
169             return "VK_BLEND_OP_INVERT_RGB_EXT";
170         case 1000148025:
171             return "VK_BLEND_OP_LINEARDODGE_EXT";
172         case 1000148026:
173             return "VK_BLEND_OP_LINEARBURN_EXT";
174         case 1000148027:
175             return "VK_BLEND_OP_VIVIDLIGHT_EXT";
176         case 1000148028:
177             return "VK_BLEND_OP_LINEARLIGHT_EXT";
178         case 1000148029:
179             return "VK_BLEND_OP_PINLIGHT_EXT";
180         case 1000148030:
181             return "VK_BLEND_OP_HARDMIX_EXT";
182         case 1000148031:
183             return "VK_BLEND_OP_HSL_HUE_EXT";
184         case 1000148032:
185             return "VK_BLEND_OP_HSL_SATURATION_EXT";
186         case 1000148033:
187             return "VK_BLEND_OP_HSL_COLOR_EXT";
188         case 1000148034:
189             return "VK_BLEND_OP_HSL_LUMINOSITY_EXT";
190         case 1000148035:
191             return "VK_BLEND_OP_PLUS_EXT";
192         case 1000148036:
193             return "VK_BLEND_OP_PLUS_CLAMPED_EXT";
194         case 1000148037:
195             return "VK_BLEND_OP_PLUS_CLAMPED_ALPHA_EXT";
196         case 1000148038:
197             return "VK_BLEND_OP_PLUS_DARKER_EXT";
198         case 1000148039:
199             return "VK_BLEND_OP_MINUS_EXT";
200         case 1000148040:
201             return "VK_BLEND_OP_MINUS_CLAMPED_EXT";
202         case 1000148041:
203             return "VK_BLEND_OP_CONTRAST_EXT";
204         case 1000148042:
205             return "VK_BLEND_OP_INVERT_OVG_EXT";
206         case 1000148043:
207             return "VK_BLEND_OP_RED_EXT";
208         case 1000148044:
209             return "VK_BLEND_OP_GREEN_EXT";
210         case 1000148045:
211             return "VK_BLEND_OP_BLUE_EXT";
212     default:
213         unreachable("Undefined enum value.");
214     }
215 }
216 
217 const char *
vk_BlendOverlapEXT_to_str(VkBlendOverlapEXT input)218 vk_BlendOverlapEXT_to_str(VkBlendOverlapEXT input)
219 {
220     switch(input) {
221         case 0:
222             return "VK_BLEND_OVERLAP_UNCORRELATED_EXT";
223         case 1:
224             return "VK_BLEND_OVERLAP_DISJOINT_EXT";
225         case 2:
226             return "VK_BLEND_OVERLAP_CONJOINT_EXT";
227     default:
228         unreachable("Undefined enum value.");
229     }
230 }
231 
232 const char *
vk_BorderColor_to_str(VkBorderColor input)233 vk_BorderColor_to_str(VkBorderColor input)
234 {
235     switch(input) {
236         case 0:
237             return "VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK";
238         case 1:
239             return "VK_BORDER_COLOR_INT_TRANSPARENT_BLACK";
240         case 2:
241             return "VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK";
242         case 3:
243             return "VK_BORDER_COLOR_INT_OPAQUE_BLACK";
244         case 4:
245             return "VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE";
246         case 5:
247             return "VK_BORDER_COLOR_INT_OPAQUE_WHITE";
248     default:
249         unreachable("Undefined enum value.");
250     }
251 }
252 
253 const char *
vk_ChromaLocationKHR_to_str(VkChromaLocationKHR input)254 vk_ChromaLocationKHR_to_str(VkChromaLocationKHR input)
255 {
256     switch(input) {
257         case 0:
258             return "VK_CHROMA_LOCATION_COSITED_EVEN_KHR";
259         case 1:
260             return "VK_CHROMA_LOCATION_MIDPOINT_KHR";
261     default:
262         unreachable("Undefined enum value.");
263     }
264 }
265 
266 const char *
vk_ColorSpaceKHR_to_str(VkColorSpaceKHR input)267 vk_ColorSpaceKHR_to_str(VkColorSpaceKHR input)
268 {
269     switch(input) {
270         case 0:
271             return "VK_COLOR_SPACE_SRGB_NONLINEAR_KHR";
272         case 1000104001:
273             return "VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT";
274         case 1000104002:
275             return "VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT";
276         case 1000104003:
277             return "VK_COLOR_SPACE_DCI_P3_LINEAR_EXT";
278         case 1000104004:
279             return "VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT";
280         case 1000104005:
281             return "VK_COLOR_SPACE_BT709_LINEAR_EXT";
282         case 1000104006:
283             return "VK_COLOR_SPACE_BT709_NONLINEAR_EXT";
284         case 1000104007:
285             return "VK_COLOR_SPACE_BT2020_LINEAR_EXT";
286         case 1000104008:
287             return "VK_COLOR_SPACE_HDR10_ST2084_EXT";
288         case 1000104009:
289             return "VK_COLOR_SPACE_DOLBYVISION_EXT";
290         case 1000104010:
291             return "VK_COLOR_SPACE_HDR10_HLG_EXT";
292         case 1000104011:
293             return "VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT";
294         case 1000104012:
295             return "VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT";
296         case 1000104013:
297             return "VK_COLOR_SPACE_PASS_THROUGH_EXT";
298         case 1000104014:
299             return "VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT";
300     default:
301         unreachable("Undefined enum value.");
302     }
303 }
304 
305 const char *
vk_CommandBufferLevel_to_str(VkCommandBufferLevel input)306 vk_CommandBufferLevel_to_str(VkCommandBufferLevel input)
307 {
308     switch(input) {
309         case 0:
310             return "VK_COMMAND_BUFFER_LEVEL_PRIMARY";
311         case 1:
312             return "VK_COMMAND_BUFFER_LEVEL_SECONDARY";
313     default:
314         unreachable("Undefined enum value.");
315     }
316 }
317 
318 const char *
vk_CompareOp_to_str(VkCompareOp input)319 vk_CompareOp_to_str(VkCompareOp input)
320 {
321     switch(input) {
322         case 0:
323             return "VK_COMPARE_OP_NEVER";
324         case 1:
325             return "VK_COMPARE_OP_LESS";
326         case 2:
327             return "VK_COMPARE_OP_EQUAL";
328         case 3:
329             return "VK_COMPARE_OP_LESS_OR_EQUAL";
330         case 4:
331             return "VK_COMPARE_OP_GREATER";
332         case 5:
333             return "VK_COMPARE_OP_NOT_EQUAL";
334         case 6:
335             return "VK_COMPARE_OP_GREATER_OR_EQUAL";
336         case 7:
337             return "VK_COMPARE_OP_ALWAYS";
338     default:
339         unreachable("Undefined enum value.");
340     }
341 }
342 
343 const char *
vk_ComponentSwizzle_to_str(VkComponentSwizzle input)344 vk_ComponentSwizzle_to_str(VkComponentSwizzle input)
345 {
346     switch(input) {
347         case 0:
348             return "VK_COMPONENT_SWIZZLE_IDENTITY";
349         case 1:
350             return "VK_COMPONENT_SWIZZLE_ZERO";
351         case 2:
352             return "VK_COMPONENT_SWIZZLE_ONE";
353         case 3:
354             return "VK_COMPONENT_SWIZZLE_R";
355         case 4:
356             return "VK_COMPONENT_SWIZZLE_G";
357         case 5:
358             return "VK_COMPONENT_SWIZZLE_B";
359         case 6:
360             return "VK_COMPONENT_SWIZZLE_A";
361     default:
362         unreachable("Undefined enum value.");
363     }
364 }
365 
366 const char *
vk_CoverageModulationModeNV_to_str(VkCoverageModulationModeNV input)367 vk_CoverageModulationModeNV_to_str(VkCoverageModulationModeNV input)
368 {
369     switch(input) {
370         case 0:
371             return "VK_COVERAGE_MODULATION_MODE_NONE_NV";
372         case 1:
373             return "VK_COVERAGE_MODULATION_MODE_RGB_NV";
374         case 2:
375             return "VK_COVERAGE_MODULATION_MODE_ALPHA_NV";
376         case 3:
377             return "VK_COVERAGE_MODULATION_MODE_RGBA_NV";
378     default:
379         unreachable("Undefined enum value.");
380     }
381 }
382 
383 const char *
vk_DebugReportObjectTypeEXT_to_str(VkDebugReportObjectTypeEXT input)384 vk_DebugReportObjectTypeEXT_to_str(VkDebugReportObjectTypeEXT input)
385 {
386     switch(input) {
387         case 0:
388             return "VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT";
389         case 1:
390             return "VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT";
391         case 2:
392             return "VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT";
393         case 3:
394             return "VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT";
395         case 4:
396             return "VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT";
397         case 5:
398             return "VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT";
399         case 6:
400             return "VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT";
401         case 7:
402             return "VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT";
403         case 8:
404             return "VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT";
405         case 9:
406             return "VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT";
407         case 10:
408             return "VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT";
409         case 11:
410             return "VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT";
411         case 12:
412             return "VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT";
413         case 13:
414             return "VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT";
415         case 14:
416             return "VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT";
417         case 15:
418             return "VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT";
419         case 16:
420             return "VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT";
421         case 17:
422             return "VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT";
423         case 18:
424             return "VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT";
425         case 19:
426             return "VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT";
427         case 20:
428             return "VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT";
429         case 21:
430             return "VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT";
431         case 22:
432             return "VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT";
433         case 23:
434             return "VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT";
435         case 24:
436             return "VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT";
437         case 25:
438             return "VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT";
439         case 26:
440             return "VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT";
441         case 27:
442             return "VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT";
443         case 28:
444             return "VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT";
445         case 29:
446             return "VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_KHR_EXT";
447         case 30:
448             return "VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_MODE_KHR_EXT";
449         case 31:
450             return "VK_DEBUG_REPORT_OBJECT_TYPE_OBJECT_TABLE_NVX_EXT";
451         case 32:
452             return "VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT";
453         case 33:
454             return "VK_DEBUG_REPORT_OBJECT_TYPE_VALIDATION_CACHE_EXT";
455         case 1000085000:
456             return "VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR_EXT";
457         case 1000156000:
458             return "VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR_EXT";
459     default:
460         unreachable("Undefined enum value.");
461     }
462 }
463 
464 const char *
vk_DescriptorType_to_str(VkDescriptorType input)465 vk_DescriptorType_to_str(VkDescriptorType input)
466 {
467     switch(input) {
468         case 0:
469             return "VK_DESCRIPTOR_TYPE_SAMPLER";
470         case 1:
471             return "VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER";
472         case 2:
473             return "VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE";
474         case 3:
475             return "VK_DESCRIPTOR_TYPE_STORAGE_IMAGE";
476         case 4:
477             return "VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER";
478         case 5:
479             return "VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER";
480         case 6:
481             return "VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER";
482         case 7:
483             return "VK_DESCRIPTOR_TYPE_STORAGE_BUFFER";
484         case 8:
485             return "VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC";
486         case 9:
487             return "VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC";
488         case 10:
489             return "VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT";
490     default:
491         unreachable("Undefined enum value.");
492     }
493 }
494 
495 const char *
vk_DescriptorUpdateTemplateTypeKHR_to_str(VkDescriptorUpdateTemplateTypeKHR input)496 vk_DescriptorUpdateTemplateTypeKHR_to_str(VkDescriptorUpdateTemplateTypeKHR input)
497 {
498     switch(input) {
499         case 0:
500             return "VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR";
501         case 1:
502             return "VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR";
503     default:
504         unreachable("Undefined enum value.");
505     }
506 }
507 
508 const char *
vk_DeviceEventTypeEXT_to_str(VkDeviceEventTypeEXT input)509 vk_DeviceEventTypeEXT_to_str(VkDeviceEventTypeEXT input)
510 {
511     switch(input) {
512         case 0:
513             return "VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT";
514     default:
515         unreachable("Undefined enum value.");
516     }
517 }
518 
519 const char *
vk_DiscardRectangleModeEXT_to_str(VkDiscardRectangleModeEXT input)520 vk_DiscardRectangleModeEXT_to_str(VkDiscardRectangleModeEXT input)
521 {
522     switch(input) {
523         case 0:
524             return "VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT";
525         case 1:
526             return "VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT";
527     default:
528         unreachable("Undefined enum value.");
529     }
530 }
531 
532 const char *
vk_DisplayEventTypeEXT_to_str(VkDisplayEventTypeEXT input)533 vk_DisplayEventTypeEXT_to_str(VkDisplayEventTypeEXT input)
534 {
535     switch(input) {
536         case 0:
537             return "VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT";
538     default:
539         unreachable("Undefined enum value.");
540     }
541 }
542 
543 const char *
vk_DisplayPowerStateEXT_to_str(VkDisplayPowerStateEXT input)544 vk_DisplayPowerStateEXT_to_str(VkDisplayPowerStateEXT input)
545 {
546     switch(input) {
547         case 0:
548             return "VK_DISPLAY_POWER_STATE_OFF_EXT";
549         case 1:
550             return "VK_DISPLAY_POWER_STATE_SUSPEND_EXT";
551         case 2:
552             return "VK_DISPLAY_POWER_STATE_ON_EXT";
553     default:
554         unreachable("Undefined enum value.");
555     }
556 }
557 
558 const char *
vk_DynamicState_to_str(VkDynamicState input)559 vk_DynamicState_to_str(VkDynamicState input)
560 {
561     switch(input) {
562         case 0:
563             return "VK_DYNAMIC_STATE_VIEWPORT";
564         case 1:
565             return "VK_DYNAMIC_STATE_SCISSOR";
566         case 2:
567             return "VK_DYNAMIC_STATE_LINE_WIDTH";
568         case 3:
569             return "VK_DYNAMIC_STATE_DEPTH_BIAS";
570         case 4:
571             return "VK_DYNAMIC_STATE_BLEND_CONSTANTS";
572         case 5:
573             return "VK_DYNAMIC_STATE_DEPTH_BOUNDS";
574         case 6:
575             return "VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK";
576         case 7:
577             return "VK_DYNAMIC_STATE_STENCIL_WRITE_MASK";
578         case 8:
579             return "VK_DYNAMIC_STATE_STENCIL_REFERENCE";
580         case 1000087000:
581             return "VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV";
582         case 1000099000:
583             return "VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT";
584         case 1000143000:
585             return "VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT";
586     default:
587         unreachable("Undefined enum value.");
588     }
589 }
590 
591 const char *
vk_Filter_to_str(VkFilter input)592 vk_Filter_to_str(VkFilter input)
593 {
594     switch(input) {
595         case 0:
596             return "VK_FILTER_NEAREST";
597         case 1:
598             return "VK_FILTER_LINEAR";
599         case 1000015000:
600             return "VK_FILTER_CUBIC_IMG";
601     default:
602         unreachable("Undefined enum value.");
603     }
604 }
605 
606 const char *
vk_Format_to_str(VkFormat input)607 vk_Format_to_str(VkFormat input)
608 {
609     switch(input) {
610         case 0:
611             return "VK_FORMAT_UNDEFINED";
612         case 1:
613             return "VK_FORMAT_R4G4_UNORM_PACK8";
614         case 2:
615             return "VK_FORMAT_R4G4B4A4_UNORM_PACK16";
616         case 3:
617             return "VK_FORMAT_B4G4R4A4_UNORM_PACK16";
618         case 4:
619             return "VK_FORMAT_R5G6B5_UNORM_PACK16";
620         case 5:
621             return "VK_FORMAT_B5G6R5_UNORM_PACK16";
622         case 6:
623             return "VK_FORMAT_R5G5B5A1_UNORM_PACK16";
624         case 7:
625             return "VK_FORMAT_B5G5R5A1_UNORM_PACK16";
626         case 8:
627             return "VK_FORMAT_A1R5G5B5_UNORM_PACK16";
628         case 9:
629             return "VK_FORMAT_R8_UNORM";
630         case 10:
631             return "VK_FORMAT_R8_SNORM";
632         case 11:
633             return "VK_FORMAT_R8_USCALED";
634         case 12:
635             return "VK_FORMAT_R8_SSCALED";
636         case 13:
637             return "VK_FORMAT_R8_UINT";
638         case 14:
639             return "VK_FORMAT_R8_SINT";
640         case 15:
641             return "VK_FORMAT_R8_SRGB";
642         case 16:
643             return "VK_FORMAT_R8G8_UNORM";
644         case 17:
645             return "VK_FORMAT_R8G8_SNORM";
646         case 18:
647             return "VK_FORMAT_R8G8_USCALED";
648         case 19:
649             return "VK_FORMAT_R8G8_SSCALED";
650         case 20:
651             return "VK_FORMAT_R8G8_UINT";
652         case 21:
653             return "VK_FORMAT_R8G8_SINT";
654         case 22:
655             return "VK_FORMAT_R8G8_SRGB";
656         case 23:
657             return "VK_FORMAT_R8G8B8_UNORM";
658         case 24:
659             return "VK_FORMAT_R8G8B8_SNORM";
660         case 25:
661             return "VK_FORMAT_R8G8B8_USCALED";
662         case 26:
663             return "VK_FORMAT_R8G8B8_SSCALED";
664         case 27:
665             return "VK_FORMAT_R8G8B8_UINT";
666         case 28:
667             return "VK_FORMAT_R8G8B8_SINT";
668         case 29:
669             return "VK_FORMAT_R8G8B8_SRGB";
670         case 30:
671             return "VK_FORMAT_B8G8R8_UNORM";
672         case 31:
673             return "VK_FORMAT_B8G8R8_SNORM";
674         case 32:
675             return "VK_FORMAT_B8G8R8_USCALED";
676         case 33:
677             return "VK_FORMAT_B8G8R8_SSCALED";
678         case 34:
679             return "VK_FORMAT_B8G8R8_UINT";
680         case 35:
681             return "VK_FORMAT_B8G8R8_SINT";
682         case 36:
683             return "VK_FORMAT_B8G8R8_SRGB";
684         case 37:
685             return "VK_FORMAT_R8G8B8A8_UNORM";
686         case 38:
687             return "VK_FORMAT_R8G8B8A8_SNORM";
688         case 39:
689             return "VK_FORMAT_R8G8B8A8_USCALED";
690         case 40:
691             return "VK_FORMAT_R8G8B8A8_SSCALED";
692         case 41:
693             return "VK_FORMAT_R8G8B8A8_UINT";
694         case 42:
695             return "VK_FORMAT_R8G8B8A8_SINT";
696         case 43:
697             return "VK_FORMAT_R8G8B8A8_SRGB";
698         case 44:
699             return "VK_FORMAT_B8G8R8A8_UNORM";
700         case 45:
701             return "VK_FORMAT_B8G8R8A8_SNORM";
702         case 46:
703             return "VK_FORMAT_B8G8R8A8_USCALED";
704         case 47:
705             return "VK_FORMAT_B8G8R8A8_SSCALED";
706         case 48:
707             return "VK_FORMAT_B8G8R8A8_UINT";
708         case 49:
709             return "VK_FORMAT_B8G8R8A8_SINT";
710         case 50:
711             return "VK_FORMAT_B8G8R8A8_SRGB";
712         case 51:
713             return "VK_FORMAT_A8B8G8R8_UNORM_PACK32";
714         case 52:
715             return "VK_FORMAT_A8B8G8R8_SNORM_PACK32";
716         case 53:
717             return "VK_FORMAT_A8B8G8R8_USCALED_PACK32";
718         case 54:
719             return "VK_FORMAT_A8B8G8R8_SSCALED_PACK32";
720         case 55:
721             return "VK_FORMAT_A8B8G8R8_UINT_PACK32";
722         case 56:
723             return "VK_FORMAT_A8B8G8R8_SINT_PACK32";
724         case 57:
725             return "VK_FORMAT_A8B8G8R8_SRGB_PACK32";
726         case 58:
727             return "VK_FORMAT_A2R10G10B10_UNORM_PACK32";
728         case 59:
729             return "VK_FORMAT_A2R10G10B10_SNORM_PACK32";
730         case 60:
731             return "VK_FORMAT_A2R10G10B10_USCALED_PACK32";
732         case 61:
733             return "VK_FORMAT_A2R10G10B10_SSCALED_PACK32";
734         case 62:
735             return "VK_FORMAT_A2R10G10B10_UINT_PACK32";
736         case 63:
737             return "VK_FORMAT_A2R10G10B10_SINT_PACK32";
738         case 64:
739             return "VK_FORMAT_A2B10G10R10_UNORM_PACK32";
740         case 65:
741             return "VK_FORMAT_A2B10G10R10_SNORM_PACK32";
742         case 66:
743             return "VK_FORMAT_A2B10G10R10_USCALED_PACK32";
744         case 67:
745             return "VK_FORMAT_A2B10G10R10_SSCALED_PACK32";
746         case 68:
747             return "VK_FORMAT_A2B10G10R10_UINT_PACK32";
748         case 69:
749             return "VK_FORMAT_A2B10G10R10_SINT_PACK32";
750         case 70:
751             return "VK_FORMAT_R16_UNORM";
752         case 71:
753             return "VK_FORMAT_R16_SNORM";
754         case 72:
755             return "VK_FORMAT_R16_USCALED";
756         case 73:
757             return "VK_FORMAT_R16_SSCALED";
758         case 74:
759             return "VK_FORMAT_R16_UINT";
760         case 75:
761             return "VK_FORMAT_R16_SINT";
762         case 76:
763             return "VK_FORMAT_R16_SFLOAT";
764         case 77:
765             return "VK_FORMAT_R16G16_UNORM";
766         case 78:
767             return "VK_FORMAT_R16G16_SNORM";
768         case 79:
769             return "VK_FORMAT_R16G16_USCALED";
770         case 80:
771             return "VK_FORMAT_R16G16_SSCALED";
772         case 81:
773             return "VK_FORMAT_R16G16_UINT";
774         case 82:
775             return "VK_FORMAT_R16G16_SINT";
776         case 83:
777             return "VK_FORMAT_R16G16_SFLOAT";
778         case 84:
779             return "VK_FORMAT_R16G16B16_UNORM";
780         case 85:
781             return "VK_FORMAT_R16G16B16_SNORM";
782         case 86:
783             return "VK_FORMAT_R16G16B16_USCALED";
784         case 87:
785             return "VK_FORMAT_R16G16B16_SSCALED";
786         case 88:
787             return "VK_FORMAT_R16G16B16_UINT";
788         case 89:
789             return "VK_FORMAT_R16G16B16_SINT";
790         case 90:
791             return "VK_FORMAT_R16G16B16_SFLOAT";
792         case 91:
793             return "VK_FORMAT_R16G16B16A16_UNORM";
794         case 92:
795             return "VK_FORMAT_R16G16B16A16_SNORM";
796         case 93:
797             return "VK_FORMAT_R16G16B16A16_USCALED";
798         case 94:
799             return "VK_FORMAT_R16G16B16A16_SSCALED";
800         case 95:
801             return "VK_FORMAT_R16G16B16A16_UINT";
802         case 96:
803             return "VK_FORMAT_R16G16B16A16_SINT";
804         case 97:
805             return "VK_FORMAT_R16G16B16A16_SFLOAT";
806         case 98:
807             return "VK_FORMAT_R32_UINT";
808         case 99:
809             return "VK_FORMAT_R32_SINT";
810         case 100:
811             return "VK_FORMAT_R32_SFLOAT";
812         case 101:
813             return "VK_FORMAT_R32G32_UINT";
814         case 102:
815             return "VK_FORMAT_R32G32_SINT";
816         case 103:
817             return "VK_FORMAT_R32G32_SFLOAT";
818         case 104:
819             return "VK_FORMAT_R32G32B32_UINT";
820         case 105:
821             return "VK_FORMAT_R32G32B32_SINT";
822         case 106:
823             return "VK_FORMAT_R32G32B32_SFLOAT";
824         case 107:
825             return "VK_FORMAT_R32G32B32A32_UINT";
826         case 108:
827             return "VK_FORMAT_R32G32B32A32_SINT";
828         case 109:
829             return "VK_FORMAT_R32G32B32A32_SFLOAT";
830         case 110:
831             return "VK_FORMAT_R64_UINT";
832         case 111:
833             return "VK_FORMAT_R64_SINT";
834         case 112:
835             return "VK_FORMAT_R64_SFLOAT";
836         case 113:
837             return "VK_FORMAT_R64G64_UINT";
838         case 114:
839             return "VK_FORMAT_R64G64_SINT";
840         case 115:
841             return "VK_FORMAT_R64G64_SFLOAT";
842         case 116:
843             return "VK_FORMAT_R64G64B64_UINT";
844         case 117:
845             return "VK_FORMAT_R64G64B64_SINT";
846         case 118:
847             return "VK_FORMAT_R64G64B64_SFLOAT";
848         case 119:
849             return "VK_FORMAT_R64G64B64A64_UINT";
850         case 120:
851             return "VK_FORMAT_R64G64B64A64_SINT";
852         case 121:
853             return "VK_FORMAT_R64G64B64A64_SFLOAT";
854         case 122:
855             return "VK_FORMAT_B10G11R11_UFLOAT_PACK32";
856         case 123:
857             return "VK_FORMAT_E5B9G9R9_UFLOAT_PACK32";
858         case 124:
859             return "VK_FORMAT_D16_UNORM";
860         case 125:
861             return "VK_FORMAT_X8_D24_UNORM_PACK32";
862         case 126:
863             return "VK_FORMAT_D32_SFLOAT";
864         case 127:
865             return "VK_FORMAT_S8_UINT";
866         case 128:
867             return "VK_FORMAT_D16_UNORM_S8_UINT";
868         case 129:
869             return "VK_FORMAT_D24_UNORM_S8_UINT";
870         case 130:
871             return "VK_FORMAT_D32_SFLOAT_S8_UINT";
872         case 131:
873             return "VK_FORMAT_BC1_RGB_UNORM_BLOCK";
874         case 132:
875             return "VK_FORMAT_BC1_RGB_SRGB_BLOCK";
876         case 133:
877             return "VK_FORMAT_BC1_RGBA_UNORM_BLOCK";
878         case 134:
879             return "VK_FORMAT_BC1_RGBA_SRGB_BLOCK";
880         case 135:
881             return "VK_FORMAT_BC2_UNORM_BLOCK";
882         case 136:
883             return "VK_FORMAT_BC2_SRGB_BLOCK";
884         case 137:
885             return "VK_FORMAT_BC3_UNORM_BLOCK";
886         case 138:
887             return "VK_FORMAT_BC3_SRGB_BLOCK";
888         case 139:
889             return "VK_FORMAT_BC4_UNORM_BLOCK";
890         case 140:
891             return "VK_FORMAT_BC4_SNORM_BLOCK";
892         case 141:
893             return "VK_FORMAT_BC5_UNORM_BLOCK";
894         case 142:
895             return "VK_FORMAT_BC5_SNORM_BLOCK";
896         case 143:
897             return "VK_FORMAT_BC6H_UFLOAT_BLOCK";
898         case 144:
899             return "VK_FORMAT_BC6H_SFLOAT_BLOCK";
900         case 145:
901             return "VK_FORMAT_BC7_UNORM_BLOCK";
902         case 146:
903             return "VK_FORMAT_BC7_SRGB_BLOCK";
904         case 147:
905             return "VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK";
906         case 148:
907             return "VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK";
908         case 149:
909             return "VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK";
910         case 150:
911             return "VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK";
912         case 151:
913             return "VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK";
914         case 152:
915             return "VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK";
916         case 153:
917             return "VK_FORMAT_EAC_R11_UNORM_BLOCK";
918         case 154:
919             return "VK_FORMAT_EAC_R11_SNORM_BLOCK";
920         case 155:
921             return "VK_FORMAT_EAC_R11G11_UNORM_BLOCK";
922         case 156:
923             return "VK_FORMAT_EAC_R11G11_SNORM_BLOCK";
924         case 157:
925             return "VK_FORMAT_ASTC_4x4_UNORM_BLOCK";
926         case 158:
927             return "VK_FORMAT_ASTC_4x4_SRGB_BLOCK";
928         case 159:
929             return "VK_FORMAT_ASTC_5x4_UNORM_BLOCK";
930         case 160:
931             return "VK_FORMAT_ASTC_5x4_SRGB_BLOCK";
932         case 161:
933             return "VK_FORMAT_ASTC_5x5_UNORM_BLOCK";
934         case 162:
935             return "VK_FORMAT_ASTC_5x5_SRGB_BLOCK";
936         case 163:
937             return "VK_FORMAT_ASTC_6x5_UNORM_BLOCK";
938         case 164:
939             return "VK_FORMAT_ASTC_6x5_SRGB_BLOCK";
940         case 165:
941             return "VK_FORMAT_ASTC_6x6_UNORM_BLOCK";
942         case 166:
943             return "VK_FORMAT_ASTC_6x6_SRGB_BLOCK";
944         case 167:
945             return "VK_FORMAT_ASTC_8x5_UNORM_BLOCK";
946         case 168:
947             return "VK_FORMAT_ASTC_8x5_SRGB_BLOCK";
948         case 169:
949             return "VK_FORMAT_ASTC_8x6_UNORM_BLOCK";
950         case 170:
951             return "VK_FORMAT_ASTC_8x6_SRGB_BLOCK";
952         case 171:
953             return "VK_FORMAT_ASTC_8x8_UNORM_BLOCK";
954         case 172:
955             return "VK_FORMAT_ASTC_8x8_SRGB_BLOCK";
956         case 173:
957             return "VK_FORMAT_ASTC_10x5_UNORM_BLOCK";
958         case 174:
959             return "VK_FORMAT_ASTC_10x5_SRGB_BLOCK";
960         case 175:
961             return "VK_FORMAT_ASTC_10x6_UNORM_BLOCK";
962         case 176:
963             return "VK_FORMAT_ASTC_10x6_SRGB_BLOCK";
964         case 177:
965             return "VK_FORMAT_ASTC_10x8_UNORM_BLOCK";
966         case 178:
967             return "VK_FORMAT_ASTC_10x8_SRGB_BLOCK";
968         case 179:
969             return "VK_FORMAT_ASTC_10x10_UNORM_BLOCK";
970         case 180:
971             return "VK_FORMAT_ASTC_10x10_SRGB_BLOCK";
972         case 181:
973             return "VK_FORMAT_ASTC_12x10_UNORM_BLOCK";
974         case 182:
975             return "VK_FORMAT_ASTC_12x10_SRGB_BLOCK";
976         case 183:
977             return "VK_FORMAT_ASTC_12x12_UNORM_BLOCK";
978         case 184:
979             return "VK_FORMAT_ASTC_12x12_SRGB_BLOCK";
980         case 1000054000:
981             return "VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG";
982         case 1000054001:
983             return "VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG";
984         case 1000054002:
985             return "VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG";
986         case 1000054003:
987             return "VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG";
988         case 1000054004:
989             return "VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG";
990         case 1000054005:
991             return "VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG";
992         case 1000054006:
993             return "VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG";
994         case 1000054007:
995             return "VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG";
996         case 1000156000:
997             return "VK_FORMAT_G8B8G8R8_422_UNORM_KHR";
998         case 1000156001:
999             return "VK_FORMAT_B8G8R8G8_422_UNORM_KHR";
1000         case 1000156002:
1001             return "VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR";
1002         case 1000156003:
1003             return "VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR";
1004         case 1000156004:
1005             return "VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR";
1006         case 1000156005:
1007             return "VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR";
1008         case 1000156006:
1009             return "VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR";
1010         case 1000156007:
1011             return "VK_FORMAT_R10X6_UNORM_PACK16_KHR";
1012         case 1000156008:
1013             return "VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR";
1014         case 1000156009:
1015             return "VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR";
1016         case 1000156010:
1017             return "VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR";
1018         case 1000156011:
1019             return "VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR";
1020         case 1000156012:
1021             return "VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR";
1022         case 1000156013:
1023             return "VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR";
1024         case 1000156014:
1025             return "VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR";
1026         case 1000156015:
1027             return "VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR";
1028         case 1000156016:
1029             return "VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR";
1030         case 1000156017:
1031             return "VK_FORMAT_R12X4_UNORM_PACK16_KHR";
1032         case 1000156018:
1033             return "VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR";
1034         case 1000156019:
1035             return "VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR";
1036         case 1000156020:
1037             return "VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR";
1038         case 1000156021:
1039             return "VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR";
1040         case 1000156022:
1041             return "VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR";
1042         case 1000156023:
1043             return "VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR";
1044         case 1000156024:
1045             return "VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR";
1046         case 1000156025:
1047             return "VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR";
1048         case 1000156026:
1049             return "VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR";
1050         case 1000156027:
1051             return "VK_FORMAT_G16B16G16R16_422_UNORM_KHR";
1052         case 1000156028:
1053             return "VK_FORMAT_B16G16R16G16_422_UNORM_KHR";
1054         case 1000156029:
1055             return "VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR";
1056         case 1000156030:
1057             return "VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR";
1058         case 1000156031:
1059             return "VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR";
1060         case 1000156032:
1061             return "VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR";
1062         case 1000156033:
1063             return "VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR";
1064     default:
1065         unreachable("Undefined enum value.");
1066     }
1067 }
1068 
1069 const char *
vk_FrontFace_to_str(VkFrontFace input)1070 vk_FrontFace_to_str(VkFrontFace input)
1071 {
1072     switch(input) {
1073         case 0:
1074             return "VK_FRONT_FACE_COUNTER_CLOCKWISE";
1075         case 1:
1076             return "VK_FRONT_FACE_CLOCKWISE";
1077     default:
1078         unreachable("Undefined enum value.");
1079     }
1080 }
1081 
1082 const char *
vk_ImageLayout_to_str(VkImageLayout input)1083 vk_ImageLayout_to_str(VkImageLayout input)
1084 {
1085     switch(input) {
1086         case 0:
1087             return "VK_IMAGE_LAYOUT_UNDEFINED";
1088         case 1:
1089             return "VK_IMAGE_LAYOUT_GENERAL";
1090         case 2:
1091             return "VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL";
1092         case 3:
1093             return "VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL";
1094         case 4:
1095             return "VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL";
1096         case 5:
1097             return "VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL";
1098         case 6:
1099             return "VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL";
1100         case 7:
1101             return "VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL";
1102         case 8:
1103             return "VK_IMAGE_LAYOUT_PREINITIALIZED";
1104         case 1000001002:
1105             return "VK_IMAGE_LAYOUT_PRESENT_SRC_KHR";
1106         case 1000111000:
1107             return "VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR";
1108         case 1000117000:
1109             return "VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR";
1110         case 1000117001:
1111             return "VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR";
1112     default:
1113         unreachable("Undefined enum value.");
1114     }
1115 }
1116 
1117 const char *
vk_ImageTiling_to_str(VkImageTiling input)1118 vk_ImageTiling_to_str(VkImageTiling input)
1119 {
1120     switch(input) {
1121         case 0:
1122             return "VK_IMAGE_TILING_OPTIMAL";
1123         case 1:
1124             return "VK_IMAGE_TILING_LINEAR";
1125     default:
1126         unreachable("Undefined enum value.");
1127     }
1128 }
1129 
1130 const char *
vk_ImageType_to_str(VkImageType input)1131 vk_ImageType_to_str(VkImageType input)
1132 {
1133     switch(input) {
1134         case 0:
1135             return "VK_IMAGE_TYPE_1D";
1136         case 1:
1137             return "VK_IMAGE_TYPE_2D";
1138         case 2:
1139             return "VK_IMAGE_TYPE_3D";
1140     default:
1141         unreachable("Undefined enum value.");
1142     }
1143 }
1144 
1145 const char *
vk_ImageViewType_to_str(VkImageViewType input)1146 vk_ImageViewType_to_str(VkImageViewType input)
1147 {
1148     switch(input) {
1149         case 0:
1150             return "VK_IMAGE_VIEW_TYPE_1D";
1151         case 1:
1152             return "VK_IMAGE_VIEW_TYPE_2D";
1153         case 2:
1154             return "VK_IMAGE_VIEW_TYPE_3D";
1155         case 3:
1156             return "VK_IMAGE_VIEW_TYPE_CUBE";
1157         case 4:
1158             return "VK_IMAGE_VIEW_TYPE_1D_ARRAY";
1159         case 5:
1160             return "VK_IMAGE_VIEW_TYPE_2D_ARRAY";
1161         case 6:
1162             return "VK_IMAGE_VIEW_TYPE_CUBE_ARRAY";
1163     default:
1164         unreachable("Undefined enum value.");
1165     }
1166 }
1167 
1168 const char *
vk_IndexType_to_str(VkIndexType input)1169 vk_IndexType_to_str(VkIndexType input)
1170 {
1171     switch(input) {
1172         case 0:
1173             return "VK_INDEX_TYPE_UINT16";
1174         case 1:
1175             return "VK_INDEX_TYPE_UINT32";
1176     default:
1177         unreachable("Undefined enum value.");
1178     }
1179 }
1180 
1181 const char *
vk_IndirectCommandsTokenTypeNVX_to_str(VkIndirectCommandsTokenTypeNVX input)1182 vk_IndirectCommandsTokenTypeNVX_to_str(VkIndirectCommandsTokenTypeNVX input)
1183 {
1184     switch(input) {
1185         case 0:
1186             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NVX";
1187         case 1:
1188             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_DESCRIPTOR_SET_NVX";
1189         case 2:
1190             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_NVX";
1191         case 3:
1192             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_VERTEX_BUFFER_NVX";
1193         case 4:
1194             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_CONSTANT_NVX";
1195         case 5:
1196             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_NVX";
1197         case 6:
1198             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_NVX";
1199         case 7:
1200             return "VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NVX";
1201     default:
1202         unreachable("Undefined enum value.");
1203     }
1204 }
1205 
1206 const char *
vk_InternalAllocationType_to_str(VkInternalAllocationType input)1207 vk_InternalAllocationType_to_str(VkInternalAllocationType input)
1208 {
1209     switch(input) {
1210         case 0:
1211             return "VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE";
1212     default:
1213         unreachable("Undefined enum value.");
1214     }
1215 }
1216 
1217 const char *
vk_LogicOp_to_str(VkLogicOp input)1218 vk_LogicOp_to_str(VkLogicOp input)
1219 {
1220     switch(input) {
1221         case 0:
1222             return "VK_LOGIC_OP_CLEAR";
1223         case 1:
1224             return "VK_LOGIC_OP_AND";
1225         case 2:
1226             return "VK_LOGIC_OP_AND_REVERSE";
1227         case 3:
1228             return "VK_LOGIC_OP_COPY";
1229         case 4:
1230             return "VK_LOGIC_OP_AND_INVERTED";
1231         case 5:
1232             return "VK_LOGIC_OP_NO_OP";
1233         case 6:
1234             return "VK_LOGIC_OP_XOR";
1235         case 7:
1236             return "VK_LOGIC_OP_OR";
1237         case 8:
1238             return "VK_LOGIC_OP_NOR";
1239         case 9:
1240             return "VK_LOGIC_OP_EQUIVALENT";
1241         case 10:
1242             return "VK_LOGIC_OP_INVERT";
1243         case 11:
1244             return "VK_LOGIC_OP_OR_REVERSE";
1245         case 12:
1246             return "VK_LOGIC_OP_COPY_INVERTED";
1247         case 13:
1248             return "VK_LOGIC_OP_OR_INVERTED";
1249         case 14:
1250             return "VK_LOGIC_OP_NAND";
1251         case 15:
1252             return "VK_LOGIC_OP_SET";
1253     default:
1254         unreachable("Undefined enum value.");
1255     }
1256 }
1257 
1258 const char *
vk_ObjectEntryTypeNVX_to_str(VkObjectEntryTypeNVX input)1259 vk_ObjectEntryTypeNVX_to_str(VkObjectEntryTypeNVX input)
1260 {
1261     switch(input) {
1262         case 0:
1263             return "VK_OBJECT_ENTRY_TYPE_DESCRIPTOR_SET_NVX";
1264         case 1:
1265             return "VK_OBJECT_ENTRY_TYPE_PIPELINE_NVX";
1266         case 2:
1267             return "VK_OBJECT_ENTRY_TYPE_INDEX_BUFFER_NVX";
1268         case 3:
1269             return "VK_OBJECT_ENTRY_TYPE_VERTEX_BUFFER_NVX";
1270         case 4:
1271             return "VK_OBJECT_ENTRY_TYPE_PUSH_CONSTANT_NVX";
1272     default:
1273         unreachable("Undefined enum value.");
1274     }
1275 }
1276 
1277 const char *
vk_ObjectType_to_str(VkObjectType input)1278 vk_ObjectType_to_str(VkObjectType input)
1279 {
1280     switch(input) {
1281         case 0:
1282             return "VK_OBJECT_TYPE_UNKNOWN";
1283         case 1:
1284             return "VK_OBJECT_TYPE_INSTANCE";
1285         case 2:
1286             return "VK_OBJECT_TYPE_PHYSICAL_DEVICE";
1287         case 3:
1288             return "VK_OBJECT_TYPE_DEVICE";
1289         case 4:
1290             return "VK_OBJECT_TYPE_QUEUE";
1291         case 5:
1292             return "VK_OBJECT_TYPE_SEMAPHORE";
1293         case 6:
1294             return "VK_OBJECT_TYPE_COMMAND_BUFFER";
1295         case 7:
1296             return "VK_OBJECT_TYPE_FENCE";
1297         case 8:
1298             return "VK_OBJECT_TYPE_DEVICE_MEMORY";
1299         case 9:
1300             return "VK_OBJECT_TYPE_BUFFER";
1301         case 10:
1302             return "VK_OBJECT_TYPE_IMAGE";
1303         case 11:
1304             return "VK_OBJECT_TYPE_EVENT";
1305         case 12:
1306             return "VK_OBJECT_TYPE_QUERY_POOL";
1307         case 13:
1308             return "VK_OBJECT_TYPE_BUFFER_VIEW";
1309         case 14:
1310             return "VK_OBJECT_TYPE_IMAGE_VIEW";
1311         case 15:
1312             return "VK_OBJECT_TYPE_SHADER_MODULE";
1313         case 16:
1314             return "VK_OBJECT_TYPE_PIPELINE_CACHE";
1315         case 17:
1316             return "VK_OBJECT_TYPE_PIPELINE_LAYOUT";
1317         case 18:
1318             return "VK_OBJECT_TYPE_RENDER_PASS";
1319         case 19:
1320             return "VK_OBJECT_TYPE_PIPELINE";
1321         case 20:
1322             return "VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT";
1323         case 21:
1324             return "VK_OBJECT_TYPE_SAMPLER";
1325         case 22:
1326             return "VK_OBJECT_TYPE_DESCRIPTOR_POOL";
1327         case 23:
1328             return "VK_OBJECT_TYPE_DESCRIPTOR_SET";
1329         case 24:
1330             return "VK_OBJECT_TYPE_FRAMEBUFFER";
1331         case 25:
1332             return "VK_OBJECT_TYPE_COMMAND_POOL";
1333         case 1000000000:
1334             return "VK_OBJECT_TYPE_SURFACE_KHR";
1335         case 1000001000:
1336             return "VK_OBJECT_TYPE_SWAPCHAIN_KHR";
1337         case 1000002000:
1338             return "VK_OBJECT_TYPE_DISPLAY_KHR";
1339         case 1000002001:
1340             return "VK_OBJECT_TYPE_DISPLAY_MODE_KHR";
1341         case 1000011000:
1342             return "VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT";
1343         case 1000085000:
1344             return "VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR";
1345         case 1000086000:
1346             return "VK_OBJECT_TYPE_OBJECT_TABLE_NVX";
1347         case 1000086001:
1348             return "VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX";
1349         case 1000156000:
1350             return "VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR";
1351         case 1000160000:
1352             return "VK_OBJECT_TYPE_VALIDATION_CACHE_EXT";
1353     default:
1354         unreachable("Undefined enum value.");
1355     }
1356 }
1357 
1358 const char *
vk_PhysicalDeviceType_to_str(VkPhysicalDeviceType input)1359 vk_PhysicalDeviceType_to_str(VkPhysicalDeviceType input)
1360 {
1361     switch(input) {
1362         case 0:
1363             return "VK_PHYSICAL_DEVICE_TYPE_OTHER";
1364         case 1:
1365             return "VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU";
1366         case 2:
1367             return "VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU";
1368         case 3:
1369             return "VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU";
1370         case 4:
1371             return "VK_PHYSICAL_DEVICE_TYPE_CPU";
1372     default:
1373         unreachable("Undefined enum value.");
1374     }
1375 }
1376 
1377 const char *
vk_PipelineBindPoint_to_str(VkPipelineBindPoint input)1378 vk_PipelineBindPoint_to_str(VkPipelineBindPoint input)
1379 {
1380     switch(input) {
1381         case 0:
1382             return "VK_PIPELINE_BIND_POINT_GRAPHICS";
1383         case 1:
1384             return "VK_PIPELINE_BIND_POINT_COMPUTE";
1385     default:
1386         unreachable("Undefined enum value.");
1387     }
1388 }
1389 
1390 const char *
vk_PipelineCacheHeaderVersion_to_str(VkPipelineCacheHeaderVersion input)1391 vk_PipelineCacheHeaderVersion_to_str(VkPipelineCacheHeaderVersion input)
1392 {
1393     switch(input) {
1394         case 1:
1395             return "VK_PIPELINE_CACHE_HEADER_VERSION_ONE";
1396     default:
1397         unreachable("Undefined enum value.");
1398     }
1399 }
1400 
1401 const char *
vk_PointClippingBehaviorKHR_to_str(VkPointClippingBehaviorKHR input)1402 vk_PointClippingBehaviorKHR_to_str(VkPointClippingBehaviorKHR input)
1403 {
1404     switch(input) {
1405         case 0:
1406             return "VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES_KHR";
1407         case 1:
1408             return "VK_POINT_CLIPPING_BEHAVIOR_USER_CLIP_PLANES_ONLY_KHR";
1409     default:
1410         unreachable("Undefined enum value.");
1411     }
1412 }
1413 
1414 const char *
vk_PolygonMode_to_str(VkPolygonMode input)1415 vk_PolygonMode_to_str(VkPolygonMode input)
1416 {
1417     switch(input) {
1418         case 0:
1419             return "VK_POLYGON_MODE_FILL";
1420         case 1:
1421             return "VK_POLYGON_MODE_LINE";
1422         case 2:
1423             return "VK_POLYGON_MODE_POINT";
1424         case 1000153000:
1425             return "VK_POLYGON_MODE_FILL_RECTANGLE_NV";
1426     default:
1427         unreachable("Undefined enum value.");
1428     }
1429 }
1430 
1431 const char *
vk_PresentModeKHR_to_str(VkPresentModeKHR input)1432 vk_PresentModeKHR_to_str(VkPresentModeKHR input)
1433 {
1434     switch(input) {
1435         case 0:
1436             return "VK_PRESENT_MODE_IMMEDIATE_KHR";
1437         case 1:
1438             return "VK_PRESENT_MODE_MAILBOX_KHR";
1439         case 2:
1440             return "VK_PRESENT_MODE_FIFO_KHR";
1441         case 3:
1442             return "VK_PRESENT_MODE_FIFO_RELAXED_KHR";
1443         case 1000111000:
1444             return "VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR";
1445         case 1000111001:
1446             return "VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR";
1447     default:
1448         unreachable("Undefined enum value.");
1449     }
1450 }
1451 
1452 const char *
vk_PrimitiveTopology_to_str(VkPrimitiveTopology input)1453 vk_PrimitiveTopology_to_str(VkPrimitiveTopology input)
1454 {
1455     switch(input) {
1456         case 0:
1457             return "VK_PRIMITIVE_TOPOLOGY_POINT_LIST";
1458         case 1:
1459             return "VK_PRIMITIVE_TOPOLOGY_LINE_LIST";
1460         case 2:
1461             return "VK_PRIMITIVE_TOPOLOGY_LINE_STRIP";
1462         case 3:
1463             return "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST";
1464         case 4:
1465             return "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP";
1466         case 5:
1467             return "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN";
1468         case 6:
1469             return "VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY";
1470         case 7:
1471             return "VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY";
1472         case 8:
1473             return "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY";
1474         case 9:
1475             return "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY";
1476         case 10:
1477             return "VK_PRIMITIVE_TOPOLOGY_PATCH_LIST";
1478     default:
1479         unreachable("Undefined enum value.");
1480     }
1481 }
1482 
1483 const char *
vk_QueryType_to_str(VkQueryType input)1484 vk_QueryType_to_str(VkQueryType input)
1485 {
1486     switch(input) {
1487         case 0:
1488             return "VK_QUERY_TYPE_OCCLUSION";
1489         case 1:
1490             return "VK_QUERY_TYPE_PIPELINE_STATISTICS";
1491         case 2:
1492             return "VK_QUERY_TYPE_TIMESTAMP";
1493     default:
1494         unreachable("Undefined enum value.");
1495     }
1496 }
1497 
1498 const char *
vk_QueueGlobalPriorityEXT_to_str(VkQueueGlobalPriorityEXT input)1499 vk_QueueGlobalPriorityEXT_to_str(VkQueueGlobalPriorityEXT input)
1500 {
1501     switch(input) {
1502         case 128:
1503             return "VK_QUEUE_GLOBAL_PRIORITY_LOW_EXT";
1504         case 256:
1505             return "VK_QUEUE_GLOBAL_PRIORITY_MEDIUM_EXT";
1506         case 512:
1507             return "VK_QUEUE_GLOBAL_PRIORITY_HIGH_EXT";
1508         case 1024:
1509             return "VK_QUEUE_GLOBAL_PRIORITY_REALTIME_EXT";
1510     default:
1511         unreachable("Undefined enum value.");
1512     }
1513 }
1514 
1515 const char *
vk_RasterizationOrderAMD_to_str(VkRasterizationOrderAMD input)1516 vk_RasterizationOrderAMD_to_str(VkRasterizationOrderAMD input)
1517 {
1518     switch(input) {
1519         case 0:
1520             return "VK_RASTERIZATION_ORDER_STRICT_AMD";
1521         case 1:
1522             return "VK_RASTERIZATION_ORDER_RELAXED_AMD";
1523     default:
1524         unreachable("Undefined enum value.");
1525     }
1526 }
1527 
1528 const char *
vk_Result_to_str(VkResult input)1529 vk_Result_to_str(VkResult input)
1530 {
1531     switch(input) {
1532         case -1000174001:
1533             return "VK_ERROR_NOT_PERMITTED_EXT";
1534         case -1000072003:
1535             return "VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR";
1536         case -1000069000:
1537             return "VK_ERROR_OUT_OF_POOL_MEMORY_KHR";
1538         case -1000012000:
1539             return "VK_ERROR_INVALID_SHADER_NV";
1540         case -1000011001:
1541             return "VK_ERROR_VALIDATION_FAILED_EXT";
1542         case -1000003001:
1543             return "VK_ERROR_INCOMPATIBLE_DISPLAY_KHR";
1544         case -1000001004:
1545             return "VK_ERROR_OUT_OF_DATE_KHR";
1546         case -1000000001:
1547             return "VK_ERROR_NATIVE_WINDOW_IN_USE_KHR";
1548         case -1000000000:
1549             return "VK_ERROR_SURFACE_LOST_KHR";
1550         case -12:
1551             return "VK_ERROR_FRAGMENTED_POOL";
1552         case -11:
1553             return "VK_ERROR_FORMAT_NOT_SUPPORTED";
1554         case -10:
1555             return "VK_ERROR_TOO_MANY_OBJECTS";
1556         case -9:
1557             return "VK_ERROR_INCOMPATIBLE_DRIVER";
1558         case -8:
1559             return "VK_ERROR_FEATURE_NOT_PRESENT";
1560         case -7:
1561             return "VK_ERROR_EXTENSION_NOT_PRESENT";
1562         case -6:
1563             return "VK_ERROR_LAYER_NOT_PRESENT";
1564         case -5:
1565             return "VK_ERROR_MEMORY_MAP_FAILED";
1566         case -4:
1567             return "VK_ERROR_DEVICE_LOST";
1568         case -3:
1569             return "VK_ERROR_INITIALIZATION_FAILED";
1570         case -2:
1571             return "VK_ERROR_OUT_OF_DEVICE_MEMORY";
1572         case -1:
1573             return "VK_ERROR_OUT_OF_HOST_MEMORY";
1574         case 0:
1575             return "VK_SUCCESS";
1576         case 1:
1577             return "VK_NOT_READY";
1578         case 2:
1579             return "VK_TIMEOUT";
1580         case 3:
1581             return "VK_EVENT_SET";
1582         case 4:
1583             return "VK_EVENT_RESET";
1584         case 5:
1585             return "VK_INCOMPLETE";
1586         case 1000001003:
1587             return "VK_SUBOPTIMAL_KHR";
1588     default:
1589         unreachable("Undefined enum value.");
1590     }
1591 }
1592 
1593 const char *
vk_SamplerAddressMode_to_str(VkSamplerAddressMode input)1594 vk_SamplerAddressMode_to_str(VkSamplerAddressMode input)
1595 {
1596     switch(input) {
1597         case 0:
1598             return "VK_SAMPLER_ADDRESS_MODE_REPEAT";
1599         case 1:
1600             return "VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT";
1601         case 2:
1602             return "VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE";
1603         case 3:
1604             return "VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER";
1605         case 4:
1606             return "VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE";
1607     default:
1608         unreachable("Undefined enum value.");
1609     }
1610 }
1611 
1612 const char *
vk_SamplerMipmapMode_to_str(VkSamplerMipmapMode input)1613 vk_SamplerMipmapMode_to_str(VkSamplerMipmapMode input)
1614 {
1615     switch(input) {
1616         case 0:
1617             return "VK_SAMPLER_MIPMAP_MODE_NEAREST";
1618         case 1:
1619             return "VK_SAMPLER_MIPMAP_MODE_LINEAR";
1620     default:
1621         unreachable("Undefined enum value.");
1622     }
1623 }
1624 
1625 const char *
vk_SamplerReductionModeEXT_to_str(VkSamplerReductionModeEXT input)1626 vk_SamplerReductionModeEXT_to_str(VkSamplerReductionModeEXT input)
1627 {
1628     switch(input) {
1629         case 0:
1630             return "VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT";
1631         case 1:
1632             return "VK_SAMPLER_REDUCTION_MODE_MIN_EXT";
1633         case 2:
1634             return "VK_SAMPLER_REDUCTION_MODE_MAX_EXT";
1635     default:
1636         unreachable("Undefined enum value.");
1637     }
1638 }
1639 
1640 const char *
vk_SamplerYcbcrModelConversionKHR_to_str(VkSamplerYcbcrModelConversionKHR input)1641 vk_SamplerYcbcrModelConversionKHR_to_str(VkSamplerYcbcrModelConversionKHR input)
1642 {
1643     switch(input) {
1644         case 0:
1645             return "VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY_KHR";
1646         case 1:
1647             return "VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY_KHR";
1648         case 2:
1649             return "VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709_KHR";
1650         case 3:
1651             return "VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601_KHR";
1652         case 4:
1653             return "VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020_KHR";
1654     default:
1655         unreachable("Undefined enum value.");
1656     }
1657 }
1658 
1659 const char *
vk_SamplerYcbcrRangeKHR_to_str(VkSamplerYcbcrRangeKHR input)1660 vk_SamplerYcbcrRangeKHR_to_str(VkSamplerYcbcrRangeKHR input)
1661 {
1662     switch(input) {
1663         case 0:
1664             return "VK_SAMPLER_YCBCR_RANGE_ITU_FULL_KHR";
1665         case 1:
1666             return "VK_SAMPLER_YCBCR_RANGE_ITU_NARROW_KHR";
1667     default:
1668         unreachable("Undefined enum value.");
1669     }
1670 }
1671 
1672 const char *
vk_ShaderInfoTypeAMD_to_str(VkShaderInfoTypeAMD input)1673 vk_ShaderInfoTypeAMD_to_str(VkShaderInfoTypeAMD input)
1674 {
1675     switch(input) {
1676         case 0:
1677             return "VK_SHADER_INFO_TYPE_STATISTICS_AMD";
1678         case 1:
1679             return "VK_SHADER_INFO_TYPE_BINARY_AMD";
1680         case 2:
1681             return "VK_SHADER_INFO_TYPE_DISASSEMBLY_AMD";
1682     default:
1683         unreachable("Undefined enum value.");
1684     }
1685 }
1686 
1687 const char *
vk_SharingMode_to_str(VkSharingMode input)1688 vk_SharingMode_to_str(VkSharingMode input)
1689 {
1690     switch(input) {
1691         case 0:
1692             return "VK_SHARING_MODE_EXCLUSIVE";
1693         case 1:
1694             return "VK_SHARING_MODE_CONCURRENT";
1695     default:
1696         unreachable("Undefined enum value.");
1697     }
1698 }
1699 
1700 const char *
vk_StencilOp_to_str(VkStencilOp input)1701 vk_StencilOp_to_str(VkStencilOp input)
1702 {
1703     switch(input) {
1704         case 0:
1705             return "VK_STENCIL_OP_KEEP";
1706         case 1:
1707             return "VK_STENCIL_OP_ZERO";
1708         case 2:
1709             return "VK_STENCIL_OP_REPLACE";
1710         case 3:
1711             return "VK_STENCIL_OP_INCREMENT_AND_CLAMP";
1712         case 4:
1713             return "VK_STENCIL_OP_DECREMENT_AND_CLAMP";
1714         case 5:
1715             return "VK_STENCIL_OP_INVERT";
1716         case 6:
1717             return "VK_STENCIL_OP_INCREMENT_AND_WRAP";
1718         case 7:
1719             return "VK_STENCIL_OP_DECREMENT_AND_WRAP";
1720     default:
1721         unreachable("Undefined enum value.");
1722     }
1723 }
1724 
1725 const char *
vk_StructureType_to_str(VkStructureType input)1726 vk_StructureType_to_str(VkStructureType input)
1727 {
1728     switch(input) {
1729         case 0:
1730             return "VK_STRUCTURE_TYPE_APPLICATION_INFO";
1731         case 1:
1732             return "VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO";
1733         case 2:
1734             return "VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO";
1735         case 3:
1736             return "VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO";
1737         case 4:
1738             return "VK_STRUCTURE_TYPE_SUBMIT_INFO";
1739         case 5:
1740             return "VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO";
1741         case 6:
1742             return "VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE";
1743         case 7:
1744             return "VK_STRUCTURE_TYPE_BIND_SPARSE_INFO";
1745         case 8:
1746             return "VK_STRUCTURE_TYPE_FENCE_CREATE_INFO";
1747         case 9:
1748             return "VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO";
1749         case 10:
1750             return "VK_STRUCTURE_TYPE_EVENT_CREATE_INFO";
1751         case 11:
1752             return "VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO";
1753         case 12:
1754             return "VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO";
1755         case 13:
1756             return "VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO";
1757         case 14:
1758             return "VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO";
1759         case 15:
1760             return "VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO";
1761         case 16:
1762             return "VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO";
1763         case 17:
1764             return "VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO";
1765         case 18:
1766             return "VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO";
1767         case 19:
1768             return "VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO";
1769         case 20:
1770             return "VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO";
1771         case 21:
1772             return "VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO";
1773         case 22:
1774             return "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO";
1775         case 23:
1776             return "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO";
1777         case 24:
1778             return "VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO";
1779         case 25:
1780             return "VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO";
1781         case 26:
1782             return "VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO";
1783         case 27:
1784             return "VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO";
1785         case 28:
1786             return "VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO";
1787         case 29:
1788             return "VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO";
1789         case 30:
1790             return "VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO";
1791         case 31:
1792             return "VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO";
1793         case 32:
1794             return "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO";
1795         case 33:
1796             return "VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO";
1797         case 34:
1798             return "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO";
1799         case 35:
1800             return "VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET";
1801         case 36:
1802             return "VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET";
1803         case 37:
1804             return "VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO";
1805         case 38:
1806             return "VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO";
1807         case 39:
1808             return "VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO";
1809         case 40:
1810             return "VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO";
1811         case 41:
1812             return "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO";
1813         case 42:
1814             return "VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO";
1815         case 43:
1816             return "VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO";
1817         case 44:
1818             return "VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER";
1819         case 45:
1820             return "VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER";
1821         case 46:
1822             return "VK_STRUCTURE_TYPE_MEMORY_BARRIER";
1823         case 47:
1824             return "VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO";
1825         case 48:
1826             return "VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO";
1827         case 1000001000:
1828             return "VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR";
1829         case 1000001001:
1830             return "VK_STRUCTURE_TYPE_PRESENT_INFO_KHR";
1831         case 1000002000:
1832             return "VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR";
1833         case 1000002001:
1834             return "VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR";
1835         case 1000003000:
1836             return "VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR";
1837         case 1000004000:
1838             return "VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR";
1839         case 1000005000:
1840             return "VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR";
1841         case 1000006000:
1842             return "VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR";
1843         case 1000007000:
1844             return "VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR";
1845         case 1000008000:
1846             return "VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR";
1847         case 1000009000:
1848             return "VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR";
1849 
1850         #pragma GCC diagnostic push
1851         #pragma GCC diagnostic ignored "-Wswitch"
1852         case 1000010000:
1853             return "VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID";
1854         #pragma GCC diagnostic pop
1855 
1856         case 1000011000:
1857             return "VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT";
1858         case 1000018000:
1859             return "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD";
1860         case 1000022000:
1861             return "VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT";
1862         case 1000022001:
1863             return "VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT";
1864         case 1000022002:
1865             return "VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT";
1866         case 1000026000:
1867             return "VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV";
1868         case 1000026001:
1869             return "VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV";
1870         case 1000026002:
1871             return "VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV";
1872         case 1000041000:
1873             return "VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD";
1874         case 1000053000:
1875             return "VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHX";
1876         case 1000053001:
1877             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES_KHX";
1878         case 1000053002:
1879             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES_KHX";
1880         case 1000056000:
1881             return "VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV";
1882         case 1000056001:
1883             return "VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV";
1884         case 1000057000:
1885             return "VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV";
1886         case 1000057001:
1887             return "VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV";
1888         case 1000058000:
1889             return "VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV";
1890         case 1000059000:
1891             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR";
1892         case 1000059001:
1893             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR";
1894         case 1000059002:
1895             return "VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR";
1896         case 1000059003:
1897             return "VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR";
1898         case 1000059004:
1899             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR";
1900         case 1000059005:
1901             return "VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHR";
1902         case 1000059006:
1903             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR";
1904         case 1000059007:
1905             return "VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR";
1906         case 1000059008:
1907             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR";
1908         case 1000060000:
1909             return "VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO_KHX";
1910         case 1000060003:
1911             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO_KHX";
1912         case 1000060004:
1913             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO_KHX";
1914         case 1000060005:
1915             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO_KHX";
1916         case 1000060006:
1917             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO_KHX";
1918         case 1000060007:
1919             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHX";
1920         case 1000060008:
1921             return "VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHX";
1922         case 1000060009:
1923             return "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHX";
1924         case 1000060010:
1925             return "VK_STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHX";
1926         case 1000060011:
1927             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHX";
1928         case 1000060012:
1929             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHX";
1930         case 1000060013:
1931             return "VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO_KHX";
1932         case 1000060014:
1933             return "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO_KHX";
1934         case 1000061000:
1935             return "VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT";
1936         case 1000062000:
1937             return "VK_STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN";
1938         case 1000070000:
1939             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES_KHX";
1940         case 1000070001:
1941             return "VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO_KHX";
1942         case 1000071000:
1943             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHR";
1944         case 1000071001:
1945             return "VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES_KHR";
1946         case 1000071002:
1947             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO_KHR";
1948         case 1000071003:
1949             return "VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES_KHR";
1950         case 1000071004:
1951             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES_KHR";
1952         case 1000072000:
1953             return "VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR";
1954         case 1000072001:
1955             return "VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_KHR";
1956         case 1000072002:
1957             return "VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR";
1958         case 1000073000:
1959             return "VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR";
1960         case 1000073001:
1961             return "VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR";
1962         case 1000073002:
1963             return "VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR";
1964         case 1000073003:
1965             return "VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR";
1966         case 1000074000:
1967             return "VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR";
1968         case 1000074001:
1969             return "VK_STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHR";
1970         case 1000074002:
1971             return "VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR";
1972         case 1000075000:
1973             return "VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR";
1974         case 1000076000:
1975             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO_KHR";
1976         case 1000076001:
1977             return "VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES_KHR";
1978         case 1000077000:
1979             return "VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR";
1980         case 1000078000:
1981             return "VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR";
1982         case 1000078001:
1983             return "VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR";
1984         case 1000078002:
1985             return "VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR";
1986         case 1000078003:
1987             return "VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR";
1988         case 1000079000:
1989             return "VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR";
1990         case 1000079001:
1991             return "VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR";
1992         case 1000080000:
1993             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR";
1994         case 1000083000:
1995             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES_KHR";
1996         case 1000084000:
1997             return "VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR";
1998         case 1000085000:
1999             return "VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO_KHR";
2000         case 1000086000:
2001             return "VK_STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX";
2002         case 1000086001:
2003             return "VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NVX";
2004         case 1000086002:
2005             return "VK_STRUCTURE_TYPE_CMD_PROCESS_COMMANDS_INFO_NVX";
2006         case 1000086003:
2007             return "VK_STRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVX";
2008         case 1000086004:
2009             return "VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_LIMITS_NVX";
2010         case 1000086005:
2011             return "VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_FEATURES_NVX";
2012         case 1000087000:
2013             return "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV";
2014         case 1000090000:
2015             return "VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT";
2016         case 1000091000:
2017             return "VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT";
2018         case 1000091001:
2019             return "VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT";
2020         case 1000091002:
2021             return "VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT";
2022         case 1000091003:
2023             return "VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT";
2024         case 1000092000:
2025             return "VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE";
2026         case 1000097000:
2027             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX";
2028         case 1000098000:
2029             return "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV";
2030         case 1000099000:
2031             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT";
2032         case 1000099001:
2033             return "VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT";
2034         case 1000105000:
2035             return "VK_STRUCTURE_TYPE_HDR_METADATA_EXT";
2036         case 1000111000:
2037             return "VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR";
2038         case 1000112000:
2039             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO_KHR";
2040         case 1000112001:
2041             return "VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES_KHR";
2042         case 1000113000:
2043             return "VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO_KHR";
2044         case 1000114000:
2045             return "VK_STRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHR";
2046         case 1000114001:
2047             return "VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR";
2048         case 1000114002:
2049             return "VK_STRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHR";
2050         case 1000115000:
2051             return "VK_STRUCTURE_TYPE_IMPORT_FENCE_FD_INFO_KHR";
2052         case 1000115001:
2053             return "VK_STRUCTURE_TYPE_FENCE_GET_FD_INFO_KHR";
2054         case 1000117000:
2055             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES_KHR";
2056         case 1000117001:
2057             return "VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO_KHR";
2058         case 1000117002:
2059             return "VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO_KHR";
2060         case 1000117003:
2061             return "VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO_KHR";
2062         case 1000119000:
2063             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR";
2064         case 1000119001:
2065             return "VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR";
2066         case 1000119002:
2067             return "VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR";
2068         case 1000120000:
2069             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES_KHR";
2070         case 1000122000:
2071             return "VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK";
2072         case 1000123000:
2073             return "VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK";
2074         case 1000127000:
2075             return "VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR";
2076         case 1000127001:
2077             return "VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR";
2078         case 1000130000:
2079             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT";
2080         case 1000130001:
2081             return "VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT";
2082         case 1000143000:
2083             return "VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT";
2084         case 1000143001:
2085             return "VK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT";
2086         case 1000143002:
2087             return "VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT";
2088         case 1000143003:
2089             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT";
2090         case 1000143004:
2091             return "VK_STRUCTURE_TYPE_MULTISAMPLE_PROPERTIES_EXT";
2092         case 1000146000:
2093             return "VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR";
2094         case 1000146001:
2095             return "VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR";
2096         case 1000146002:
2097             return "VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR";
2098         case 1000146003:
2099             return "VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR";
2100         case 1000146004:
2101             return "VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR";
2102         case 1000147000:
2103             return "VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR";
2104         case 1000148000:
2105             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT";
2106         case 1000148001:
2107             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT";
2108         case 1000148002:
2109             return "VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT";
2110         case 1000149000:
2111             return "VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV";
2112         case 1000152000:
2113             return "VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV";
2114         case 1000156000:
2115             return "VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO_KHR";
2116         case 1000156001:
2117             return "VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO_KHR";
2118         case 1000156002:
2119             return "VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO_KHR";
2120         case 1000156003:
2121             return "VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO_KHR";
2122         case 1000156004:
2123             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES_KHR";
2124         case 1000156005:
2125             return "VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES_KHR";
2126         case 1000157000:
2127             return "VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO_KHR";
2128         case 1000157001:
2129             return "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHR";
2130         case 1000160000:
2131             return "VK_STRUCTURE_TYPE_VALIDATION_CACHE_CREATE_INFO_EXT";
2132         case 1000160001:
2133             return "VK_STRUCTURE_TYPE_SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT";
2134         case 1000174000:
2135             return "VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT";
2136         case 1000178000:
2137             return "VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT";
2138         case 1000178001:
2139             return "VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT";
2140         case 1000178002:
2141             return "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT";
2142     default:
2143         unreachable("Undefined enum value.");
2144     }
2145 }
2146 
2147 const char *
vk_SubpassContents_to_str(VkSubpassContents input)2148 vk_SubpassContents_to_str(VkSubpassContents input)
2149 {
2150     switch(input) {
2151         case 0:
2152             return "VK_SUBPASS_CONTENTS_INLINE";
2153         case 1:
2154             return "VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS";
2155     default:
2156         unreachable("Undefined enum value.");
2157     }
2158 }
2159 
2160 const char *
vk_SystemAllocationScope_to_str(VkSystemAllocationScope input)2161 vk_SystemAllocationScope_to_str(VkSystemAllocationScope input)
2162 {
2163     switch(input) {
2164         case 0:
2165             return "VK_SYSTEM_ALLOCATION_SCOPE_COMMAND";
2166         case 1:
2167             return "VK_SYSTEM_ALLOCATION_SCOPE_OBJECT";
2168         case 2:
2169             return "VK_SYSTEM_ALLOCATION_SCOPE_CACHE";
2170         case 3:
2171             return "VK_SYSTEM_ALLOCATION_SCOPE_DEVICE";
2172         case 4:
2173             return "VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE";
2174     default:
2175         unreachable("Undefined enum value.");
2176     }
2177 }
2178 
2179 const char *
vk_TessellationDomainOriginKHR_to_str(VkTessellationDomainOriginKHR input)2180 vk_TessellationDomainOriginKHR_to_str(VkTessellationDomainOriginKHR input)
2181 {
2182     switch(input) {
2183         case 0:
2184             return "VK_TESSELLATION_DOMAIN_ORIGIN_UPPER_LEFT_KHR";
2185         case 1:
2186             return "VK_TESSELLATION_DOMAIN_ORIGIN_LOWER_LEFT_KHR";
2187     default:
2188         unreachable("Undefined enum value.");
2189     }
2190 }
2191 
2192 const char *
vk_ValidationCacheHeaderVersionEXT_to_str(VkValidationCacheHeaderVersionEXT input)2193 vk_ValidationCacheHeaderVersionEXT_to_str(VkValidationCacheHeaderVersionEXT input)
2194 {
2195     switch(input) {
2196         case 1:
2197             return "VK_VALIDATION_CACHE_HEADER_VERSION_ONE_EXT";
2198     default:
2199         unreachable("Undefined enum value.");
2200     }
2201 }
2202 
2203 const char *
vk_ValidationCheckEXT_to_str(VkValidationCheckEXT input)2204 vk_ValidationCheckEXT_to_str(VkValidationCheckEXT input)
2205 {
2206     switch(input) {
2207         case 0:
2208             return "VK_VALIDATION_CHECK_ALL_EXT";
2209         case 1:
2210             return "VK_VALIDATION_CHECK_SHADERS_EXT";
2211     default:
2212         unreachable("Undefined enum value.");
2213     }
2214 }
2215 
2216 const char *
vk_VertexInputRate_to_str(VkVertexInputRate input)2217 vk_VertexInputRate_to_str(VkVertexInputRate input)
2218 {
2219     switch(input) {
2220         case 0:
2221             return "VK_VERTEX_INPUT_RATE_VERTEX";
2222         case 1:
2223             return "VK_VERTEX_INPUT_RATE_INSTANCE";
2224     default:
2225         unreachable("Undefined enum value.");
2226     }
2227 }
2228 
2229 const char *
vk_ViewportCoordinateSwizzleNV_to_str(VkViewportCoordinateSwizzleNV input)2230 vk_ViewportCoordinateSwizzleNV_to_str(VkViewportCoordinateSwizzleNV input)
2231 {
2232     switch(input) {
2233         case 0:
2234             return "VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV";
2235         case 1:
2236             return "VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_X_NV";
2237         case 2:
2238             return "VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Y_NV";
2239         case 3:
2240             return "VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Y_NV";
2241         case 4:
2242             return "VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Z_NV";
2243         case 5:
2244             return "VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Z_NV";
2245         case 6:
2246             return "VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_W_NV";
2247         case 7:
2248             return "VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV";
2249     default:
2250         unreachable("Undefined enum value.");
2251     }
2252 }
2253