1 #ifndef _VULKAN_JSON_DATA_HPP
2 #define _VULKAN_JSON_DATA_HPP
3
4 /*
5 * Copyright (c) 2021 The Khronos Group Inc.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 *//*!
20 * \file
21 * \brief Defines JSON generators for Vulkan structures
22 */
23
24
25 /********************************************************************************************/
26 /** This code is generated. To make changes, please modify the scripts or the relevant xml **/
27 /********************************************************************************************/
28
29 #include <iostream>
30 #include <map>
31 #include <bitset>
32 #include <functional>
33 #include <sstream>
34 #include <cassert>
35 #include <cmath>
36 #ifndef VULKAN_JSON_CTS
37 #include <vulkan/vulkan.h>
38 #endif
39
40 #ifdef _WIN32
41 #ifndef WIN32_LEAN_AND_MEAN
42 #define WIN32_LEAN_AND_MEAN
43 #endif
44 #define VC_EXTRALEAN
45 #define NOMINMAX
46 #include <windows.h>
47 #endif
48
49 namespace vk_json {
50
51 static thread_local int s_num_spaces = 0;
52 static thread_local std::stringstream _string_stream;
53
54 static void dumpPNextChain(const void* pNext);
55
56 // By default, redirect to std::cout. Can stream it to a stringstream if needed.
57 //#define _OUT std::cout
58 #define _OUT _string_stream
59
60 // Helper utility to do indentation in the generated json file.
61 #define PRINT_SPACE for (int k = 0; k < s_num_spaces; k++) _OUT << " ";
62
63 #define INDENT(sz) s_num_spaces += (sz);
64
65 #define PRINT_VAL(c) PRINT_SPACE \
66 if (s != "") {\
67 _OUT << "\"" << s << "\"" << " : " << o << (c ? "," : "") << std::endl; \
68 } else {\
69 _OUT << o << (c ? "," : "") << std::endl; \
70 }
71
72 #define PRINT_STR(c) PRINT_SPACE \
73 if (s != "") {\
74 _OUT << "\"" << s << "\"" << " : " << "\"" << o << "\"" << (c ? "," : "") << std::endl; \
75 } else {\
76 _OUT << "\"" << o << "\"" << (c ? "," : "") << std::endl; \
77 }
78
79 // To make sure the generated data is consistent across platforms,
80 // we typecast to 32-bit and dump the data.
81 // The value is not expected to exceed the range.
print_size_t(const size_t * o,const std::string & s,bool commaNeeded=true)82 static void print_size_t(const size_t* o, const std::string& s, bool commaNeeded=true)
83 {
84 PRINT_SPACE
85 _OUT << "\"" << s << "\"" << " : " << static_cast<deUint32>(*o) << (commaNeeded ? "," : "") << std::endl;\
86 }
print_size_t(size_t o,const std::string & s,bool commaNeeded=true)87 static void print_size_t(size_t o, const std::string& s, bool commaNeeded=true)
88 {
89 PRINT_SPACE
90 _OUT << "\"" << s << "\"" << " : " << static_cast<deUint32>(o) << (commaNeeded ? "," : "") << std::endl;\
91 }
92
print_int32_t(deInt32 o,const std::string & s,bool commaNeeded=true)93 static void print_int32_t(deInt32 o, const std::string& s, bool commaNeeded=true)
94 {
95 PRINT_VAL(commaNeeded)
96 }
97
print_int32_t(const deInt32 * o,const std::string & s,bool commaNeeded=true)98 static void print_int32_t(const deInt32 * o, const std::string& s, bool commaNeeded=true)
99 {
100 PRINT_VAL(commaNeeded)
101 }
102
print_uint32_t(deUint32 o,const std::string & s,bool commaNeeded=true)103 static void print_uint32_t(deUint32 o, const std::string& s, bool commaNeeded=true)
104 {
105 PRINT_VAL(commaNeeded)
106 }
107
print_uint32_t(const deUint32 * o,const std::string & s,bool commaNeeded=true)108 static void print_uint32_t(const deUint32 * o, const std::string& s, bool commaNeeded=true)
109 {
110 PRINT_VAL(commaNeeded)
111 }
112
print_uint8_t(deUint8 o,const std::string & s,bool commaNeeded=true)113 static void print_uint8_t(deUint8 o, const std::string& s, bool commaNeeded=true)
114 {
115 PRINT_VAL(commaNeeded)
116 }
117
print_uint8_t(const deUint8 * o,const std::string & s,bool commaNeeded=true)118 static void print_uint8_t(const deUint8 * o, const std::string& s, bool commaNeeded=true)
119 {
120 PRINT_VAL(commaNeeded)
121 }
122
print_uint64_t(deUint64 o,const std::string & s,bool commaNeeded=true)123 static void print_uint64_t(deUint64 o, const std::string& s, bool commaNeeded=true)
124 {
125 PRINT_VAL(commaNeeded)
126 }
127
print_uint64_t(const deUint64 * o,const std::string & s,bool commaNeeded=true)128 static void print_uint64_t(const deUint64 * o, const std::string& s, bool commaNeeded=true)
129 {
130 PRINT_VAL(commaNeeded)
131 }
132
print_float(float o,const std::string & s,bool commaNeeded=true)133 static void print_float(float o, const std::string& s, bool commaNeeded=true)
134 {
135 if (std::isnan(o))
136 {
137 PRINT_SPACE
138 if (s != "")
139 _OUT << "\"" << s << "\"" << " : \"NaN\"" << (commaNeeded ? "," : "") << std::endl;
140 else
141 _OUT << "\"NaN\"" << (commaNeeded ? "," : "") << std::endl;
142 }
143 else
144 {
145 PRINT_VAL(commaNeeded)
146 }
147 }
148
print_float(const float * o,const std::string & s,bool commaNeeded=true)149 static void print_float(const float * o, const std::string& s, bool commaNeeded=true)
150 {
151 if (std::isnan(*o))
152 {
153 PRINT_SPACE
154 if (s != "")
155 _OUT << "\"" << s << "\"" << " : \"NaN\"" << (commaNeeded ? "," : "") << std::endl;
156 else
157 _OUT << "\"NaN\"" << (commaNeeded ? "," : "") << std::endl;
158 }
159 else
160 {
161 PRINT_VAL(commaNeeded)
162 }
163 }
164
print_int(int o,const std::string & s,bool commaNeeded=true)165 static void print_int(int o, const std::string& s, bool commaNeeded=true)
166 {
167 PRINT_VAL(commaNeeded)
168 }
169
print_int(const int * o,const std::string & s,bool commaNeeded=true)170 static void print_int(const int * o, const std::string& s, bool commaNeeded=true)
171 {
172 PRINT_VAL(commaNeeded)
173 }
174
print_double(double o,const std::string & s,bool commaNeeded=true)175 static void print_double(double o, const std::string& s, bool commaNeeded=true)
176 {
177 PRINT_VAL(commaNeeded)
178 }
179
print_double(const double * o,const std::string & s,bool commaNeeded=true)180 static void print_double(const double * o, const std::string& s, bool commaNeeded=true)
181 {
182 PRINT_VAL(commaNeeded)
183 }
184
print_int64_t(deInt64 o,const std::string & s,bool commaNeeded=true)185 static void print_int64_t(deInt64 o, const std::string& s, bool commaNeeded=true)
186 {
187 PRINT_VAL(commaNeeded)
188 }
189
print_int64_t(const deInt64 * o,const std::string & s,bool commaNeeded=true)190 static void print_int64_t(const deInt64 * o, const std::string& s, bool commaNeeded=true)
191 {
192 PRINT_VAL(commaNeeded)
193 }
194
print_uint16_t(deUint16 o,const std::string & s,bool commaNeeded=true)195 static void print_uint16_t(deUint16 o, const std::string& s, bool commaNeeded=true)
196 {
197 PRINT_VAL(commaNeeded)
198 }
199
print_uint16_t(const deUint16 * o,const std::string & s,bool commaNeeded=true)200 static void print_uint16_t(const deUint16 * o, const std::string& s, bool commaNeeded=true)
201 {
202 PRINT_VAL(commaNeeded)
203 }
204
print_char(const char * const * o,const std::string & s,bool commaNeeded=true)205 static void print_char(const char * const* o, const std::string& s, bool commaNeeded=true)
206 {
207 PRINT_STR(commaNeeded)
208 }
209
print_char(char o,const std::string & s,bool commaNeeded=true)210 static void print_char(char o, const std::string& s, bool commaNeeded=true)
211 {
212 PRINT_VAL(commaNeeded)
213 }
214
print_char(const char * o,const std::string & s,bool commaNeeded=true)215 static void print_char(const char * o, const std::string& s, bool commaNeeded=true)
216 {
217 PRINT_STR(commaNeeded)
218 }
219
220
221 // Base 64 formater class from executor/xeTestLogWriter.cpp
222
223 class Base64Formatter
224 {
225 public:
226 const deUint8* data;
227 int numBytes;
228
Base64Formatter(const deUint8 * data_,int numBytes_)229 Base64Formatter(const deUint8* data_, int numBytes_) : data(data_), numBytes(numBytes_) {}
230 };
231
operator <<(std::ostream & str,const Base64Formatter & fmt)232 std::ostream& operator<< (std::ostream& str, const Base64Formatter& fmt)
233 {
234 static const char s_base64Table[64] =
235 {
236 'A','B','C','D','E','F','G','H','I','J','K','L','M',
237 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
238 'a','b','c','d','e','f','g','h','i','j','k','l','m',
239 'n','o','p','q','r','s','t','u','v','w','x','y','z',
240 '0','1','2','3','4','5','6','7','8','9','+','/'
241 };
242
243 const deUint8* data = fmt.data;
244 int numBytes = fmt.numBytes;
245 int srcNdx = 0;
246
247 DE_ASSERT(data && (numBytes > 0));
248
249 /* Loop all input chars. */
250 while (srcNdx < numBytes)
251 {
252 int numRead = de::min(3, numBytes - srcNdx);
253 deUint8 s0 = data[srcNdx];
254 deUint8 s1 = (numRead >= 2) ? data[srcNdx + 1] : 0;
255 deUint8 s2 = (numRead >= 3) ? data[srcNdx + 2] : 0;
256 char d[4];
257
258 srcNdx += numRead;
259
260 d[0] = s_base64Table[s0 >> 2];
261 d[1] = s_base64Table[((s0 & 0x3) << 4) | (s1 >> 4)];
262 d[2] = s_base64Table[((s1 & 0xF) << 2) | (s2 >> 6)];
263 d[3] = s_base64Table[s2 & 0x3F];
264
265 if (numRead < 3) d[3] = '=';
266 if (numRead < 2) d[2] = '=';
267
268 /* Write data. */
269 str.write(&d[0], sizeof(d));
270 }
271
272 return str;
273 }
274
toBase64(const deUint8 * bytes,int numBytes)275 inline Base64Formatter toBase64(const deUint8* bytes, int numBytes) {return Base64Formatter(bytes, numBytes); }
276
print_void_data(const void * o,int oSize,const std::string & s,bool commaNeeded=true)277 static void print_void_data(const void * o, int oSize, const std::string& s, bool commaNeeded=true)
278 {
279 if (o != NULL && oSize != 0)
280 {
281 PRINT_SPACE _OUT << "\"" << s << "\"" << " : " << "\"" << toBase64((deUint8*)o, oSize) << "\"" << (commaNeeded ? "," : "") << std::endl;
282 }
283 else
284 {
285 PRINT_SPACE _OUT << "\"" << s << "\"" << " : " << "\"NULL\"" << (commaNeeded ? "," : "") << std::endl;
286 }
287 }
288
print_VkBool32(VkBool32 obj,const std::string & str,bool commaNeeded=true)289 static void print_VkBool32(VkBool32 obj, const std::string& str, bool commaNeeded=true) {
290 PRINT_SPACE
291 _OUT << "\"" << str << "\"" << " : " << "\"" << ((obj == 0) ? ("VK_FALSE") : ("VK_TRUE")) << "\"" << (commaNeeded ? "," : "") << std::endl;
292 }
print_VkBool32(const VkBool32 * obj,const std::string & str,bool commaNeeded=true)293 static void print_VkBool32(const VkBool32 * obj, const std::string& str, bool commaNeeded=true) {
294 PRINT_SPACE
295 _OUT << "\"" << str << "\"" << " : " << "\"" << ((obj == 0) ? ("VK_FALSE") : ("VK_TRUE")) << "\"" << (commaNeeded ? "," : "") << std::endl;
296 }
297
print_VkDeviceAddress(VkDeviceAddress obj,const std::string & str,bool commaNeeded=true)298 static void print_VkDeviceAddress(VkDeviceAddress obj, const std::string& str, bool commaNeeded=true) {
299 PRINT_SPACE
300 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
301 }
print_VkDeviceAddress(const VkDeviceAddress * obj,const std::string & str,bool commaNeeded=true)302 static void print_VkDeviceAddress(const VkDeviceAddress * obj, const std::string& str, bool commaNeeded=true) {
303 PRINT_SPACE
304 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
305 }
306
print_VkDeviceSize(VkDeviceSize obj,const std::string & str,bool commaNeeded=true)307 static void print_VkDeviceSize(VkDeviceSize obj, const std::string& str, bool commaNeeded=true) {
308 PRINT_SPACE
309 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
310 }
print_VkDeviceSize(const VkDeviceSize * obj,const std::string & str,bool commaNeeded=true)311 static void print_VkDeviceSize(const VkDeviceSize * obj, const std::string& str, bool commaNeeded=true) {
312 PRINT_SPACE
313 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
314 }
315
print_VkFlags(VkFlags obj,const std::string & str,bool commaNeeded=true)316 static void print_VkFlags(VkFlags obj, const std::string& str, bool commaNeeded=true) {
317 PRINT_SPACE
318 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
319 }
print_VkFlags(const VkFlags * obj,const std::string & str,bool commaNeeded=true)320 static void print_VkFlags(const VkFlags * obj, const std::string& str, bool commaNeeded=true) {
321 PRINT_SPACE
322 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
323 }
324
print_VkSampleMask(VkSampleMask obj,const std::string & str,bool commaNeeded=true)325 static void print_VkSampleMask(VkSampleMask obj, const std::string& str, bool commaNeeded=true) {
326 PRINT_SPACE
327 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
328 }
print_VkSampleMask(const VkSampleMask * obj,const std::string & str,bool commaNeeded=true)329 static void print_VkSampleMask(const VkSampleMask * obj, const std::string& str, bool commaNeeded=true) {
330 PRINT_SPACE
331 _OUT << "\"" << str << "\"" << " : " << "\"" << obj << "\"" << (commaNeeded ? "," : "") << std::endl;
332 }
333
print_VkBuffer(VkBuffer obj,const std::string & str,bool commaNeeded=true)334 static void print_VkBuffer(VkBuffer obj, const std::string& str, bool commaNeeded=true) {
335 PRINT_SPACE
336 if (commaNeeded)
337 _OUT << "\"" << str << "\"" << "," << std::endl;
338 else
339 _OUT << "\"" << str << "\"" << std::endl;
340 }
print_VkBuffer(const VkBuffer * obj,const std::string & str,bool commaNeeded=true)341 static void print_VkBuffer(const VkBuffer * obj, const std::string& str, bool commaNeeded=true) {
342 PRINT_SPACE
343 if (commaNeeded)
344 _OUT << "\"" << str << "\"" << "," << std::endl;
345 else
346 _OUT << "\"" << str << "\"" << std::endl;
347 }
348
print_VkImage(VkImage obj,const std::string & str,bool commaNeeded=true)349 static void print_VkImage(VkImage obj, const std::string& str, bool commaNeeded=true) {
350 PRINT_SPACE
351 if (commaNeeded)
352 _OUT << "\"" << str << "\"" << "," << std::endl;
353 else
354 _OUT << "\"" << str << "\"" << std::endl;
355 }
print_VkImage(const VkImage * obj,const std::string & str,bool commaNeeded=true)356 static void print_VkImage(const VkImage * obj, const std::string& str, bool commaNeeded=true) {
357 PRINT_SPACE
358 if (commaNeeded)
359 _OUT << "\"" << str << "\"" << "," << std::endl;
360 else
361 _OUT << "\"" << str << "\"" << std::endl;
362 }
363
print_VkInstance(VkInstance obj,const std::string & str,bool commaNeeded=true)364 static void print_VkInstance(VkInstance obj, const std::string& str, bool commaNeeded=true) {
365 PRINT_SPACE
366 if (commaNeeded)
367 _OUT << "\"" << str << "\"" << "," << std::endl;
368 else
369 _OUT << "\"" << str << "\"" << std::endl;
370 }
print_VkInstance(const VkInstance * obj,const std::string & str,bool commaNeeded=true)371 static void print_VkInstance(const VkInstance * obj, const std::string& str, bool commaNeeded=true) {
372 PRINT_SPACE
373 if (commaNeeded)
374 _OUT << "\"" << str << "\"" << "," << std::endl;
375 else
376 _OUT << "\"" << str << "\"" << std::endl;
377 }
378
print_VkPhysicalDevice(VkPhysicalDevice obj,const std::string & str,bool commaNeeded=true)379 static void print_VkPhysicalDevice(VkPhysicalDevice obj, const std::string& str, bool commaNeeded=true) {
380 PRINT_SPACE
381 if (commaNeeded)
382 _OUT << "\"" << str << "\"" << "," << std::endl;
383 else
384 _OUT << "\"" << str << "\"" << std::endl;
385 }
print_VkPhysicalDevice(const VkPhysicalDevice * obj,const std::string & str,bool commaNeeded=true)386 static void print_VkPhysicalDevice(const VkPhysicalDevice * obj, const std::string& str, bool commaNeeded=true) {
387 PRINT_SPACE
388 if (commaNeeded)
389 _OUT << "\"" << str << "\"" << "," << std::endl;
390 else
391 _OUT << "\"" << str << "\"" << std::endl;
392 }
393
print_VkDevice(VkDevice obj,const std::string & str,bool commaNeeded=true)394 static void print_VkDevice(VkDevice obj, const std::string& str, bool commaNeeded=true) {
395 PRINT_SPACE
396 if (commaNeeded)
397 _OUT << "\"" << str << "\"" << "," << std::endl;
398 else
399 _OUT << "\"" << str << "\"" << std::endl;
400 }
print_VkDevice(const VkDevice * obj,const std::string & str,bool commaNeeded=true)401 static void print_VkDevice(const VkDevice * obj, const std::string& str, bool commaNeeded=true) {
402 PRINT_SPACE
403 if (commaNeeded)
404 _OUT << "\"" << str << "\"" << "," << std::endl;
405 else
406 _OUT << "\"" << str << "\"" << std::endl;
407 }
408
print_VkQueue(VkQueue obj,const std::string & str,bool commaNeeded=true)409 static void print_VkQueue(VkQueue obj, const std::string& str, bool commaNeeded=true) {
410 PRINT_SPACE
411 if (commaNeeded)
412 _OUT << "\"" << str << "\"" << "," << std::endl;
413 else
414 _OUT << "\"" << str << "\"" << std::endl;
415 }
print_VkQueue(const VkQueue * obj,const std::string & str,bool commaNeeded=true)416 static void print_VkQueue(const VkQueue * obj, const std::string& str, bool commaNeeded=true) {
417 PRINT_SPACE
418 if (commaNeeded)
419 _OUT << "\"" << str << "\"" << "," << std::endl;
420 else
421 _OUT << "\"" << str << "\"" << std::endl;
422 }
423
print_VkSemaphore(VkSemaphore obj,const std::string & str,bool commaNeeded=true)424 static void print_VkSemaphore(VkSemaphore obj, const std::string& str, bool commaNeeded=true) {
425 PRINT_SPACE
426 if (commaNeeded)
427 _OUT << "\"" << str << "\"" << "," << std::endl;
428 else
429 _OUT << "\"" << str << "\"" << std::endl;
430 }
print_VkSemaphore(const VkSemaphore * obj,const std::string & str,bool commaNeeded=true)431 static void print_VkSemaphore(const VkSemaphore * obj, const std::string& str, bool commaNeeded=true) {
432 PRINT_SPACE
433 if (commaNeeded)
434 _OUT << "\"" << str << "\"" << "," << std::endl;
435 else
436 _OUT << "\"" << str << "\"" << std::endl;
437 }
438
print_VkCommandBuffer(VkCommandBuffer obj,const std::string & str,bool commaNeeded=true)439 static void print_VkCommandBuffer(VkCommandBuffer obj, const std::string& str, bool commaNeeded=true) {
440 PRINT_SPACE
441 if (commaNeeded)
442 _OUT << "\"" << str << "\"" << "," << std::endl;
443 else
444 _OUT << "\"" << str << "\"" << std::endl;
445 }
print_VkCommandBuffer(const VkCommandBuffer * obj,const std::string & str,bool commaNeeded=true)446 static void print_VkCommandBuffer(const VkCommandBuffer * obj, const std::string& str, bool commaNeeded=true) {
447 PRINT_SPACE
448 if (commaNeeded)
449 _OUT << "\"" << str << "\"" << "," << std::endl;
450 else
451 _OUT << "\"" << str << "\"" << std::endl;
452 }
453
print_VkFence(VkFence obj,const std::string & str,bool commaNeeded=true)454 static void print_VkFence(VkFence obj, const std::string& str, bool commaNeeded=true) {
455 PRINT_SPACE
456 if (commaNeeded)
457 _OUT << "\"" << str << "\"" << "," << std::endl;
458 else
459 _OUT << "\"" << str << "\"" << std::endl;
460 }
print_VkFence(const VkFence * obj,const std::string & str,bool commaNeeded=true)461 static void print_VkFence(const VkFence * obj, const std::string& str, bool commaNeeded=true) {
462 PRINT_SPACE
463 if (commaNeeded)
464 _OUT << "\"" << str << "\"" << "," << std::endl;
465 else
466 _OUT << "\"" << str << "\"" << std::endl;
467 }
468
print_VkDeviceMemory(VkDeviceMemory obj,const std::string & str,bool commaNeeded=true)469 static void print_VkDeviceMemory(VkDeviceMemory obj, const std::string& str, bool commaNeeded=true) {
470 PRINT_SPACE
471 if (commaNeeded)
472 _OUT << "\"" << str << "\"" << "," << std::endl;
473 else
474 _OUT << "\"" << str << "\"" << std::endl;
475 }
print_VkDeviceMemory(const VkDeviceMemory * obj,const std::string & str,bool commaNeeded=true)476 static void print_VkDeviceMemory(const VkDeviceMemory * obj, const std::string& str, bool commaNeeded=true) {
477 PRINT_SPACE
478 if (commaNeeded)
479 _OUT << "\"" << str << "\"" << "," << std::endl;
480 else
481 _OUT << "\"" << str << "\"" << std::endl;
482 }
483
print_VkEvent(VkEvent obj,const std::string & str,bool commaNeeded=true)484 static void print_VkEvent(VkEvent obj, const std::string& str, bool commaNeeded=true) {
485 PRINT_SPACE
486 if (commaNeeded)
487 _OUT << "\"" << str << "\"" << "," << std::endl;
488 else
489 _OUT << "\"" << str << "\"" << std::endl;
490 }
print_VkEvent(const VkEvent * obj,const std::string & str,bool commaNeeded=true)491 static void print_VkEvent(const VkEvent * obj, const std::string& str, bool commaNeeded=true) {
492 PRINT_SPACE
493 if (commaNeeded)
494 _OUT << "\"" << str << "\"" << "," << std::endl;
495 else
496 _OUT << "\"" << str << "\"" << std::endl;
497 }
498
print_VkQueryPool(VkQueryPool obj,const std::string & str,bool commaNeeded=true)499 static void print_VkQueryPool(VkQueryPool obj, const std::string& str, bool commaNeeded=true) {
500 PRINT_SPACE
501 if (commaNeeded)
502 _OUT << "\"" << str << "\"" << "," << std::endl;
503 else
504 _OUT << "\"" << str << "\"" << std::endl;
505 }
print_VkQueryPool(const VkQueryPool * obj,const std::string & str,bool commaNeeded=true)506 static void print_VkQueryPool(const VkQueryPool * obj, const std::string& str, bool commaNeeded=true) {
507 PRINT_SPACE
508 if (commaNeeded)
509 _OUT << "\"" << str << "\"" << "," << std::endl;
510 else
511 _OUT << "\"" << str << "\"" << std::endl;
512 }
513
print_VkBufferView(VkBufferView obj,const std::string & str,bool commaNeeded=true)514 static void print_VkBufferView(VkBufferView obj, const std::string& str, bool commaNeeded=true) {
515 PRINT_SPACE
516 if (commaNeeded)
517 _OUT << "\"" << str << "\"" << "," << std::endl;
518 else
519 _OUT << "\"" << str << "\"" << std::endl;
520 }
print_VkBufferView(const VkBufferView * obj,const std::string & str,bool commaNeeded=true)521 static void print_VkBufferView(const VkBufferView * obj, const std::string& str, bool commaNeeded=true) {
522 PRINT_SPACE
523 if (commaNeeded)
524 _OUT << "\"" << str << "\"" << "," << std::endl;
525 else
526 _OUT << "\"" << str << "\"" << std::endl;
527 }
528
print_VkImageView(VkImageView obj,const std::string & str,bool commaNeeded=true)529 static void print_VkImageView(VkImageView obj, const std::string& str, bool commaNeeded=true) {
530 PRINT_SPACE
531 if (commaNeeded)
532 _OUT << "\"" << str << "\"" << "," << std::endl;
533 else
534 _OUT << "\"" << str << "\"" << std::endl;
535 }
print_VkImageView(const VkImageView * obj,const std::string & str,bool commaNeeded=true)536 static void print_VkImageView(const VkImageView * obj, const std::string& str, bool commaNeeded=true) {
537 PRINT_SPACE
538 if (commaNeeded)
539 _OUT << "\"" << str << "\"" << "," << std::endl;
540 else
541 _OUT << "\"" << str << "\"" << std::endl;
542 }
543
print_VkShaderModule(VkShaderModule obj,const std::string & str,bool commaNeeded=true)544 static void print_VkShaderModule(VkShaderModule obj, const std::string& str, bool commaNeeded=true) {
545 PRINT_SPACE
546 if (commaNeeded)
547 _OUT << "\"" << str << "\"" << "," << std::endl;
548 else
549 _OUT << "\"" << str << "\"" << std::endl;
550 }
print_VkShaderModule(const VkShaderModule * obj,const std::string & str,bool commaNeeded=true)551 static void print_VkShaderModule(const VkShaderModule * obj, const std::string& str, bool commaNeeded=true) {
552 PRINT_SPACE
553 if (commaNeeded)
554 _OUT << "\"" << str << "\"" << "," << std::endl;
555 else
556 _OUT << "\"" << str << "\"" << std::endl;
557 }
558
print_VkPipelineCache(VkPipelineCache obj,const std::string & str,bool commaNeeded=true)559 static void print_VkPipelineCache(VkPipelineCache obj, const std::string& str, bool commaNeeded=true) {
560 PRINT_SPACE
561 if (commaNeeded)
562 _OUT << "\"" << str << "\"" << "," << std::endl;
563 else
564 _OUT << "\"" << str << "\"" << std::endl;
565 }
print_VkPipelineCache(const VkPipelineCache * obj,const std::string & str,bool commaNeeded=true)566 static void print_VkPipelineCache(const VkPipelineCache * obj, const std::string& str, bool commaNeeded=true) {
567 PRINT_SPACE
568 if (commaNeeded)
569 _OUT << "\"" << str << "\"" << "," << std::endl;
570 else
571 _OUT << "\"" << str << "\"" << std::endl;
572 }
573
print_VkPipelineLayout(VkPipelineLayout obj,const std::string & str,bool commaNeeded=true)574 static void print_VkPipelineLayout(VkPipelineLayout obj, const std::string& str, bool commaNeeded=true) {
575 PRINT_SPACE
576 if (commaNeeded)
577 _OUT << "\"" << str << "\"" << "," << std::endl;
578 else
579 _OUT << "\"" << str << "\"" << std::endl;
580 }
print_VkPipelineLayout(const VkPipelineLayout * obj,const std::string & str,bool commaNeeded=true)581 static void print_VkPipelineLayout(const VkPipelineLayout * obj, const std::string& str, bool commaNeeded=true) {
582 PRINT_SPACE
583 if (commaNeeded)
584 _OUT << "\"" << str << "\"" << "," << std::endl;
585 else
586 _OUT << "\"" << str << "\"" << std::endl;
587 }
588
print_VkPipeline(VkPipeline obj,const std::string & str,bool commaNeeded=true)589 static void print_VkPipeline(VkPipeline obj, const std::string& str, bool commaNeeded=true) {
590 PRINT_SPACE
591 if (commaNeeded)
592 _OUT << "\"" << str << "\"" << "," << std::endl;
593 else
594 _OUT << "\"" << str << "\"" << std::endl;
595 }
print_VkPipeline(const VkPipeline * obj,const std::string & str,bool commaNeeded=true)596 static void print_VkPipeline(const VkPipeline * obj, const std::string& str, bool commaNeeded=true) {
597 PRINT_SPACE
598 if (commaNeeded)
599 _OUT << "\"" << str << "\"" << "," << std::endl;
600 else
601 _OUT << "\"" << str << "\"" << std::endl;
602 }
603
print_VkRenderPass(VkRenderPass obj,const std::string & str,bool commaNeeded=true)604 static void print_VkRenderPass(VkRenderPass obj, const std::string& str, bool commaNeeded=true) {
605 PRINT_SPACE
606 if (commaNeeded)
607 _OUT << "\"" << str << "\"" << "," << std::endl;
608 else
609 _OUT << "\"" << str << "\"" << std::endl;
610 }
print_VkRenderPass(const VkRenderPass * obj,const std::string & str,bool commaNeeded=true)611 static void print_VkRenderPass(const VkRenderPass * obj, const std::string& str, bool commaNeeded=true) {
612 PRINT_SPACE
613 if (commaNeeded)
614 _OUT << "\"" << str << "\"" << "," << std::endl;
615 else
616 _OUT << "\"" << str << "\"" << std::endl;
617 }
618
print_VkDescriptorSetLayout(VkDescriptorSetLayout obj,const std::string & str,bool commaNeeded=true)619 static void print_VkDescriptorSetLayout(VkDescriptorSetLayout obj, const std::string& str, bool commaNeeded=true) {
620 PRINT_SPACE
621 if (commaNeeded)
622 _OUT << "\"" << str << "\"" << "," << std::endl;
623 else
624 _OUT << "\"" << str << "\"" << std::endl;
625 }
print_VkDescriptorSetLayout(const VkDescriptorSetLayout * obj,const std::string & str,bool commaNeeded=true)626 static void print_VkDescriptorSetLayout(const VkDescriptorSetLayout * obj, const std::string& str, bool commaNeeded=true) {
627 PRINT_SPACE
628 if (commaNeeded)
629 _OUT << "\"" << str << "\"" << "," << std::endl;
630 else
631 _OUT << "\"" << str << "\"" << std::endl;
632 }
633
print_VkSampler(VkSampler obj,const std::string & str,bool commaNeeded=true)634 static void print_VkSampler(VkSampler obj, const std::string& str, bool commaNeeded=true) {
635 PRINT_SPACE
636 if (commaNeeded)
637 _OUT << "\"" << str << "\"" << "," << std::endl;
638 else
639 _OUT << "\"" << str << "\"" << std::endl;
640 }
print_VkSampler(const VkSampler * obj,const std::string & str,bool commaNeeded=true)641 static void print_VkSampler(const VkSampler * obj, const std::string& str, bool commaNeeded=true) {
642 PRINT_SPACE
643 if (commaNeeded)
644 _OUT << "\"" << str << "\"" << "," << std::endl;
645 else
646 _OUT << "\"" << str << "\"" << std::endl;
647 }
648
print_VkDescriptorSet(VkDescriptorSet obj,const std::string & str,bool commaNeeded=true)649 static void print_VkDescriptorSet(VkDescriptorSet obj, const std::string& str, bool commaNeeded=true) {
650 PRINT_SPACE
651 if (commaNeeded)
652 _OUT << "\"" << str << "\"" << "," << std::endl;
653 else
654 _OUT << "\"" << str << "\"" << std::endl;
655 }
print_VkDescriptorSet(const VkDescriptorSet * obj,const std::string & str,bool commaNeeded=true)656 static void print_VkDescriptorSet(const VkDescriptorSet * obj, const std::string& str, bool commaNeeded=true) {
657 PRINT_SPACE
658 if (commaNeeded)
659 _OUT << "\"" << str << "\"" << "," << std::endl;
660 else
661 _OUT << "\"" << str << "\"" << std::endl;
662 }
663
print_VkDescriptorPool(VkDescriptorPool obj,const std::string & str,bool commaNeeded=true)664 static void print_VkDescriptorPool(VkDescriptorPool obj, const std::string& str, bool commaNeeded=true) {
665 PRINT_SPACE
666 if (commaNeeded)
667 _OUT << "\"" << str << "\"" << "," << std::endl;
668 else
669 _OUT << "\"" << str << "\"" << std::endl;
670 }
print_VkDescriptorPool(const VkDescriptorPool * obj,const std::string & str,bool commaNeeded=true)671 static void print_VkDescriptorPool(const VkDescriptorPool * obj, const std::string& str, bool commaNeeded=true) {
672 PRINT_SPACE
673 if (commaNeeded)
674 _OUT << "\"" << str << "\"" << "," << std::endl;
675 else
676 _OUT << "\"" << str << "\"" << std::endl;
677 }
678
print_VkFramebuffer(VkFramebuffer obj,const std::string & str,bool commaNeeded=true)679 static void print_VkFramebuffer(VkFramebuffer obj, const std::string& str, bool commaNeeded=true) {
680 PRINT_SPACE
681 if (commaNeeded)
682 _OUT << "\"" << str << "\"" << "," << std::endl;
683 else
684 _OUT << "\"" << str << "\"" << std::endl;
685 }
print_VkFramebuffer(const VkFramebuffer * obj,const std::string & str,bool commaNeeded=true)686 static void print_VkFramebuffer(const VkFramebuffer * obj, const std::string& str, bool commaNeeded=true) {
687 PRINT_SPACE
688 if (commaNeeded)
689 _OUT << "\"" << str << "\"" << "," << std::endl;
690 else
691 _OUT << "\"" << str << "\"" << std::endl;
692 }
693
print_VkCommandPool(VkCommandPool obj,const std::string & str,bool commaNeeded=true)694 static void print_VkCommandPool(VkCommandPool obj, const std::string& str, bool commaNeeded=true) {
695 PRINT_SPACE
696 if (commaNeeded)
697 _OUT << "\"" << str << "\"" << "," << std::endl;
698 else
699 _OUT << "\"" << str << "\"" << std::endl;
700 }
print_VkCommandPool(const VkCommandPool * obj,const std::string & str,bool commaNeeded=true)701 static void print_VkCommandPool(const VkCommandPool * obj, const std::string& str, bool commaNeeded=true) {
702 PRINT_SPACE
703 if (commaNeeded)
704 _OUT << "\"" << str << "\"" << "," << std::endl;
705 else
706 _OUT << "\"" << str << "\"" << std::endl;
707 }
708
709 static std::map<deUint64, std::string> VkResult_map = {
710 std::make_pair(0, "VK_SUCCESS"),
711 std::make_pair(1, "VK_NOT_READY"),
712 std::make_pair(2, "VK_TIMEOUT"),
713 std::make_pair(3, "VK_EVENT_SET"),
714 std::make_pair(4, "VK_EVENT_RESET"),
715 std::make_pair(5, "VK_INCOMPLETE"),
716 std::make_pair(-1, "VK_ERROR_OUT_OF_HOST_MEMORY"),
717 std::make_pair(-2, "VK_ERROR_OUT_OF_DEVICE_MEMORY"),
718 std::make_pair(-3, "VK_ERROR_INITIALIZATION_FAILED"),
719 std::make_pair(-4, "VK_ERROR_DEVICE_LOST"),
720 std::make_pair(-5, "VK_ERROR_MEMORY_MAP_FAILED"),
721 std::make_pair(-6, "VK_ERROR_LAYER_NOT_PRESENT"),
722 std::make_pair(-7, "VK_ERROR_EXTENSION_NOT_PRESENT"),
723 std::make_pair(-8, "VK_ERROR_FEATURE_NOT_PRESENT"),
724 std::make_pair(-9, "VK_ERROR_INCOMPATIBLE_DRIVER"),
725 std::make_pair(-10, "VK_ERROR_TOO_MANY_OBJECTS"),
726 std::make_pair(-11, "VK_ERROR_FORMAT_NOT_SUPPORTED"),
727 std::make_pair(-12, "VK_ERROR_FRAGMENTED_POOL"),
728 std::make_pair(-13, "VK_ERROR_UNKNOWN"),
729 std::make_pair(1000069000, "VK_ERROR_OUT_OF_POOL_MEMORY"),
730 std::make_pair(1000072003, "VK_ERROR_INVALID_EXTERNAL_HANDLE"),
731 std::make_pair(1000161000, "VK_ERROR_FRAGMENTATION"),
732 std::make_pair(1000257000, "VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS"),
733 std::make_pair(1000011001, "VK_ERROR_VALIDATION_FAILED"),
734 std::make_pair(1000298000, "VK_ERROR_INVALID_PIPELINE_CACHE_DATA"),
735 std::make_pair(1000298001, "VK_ERROR_NO_PIPELINE_MATCH"),
736 std::make_pair(1000000000, "VK_ERROR_SURFACE_LOST_KHR"),
737 std::make_pair(1000000001, "VK_ERROR_NATIVE_WINDOW_IN_USE_KHR"),
738 std::make_pair(1000001003, "VK_SUBOPTIMAL_KHR"),
739 std::make_pair(1000001004, "VK_ERROR_OUT_OF_DATE_KHR"),
740 std::make_pair(1000003001, "VK_ERROR_INCOMPATIBLE_DISPLAY_KHR"),
741 std::make_pair(1000012000, "VK_ERROR_INVALID_SHADER_NV"),
742 std::make_pair(1000158000, "VK_ERROR_INVALID_DRM_FORMAT_MODIFIER_PLANE_LAYOUT_EXT"),
743 std::make_pair(1000174001, "VK_ERROR_NOT_PERMITTED_EXT"),
744 std::make_pair(1000255000, "VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT"),
745 std::make_pair(1000268000, "VK_THREAD_IDLE_KHR"),
746 std::make_pair(1000268001, "VK_THREAD_DONE_KHR"),
747 std::make_pair(1000268002, "VK_OPERATION_DEFERRED_KHR"),
748 std::make_pair(1000268003, "VK_OPERATION_NOT_DEFERRED_KHR"),
749 std::make_pair(1000297000, "VK_PIPELINE_COMPILE_REQUIRED_EXT"),
750 };
print_VkResult(VkResult obj,const std::string & str,bool commaNeeded=true)751 static void print_VkResult(VkResult obj, const std::string& str, bool commaNeeded=true) {
752 PRINT_SPACE
753 if (str != "") _OUT << "\"" << str << "\"" << " : ";
754 if (commaNeeded)
755 _OUT << "\"" << VkResult_map[obj] << "\"," << std::endl;
756 else
757 _OUT << "\"" << VkResult_map[obj] << "\"" << std::endl;
758 }
print_VkResult(const VkResult * obj,const std::string & str,bool commaNeeded=true)759 static void print_VkResult(const VkResult * obj, const std::string& str, bool commaNeeded=true) {
760 PRINT_SPACE
761 if (str != "") _OUT << "\"" << str << "\"" << " : ";
762 if (commaNeeded)
763 _OUT << "\"" << VkResult_map[*obj] << "\"," << std::endl;
764 else
765 _OUT << "\"" << VkResult_map[*obj] << "\"" << std::endl;
766 }
767
768 static std::map<deUint64, std::string> VkStructureType_map = {
769 std::make_pair(0, "VK_STRUCTURE_TYPE_APPLICATION_INFO"),
770 std::make_pair(1, "VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO"),
771 std::make_pair(2, "VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO"),
772 std::make_pair(3, "VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO"),
773 std::make_pair(4, "VK_STRUCTURE_TYPE_SUBMIT_INFO"),
774 std::make_pair(5, "VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO"),
775 std::make_pair(6, "VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE"),
776 std::make_pair(8, "VK_STRUCTURE_TYPE_FENCE_CREATE_INFO"),
777 std::make_pair(9, "VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO"),
778 std::make_pair(10, "VK_STRUCTURE_TYPE_EVENT_CREATE_INFO"),
779 std::make_pair(11, "VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO"),
780 std::make_pair(12, "VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO"),
781 std::make_pair(13, "VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO"),
782 std::make_pair(14, "VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO"),
783 std::make_pair(15, "VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO"),
784 std::make_pair(17, "VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO"),
785 std::make_pair(18, "VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO"),
786 std::make_pair(19, "VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO"),
787 std::make_pair(20, "VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO"),
788 std::make_pair(21, "VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO"),
789 std::make_pair(22, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO"),
790 std::make_pair(23, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO"),
791 std::make_pair(24, "VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO"),
792 std::make_pair(25, "VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO"),
793 std::make_pair(26, "VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO"),
794 std::make_pair(27, "VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO"),
795 std::make_pair(28, "VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO"),
796 std::make_pair(29, "VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO"),
797 std::make_pair(30, "VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO"),
798 std::make_pair(31, "VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO"),
799 std::make_pair(32, "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO"),
800 std::make_pair(33, "VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO"),
801 std::make_pair(34, "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO"),
802 std::make_pair(35, "VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET"),
803 std::make_pair(36, "VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET"),
804 std::make_pair(37, "VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO"),
805 std::make_pair(38, "VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO"),
806 std::make_pair(39, "VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO"),
807 std::make_pair(40, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO"),
808 std::make_pair(41, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO"),
809 std::make_pair(42, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO"),
810 std::make_pair(43, "VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO"),
811 std::make_pair(44, "VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER"),
812 std::make_pair(45, "VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER"),
813 std::make_pair(46, "VK_STRUCTURE_TYPE_MEMORY_BARRIER"),
814 std::make_pair(47, "VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO"),
815 std::make_pair(48, "VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO"),
816 std::make_pair(1000094000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES"),
817 std::make_pair(1000157000, "VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO"),
818 std::make_pair(1000157001, "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO"),
819 std::make_pair(1000083000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES"),
820 std::make_pair(1000127000, "VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS"),
821 std::make_pair(1000127001, "VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO"),
822 std::make_pair(1000060000, "VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO"),
823 std::make_pair(1000060003, "VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO"),
824 std::make_pair(1000060004, "VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO"),
825 std::make_pair(1000060005, "VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO"),
826 std::make_pair(1000060013, "VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO"),
827 std::make_pair(1000060014, "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO"),
828 std::make_pair(1000070000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES"),
829 std::make_pair(1000070001, "VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO"),
830 std::make_pair(1000146000, "VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2"),
831 std::make_pair(1000146001, "VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2"),
832 std::make_pair(1000146003, "VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2"),
833 std::make_pair(1000059000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2"),
834 std::make_pair(1000059001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2"),
835 std::make_pair(1000059002, "VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2"),
836 std::make_pair(1000059003, "VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2"),
837 std::make_pair(1000059004, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2"),
838 std::make_pair(1000059005, "VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2"),
839 std::make_pair(1000059006, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2"),
840 std::make_pair(1000117000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES"),
841 std::make_pair(1000117001, "VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO"),
842 std::make_pair(1000117002, "VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO"),
843 std::make_pair(1000117003, "VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO"),
844 std::make_pair(1000053000, "VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO"),
845 std::make_pair(1000053001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES"),
846 std::make_pair(1000053002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES"),
847 std::make_pair(1000120000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES"),
848 std::make_pair(1000145000, "VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO"),
849 std::make_pair(1000145001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES"),
850 std::make_pair(1000145002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES"),
851 std::make_pair(1000145003, "VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2"),
852 std::make_pair(1000156000, "VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO"),
853 std::make_pair(1000156001, "VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO"),
854 std::make_pair(1000156002, "VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO"),
855 std::make_pair(1000156003, "VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO"),
856 std::make_pair(1000156004, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES"),
857 std::make_pair(1000156005, "VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES"),
858 std::make_pair(1000071000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO"),
859 std::make_pair(1000071001, "VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES"),
860 std::make_pair(1000071002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO"),
861 std::make_pair(1000071003, "VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES"),
862 std::make_pair(1000071004, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES"),
863 std::make_pair(1000072000, "VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO"),
864 std::make_pair(1000072001, "VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO"),
865 std::make_pair(1000072002, "VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO"),
866 std::make_pair(1000112000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO"),
867 std::make_pair(1000112001, "VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES"),
868 std::make_pair(1000113000, "VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO"),
869 std::make_pair(1000077000, "VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO"),
870 std::make_pair(1000076000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO"),
871 std::make_pair(1000076001, "VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES"),
872 std::make_pair(1000168000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES"),
873 std::make_pair(1000168001, "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT"),
874 std::make_pair(1000063000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES"),
875 std::make_pair(49, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES"),
876 std::make_pair(50, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES"),
877 std::make_pair(51, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES"),
878 std::make_pair(52, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES"),
879 std::make_pair(1000147000, "VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO"),
880 std::make_pair(1000109000, "VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2"),
881 std::make_pair(1000109001, "VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2"),
882 std::make_pair(1000109002, "VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2"),
883 std::make_pair(1000109003, "VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2"),
884 std::make_pair(1000109004, "VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2"),
885 std::make_pair(1000109005, "VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO"),
886 std::make_pair(1000109006, "VK_STRUCTURE_TYPE_SUBPASS_END_INFO"),
887 std::make_pair(1000177000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES"),
888 std::make_pair(1000196000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES"),
889 std::make_pair(1000180000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES"),
890 std::make_pair(1000082000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES"),
891 std::make_pair(1000197000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES"),
892 std::make_pair(1000161000, "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO"),
893 std::make_pair(1000161001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES"),
894 std::make_pair(1000161002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES"),
895 std::make_pair(1000161003, "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO"),
896 std::make_pair(1000161004, "VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT"),
897 std::make_pair(1000199000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES"),
898 std::make_pair(1000199001, "VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE"),
899 std::make_pair(1000221000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES"),
900 std::make_pair(1000246000, "VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO"),
901 std::make_pair(1000130000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES"),
902 std::make_pair(1000130001, "VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO"),
903 std::make_pair(1000211000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES"),
904 std::make_pair(1000108000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES"),
905 std::make_pair(1000108001, "VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO"),
906 std::make_pair(1000108002, "VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFO"),
907 std::make_pair(1000108003, "VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO"),
908 std::make_pair(1000253000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES"),
909 std::make_pair(1000175000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES"),
910 std::make_pair(1000241000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES"),
911 std::make_pair(1000241001, "VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT"),
912 std::make_pair(1000241002, "VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT"),
913 std::make_pair(1000261000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES"),
914 std::make_pair(1000207000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES"),
915 std::make_pair(1000207001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES"),
916 std::make_pair(1000207002, "VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO"),
917 std::make_pair(1000207003, "VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO"),
918 std::make_pair(1000207004, "VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO"),
919 std::make_pair(1000207005, "VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO"),
920 std::make_pair(1000257000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES"),
921 std::make_pair(1000244001, "VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO"),
922 std::make_pair(1000257002, "VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO"),
923 std::make_pair(1000257003, "VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO"),
924 std::make_pair(1000257004, "VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO"),
925 std::make_pair(1000298000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_SC_1_0_FEATURES"),
926 std::make_pair(1000298001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_SC_1_0_PROPERTIES"),
927 std::make_pair(1000298002, "VK_STRUCTURE_TYPE_DEVICE_OBJECT_RESERVATION_CREATE_INFO"),
928 std::make_pair(1000298003, "VK_STRUCTURE_TYPE_COMMAND_POOL_MEMORY_RESERVATION_CREATE_INFO"),
929 std::make_pair(1000298004, "VK_STRUCTURE_TYPE_COMMAND_POOL_MEMORY_CONSUMPTION"),
930 std::make_pair(1000298005, "VK_STRUCTURE_TYPE_PIPELINE_POOL_SIZE"),
931 std::make_pair(1000298007, "VK_STRUCTURE_TYPE_FAULT_DATA"),
932 std::make_pair(1000298008, "VK_STRUCTURE_TYPE_FAULT_CALLBACK_INFO"),
933 std::make_pair(1000298010, "VK_STRUCTURE_TYPE_PIPELINE_OFFLINE_CREATE_INFO"),
934 std::make_pair(1000001000, "VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR"),
935 std::make_pair(1000001001, "VK_STRUCTURE_TYPE_PRESENT_INFO_KHR"),
936 std::make_pair(1000060007, "VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHR"),
937 std::make_pair(1000060008, "VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR"),
938 std::make_pair(1000060009, "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR"),
939 std::make_pair(1000060010, "VK_STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHR"),
940 std::make_pair(1000060011, "VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHR"),
941 std::make_pair(1000060012, "VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR"),
942 std::make_pair(1000002000, "VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR"),
943 std::make_pair(1000002001, "VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR"),
944 std::make_pair(1000003000, "VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR"),
945 std::make_pair(1000004000, "VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR"),
946 std::make_pair(1000005000, "VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR"),
947 std::make_pair(1000006000, "VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR"),
948 std::make_pair(1000008000, "VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR"),
949 std::make_pair(1000009000, "VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR"),
950 std::make_pair(1000010000, "VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID"),
951 std::make_pair(1000010001, "VK_STRUCTURE_TYPE_SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID"),
952 std::make_pair(1000010002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID"),
953 std::make_pair(1000011000, "VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT"),
954 std::make_pair(1000018000, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD"),
955 std::make_pair(1000022000, "VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT"),
956 std::make_pair(1000022001, "VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT"),
957 std::make_pair(1000022002, "VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT"),
958 std::make_pair(1000023000, "VK_STRUCTURE_TYPE_VIDEO_PROFILE_KHR"),
959 std::make_pair(1000023001, "VK_STRUCTURE_TYPE_VIDEO_CAPABILITIES_KHR"),
960 std::make_pair(1000023002, "VK_STRUCTURE_TYPE_VIDEO_PICTURE_RESOURCE_KHR"),
961 std::make_pair(1000023003, "VK_STRUCTURE_TYPE_VIDEO_GET_MEMORY_PROPERTIES_KHR"),
962 std::make_pair(1000023004, "VK_STRUCTURE_TYPE_VIDEO_BIND_MEMORY_KHR"),
963 std::make_pair(1000023005, "VK_STRUCTURE_TYPE_VIDEO_SESSION_CREATE_INFO_KHR"),
964 std::make_pair(1000023006, "VK_STRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHR"),
965 std::make_pair(1000023007, "VK_STRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_UPDATE_INFO_KHR"),
966 std::make_pair(1000023008, "VK_STRUCTURE_TYPE_VIDEO_BEGIN_CODING_INFO_KHR"),
967 std::make_pair(1000023009, "VK_STRUCTURE_TYPE_VIDEO_END_CODING_INFO_KHR"),
968 std::make_pair(1000023010, "VK_STRUCTURE_TYPE_VIDEO_CODING_CONTROL_INFO_KHR"),
969 std::make_pair(1000023011, "VK_STRUCTURE_TYPE_VIDEO_REFERENCE_SLOT_KHR"),
970 std::make_pair(1000023012, "VK_STRUCTURE_TYPE_QUEUE_FAMILY_VIDEO_PROPERTIES_KHR"),
971 std::make_pair(1000023013, "VK_STRUCTURE_TYPE_VIDEO_PROFILES_KHR"),
972 std::make_pair(1000023014, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_FORMAT_INFO_KHR"),
973 std::make_pair(1000023015, "VK_STRUCTURE_TYPE_VIDEO_FORMAT_PROPERTIES_KHR"),
974 std::make_pair(1000024000, "VK_STRUCTURE_TYPE_VIDEO_DECODE_INFO_KHR"),
975 std::make_pair(1000026000, "VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV"),
976 std::make_pair(1000026001, "VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV"),
977 std::make_pair(1000026002, "VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV"),
978 std::make_pair(1000028000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT"),
979 std::make_pair(1000028001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT"),
980 std::make_pair(1000028002, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT"),
981 std::make_pair(1000029000, "VK_STRUCTURE_TYPE_CU_MODULE_CREATE_INFO_NVX"),
982 std::make_pair(1000029001, "VK_STRUCTURE_TYPE_CU_FUNCTION_CREATE_INFO_NVX"),
983 std::make_pair(1000029002, "VK_STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX"),
984 std::make_pair(1000030000, "VK_STRUCTURE_TYPE_IMAGE_VIEW_HANDLE_INFO_NVX"),
985 std::make_pair(1000030001, "VK_STRUCTURE_TYPE_IMAGE_VIEW_ADDRESS_PROPERTIES_NVX"),
986 std::make_pair(1000038000, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_CAPABILITIES_EXT"),
987 std::make_pair(1000038001, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_CREATE_INFO_EXT"),
988 std::make_pair(1000038002, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT"),
989 std::make_pair(1000038003, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT"),
990 std::make_pair(1000038004, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXT"),
991 std::make_pair(1000038005, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_DPB_SLOT_INFO_EXT"),
992 std::make_pair(1000038006, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_NALU_SLICE_EXT"),
993 std::make_pair(1000038007, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXT"),
994 std::make_pair(1000038008, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_PROFILE_EXT"),
995 std::make_pair(1000038009, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_RATE_CONTROL_INFO_EXT"),
996 std::make_pair(1000038010, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_RATE_CONTROL_LAYER_INFO_EXT"),
997 std::make_pair(1000039000, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_CAPABILITIES_EXT"),
998 std::make_pair(1000039001, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_CREATE_INFO_EXT"),
999 std::make_pair(1000039002, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT"),
1000 std::make_pair(1000039003, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT"),
1001 std::make_pair(1000039004, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT"),
1002 std::make_pair(1000039005, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_DPB_SLOT_INFO_EXT"),
1003 std::make_pair(1000039006, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_NALU_SLICE_EXT"),
1004 std::make_pair(1000039007, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT"),
1005 std::make_pair(1000039008, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_PROFILE_EXT"),
1006 std::make_pair(1000039009, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_REFERENCE_LISTS_EXT"),
1007 std::make_pair(1000039010, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_RATE_CONTROL_INFO_EXT"),
1008 std::make_pair(1000039011, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_RATE_CONTROL_LAYER_INFO_EXT"),
1009 std::make_pair(1000040000, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_CAPABILITIES_KHR"),
1010 std::make_pair(1000040001, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_CREATE_INFO_EXT"),
1011 std::make_pair(1000040002, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_PICTURE_INFO_KHR"),
1012 std::make_pair(1000040003, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_MVC_EXT"),
1013 std::make_pair(1000040004, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_PROFILE_EXT"),
1014 std::make_pair(1000040005, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT"),
1015 std::make_pair(1000040006, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_KHR"),
1016 std::make_pair(1000040007, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_DPB_SLOT_INFO_KHR"),
1017 std::make_pair(1000041000, "VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD"),
1018 std::make_pair(1000044000, "VK_STRUCTURE_TYPE_RENDERING_INFO_KHR"),
1019 std::make_pair(1000044001, "VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO_KHR"),
1020 std::make_pair(1000044002, "VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR"),
1021 std::make_pair(1000044003, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR"),
1022 std::make_pair(1000044004, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO_KHR"),
1023 std::make_pair(1000044006, "VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR"),
1024 std::make_pair(1000044007, "VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT"),
1025 std::make_pair(1000044008, "VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD"),
1026 std::make_pair(1000044009, "VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX"),
1027 std::make_pair(1000049000, "VK_STRUCTURE_TYPE_STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP"),
1028 std::make_pair(1000050000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV"),
1029 std::make_pair(1000051000, "VK_STRUCTURE_TYPE_PRIVATE_VENDOR_INFO_RESERVED_OFFSET_0_NV"),
1030 std::make_pair(1000056000, "VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV"),
1031 std::make_pair(1000056001, "VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV"),
1032 std::make_pair(1000057000, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV"),
1033 std::make_pair(1000057001, "VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV"),
1034 std::make_pair(1000058000, "VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV"),
1035 std::make_pair(1000060007, "VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHR"),
1036 std::make_pair(1000060008, "VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR"),
1037 std::make_pair(1000060009, "VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR"),
1038 std::make_pair(1000060010, "VK_STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHR"),
1039 std::make_pair(1000060011, "VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHR"),
1040 std::make_pair(1000060012, "VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR"),
1041 std::make_pair(1000061000, "VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT"),
1042 std::make_pair(1000062000, "VK_STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN"),
1043 std::make_pair(1000066000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT"),
1044 std::make_pair(1000067000, "VK_STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT"),
1045 std::make_pair(1000067001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT"),
1046 std::make_pair(1000073000, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR"),
1047 std::make_pair(1000073001, "VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR"),
1048 std::make_pair(1000073002, "VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR"),
1049 std::make_pair(1000073003, "VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR"),
1050 std::make_pair(1000074000, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR"),
1051 std::make_pair(1000074001, "VK_STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHR"),
1052 std::make_pair(1000074002, "VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR"),
1053 std::make_pair(1000075000, "VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR"),
1054 std::make_pair(1000078000, "VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR"),
1055 std::make_pair(1000078001, "VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR"),
1056 std::make_pair(1000078002, "VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR"),
1057 std::make_pair(1000078003, "VK_STRUCTURE_TYPE_SEMAPHORE_GET_WIN32_HANDLE_INFO_KHR"),
1058 std::make_pair(1000079000, "VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR"),
1059 std::make_pair(1000079001, "VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR"),
1060 std::make_pair(1000080000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR"),
1061 std::make_pair(1000081000, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT"),
1062 std::make_pair(1000081001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT"),
1063 std::make_pair(1000081002, "VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT"),
1064 std::make_pair(1000084000, "VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR"),
1065 std::make_pair(1000087000, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV"),
1066 std::make_pair(1000090000, "VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_EXT"),
1067 std::make_pair(1000091000, "VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT"),
1068 std::make_pair(1000091001, "VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT"),
1069 std::make_pair(1000091002, "VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT"),
1070 std::make_pair(1000091003, "VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT"),
1071 std::make_pair(1000092000, "VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE"),
1072 std::make_pair(1000097000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX"),
1073 std::make_pair(1000098000, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV"),
1074 std::make_pair(1000099000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT"),
1075 std::make_pair(1000099001, "VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT"),
1076 std::make_pair(1000101000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT"),
1077 std::make_pair(1000101001, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT"),
1078 std::make_pair(1000102000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT"),
1079 std::make_pair(1000102001, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT"),
1080 std::make_pair(1000105000, "VK_STRUCTURE_TYPE_HDR_METADATA_EXT"),
1081 std::make_pair(1000111000, "VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR"),
1082 std::make_pair(1000114000, "VK_STRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHR"),
1083 std::make_pair(1000114001, "VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR"),
1084 std::make_pair(1000114002, "VK_STRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHR"),
1085 std::make_pair(1000115000, "VK_STRUCTURE_TYPE_IMPORT_FENCE_FD_INFO_KHR"),
1086 std::make_pair(1000115001, "VK_STRUCTURE_TYPE_FENCE_GET_FD_INFO_KHR"),
1087 std::make_pair(1000116000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR"),
1088 std::make_pair(1000116001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR"),
1089 std::make_pair(1000116002, "VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR"),
1090 std::make_pair(1000116003, "VK_STRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHR"),
1091 std::make_pair(1000116004, "VK_STRUCTURE_TYPE_ACQUIRE_PROFILING_LOCK_INFO_KHR"),
1092 std::make_pair(1000116005, "VK_STRUCTURE_TYPE_PERFORMANCE_COUNTER_KHR"),
1093 std::make_pair(1000116006, "VK_STRUCTURE_TYPE_PERFORMANCE_COUNTER_DESCRIPTION_KHR"),
1094 std::make_pair(1000116007, "VK_STRUCTURE_TYPE_PERFORMANCE_QUERY_RESERVATION_INFO_KHR"),
1095 std::make_pair(1000119000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR"),
1096 std::make_pair(1000119001, "VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR"),
1097 std::make_pair(1000119002, "VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR"),
1098 std::make_pair(1000121000, "VK_STRUCTURE_TYPE_DISPLAY_PROPERTIES_2_KHR"),
1099 std::make_pair(1000121001, "VK_STRUCTURE_TYPE_DISPLAY_PLANE_PROPERTIES_2_KHR"),
1100 std::make_pair(1000121002, "VK_STRUCTURE_TYPE_DISPLAY_MODE_PROPERTIES_2_KHR"),
1101 std::make_pair(1000121003, "VK_STRUCTURE_TYPE_DISPLAY_PLANE_INFO_2_KHR"),
1102 std::make_pair(1000121004, "VK_STRUCTURE_TYPE_DISPLAY_PLANE_CAPABILITIES_2_KHR"),
1103 std::make_pair(1000122000, "VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK"),
1104 std::make_pair(1000123000, "VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK"),
1105 std::make_pair(1000128000, "VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT"),
1106 std::make_pair(1000128001, "VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_TAG_INFO_EXT"),
1107 std::make_pair(1000128002, "VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT"),
1108 std::make_pair(1000128003, "VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT"),
1109 std::make_pair(1000128004, "VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT"),
1110 std::make_pair(1000129000, "VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_USAGE_ANDROID"),
1111 std::make_pair(1000129001, "VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_PROPERTIES_ANDROID"),
1112 std::make_pair(1000129002, "VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID"),
1113 std::make_pair(1000129003, "VK_STRUCTURE_TYPE_IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID"),
1114 std::make_pair(1000129004, "VK_STRUCTURE_TYPE_MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID"),
1115 std::make_pair(1000129005, "VK_STRUCTURE_TYPE_EXTERNAL_FORMAT_ANDROID"),
1116 std::make_pair(1000129006, "VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID"),
1117 std::make_pair(1000138000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT"),
1118 std::make_pair(1000138001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT"),
1119 std::make_pair(1000138002, "VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT"),
1120 std::make_pair(1000138003, "VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO_EXT"),
1121 std::make_pair(1000143000, "VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT"),
1122 std::make_pair(1000143001, "VK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT"),
1123 std::make_pair(1000143002, "VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT"),
1124 std::make_pair(1000143003, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT"),
1125 std::make_pair(1000143004, "VK_STRUCTURE_TYPE_MULTISAMPLE_PROPERTIES_EXT"),
1126 std::make_pair(1000148000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT"),
1127 std::make_pair(1000148001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT"),
1128 std::make_pair(1000148002, "VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT"),
1129 std::make_pair(1000149000, "VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV"),
1130 std::make_pair(1000150007, "VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR"),
1131 std::make_pair(1000150000, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR"),
1132 std::make_pair(1000150002, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_DEVICE_ADDRESS_INFO_KHR"),
1133 std::make_pair(1000150003, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_AABBS_DATA_KHR"),
1134 std::make_pair(1000150004, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_INSTANCES_DATA_KHR"),
1135 std::make_pair(1000150005, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR"),
1136 std::make_pair(1000150006, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_KHR"),
1137 std::make_pair(1000150009, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_VERSION_INFO_KHR"),
1138 std::make_pair(1000150010, "VK_STRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_INFO_KHR"),
1139 std::make_pair(1000150011, "VK_STRUCTURE_TYPE_COPY_ACCELERATION_STRUCTURE_TO_MEMORY_INFO_KHR"),
1140 std::make_pair(1000150012, "VK_STRUCTURE_TYPE_COPY_MEMORY_TO_ACCELERATION_STRUCTURE_INFO_KHR"),
1141 std::make_pair(1000150013, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR"),
1142 std::make_pair(1000150014, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR"),
1143 std::make_pair(1000150017, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_KHR"),
1144 std::make_pair(1000150020, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_SIZES_INFO_KHR"),
1145 std::make_pair(1000347000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR"),
1146 std::make_pair(1000347001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR"),
1147 std::make_pair(1000150015, "VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CREATE_INFO_KHR"),
1148 std::make_pair(1000150016, "VK_STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR"),
1149 std::make_pair(1000150018, "VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_INTERFACE_CREATE_INFO_KHR"),
1150 std::make_pair(1000348013, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR"),
1151 std::make_pair(1000152000, "VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV"),
1152 std::make_pair(1000154000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV"),
1153 std::make_pair(1000154001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV"),
1154 std::make_pair(1000158000, "VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT"),
1155 std::make_pair(1000158002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT"),
1156 std::make_pair(1000158003, "VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT"),
1157 std::make_pair(1000158004, "VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT"),
1158 std::make_pair(1000158005, "VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT"),
1159 std::make_pair(1000158006, "VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT"),
1160 std::make_pair(1000160000, "VK_STRUCTURE_TYPE_VALIDATION_CACHE_CREATE_INFO_EXT"),
1161 std::make_pair(1000160001, "VK_STRUCTURE_TYPE_SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT"),
1162 std::make_pair(1000163000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR"),
1163 std::make_pair(1000163001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR"),
1164 std::make_pair(1000164000, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV"),
1165 std::make_pair(1000164001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV"),
1166 std::make_pair(1000164002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV"),
1167 std::make_pair(1000164005, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NV"),
1168 std::make_pair(1000165000, "VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CREATE_INFO_NV"),
1169 std::make_pair(1000165001, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_CREATE_INFO_NV"),
1170 std::make_pair(1000165003, "VK_STRUCTURE_TYPE_GEOMETRY_NV"),
1171 std::make_pair(1000165004, "VK_STRUCTURE_TYPE_GEOMETRY_TRIANGLES_NV"),
1172 std::make_pair(1000165005, "VK_STRUCTURE_TYPE_GEOMETRY_AABB_NV"),
1173 std::make_pair(1000165006, "VK_STRUCTURE_TYPE_BIND_ACCELERATION_STRUCTURE_MEMORY_INFO_NV"),
1174 std::make_pair(1000165007, "VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NV"),
1175 std::make_pair(1000165008, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_MEMORY_REQUIREMENTS_INFO_NV"),
1176 std::make_pair(1000165009, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV"),
1177 std::make_pair(1000165011, "VK_STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_NV"),
1178 std::make_pair(1000165012, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_INFO_NV"),
1179 std::make_pair(1000166000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV"),
1180 std::make_pair(1000166001, "VK_STRUCTURE_TYPE_PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV"),
1181 std::make_pair(1000170000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT"),
1182 std::make_pair(1000170001, "VK_STRUCTURE_TYPE_FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT"),
1183 std::make_pair(1000174000, "VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT"),
1184 std::make_pair(1000178000, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT"),
1185 std::make_pair(1000178001, "VK_STRUCTURE_TYPE_MEMORY_HOST_POINTER_PROPERTIES_EXT"),
1186 std::make_pair(1000178002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT"),
1187 std::make_pair(1000181000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR"),
1188 std::make_pair(1000183000, "VK_STRUCTURE_TYPE_PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD"),
1189 std::make_pair(1000184000, "VK_STRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_EXT"),
1190 std::make_pair(1000185000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD"),
1191 std::make_pair(1000187000, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_CAPABILITIES_EXT"),
1192 std::make_pair(1000187001, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_CREATE_INFO_EXT"),
1193 std::make_pair(1000187002, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT"),
1194 std::make_pair(1000187003, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT"),
1195 std::make_pair(1000187004, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PROFILE_EXT"),
1196 std::make_pair(1000187005, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PICTURE_INFO_EXT"),
1197 std::make_pair(1000187006, "VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_DPB_SLOT_INFO_EXT"),
1198 std::make_pair(1000189000, "VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD"),
1199 std::make_pair(1000190000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT"),
1200 std::make_pair(1000190001, "VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT"),
1201 std::make_pair(1000190002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT"),
1202 std::make_pair(1000191000, "VK_STRUCTURE_TYPE_PRESENT_FRAME_TOKEN_GGP"),
1203 std::make_pair(1000192000, "VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT"),
1204 std::make_pair(1000201000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV"),
1205 std::make_pair(1000202000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV"),
1206 std::make_pair(1000202001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV"),
1207 std::make_pair(1000203000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV"),
1208 std::make_pair(1000204000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV"),
1209 std::make_pair(1000205000, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV"),
1210 std::make_pair(1000205002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV"),
1211 std::make_pair(1000206000, "VK_STRUCTURE_TYPE_CHECKPOINT_DATA_NV"),
1212 std::make_pair(1000206001, "VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV"),
1213 std::make_pair(1000209000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL"),
1214 std::make_pair(1000210000, "VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL"),
1215 std::make_pair(1000210001, "VK_STRUCTURE_TYPE_INITIALIZE_PERFORMANCE_API_INFO_INTEL"),
1216 std::make_pair(1000210002, "VK_STRUCTURE_TYPE_PERFORMANCE_MARKER_INFO_INTEL"),
1217 std::make_pair(1000210003, "VK_STRUCTURE_TYPE_PERFORMANCE_STREAM_MARKER_INFO_INTEL"),
1218 std::make_pair(1000210004, "VK_STRUCTURE_TYPE_PERFORMANCE_OVERRIDE_INFO_INTEL"),
1219 std::make_pair(1000210005, "VK_STRUCTURE_TYPE_PERFORMANCE_CONFIGURATION_ACQUIRE_INFO_INTEL"),
1220 std::make_pair(1000212000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT"),
1221 std::make_pair(1000213000, "VK_STRUCTURE_TYPE_DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD"),
1222 std::make_pair(1000213001, "VK_STRUCTURE_TYPE_SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD"),
1223 std::make_pair(1000214000, "VK_STRUCTURE_TYPE_IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA"),
1224 std::make_pair(1000215000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES_KHR"),
1225 std::make_pair(1000217000, "VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT"),
1226 std::make_pair(1000218000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT"),
1227 std::make_pair(1000218001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT"),
1228 std::make_pair(1000218002, "VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT"),
1229 std::make_pair(1000225000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT"),
1230 std::make_pair(1000225001, "VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT"),
1231 std::make_pair(1000225002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT"),
1232 std::make_pair(1000226000, "VK_STRUCTURE_TYPE_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR"),
1233 std::make_pair(1000226001, "VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR"),
1234 std::make_pair(1000226002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_PROPERTIES_KHR"),
1235 std::make_pair(1000226003, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR"),
1236 std::make_pair(1000226004, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_KHR"),
1237 std::make_pair(1000227000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD"),
1238 std::make_pair(1000229000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD"),
1239 std::make_pair(1000234000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT"),
1240 std::make_pair(1000237000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT"),
1241 std::make_pair(1000238000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT"),
1242 std::make_pair(1000238001, "VK_STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT"),
1243 std::make_pair(1000239000, "VK_STRUCTURE_TYPE_SURFACE_PROTECTED_CAPABILITIES_KHR"),
1244 std::make_pair(1000240000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV"),
1245 std::make_pair(1000244000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT"),
1246 std::make_pair(1000244002, "VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT"),
1247 std::make_pair(1000245000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TOOL_PROPERTIES_EXT"),
1248 std::make_pair(1000247000, "VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT"),
1249 std::make_pair(1000248000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR"),
1250 std::make_pair(1000249000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV"),
1251 std::make_pair(1000249001, "VK_STRUCTURE_TYPE_COOPERATIVE_MATRIX_PROPERTIES_NV"),
1252 std::make_pair(1000249002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV"),
1253 std::make_pair(1000250000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV"),
1254 std::make_pair(1000250001, "VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV"),
1255 std::make_pair(1000250002, "VK_STRUCTURE_TYPE_FRAMEBUFFER_MIXED_SAMPLES_COMBINATION_NV"),
1256 std::make_pair(1000251000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT"),
1257 std::make_pair(1000252000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT"),
1258 std::make_pair(1000254000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXT"),
1259 std::make_pair(1000254001, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT"),
1260 std::make_pair(1000254002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT"),
1261 std::make_pair(1000255000, "VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT"),
1262 std::make_pair(1000255002, "VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT"),
1263 std::make_pair(1000255001, "VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT"),
1264 std::make_pair(1000256000, "VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT"),
1265 std::make_pair(1000259000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT"),
1266 std::make_pair(1000259001, "VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT"),
1267 std::make_pair(1000259002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT"),
1268 std::make_pair(1000260000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT"),
1269 std::make_pair(1000265000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT"),
1270 std::make_pair(1000267000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT"),
1271 std::make_pair(1000269000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR"),
1272 std::make_pair(1000269001, "VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR"),
1273 std::make_pair(1000269002, "VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_PROPERTIES_KHR"),
1274 std::make_pair(1000269003, "VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_INFO_KHR"),
1275 std::make_pair(1000269004, "VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_STATISTIC_KHR"),
1276 std::make_pair(1000269005, "VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_INTERNAL_REPRESENTATION_KHR"),
1277 std::make_pair(1000273000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT"),
1278 std::make_pair(1000276000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT"),
1279 std::make_pair(1000277000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV"),
1280 std::make_pair(1000277001, "VK_STRUCTURE_TYPE_GRAPHICS_SHADER_GROUP_CREATE_INFO_NV"),
1281 std::make_pair(1000277002, "VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV"),
1282 std::make_pair(1000277003, "VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_TOKEN_NV"),
1283 std::make_pair(1000277004, "VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NV"),
1284 std::make_pair(1000277005, "VK_STRUCTURE_TYPE_GENERATED_COMMANDS_INFO_NV"),
1285 std::make_pair(1000277006, "VK_STRUCTURE_TYPE_GENERATED_COMMANDS_MEMORY_REQUIREMENTS_INFO_NV"),
1286 std::make_pair(1000277007, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV"),
1287 std::make_pair(1000278000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NV"),
1288 std::make_pair(1000278001, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_VIEWPORT_SCISSOR_INFO_NV"),
1289 std::make_pair(1000280000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR"),
1290 std::make_pair(1000280001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES_KHR"),
1291 std::make_pair(1000281000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT"),
1292 std::make_pair(1000281001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES_EXT"),
1293 std::make_pair(1000282000, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM"),
1294 std::make_pair(1000282001, "VK_STRUCTURE_TYPE_RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM"),
1295 std::make_pair(1000284000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_MEMORY_REPORT_FEATURES_EXT"),
1296 std::make_pair(1000284001, "VK_STRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXT"),
1297 std::make_pair(1000284002, "VK_STRUCTURE_TYPE_DEVICE_MEMORY_REPORT_CALLBACK_DATA_EXT"),
1298 std::make_pair(1000286000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT"),
1299 std::make_pair(1000286001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT"),
1300 std::make_pair(1000287000, "VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT"),
1301 std::make_pair(1000287001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT"),
1302 std::make_pair(1000287002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT"),
1303 std::make_pair(1000290000, "VK_STRUCTURE_TYPE_PIPELINE_LIBRARY_CREATE_INFO_KHR"),
1304 std::make_pair(1000294000, "VK_STRUCTURE_TYPE_PRESENT_ID_KHR"),
1305 std::make_pair(1000294001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR"),
1306 std::make_pair(1000295000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIVATE_DATA_FEATURES_EXT"),
1307 std::make_pair(1000295001, "VK_STRUCTURE_TYPE_DEVICE_PRIVATE_DATA_CREATE_INFO_EXT"),
1308 std::make_pair(1000295002, "VK_STRUCTURE_TYPE_PRIVATE_DATA_SLOT_CREATE_INFO_EXT"),
1309 std::make_pair(1000297000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT"),
1310 std::make_pair(1000299000, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_INFO_KHR"),
1311 std::make_pair(1000299001, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_INFO_KHR"),
1312 std::make_pair(1000299002, "VK_STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_LAYER_INFO_KHR"),
1313 std::make_pair(1000300000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV"),
1314 std::make_pair(1000300001, "VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV"),
1315 std::make_pair(1000308000, "VK_STRUCTURE_TYPE_REFRESH_OBJECT_LIST_KHR"),
1316 std::make_pair(1000309000, "VK_STRUCTURE_TYPE_RESERVED_QCOM"),
1317 std::make_pair(1000314000, "VK_STRUCTURE_TYPE_MEMORY_BARRIER_2_KHR"),
1318 std::make_pair(1000314001, "VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER_2_KHR"),
1319 std::make_pair(1000314002, "VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR"),
1320 std::make_pair(1000314003, "VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR"),
1321 std::make_pair(1000314004, "VK_STRUCTURE_TYPE_SUBMIT_INFO_2_KHR"),
1322 std::make_pair(1000314005, "VK_STRUCTURE_TYPE_SEMAPHORE_SUBMIT_INFO_KHR"),
1323 std::make_pair(1000314006, "VK_STRUCTURE_TYPE_COMMAND_BUFFER_SUBMIT_INFO_KHR"),
1324 std::make_pair(1000314007, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR"),
1325 std::make_pair(1000314008, "VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV"),
1326 std::make_pair(1000314009, "VK_STRUCTURE_TYPE_CHECKPOINT_DATA_2_NV"),
1327 std::make_pair(1000323000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR"),
1328 std::make_pair(1000325000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR"),
1329 std::make_pair(1000326000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV"),
1330 std::make_pair(1000326001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NV"),
1331 std::make_pair(1000326002, "VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NV"),
1332 std::make_pair(1000327000, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NV"),
1333 std::make_pair(1000327001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_MOTION_BLUR_FEATURES_NV"),
1334 std::make_pair(1000327002, "VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_MOTION_INFO_NV"),
1335 std::make_pair(1000330000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT"),
1336 std::make_pair(1000332000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_FEATURES_EXT"),
1337 std::make_pair(1000332001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_PROPERTIES_EXT"),
1338 std::make_pair(1000333000, "VK_STRUCTURE_TYPE_COPY_COMMAND_TRANSFORM_INFO_QCOM"),
1339 std::make_pair(1000335000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT"),
1340 std::make_pair(1000336000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR"),
1341 std::make_pair(1000337000, "VK_STRUCTURE_TYPE_COPY_BUFFER_INFO_2_KHR"),
1342 std::make_pair(1000337001, "VK_STRUCTURE_TYPE_COPY_IMAGE_INFO_2_KHR"),
1343 std::make_pair(1000337002, "VK_STRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2_KHR"),
1344 std::make_pair(1000337003, "VK_STRUCTURE_TYPE_COPY_IMAGE_TO_BUFFER_INFO_2_KHR"),
1345 std::make_pair(1000337004, "VK_STRUCTURE_TYPE_BLIT_IMAGE_INFO_2_KHR"),
1346 std::make_pair(1000337005, "VK_STRUCTURE_TYPE_RESOLVE_IMAGE_INFO_2_KHR"),
1347 std::make_pair(1000337006, "VK_STRUCTURE_TYPE_BUFFER_COPY_2_KHR"),
1348 std::make_pair(1000337007, "VK_STRUCTURE_TYPE_IMAGE_COPY_2_KHR"),
1349 std::make_pair(1000337008, "VK_STRUCTURE_TYPE_IMAGE_BLIT_2_KHR"),
1350 std::make_pair(1000337009, "VK_STRUCTURE_TYPE_BUFFER_IMAGE_COPY_2_KHR"),
1351 std::make_pair(1000337010, "VK_STRUCTURE_TYPE_IMAGE_RESOLVE_2_KHR"),
1352 std::make_pair(1000340000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT"),
1353 std::make_pair(1000342000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_FEATURES_ARM"),
1354 std::make_pair(1000344000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT"),
1355 std::make_pair(1000346000, "VK_STRUCTURE_TYPE_DIRECTFB_SURFACE_CREATE_INFO_EXT"),
1356 std::make_pair(1000351000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE"),
1357 std::make_pair(1000351002, "VK_STRUCTURE_TYPE_MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE"),
1358 std::make_pair(1000352000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT"),
1359 std::make_pair(1000352001, "VK_STRUCTURE_TYPE_VERTEX_INPUT_BINDING_DESCRIPTION_2_EXT"),
1360 std::make_pair(1000352002, "VK_STRUCTURE_TYPE_VERTEX_INPUT_ATTRIBUTE_DESCRIPTION_2_EXT"),
1361 std::make_pair(1000353000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT"),
1362 std::make_pair(1000355000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT"),
1363 std::make_pair(1000355001, "VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT"),
1364 std::make_pair(1000356000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT"),
1365 std::make_pair(1000360000, "VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR"),
1366 std::make_pair(1000364000, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA"),
1367 std::make_pair(1000364001, "VK_STRUCTURE_TYPE_MEMORY_ZIRCON_HANDLE_PROPERTIES_FUCHSIA"),
1368 std::make_pair(1000364002, "VK_STRUCTURE_TYPE_MEMORY_GET_ZIRCON_HANDLE_INFO_FUCHSIA"),
1369 std::make_pair(1000365000, "VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_ZIRCON_HANDLE_INFO_FUCHSIA"),
1370 std::make_pair(1000365001, "VK_STRUCTURE_TYPE_SEMAPHORE_GET_ZIRCON_HANDLE_INFO_FUCHSIA"),
1371 std::make_pair(1000366000, "VK_STRUCTURE_TYPE_BUFFER_COLLECTION_CREATE_INFO_FUCHSIA"),
1372 std::make_pair(1000366001, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA"),
1373 std::make_pair(1000366002, "VK_STRUCTURE_TYPE_BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA"),
1374 std::make_pair(1000366003, "VK_STRUCTURE_TYPE_BUFFER_COLLECTION_PROPERTIES_FUCHSIA"),
1375 std::make_pair(1000366004, "VK_STRUCTURE_TYPE_BUFFER_CONSTRAINTS_INFO_FUCHSIA"),
1376 std::make_pair(1000366005, "VK_STRUCTURE_TYPE_BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA"),
1377 std::make_pair(1000366006, "VK_STRUCTURE_TYPE_IMAGE_CONSTRAINTS_INFO_FUCHSIA"),
1378 std::make_pair(1000366007, "VK_STRUCTURE_TYPE_IMAGE_FORMAT_CONSTRAINTS_INFO_FUCHSIA"),
1379 std::make_pair(1000366008, "VK_STRUCTURE_TYPE_SYSMEM_COLOR_SPACE_FUCHSIA"),
1380 std::make_pair(1000366009, "VK_STRUCTURE_TYPE_BUFFER_COLLECTION_CONSTRAINTS_INFO_FUCHSIA"),
1381 std::make_pair(1000369000, "VK_STRUCTURE_TYPE_SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI"),
1382 std::make_pair(1000369001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI"),
1383 std::make_pair(1000369002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI"),
1384 std::make_pair(1000370000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INVOCATION_MASK_FEATURES_HUAWEI"),
1385 std::make_pair(1000371000, "VK_STRUCTURE_TYPE_MEMORY_GET_REMOTE_ADDRESS_INFO_NV"),
1386 std::make_pair(1000371001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NV"),
1387 std::make_pair(1000373000, "VK_STRUCTURE_TYPE_IMPORT_FENCE_SCI_SYNC_INFO_NV"),
1388 std::make_pair(1000373001, "VK_STRUCTURE_TYPE_EXPORT_FENCE_SCI_SYNC_INFO_NV"),
1389 std::make_pair(1000373002, "VK_STRUCTURE_TYPE_FENCE_GET_SCI_SYNC_INFO_NV"),
1390 std::make_pair(1000373003, "VK_STRUCTURE_TYPE_SCI_SYNC_ATTRIBUTES_INFO_NV"),
1391 std::make_pair(1000373004, "VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_SCI_SYNC_INFO_NV"),
1392 std::make_pair(1000373005, "VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_SCI_SYNC_INFO_NV"),
1393 std::make_pair(1000373006, "VK_STRUCTURE_TYPE_SEMAPHORE_GET_SCI_SYNC_INFO_NV"),
1394 std::make_pair(1000373007, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SCI_SYNC_FEATURES_NV"),
1395 std::make_pair(1000374000, "VK_STRUCTURE_TYPE_IMPORT_MEMORY_SCI_BUF_INFO_NV"),
1396 std::make_pair(1000374001, "VK_STRUCTURE_TYPE_EXPORT_MEMORY_SCI_BUF_INFO_NV"),
1397 std::make_pair(1000374002, "VK_STRUCTURE_TYPE_MEMORY_GET_SCI_BUF_INFO_NV"),
1398 std::make_pair(1000374003, "VK_STRUCTURE_TYPE_MEMORY_SCI_BUF_PROPERTIES_NV"),
1399 std::make_pair(1000374004, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_SCI_BUF_FEATURES_NV"),
1400 std::make_pair(1000377000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT"),
1401 std::make_pair(1000378000, "VK_STRUCTURE_TYPE_SCREEN_SURFACE_CREATE_INFO_QNX"),
1402 std::make_pair(1000381000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXT"),
1403 std::make_pair(1000381001, "VK_STRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT"),
1404 std::make_pair(1000388000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT"),
1405 std::make_pair(1000388001, "VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT"),
1406 std::make_pair(1000391000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_MIN_LOD_FEATURES_EXT"),
1407 std::make_pair(1000391001, "VK_STRUCTURE_TYPE_IMAGE_VIEW_MIN_LOD_CREATE_INFO_EXT"),
1408 std::make_pair(1000392000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT"),
1409 std::make_pair(1000392001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT"),
1410 std::make_pair(1000411000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT"),
1411 std::make_pair(1000411001, "VK_STRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT"),
1412 std::make_pair(1000412000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT"),
1413 std::make_pair(1000413000, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR"),
1414 std::make_pair(1000413001, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR"),
1415 std::make_pair(1000413002, "VK_STRUCTURE_TYPE_DEVICE_BUFFER_MEMORY_REQUIREMENTS_KHR"),
1416 std::make_pair(1000413003, "VK_STRUCTURE_TYPE_DEVICE_IMAGE_MEMORY_REQUIREMENTS_KHR"),
1417 std::make_pair(1000435000, "VK_STRUCTURE_TYPE_APPLICATION_PARAMETERS_EXT"),
1418 std::make_pair(1000489000, "VK_STRUCTURE_TYPE_SEMAPHORE_SCI_SYNC_POOL_CREATE_INFO_NV"),
1419 std::make_pair(1000489001, "VK_STRUCTURE_TYPE_SEMAPHORE_SCI_SYNC_CREATE_INFO_NV"),
1420 std::make_pair(1000489002, "VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SCI_SYNC_2_FEATURES_NV"),
1421 std::make_pair(1000373000, "VK_STRUCTURE_TYPE_IMPORT_FENCE_SCI_SYNC_INFO_NV"),
1422 std::make_pair(1000373001, "VK_STRUCTURE_TYPE_EXPORT_FENCE_SCI_SYNC_INFO_NV"),
1423 std::make_pair(1000373002, "VK_STRUCTURE_TYPE_FENCE_GET_SCI_SYNC_INFO_NV"),
1424 std::make_pair(1000373003, "VK_STRUCTURE_TYPE_SCI_SYNC_ATTRIBUTES_INFO_NV"),
1425 std::make_pair(1000489003, "VK_STRUCTURE_TYPE_DEVICE_SEMAPHORE_SCI_SYNC_POOL_RESERVATION_CREATE_INFO_NV"),
1426 };
print_VkStructureType(VkStructureType obj,const std::string & str,bool commaNeeded=true)1427 static void print_VkStructureType(VkStructureType obj, const std::string& str, bool commaNeeded=true) {
1428 PRINT_SPACE
1429 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1430 if (commaNeeded)
1431 _OUT << "\"" << VkStructureType_map[obj] << "\"," << std::endl;
1432 else
1433 _OUT << "\"" << VkStructureType_map[obj] << "\"" << std::endl;
1434 }
print_VkStructureType(const VkStructureType * obj,const std::string & str,bool commaNeeded=true)1435 static void print_VkStructureType(const VkStructureType * obj, const std::string& str, bool commaNeeded=true) {
1436 PRINT_SPACE
1437 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1438 if (commaNeeded)
1439 _OUT << "\"" << VkStructureType_map[*obj] << "\"," << std::endl;
1440 else
1441 _OUT << "\"" << VkStructureType_map[*obj] << "\"" << std::endl;
1442 }
1443
1444 static std::map<deUint64, std::string> VkAccessFlagBits_map = {
1445 std::make_pair(1ULL << 0, "VK_ACCESS_INDIRECT_COMMAND_READ_BIT"),
1446 std::make_pair(1ULL << 1, "VK_ACCESS_INDEX_READ_BIT"),
1447 std::make_pair(1ULL << 2, "VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT"),
1448 std::make_pair(1ULL << 3, "VK_ACCESS_UNIFORM_READ_BIT"),
1449 std::make_pair(1ULL << 4, "VK_ACCESS_INPUT_ATTACHMENT_READ_BIT"),
1450 std::make_pair(1ULL << 5, "VK_ACCESS_SHADER_READ_BIT"),
1451 std::make_pair(1ULL << 6, "VK_ACCESS_SHADER_WRITE_BIT"),
1452 std::make_pair(1ULL << 7, "VK_ACCESS_COLOR_ATTACHMENT_READ_BIT"),
1453 std::make_pair(1ULL << 8, "VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT"),
1454 std::make_pair(1ULL << 9, "VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT"),
1455 std::make_pair(1ULL << 10, "VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT"),
1456 std::make_pair(1ULL << 11, "VK_ACCESS_TRANSFER_READ_BIT"),
1457 std::make_pair(1ULL << 12, "VK_ACCESS_TRANSFER_WRITE_BIT"),
1458 std::make_pair(1ULL << 13, "VK_ACCESS_HOST_READ_BIT"),
1459 std::make_pair(1ULL << 14, "VK_ACCESS_HOST_WRITE_BIT"),
1460 std::make_pair(1ULL << 15, "VK_ACCESS_MEMORY_READ_BIT"),
1461 std::make_pair(1ULL << 16, "VK_ACCESS_MEMORY_WRITE_BIT"),
1462 std::make_pair(1ULL << 25, "VK_ACCESS_TRANSFORM_FEEDBACK_WRITE_BIT_EXT"),
1463 std::make_pair(1ULL << 26, "VK_ACCESS_TRANSFORM_FEEDBACK_COUNTER_READ_BIT_EXT"),
1464 std::make_pair(1ULL << 27, "VK_ACCESS_TRANSFORM_FEEDBACK_COUNTER_WRITE_BIT_EXT"),
1465 std::make_pair(1ULL << 20, "VK_ACCESS_CONDITIONAL_RENDERING_READ_BIT_EXT"),
1466 std::make_pair(1ULL << 19, "VK_ACCESS_COLOR_ATTACHMENT_READ_NONCOHERENT_BIT_EXT"),
1467 std::make_pair(1ULL << 21, "VK_ACCESS_ACCELERATION_STRUCTURE_READ_BIT_KHR"),
1468 std::make_pair(1ULL << 22, "VK_ACCESS_ACCELERATION_STRUCTURE_WRITE_BIT_KHR"),
1469 std::make_pair(1ULL << 24, "VK_ACCESS_FRAGMENT_DENSITY_MAP_READ_BIT_EXT"),
1470 std::make_pair(1ULL << 23, "VK_ACCESS_FRAGMENT_SHADING_RATE_ATTACHMENT_READ_BIT_KHR"),
1471 std::make_pair(1ULL << 17, "VK_ACCESS_COMMAND_PREPROCESS_READ_BIT_NV"),
1472 std::make_pair(1ULL << 18, "VK_ACCESS_COMMAND_PREPROCESS_WRITE_BIT_NV"),
1473 std::make_pair(0, "VK_ACCESS_NONE_KHR"),
1474 };
print_VkAccessFlagBits(VkAccessFlagBits obj,const std::string & str,bool commaNeeded=true)1475 static void print_VkAccessFlagBits(VkAccessFlagBits obj, const std::string& str, bool commaNeeded=true) {
1476 PRINT_SPACE
1477 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1478 if (commaNeeded)
1479 _OUT << "\"" << VkAccessFlagBits_map[obj] << "\"," << std::endl;
1480 else
1481 _OUT << "\"" << VkAccessFlagBits_map[obj] << "\"" << std::endl;
1482 }
print_VkAccessFlagBits(const VkAccessFlagBits * obj,const std::string & str,bool commaNeeded=true)1483 static void print_VkAccessFlagBits(const VkAccessFlagBits * obj, const std::string& str, bool commaNeeded=true) {
1484 PRINT_SPACE
1485 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1486 if (commaNeeded)
1487 _OUT << "\"" << VkAccessFlagBits_map[*obj] << "\"," << std::endl;
1488 else
1489 _OUT << "\"" << VkAccessFlagBits_map[*obj] << "\"" << std::endl;
1490 }
1491
1492 static std::map<deUint64, std::string> VkImageLayout_map = {
1493 std::make_pair(0, "VK_IMAGE_LAYOUT_UNDEFINED"),
1494 std::make_pair(1, "VK_IMAGE_LAYOUT_GENERAL"),
1495 std::make_pair(2, "VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL"),
1496 std::make_pair(3, "VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL"),
1497 std::make_pair(4, "VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL"),
1498 std::make_pair(5, "VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL"),
1499 std::make_pair(6, "VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL"),
1500 std::make_pair(7, "VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL"),
1501 std::make_pair(8, "VK_IMAGE_LAYOUT_PREINITIALIZED"),
1502 std::make_pair(1000117000, "VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL"),
1503 std::make_pair(1000117001, "VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL"),
1504 std::make_pair(1000241000, "VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL"),
1505 std::make_pair(1000241001, "VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL"),
1506 std::make_pair(1000241002, "VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL"),
1507 std::make_pair(1000241003, "VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL"),
1508 std::make_pair(1000001002, "VK_IMAGE_LAYOUT_PRESENT_SRC_KHR"),
1509 std::make_pair(1000024000, "VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR"),
1510 std::make_pair(1000024001, "VK_IMAGE_LAYOUT_VIDEO_DECODE_SRC_KHR"),
1511 std::make_pair(1000024002, "VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR"),
1512 std::make_pair(1000111000, "VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR"),
1513 std::make_pair(1000218000, "VK_IMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT"),
1514 std::make_pair(1000164003, "VK_IMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR"),
1515 std::make_pair(1000299000, "VK_IMAGE_LAYOUT_VIDEO_ENCODE_DST_KHR"),
1516 std::make_pair(1000299001, "VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR"),
1517 std::make_pair(1000299002, "VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR"),
1518 std::make_pair(1000314000, "VK_IMAGE_LAYOUT_READ_ONLY_OPTIMAL_KHR"),
1519 std::make_pair(1000314001, "VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR"),
1520 };
print_VkImageLayout(VkImageLayout obj,const std::string & str,bool commaNeeded=true)1521 static void print_VkImageLayout(VkImageLayout obj, const std::string& str, bool commaNeeded=true) {
1522 PRINT_SPACE
1523 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1524 if (commaNeeded)
1525 _OUT << "\"" << VkImageLayout_map[obj] << "\"," << std::endl;
1526 else
1527 _OUT << "\"" << VkImageLayout_map[obj] << "\"" << std::endl;
1528 }
print_VkImageLayout(const VkImageLayout * obj,const std::string & str,bool commaNeeded=true)1529 static void print_VkImageLayout(const VkImageLayout * obj, const std::string& str, bool commaNeeded=true) {
1530 PRINT_SPACE
1531 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1532 if (commaNeeded)
1533 _OUT << "\"" << VkImageLayout_map[*obj] << "\"," << std::endl;
1534 else
1535 _OUT << "\"" << VkImageLayout_map[*obj] << "\"" << std::endl;
1536 }
1537
1538 static std::map<deUint64, std::string> VkImageAspectFlagBits_map = {
1539 std::make_pair(1ULL << 0, "VK_IMAGE_ASPECT_COLOR_BIT"),
1540 std::make_pair(1ULL << 1, "VK_IMAGE_ASPECT_DEPTH_BIT"),
1541 std::make_pair(1ULL << 2, "VK_IMAGE_ASPECT_STENCIL_BIT"),
1542 std::make_pair(1ULL << 3, "VK_IMAGE_ASPECT_METADATA_BIT"),
1543 std::make_pair(1ULL << 4, "VK_IMAGE_ASPECT_PLANE_0_BIT"),
1544 std::make_pair(1ULL << 5, "VK_IMAGE_ASPECT_PLANE_1_BIT"),
1545 std::make_pair(1ULL << 6, "VK_IMAGE_ASPECT_PLANE_2_BIT"),
1546 std::make_pair(1ULL << 7, "VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT"),
1547 std::make_pair(1ULL << 8, "VK_IMAGE_ASPECT_MEMORY_PLANE_1_BIT_EXT"),
1548 std::make_pair(1ULL << 9, "VK_IMAGE_ASPECT_MEMORY_PLANE_2_BIT_EXT"),
1549 std::make_pair(1ULL << 10, "VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT"),
1550 std::make_pair(0, "VK_IMAGE_ASPECT_NONE_KHR"),
1551 };
print_VkImageAspectFlagBits(VkImageAspectFlagBits obj,const std::string & str,bool commaNeeded=true)1552 static void print_VkImageAspectFlagBits(VkImageAspectFlagBits obj, const std::string& str, bool commaNeeded=true) {
1553 PRINT_SPACE
1554 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1555 if (commaNeeded)
1556 _OUT << "\"" << VkImageAspectFlagBits_map[obj] << "\"," << std::endl;
1557 else
1558 _OUT << "\"" << VkImageAspectFlagBits_map[obj] << "\"" << std::endl;
1559 }
print_VkImageAspectFlagBits(const VkImageAspectFlagBits * obj,const std::string & str,bool commaNeeded=true)1560 static void print_VkImageAspectFlagBits(const VkImageAspectFlagBits * obj, const std::string& str, bool commaNeeded=true) {
1561 PRINT_SPACE
1562 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1563 if (commaNeeded)
1564 _OUT << "\"" << VkImageAspectFlagBits_map[*obj] << "\"," << std::endl;
1565 else
1566 _OUT << "\"" << VkImageAspectFlagBits_map[*obj] << "\"" << std::endl;
1567 }
1568
1569 static std::map<deUint64, std::string> VkObjectType_map = {
1570 std::make_pair(0, "VK_OBJECT_TYPE_UNKNOWN"),
1571 std::make_pair(1, "VK_OBJECT_TYPE_INSTANCE"),
1572 std::make_pair(2, "VK_OBJECT_TYPE_PHYSICAL_DEVICE"),
1573 std::make_pair(3, "VK_OBJECT_TYPE_DEVICE"),
1574 std::make_pair(4, "VK_OBJECT_TYPE_QUEUE"),
1575 std::make_pair(5, "VK_OBJECT_TYPE_SEMAPHORE"),
1576 std::make_pair(6, "VK_OBJECT_TYPE_COMMAND_BUFFER"),
1577 std::make_pair(7, "VK_OBJECT_TYPE_FENCE"),
1578 std::make_pair(8, "VK_OBJECT_TYPE_DEVICE_MEMORY"),
1579 std::make_pair(9, "VK_OBJECT_TYPE_BUFFER"),
1580 std::make_pair(10, "VK_OBJECT_TYPE_IMAGE"),
1581 std::make_pair(11, "VK_OBJECT_TYPE_EVENT"),
1582 std::make_pair(12, "VK_OBJECT_TYPE_QUERY_POOL"),
1583 std::make_pair(13, "VK_OBJECT_TYPE_BUFFER_VIEW"),
1584 std::make_pair(14, "VK_OBJECT_TYPE_IMAGE_VIEW"),
1585 std::make_pair(15, "VK_OBJECT_TYPE_SHADER_MODULE"),
1586 std::make_pair(16, "VK_OBJECT_TYPE_PIPELINE_CACHE"),
1587 std::make_pair(17, "VK_OBJECT_TYPE_PIPELINE_LAYOUT"),
1588 std::make_pair(18, "VK_OBJECT_TYPE_RENDER_PASS"),
1589 std::make_pair(19, "VK_OBJECT_TYPE_PIPELINE"),
1590 std::make_pair(20, "VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT"),
1591 std::make_pair(21, "VK_OBJECT_TYPE_SAMPLER"),
1592 std::make_pair(22, "VK_OBJECT_TYPE_DESCRIPTOR_POOL"),
1593 std::make_pair(23, "VK_OBJECT_TYPE_DESCRIPTOR_SET"),
1594 std::make_pair(24, "VK_OBJECT_TYPE_FRAMEBUFFER"),
1595 std::make_pair(25, "VK_OBJECT_TYPE_COMMAND_POOL"),
1596 std::make_pair(1000156000, "VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION"),
1597 std::make_pair(1000000000, "VK_OBJECT_TYPE_SURFACE_KHR"),
1598 std::make_pair(1000001000, "VK_OBJECT_TYPE_SWAPCHAIN_KHR"),
1599 std::make_pair(1000002000, "VK_OBJECT_TYPE_DISPLAY_KHR"),
1600 std::make_pair(1000002001, "VK_OBJECT_TYPE_DISPLAY_MODE_KHR"),
1601 std::make_pair(1000011000, "VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT"),
1602 std::make_pair(1000023000, "VK_OBJECT_TYPE_VIDEO_SESSION_KHR"),
1603 std::make_pair(1000023001, "VK_OBJECT_TYPE_VIDEO_SESSION_PARAMETERS_KHR"),
1604 std::make_pair(1000029000, "VK_OBJECT_TYPE_CU_MODULE_NVX"),
1605 std::make_pair(1000029001, "VK_OBJECT_TYPE_CU_FUNCTION_NVX"),
1606 std::make_pair(1000128000, "VK_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT"),
1607 std::make_pair(1000150000, "VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_KHR"),
1608 std::make_pair(1000160000, "VK_OBJECT_TYPE_VALIDATION_CACHE_EXT"),
1609 std::make_pair(1000165000, "VK_OBJECT_TYPE_ACCELERATION_STRUCTURE_NV"),
1610 std::make_pair(1000210000, "VK_OBJECT_TYPE_PERFORMANCE_CONFIGURATION_INTEL"),
1611 std::make_pair(1000268000, "VK_OBJECT_TYPE_DEFERRED_OPERATION_KHR"),
1612 std::make_pair(1000277000, "VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NV"),
1613 std::make_pair(1000295000, "VK_OBJECT_TYPE_PRIVATE_DATA_SLOT_EXT"),
1614 std::make_pair(1000366000, "VK_OBJECT_TYPE_BUFFER_COLLECTION_FUCHSIA"),
1615 std::make_pair(1000489000, "VK_OBJECT_TYPE_SEMAPHORE_SCI_SYNC_POOL_NV"),
1616 };
print_VkObjectType(VkObjectType obj,const std::string & str,bool commaNeeded=true)1617 static void print_VkObjectType(VkObjectType obj, const std::string& str, bool commaNeeded=true) {
1618 PRINT_SPACE
1619 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1620 if (commaNeeded)
1621 _OUT << "\"" << VkObjectType_map[obj] << "\"," << std::endl;
1622 else
1623 _OUT << "\"" << VkObjectType_map[obj] << "\"" << std::endl;
1624 }
print_VkObjectType(const VkObjectType * obj,const std::string & str,bool commaNeeded=true)1625 static void print_VkObjectType(const VkObjectType * obj, const std::string& str, bool commaNeeded=true) {
1626 PRINT_SPACE
1627 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1628 if (commaNeeded)
1629 _OUT << "\"" << VkObjectType_map[*obj] << "\"," << std::endl;
1630 else
1631 _OUT << "\"" << VkObjectType_map[*obj] << "\"" << std::endl;
1632 }
1633
1634 static std::map<deUint64, std::string> VkPipelineCacheHeaderVersion_map = {
1635 std::make_pair(1, "VK_PIPELINE_CACHE_HEADER_VERSION_ONE"),
1636 std::make_pair(1000298001, "VK_PIPELINE_CACHE_HEADER_VERSION_SAFETY_CRITICAL_ONE"),
1637 };
print_VkPipelineCacheHeaderVersion(VkPipelineCacheHeaderVersion obj,const std::string & str,bool commaNeeded=true)1638 static void print_VkPipelineCacheHeaderVersion(VkPipelineCacheHeaderVersion obj, const std::string& str, bool commaNeeded=true) {
1639 PRINT_SPACE
1640 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1641 if (commaNeeded)
1642 _OUT << "\"" << VkPipelineCacheHeaderVersion_map[obj] << "\"," << std::endl;
1643 else
1644 _OUT << "\"" << VkPipelineCacheHeaderVersion_map[obj] << "\"" << std::endl;
1645 }
print_VkPipelineCacheHeaderVersion(const VkPipelineCacheHeaderVersion * obj,const std::string & str,bool commaNeeded=true)1646 static void print_VkPipelineCacheHeaderVersion(const VkPipelineCacheHeaderVersion * obj, const std::string& str, bool commaNeeded=true) {
1647 PRINT_SPACE
1648 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1649 if (commaNeeded)
1650 _OUT << "\"" << VkPipelineCacheHeaderVersion_map[*obj] << "\"," << std::endl;
1651 else
1652 _OUT << "\"" << VkPipelineCacheHeaderVersion_map[*obj] << "\"" << std::endl;
1653 }
1654
1655 static std::map<deUint64, std::string> VkVendorId_map = {
1656 std::make_pair(0x10001, "VK_VENDOR_ID_VIV"),
1657 std::make_pair(0x10002, "VK_VENDOR_ID_VSI"),
1658 std::make_pair(0x10003, "VK_VENDOR_ID_KAZAN"),
1659 std::make_pair(0x10004, "VK_VENDOR_ID_CODEPLAY"),
1660 std::make_pair(0x10005, "VK_VENDOR_ID_MESA"),
1661 std::make_pair(0x10006, "VK_VENDOR_ID_POCL"),
1662 };
print_VkVendorId(VkVendorId obj,const std::string & str,bool commaNeeded=true)1663 static void print_VkVendorId(VkVendorId obj, const std::string& str, bool commaNeeded=true) {
1664 PRINT_SPACE
1665 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1666 if (commaNeeded)
1667 _OUT << "\"" << VkVendorId_map[obj] << "\"," << std::endl;
1668 else
1669 _OUT << "\"" << VkVendorId_map[obj] << "\"" << std::endl;
1670 }
print_VkVendorId(const VkVendorId * obj,const std::string & str,bool commaNeeded=true)1671 static void print_VkVendorId(const VkVendorId * obj, const std::string& str, bool commaNeeded=true) {
1672 PRINT_SPACE
1673 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1674 if (commaNeeded)
1675 _OUT << "\"" << VkVendorId_map[*obj] << "\"," << std::endl;
1676 else
1677 _OUT << "\"" << VkVendorId_map[*obj] << "\"" << std::endl;
1678 }
1679
1680 static std::map<deUint64, std::string> VkSystemAllocationScope_map = {
1681 std::make_pair(0, "VK_SYSTEM_ALLOCATION_SCOPE_COMMAND"),
1682 std::make_pair(1, "VK_SYSTEM_ALLOCATION_SCOPE_OBJECT"),
1683 std::make_pair(2, "VK_SYSTEM_ALLOCATION_SCOPE_CACHE"),
1684 std::make_pair(3, "VK_SYSTEM_ALLOCATION_SCOPE_DEVICE"),
1685 std::make_pair(4, "VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE"),
1686 };
print_VkSystemAllocationScope(VkSystemAllocationScope obj,const std::string & str,bool commaNeeded=true)1687 static void print_VkSystemAllocationScope(VkSystemAllocationScope obj, const std::string& str, bool commaNeeded=true) {
1688 PRINT_SPACE
1689 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1690 if (commaNeeded)
1691 _OUT << "\"" << VkSystemAllocationScope_map[obj] << "\"," << std::endl;
1692 else
1693 _OUT << "\"" << VkSystemAllocationScope_map[obj] << "\"" << std::endl;
1694 }
print_VkSystemAllocationScope(const VkSystemAllocationScope * obj,const std::string & str,bool commaNeeded=true)1695 static void print_VkSystemAllocationScope(const VkSystemAllocationScope * obj, const std::string& str, bool commaNeeded=true) {
1696 PRINT_SPACE
1697 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1698 if (commaNeeded)
1699 _OUT << "\"" << VkSystemAllocationScope_map[*obj] << "\"," << std::endl;
1700 else
1701 _OUT << "\"" << VkSystemAllocationScope_map[*obj] << "\"" << std::endl;
1702 }
1703
1704 static std::map<deUint64, std::string> VkInternalAllocationType_map = {
1705 std::make_pair(0, "VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE"),
1706 };
print_VkInternalAllocationType(VkInternalAllocationType obj,const std::string & str,bool commaNeeded=true)1707 static void print_VkInternalAllocationType(VkInternalAllocationType obj, const std::string& str, bool commaNeeded=true) {
1708 PRINT_SPACE
1709 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1710 if (commaNeeded)
1711 _OUT << "\"" << VkInternalAllocationType_map[obj] << "\"," << std::endl;
1712 else
1713 _OUT << "\"" << VkInternalAllocationType_map[obj] << "\"" << std::endl;
1714 }
print_VkInternalAllocationType(const VkInternalAllocationType * obj,const std::string & str,bool commaNeeded=true)1715 static void print_VkInternalAllocationType(const VkInternalAllocationType * obj, const std::string& str, bool commaNeeded=true) {
1716 PRINT_SPACE
1717 if (str != "") _OUT << "\"" << str << "\"" << " : ";
1718 if (commaNeeded)
1719 _OUT << "\"" << VkInternalAllocationType_map[*obj] << "\"," << std::endl;
1720 else
1721 _OUT << "\"" << VkInternalAllocationType_map[*obj] << "\"" << std::endl;
1722 }
1723
1724 static std::map<deUint64, std::string> VkFormat_map = {
1725 std::make_pair(0, "VK_FORMAT_UNDEFINED"),
1726 std::make_pair(1, "VK_FORMAT_R4G4_UNORM_PACK8"),
1727 std::make_pair(2, "VK_FORMAT_R4G4B4A4_UNORM_PACK16"),
1728 std::make_pair(3, "VK_FORMAT_B4G4R4A4_UNORM_PACK16"),
1729 std::make_pair(4, "VK_FORMAT_R5G6B5_UNORM_PACK16"),
1730 std::make_pair(5, "VK_FORMAT_B5G6R5_UNORM_PACK16"),
1731 std::make_pair(6, "VK_FORMAT_R5G5B5A1_UNORM_PACK16"),
1732 std::make_pair(7, "VK_FORMAT_B5G5R5A1_UNORM_PACK16"),
1733 std::make_pair(8, "VK_FORMAT_A1R5G5B5_UNORM_PACK16"),
1734 std::make_pair(9, "VK_FORMAT_R8_UNORM"),
1735 std::make_pair(10, "VK_FORMAT_R8_SNORM"),
1736 std::make_pair(11, "VK_FORMAT_R8_USCALED"),
1737 std::make_pair(12, "VK_FORMAT_R8_SSCALED"),
1738 std::make_pair(13, "VK_FORMAT_R8_UINT"),
1739 std::make_pair(14, "VK_FORMAT_R8_SINT"),
1740 std::make_pair(15, "VK_FORMAT_R8_SRGB"),
1741 std::make_pair(16, "VK_FORMAT_R8G8_UNORM"),
1742 std::make_pair(17, "VK_FORMAT_R8G8_SNORM"),
1743 std::make_pair(18, "VK_FORMAT_R8G8_USCALED"),
1744 std::make_pair(19, "VK_FORMAT_R8G8_SSCALED"),
1745 std::make_pair(20, "VK_FORMAT_R8G8_UINT"),
1746 std::make_pair(21, "VK_FORMAT_R8G8_SINT"),
1747 std::make_pair(22, "VK_FORMAT_R8G8_SRGB"),
1748 std::make_pair(23, "VK_FORMAT_R8G8B8_UNORM"),
1749 std::make_pair(24, "VK_FORMAT_R8G8B8_SNORM"),
1750 std::make_pair(25, "VK_FORMAT_R8G8B8_USCALED"),
1751 std::make_pair(26, "VK_FORMAT_R8G8B8_SSCALED"),
1752 std::make_pair(27, "VK_FORMAT_R8G8B8_UINT"),
1753 std::make_pair(28, "VK_FORMAT_R8G8B8_SINT"),
1754 std::make_pair(29, "VK_FORMAT_R8G8B8_SRGB"),
1755 std::make_pair(30, "VK_FORMAT_B8G8R8_UNORM"),
1756 std::make_pair(31, "VK_FORMAT_B8G8R8_SNORM"),
1757 std::make_pair(32, "VK_FORMAT_B8G8R8_USCALED"),
1758 std::make_pair(33, "VK_FORMAT_B8G8R8_SSCALED"),
1759 std::make_pair(34, "VK_FORMAT_B8G8R8_UINT"),
1760 std::make_pair(35, "VK_FORMAT_B8G8R8_SINT"),
1761 std::make_pair(36, "VK_FORMAT_B8G8R8_SRGB"),
1762 std::make_pair(37, "VK_FORMAT_R8G8B8A8_UNORM"),
1763 std::make_pair(38, "VK_FORMAT_R8G8B8A8_SNORM"),
1764 std::make_pair(39, "VK_FORMAT_R8G8B8A8_USCALED"),
1765 std::make_pair(40, "VK_FORMAT_R8G8B8A8_SSCALED"),
1766 std::make_pair(41, "VK_FORMAT_R8G8B8A8_UINT"),
1767 std::make_pair(42, "VK_FORMAT_R8G8B8A8_SINT"),
1768 std::make_pair(43, "VK_FORMAT_R8G8B8A8_SRGB"),
1769 std::make_pair(44, "VK_FORMAT_B8G8R8A8_UNORM"),
1770 std::make_pair(45, "VK_FORMAT_B8G8R8A8_SNORM"),
1771 std::make_pair(46, "VK_FORMAT_B8G8R8A8_USCALED"),
1772 std::make_pair(47, "VK_FORMAT_B8G8R8A8_SSCALED"),
1773 std::make_pair(48, "VK_FORMAT_B8G8R8A8_UINT"),
1774 std::make_pair(49, "VK_FORMAT_B8G8R8A8_SINT"),
1775 std::make_pair(50, "VK_FORMAT_B8G8R8A8_SRGB"),
1776 std::make_pair(51, "VK_FORMAT_A8B8G8R8_UNORM_PACK32"),
1777 std::make_pair(52, "VK_FORMAT_A8B8G8R8_SNORM_PACK32"),
1778 std::make_pair(53, "VK_FORMAT_A8B8G8R8_USCALED_PACK32"),
1779 std::make_pair(54, "VK_FORMAT_A8B8G8R8_SSCALED_PACK32"),
1780 std::make_pair(55, "VK_FORMAT_A8B8G8R8_UINT_PACK32"),
1781 std::make_pair(56, "VK_FORMAT_A8B8G8R8_SINT_PACK32"),
1782 std::make_pair(57, "VK_FORMAT_A8B8G8R8_SRGB_PACK32"),
1783 std::make_pair(58, "VK_FORMAT_A2R10G10B10_UNORM_PACK32"),
1784 std::make_pair(59, "VK_FORMAT_A2R10G10B10_SNORM_PACK32"),
1785 std::make_pair(60, "VK_FORMAT_A2R10G10B10_USCALED_PACK32"),
1786 std::make_pair(61, "VK_FORMAT_A2R10G10B10_SSCALED_PACK32"),
1787 std::make_pair(62, "VK_FORMAT_A2R10G10B10_UINT_PACK32"),
1788 std::make_pair(63, "VK_FORMAT_A2R10G10B10_SINT_PACK32"),
1789 std::make_pair(64, "VK_FORMAT_A2B10G10R10_UNORM_PACK32"),
1790 std::make_pair(65, "VK_FORMAT_A2B10G10R10_SNORM_PACK32"),
1791 std::make_pair(66, "VK_FORMAT_A2B10G10R10_USCALED_PACK32"),
1792 std::make_pair(67, "VK_FORMAT_A2B10G10R10_SSCALED_PACK32"),
1793 std::make_pair(68, "VK_FORMAT_A2B10G10R10_UINT_PACK32"),
1794 std::make_pair(69, "VK_FORMAT_A2B10G10R10_SINT_PACK32"),
1795 std::make_pair(70, "VK_FORMAT_R16_UNORM"),
1796 std::make_pair(71, "VK_FORMAT_R16_SNORM"),
1797 std::make_pair(72, "VK_FORMAT_R16_USCALED"),
1798 std::make_pair(73, "VK_FORMAT_R16_SSCALED"),
1799 std::make_pair(74, "VK_FORMAT_R16_UINT"),
1800 std::make_pair(75, "VK_FORMAT_R16_SINT"),
1801 std::make_pair(76, "VK_FORMAT_R16_SFLOAT"),
1802 std::make_pair(77, "VK_FORMAT_R16G16_UNORM"),
1803 std::make_pair(78, "VK_FORMAT_R16G16_SNORM"),
1804 std::make_pair(79, "VK_FORMAT_R16G16_USCALED"),
1805 std::make_pair(80, "VK_FORMAT_R16G16_SSCALED"),
1806 std::make_pair(81, "VK_FORMAT_R16G16_UINT"),
1807 std::make_pair(82, "VK_FORMAT_R16G16_SINT"),
1808 std::make_pair(83, "VK_FORMAT_R16G16_SFLOAT"),
1809 std::make_pair(84, "VK_FORMAT_R16G16B16_UNORM"),
1810 std::make_pair(85, "VK_FORMAT_R16G16B16_SNORM"),
1811 std::make_pair(86, "VK_FORMAT_R16G16B16_USCALED"),
1812 std::make_pair(87, "VK_FORMAT_R16G16B16_SSCALED"),
1813 std::make_pair(88, "VK_FORMAT_R16G16B16_UINT"),
1814 std::make_pair(89, "VK_FORMAT_R16G16B16_SINT"),
1815 std::make_pair(90, "VK_FORMAT_R16G16B16_SFLOAT"),
1816 std::make_pair(91, "VK_FORMAT_R16G16B16A16_UNORM"),
1817 std::make_pair(92, "VK_FORMAT_R16G16B16A16_SNORM"),
1818 std::make_pair(93, "VK_FORMAT_R16G16B16A16_USCALED"),
1819 std::make_pair(94, "VK_FORMAT_R16G16B16A16_SSCALED"),
1820 std::make_pair(95, "VK_FORMAT_R16G16B16A16_UINT"),
1821 std::make_pair(96, "VK_FORMAT_R16G16B16A16_SINT"),
1822 std::make_pair(97, "VK_FORMAT_R16G16B16A16_SFLOAT"),
1823 std::make_pair(98, "VK_FORMAT_R32_UINT"),
1824 std::make_pair(99, "VK_FORMAT_R32_SINT"),
1825 std::make_pair(100, "VK_FORMAT_R32_SFLOAT"),
1826 std::make_pair(101, "VK_FORMAT_R32G32_UINT"),
1827 std::make_pair(102, "VK_FORMAT_R32G32_SINT"),
1828 std::make_pair(103, "VK_FORMAT_R32G32_SFLOAT"),
1829 std::make_pair(104, "VK_FORMAT_R32G32B32_UINT"),
1830 std::make_pair(105, "VK_FORMAT_R32G32B32_SINT"),
1831 std::make_pair(106, "VK_FORMAT_R32G32B32_SFLOAT"),
1832 std::make_pair(107, "VK_FORMAT_R32G32B32A32_UINT"),
1833 std::make_pair(108, "VK_FORMAT_R32G32B32A32_SINT"),
1834 std::make_pair(109, "VK_FORMAT_R32G32B32A32_SFLOAT"),
1835 std::make_pair(110, "VK_FORMAT_R64_UINT"),
1836 std::make_pair(111, "VK_FORMAT_R64_SINT"),
1837 std::make_pair(112, "VK_FORMAT_R64_SFLOAT"),
1838 std::make_pair(113, "VK_FORMAT_R64G64_UINT"),
1839 std::make_pair(114, "VK_FORMAT_R64G64_SINT"),
1840 std::make_pair(115, "VK_FORMAT_R64G64_SFLOAT"),
1841 std::make_pair(116, "VK_FORMAT_R64G64B64_UINT"),
1842 std::make_pair(117, "VK_FORMAT_R64G64B64_SINT"),
1843 std::make_pair(118, "VK_FORMAT_R64G64B64_SFLOAT"),
1844 std::make_pair(119, "VK_FORMAT_R64G64B64A64_UINT"),
1845 std::make_pair(120, "VK_FORMAT_R64G64B64A64_SINT"),
1846 std::make_pair(121, "VK_FORMAT_R64G64B64A64_SFLOAT"),
1847 std::make_pair(122, "VK_FORMAT_B10G11R11_UFLOAT_PACK32"),
1848 std::make_pair(123, "VK_FORMAT_E5B9G9R9_UFLOAT_PACK32"),
1849 std::make_pair(124, "VK_FORMAT_D16_UNORM"),
1850 std::make_pair(125, "VK_FORMAT_X8_D24_UNORM_PACK32"),
1851 std::make_pair(126, "VK_FORMAT_D32_SFLOAT"),
1852 std::make_pair(127, "VK_FORMAT_S8_UINT"),
1853 std::make_pair(128, "VK_FORMAT_D16_UNORM_S8_UINT"),
1854 std::make_pair(129, "VK_FORMAT_D24_UNORM_S8_UINT"),
1855 std::make_pair(130, "VK_FORMAT_D32_SFLOAT_S8_UINT"),
1856 std::make_pair(131, "VK_FORMAT_BC1_RGB_UNORM_BLOCK"),
1857 std::make_pair(132, "VK_FORMAT_BC1_RGB_SRGB_BLOCK"),
1858 std::make_pair(133, "VK_FORMAT_BC1_RGBA_UNORM_BLOCK"),
1859 std::make_pair(134, "VK_FORMAT_BC1_RGBA_SRGB_BLOCK"),
1860 std::make_pair(135, "VK_FORMAT_BC2_UNORM_BLOCK"),
1861 std::make_pair(136, "VK_FORMAT_BC2_SRGB_BLOCK"),
1862 std::make_pair(137, "VK_FORMAT_BC3_UNORM_BLOCK"),
1863 std::make_pair(138, "VK_FORMAT_BC3_SRGB_BLOCK"),
1864 std::make_pair(139, "VK_FORMAT_BC4_UNORM_BLOCK"),
1865 std::make_pair(140, "VK_FORMAT_BC4_SNORM_BLOCK"),
1866 std::make_pair(141, "VK_FORMAT_BC5_UNORM_BLOCK"),
1867 std::make_pair(142, "VK_FORMAT_BC5_SNORM_BLOCK"),
1868 std::make_pair(143, "VK_FORMAT_BC6H_UFLOAT_BLOCK"),
1869 std::make_pair(144, "VK_FORMAT_BC6H_SFLOAT_BLOCK"),
1870 std::make_pair(145, "VK_FORMAT_BC7_UNORM_BLOCK"),
1871 std::make_pair(146, "VK_FORMAT_BC7_SRGB_BLOCK"),
1872 std::make_pair(147, "VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK"),
1873 std::make_pair(148, "VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK"),
1874 std::make_pair(149, "VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK"),
1875 std::make_pair(150, "VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK"),
1876 std::make_pair(151, "VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK"),
1877 std::make_pair(152, "VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK"),
1878 std::make_pair(153, "VK_FORMAT_EAC_R11_UNORM_BLOCK"),
1879 std::make_pair(154, "VK_FORMAT_EAC_R11_SNORM_BLOCK"),
1880 std::make_pair(155, "VK_FORMAT_EAC_R11G11_UNORM_BLOCK"),
1881 std::make_pair(156, "VK_FORMAT_EAC_R11G11_SNORM_BLOCK"),
1882 std::make_pair(157, "VK_FORMAT_ASTC_4x4_UNORM_BLOCK"),
1883 std::make_pair(158, "VK_FORMAT_ASTC_4x4_SRGB_BLOCK"),
1884 std::make_pair(159, "VK_FORMAT_ASTC_5x4_UNORM_BLOCK"),
1885 std::make_pair(160, "VK_FORMAT_ASTC_5x4_SRGB_BLOCK"),
1886 std::make_pair(161, "VK_FORMAT_ASTC_5x5_UNORM_BLOCK"),
1887 std::make_pair(162, "VK_FORMAT_ASTC_5x5_SRGB_BLOCK"),
1888 std::make_pair(163, "VK_FORMAT_ASTC_6x5_UNORM_BLOCK"),
1889 std::make_pair(164, "VK_FORMAT_ASTC_6x5_SRGB_BLOCK"),
1890 std::make_pair(165, "VK_FORMAT_ASTC_6x6_UNORM_BLOCK"),
1891 std::make_pair(166, "VK_FORMAT_ASTC_6x6_SRGB_BLOCK"),
1892 std::make_pair(167, "VK_FORMAT_ASTC_8x5_UNORM_BLOCK"),
1893 std::make_pair(168, "VK_FORMAT_ASTC_8x5_SRGB_BLOCK"),
1894 std::make_pair(169, "VK_FORMAT_ASTC_8x6_UNORM_BLOCK"),
1895 std::make_pair(170, "VK_FORMAT_ASTC_8x6_SRGB_BLOCK"),
1896 std::make_pair(171, "VK_FORMAT_ASTC_8x8_UNORM_BLOCK"),
1897 std::make_pair(172, "VK_FORMAT_ASTC_8x8_SRGB_BLOCK"),
1898 std::make_pair(173, "VK_FORMAT_ASTC_10x5_UNORM_BLOCK"),
1899 std::make_pair(174, "VK_FORMAT_ASTC_10x5_SRGB_BLOCK"),
1900 std::make_pair(175, "VK_FORMAT_ASTC_10x6_UNORM_BLOCK"),
1901 std::make_pair(176, "VK_FORMAT_ASTC_10x6_SRGB_BLOCK"),
1902 std::make_pair(177, "VK_FORMAT_ASTC_10x8_UNORM_BLOCK"),
1903 std::make_pair(178, "VK_FORMAT_ASTC_10x8_SRGB_BLOCK"),
1904 std::make_pair(179, "VK_FORMAT_ASTC_10x10_UNORM_BLOCK"),
1905 std::make_pair(180, "VK_FORMAT_ASTC_10x10_SRGB_BLOCK"),
1906 std::make_pair(181, "VK_FORMAT_ASTC_12x10_UNORM_BLOCK"),
1907 std::make_pair(182, "VK_FORMAT_ASTC_12x10_SRGB_BLOCK"),
1908 std::make_pair(183, "VK_FORMAT_ASTC_12x12_UNORM_BLOCK"),
1909 std::make_pair(184, "VK_FORMAT_ASTC_12x12_SRGB_BLOCK"),
1910 std::make_pair(1000156000, "VK_FORMAT_G8B8G8R8_422_UNORM"),
1911 std::make_pair(1000156001, "VK_FORMAT_B8G8R8G8_422_UNORM"),
1912 std::make_pair(1000156002, "VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM"),
1913 std::make_pair(1000156003, "VK_FORMAT_G8_B8R8_2PLANE_420_UNORM"),
1914 std::make_pair(1000156004, "VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM"),
1915 std::make_pair(1000156005, "VK_FORMAT_G8_B8R8_2PLANE_422_UNORM"),
1916 std::make_pair(1000156006, "VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM"),
1917 std::make_pair(1000156007, "VK_FORMAT_R10X6_UNORM_PACK16"),
1918 std::make_pair(1000156008, "VK_FORMAT_R10X6G10X6_UNORM_2PACK16"),
1919 std::make_pair(1000156009, "VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16"),
1920 std::make_pair(1000156010, "VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16"),
1921 std::make_pair(1000156011, "VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16"),
1922 std::make_pair(1000156012, "VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16"),
1923 std::make_pair(1000156013, "VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16"),
1924 std::make_pair(1000156014, "VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16"),
1925 std::make_pair(1000156015, "VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16"),
1926 std::make_pair(1000156016, "VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16"),
1927 std::make_pair(1000156017, "VK_FORMAT_R12X4_UNORM_PACK16"),
1928 std::make_pair(1000156018, "VK_FORMAT_R12X4G12X4_UNORM_2PACK16"),
1929 std::make_pair(1000156019, "VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16"),
1930 std::make_pair(1000156020, "VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16"),
1931 std::make_pair(1000156021, "VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16"),
1932 std::make_pair(1000156022, "VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16"),
1933 std::make_pair(1000156023, "VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16"),
1934 std::make_pair(1000156024, "VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16"),
1935 std::make_pair(1000156025, "VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16"),
1936 std::make_pair(1000156026, "VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16"),
1937 std::make_pair(1000156027, "VK_FORMAT_G16B16G16R16_422_UNORM"),
1938 std::make_pair(1000156028, "VK_FORMAT_B16G16R16G16_422_UNORM"),
1939 std::make_pair(1000156029, "VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM"),
1940 std::make_pair(1000156030, "VK_FORMAT_G16_B16R16_2PLANE_420_UNORM"),
1941 std::make_pair(1000156031, "VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM"),
1942 std::make_pair(1000156032, "VK_FORMAT_G16_B16R16_2PLANE_422_UNORM"),
1943 std::make_pair(1000156033, "VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM"),
1944 std::make_pair(1000054000, "VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG"),
1945 std::make_pair(1000054001, "VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG"),
1946 std::make_pair(1000054002, "VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG"),
1947 std::make_pair(1000054003, "VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG"),
1948 std::make_pair(1000054004, "VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG"),
1949 std::make_pair(1000054005, "VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG"),
1950 std::make_pair(1000054006, "VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG"),
1951 std::make_pair(1000054007, "VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG"),
1952 std::make_pair(1000066000, "VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT"),
1953 std::make_pair(1000066001, "VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT"),
1954 std::make_pair(1000066002, "VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT"),
1955 std::make_pair(1000066003, "VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT"),
1956 std::make_pair(1000066004, "VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT"),
1957 std::make_pair(1000066005, "VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT"),
1958 std::make_pair(1000066006, "VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT"),
1959 std::make_pair(1000066007, "VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT"),
1960 std::make_pair(1000066008, "VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT"),
1961 std::make_pair(1000066009, "VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT"),
1962 std::make_pair(1000066010, "VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT"),
1963 std::make_pair(1000066011, "VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT"),
1964 std::make_pair(1000066012, "VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT"),
1965 std::make_pair(1000066013, "VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT"),
1966 std::make_pair(1000288000, "VK_FORMAT_ASTC_3x3x3_UNORM_BLOCK_EXT"),
1967 std::make_pair(1000288001, "VK_FORMAT_ASTC_3x3x3_SRGB_BLOCK_EXT"),
1968 std::make_pair(1000288002, "VK_FORMAT_ASTC_3x3x3_SFLOAT_BLOCK_EXT"),
1969 std::make_pair(1000288003, "VK_FORMAT_ASTC_4x3x3_UNORM_BLOCK_EXT"),
1970 std::make_pair(1000288004, "VK_FORMAT_ASTC_4x3x3_SRGB_BLOCK_EXT"),
1971 std::make_pair(1000288005, "VK_FORMAT_ASTC_4x3x3_SFLOAT_BLOCK_EXT"),
1972 std::make_pair(1000288006, "VK_FORMAT_ASTC_4x4x3_UNORM_BLOCK_EXT"),
1973 std::make_pair(1000288007, "VK_FORMAT_ASTC_4x4x3_SRGB_BLOCK_EXT"),
1974 std::make_pair(1000288008, "VK_FORMAT_ASTC_4x4x3_SFLOAT_BLOCK_EXT"),
1975 std::make_pair(1000288009, "VK_FORMAT_ASTC_4x4x4_UNORM_BLOCK_EXT"),
1976 std::make_pair(1000288010, "VK_FORMAT_ASTC_4x4x4_SRGB_BLOCK_EXT"),
1977 std::make_pair(1000288011, "VK_FORMAT_ASTC_4x4x4_SFLOAT_BLOCK_EXT"),
1978 std::make_pair(1000288012, "VK_FORMAT_ASTC_5x4x4_UNORM_BLOCK_EXT"),
1979 std::make_pair(1000288013, "VK_FORMAT_ASTC_5x4x4_SRGB_BLOCK_EXT"),
1980 std::make_pair(1000288014, "VK_FORMAT_ASTC_5x4x4_SFLOAT_BLOCK_EXT"),
1981 std::make_pair(1000288015, "VK_FORMAT_ASTC_5x5x4_UNORM_BLOCK_EXT"),
1982 std::make_pair(1000288016, "VK_FORMAT_ASTC_5x5x4_SRGB_BLOCK_EXT"),
1983 std::make_pair(1000288017, "VK_FORMAT_ASTC_5x5x4_SFLOAT_BLOCK_EXT"),
1984 std::make_pair(1000288018, "VK_FORMAT_ASTC_5x5x5_UNORM_BLOCK_EXT"),
1985 std::make_pair(1000288019, "VK_FORMAT_ASTC_5x5x5_SRGB_BLOCK_EXT"),
1986 std::make_pair(1000288020, "VK_FORMAT_ASTC_5x5x5_SFLOAT_BLOCK_EXT"),
1987 std::make_pair(1000288021, "VK_FORMAT_ASTC_6x5x5_UNORM_BLOCK_EXT"),
1988 std::make_pair(1000288022, "VK_FORMAT_ASTC_6x5x5_SRGB_BLOCK_EXT"),
1989 std::make_pair(1000288023, "VK_FORMAT_ASTC_6x5x5_SFLOAT_BLOCK_EXT"),
1990 std::make_pair(1000288024, "VK_FORMAT_ASTC_6x6x5_UNORM_BLOCK_EXT"),
1991 std::make_pair(1000288025, "VK_FORMAT_ASTC_6x6x5_SRGB_BLOCK_EXT"),
1992 std::make_pair(1000288026, "VK_FORMAT_ASTC_6x6x5_SFLOAT_BLOCK_EXT"),
1993 std::make_pair(1000288027, "VK_FORMAT_ASTC_6x6x6_UNORM_BLOCK_EXT"),
1994 std::make_pair(1000288028, "VK_FORMAT_ASTC_6x6x6_SRGB_BLOCK_EXT"),
1995 std::make_pair(1000288029, "VK_FORMAT_ASTC_6x6x6_SFLOAT_BLOCK_EXT"),
1996 std::make_pair(1000330000, "VK_FORMAT_G8_B8R8_2PLANE_444_UNORM_EXT"),
1997 std::make_pair(1000330001, "VK_FORMAT_G10X6_B10X6R10X6_2PLANE_444_UNORM_3PACK16_EXT"),
1998 std::make_pair(1000330002, "VK_FORMAT_G12X4_B12X4R12X4_2PLANE_444_UNORM_3PACK16_EXT"),
1999 std::make_pair(1000330003, "VK_FORMAT_G16_B16R16_2PLANE_444_UNORM_EXT"),
2000 std::make_pair(1000340000, "VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT"),
2001 std::make_pair(1000340001, "VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT"),
2002 };
print_VkFormat(VkFormat obj,const std::string & str,bool commaNeeded=true)2003 static void print_VkFormat(VkFormat obj, const std::string& str, bool commaNeeded=true) {
2004 PRINT_SPACE
2005 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2006 if (commaNeeded)
2007 _OUT << "\"" << VkFormat_map[obj] << "\"," << std::endl;
2008 else
2009 _OUT << "\"" << VkFormat_map[obj] << "\"" << std::endl;
2010 }
print_VkFormat(const VkFormat * obj,const std::string & str,bool commaNeeded=true)2011 static void print_VkFormat(const VkFormat * obj, const std::string& str, bool commaNeeded=true) {
2012 PRINT_SPACE
2013 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2014 if (commaNeeded)
2015 _OUT << "\"" << VkFormat_map[*obj] << "\"," << std::endl;
2016 else
2017 _OUT << "\"" << VkFormat_map[*obj] << "\"" << std::endl;
2018 }
2019
2020 static std::map<deUint64, std::string> VkFormatFeatureFlagBits_map = {
2021 std::make_pair(1ULL << 0, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT"),
2022 std::make_pair(1ULL << 1, "VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT"),
2023 std::make_pair(1ULL << 2, "VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT"),
2024 std::make_pair(1ULL << 3, "VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT"),
2025 std::make_pair(1ULL << 4, "VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT"),
2026 std::make_pair(1ULL << 5, "VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT"),
2027 std::make_pair(1ULL << 6, "VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT"),
2028 std::make_pair(1ULL << 7, "VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT"),
2029 std::make_pair(1ULL << 8, "VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT"),
2030 std::make_pair(1ULL << 9, "VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT"),
2031 std::make_pair(1ULL << 10, "VK_FORMAT_FEATURE_BLIT_SRC_BIT"),
2032 std::make_pair(1ULL << 11, "VK_FORMAT_FEATURE_BLIT_DST_BIT"),
2033 std::make_pair(1ULL << 12, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT"),
2034 std::make_pair(1ULL << 14, "VK_FORMAT_FEATURE_TRANSFER_SRC_BIT"),
2035 std::make_pair(1ULL << 15, "VK_FORMAT_FEATURE_TRANSFER_DST_BIT"),
2036 std::make_pair(1ULL << 17, "VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT"),
2037 std::make_pair(1ULL << 18, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT"),
2038 std::make_pair(1ULL << 19, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT"),
2039 std::make_pair(1ULL << 20, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT"),
2040 std::make_pair(1ULL << 21, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT"),
2041 std::make_pair(1ULL << 22, "VK_FORMAT_FEATURE_DISJOINT_BIT"),
2042 std::make_pair(1ULL << 23, "VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT"),
2043 std::make_pair(1ULL << 16, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT"),
2044 std::make_pair(1ULL << 13, "VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG"),
2045 std::make_pair(1ULL << 25, "VK_FORMAT_FEATURE_VIDEO_DECODE_OUTPUT_BIT_KHR"),
2046 std::make_pair(1ULL << 26, "VK_FORMAT_FEATURE_VIDEO_DECODE_DPB_BIT_KHR"),
2047 std::make_pair(1ULL << 29, "VK_FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHR"),
2048 std::make_pair(1ULL << 24, "VK_FORMAT_FEATURE_FRAGMENT_DENSITY_MAP_BIT_EXT"),
2049 std::make_pair(1ULL << 30, "VK_FORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR"),
2050 std::make_pair(1ULL << 27, "VK_FORMAT_FEATURE_VIDEO_ENCODE_INPUT_BIT_KHR"),
2051 std::make_pair(1ULL << 28, "VK_FORMAT_FEATURE_VIDEO_ENCODE_DPB_BIT_KHR"),
2052 };
print_VkFormatFeatureFlagBits(VkFormatFeatureFlagBits obj,const std::string & str,bool commaNeeded=true)2053 static void print_VkFormatFeatureFlagBits(VkFormatFeatureFlagBits obj, const std::string& str, bool commaNeeded=true) {
2054 PRINT_SPACE
2055 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2056 if (commaNeeded)
2057 _OUT << "\"" << VkFormatFeatureFlagBits_map[obj] << "\"," << std::endl;
2058 else
2059 _OUT << "\"" << VkFormatFeatureFlagBits_map[obj] << "\"" << std::endl;
2060 }
print_VkFormatFeatureFlagBits(const VkFormatFeatureFlagBits * obj,const std::string & str,bool commaNeeded=true)2061 static void print_VkFormatFeatureFlagBits(const VkFormatFeatureFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2062 PRINT_SPACE
2063 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2064 if (commaNeeded)
2065 _OUT << "\"" << VkFormatFeatureFlagBits_map[*obj] << "\"," << std::endl;
2066 else
2067 _OUT << "\"" << VkFormatFeatureFlagBits_map[*obj] << "\"" << std::endl;
2068 }
2069
2070 static std::map<deUint64, std::string> VkImageCreateFlagBits_map = {
2071 std::make_pair(1ULL << 0, "VK_IMAGE_CREATE_SPARSE_BINDING_BIT"),
2072 std::make_pair(1ULL << 1, "VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT"),
2073 std::make_pair(1ULL << 2, "VK_IMAGE_CREATE_SPARSE_ALIASED_BIT"),
2074 std::make_pair(1ULL << 3, "VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT"),
2075 std::make_pair(1ULL << 4, "VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT"),
2076 std::make_pair(1ULL << 10, "VK_IMAGE_CREATE_ALIAS_BIT"),
2077 std::make_pair(1ULL << 6, "VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT"),
2078 std::make_pair(1ULL << 5, "VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT"),
2079 std::make_pair(1ULL << 7, "VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT"),
2080 std::make_pair(1ULL << 8, "VK_IMAGE_CREATE_EXTENDED_USAGE_BIT"),
2081 std::make_pair(1ULL << 11, "VK_IMAGE_CREATE_PROTECTED_BIT"),
2082 std::make_pair(1ULL << 9, "VK_IMAGE_CREATE_DISJOINT_BIT"),
2083 std::make_pair(1ULL << 13, "VK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV"),
2084 std::make_pair(1ULL << 12, "VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT"),
2085 std::make_pair(1ULL << 14, "VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT"),
2086 std::make_pair(1ULL << 16, "VK_IMAGE_CREATE_RESERVED_16_BIT_AMD"),
2087 std::make_pair(1ULL << 17, "VK_IMAGE_CREATE_RESERVED_394_BIT_EXT"),
2088 std::make_pair(1ULL << 15, "VK_IMAGE_CREATE_RESERVED_426_BIT_QCOM"),
2089 };
print_VkImageCreateFlagBits(VkImageCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2090 static void print_VkImageCreateFlagBits(VkImageCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2091 PRINT_SPACE
2092 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2093 if (commaNeeded)
2094 _OUT << "\"" << VkImageCreateFlagBits_map[obj] << "\"," << std::endl;
2095 else
2096 _OUT << "\"" << VkImageCreateFlagBits_map[obj] << "\"" << std::endl;
2097 }
print_VkImageCreateFlagBits(const VkImageCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2098 static void print_VkImageCreateFlagBits(const VkImageCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2099 PRINT_SPACE
2100 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2101 if (commaNeeded)
2102 _OUT << "\"" << VkImageCreateFlagBits_map[*obj] << "\"," << std::endl;
2103 else
2104 _OUT << "\"" << VkImageCreateFlagBits_map[*obj] << "\"" << std::endl;
2105 }
2106
2107 static std::map<deUint64, std::string> VkSampleCountFlagBits_map = {
2108 std::make_pair(1ULL << 0, "VK_SAMPLE_COUNT_1_BIT"),
2109 std::make_pair(1ULL << 1, "VK_SAMPLE_COUNT_2_BIT"),
2110 std::make_pair(1ULL << 2, "VK_SAMPLE_COUNT_4_BIT"),
2111 std::make_pair(1ULL << 3, "VK_SAMPLE_COUNT_8_BIT"),
2112 std::make_pair(1ULL << 4, "VK_SAMPLE_COUNT_16_BIT"),
2113 std::make_pair(1ULL << 5, "VK_SAMPLE_COUNT_32_BIT"),
2114 std::make_pair(1ULL << 6, "VK_SAMPLE_COUNT_64_BIT"),
2115 };
print_VkSampleCountFlagBits(VkSampleCountFlagBits obj,const std::string & str,bool commaNeeded=true)2116 static void print_VkSampleCountFlagBits(VkSampleCountFlagBits obj, const std::string& str, bool commaNeeded=true) {
2117 PRINT_SPACE
2118 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2119 if (commaNeeded)
2120 _OUT << "\"" << VkSampleCountFlagBits_map[obj] << "\"," << std::endl;
2121 else
2122 _OUT << "\"" << VkSampleCountFlagBits_map[obj] << "\"" << std::endl;
2123 }
print_VkSampleCountFlagBits(const VkSampleCountFlagBits * obj,const std::string & str,bool commaNeeded=true)2124 static void print_VkSampleCountFlagBits(const VkSampleCountFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2125 PRINT_SPACE
2126 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2127 if (commaNeeded)
2128 _OUT << "\"" << VkSampleCountFlagBits_map[*obj] << "\"," << std::endl;
2129 else
2130 _OUT << "\"" << VkSampleCountFlagBits_map[*obj] << "\"" << std::endl;
2131 }
2132
2133 static std::map<deUint64, std::string> VkImageTiling_map = {
2134 std::make_pair(0, "VK_IMAGE_TILING_OPTIMAL"),
2135 std::make_pair(1, "VK_IMAGE_TILING_LINEAR"),
2136 std::make_pair(1000158000, "VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT"),
2137 };
print_VkImageTiling(VkImageTiling obj,const std::string & str,bool commaNeeded=true)2138 static void print_VkImageTiling(VkImageTiling obj, const std::string& str, bool commaNeeded=true) {
2139 PRINT_SPACE
2140 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2141 if (commaNeeded)
2142 _OUT << "\"" << VkImageTiling_map[obj] << "\"," << std::endl;
2143 else
2144 _OUT << "\"" << VkImageTiling_map[obj] << "\"" << std::endl;
2145 }
print_VkImageTiling(const VkImageTiling * obj,const std::string & str,bool commaNeeded=true)2146 static void print_VkImageTiling(const VkImageTiling * obj, const std::string& str, bool commaNeeded=true) {
2147 PRINT_SPACE
2148 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2149 if (commaNeeded)
2150 _OUT << "\"" << VkImageTiling_map[*obj] << "\"," << std::endl;
2151 else
2152 _OUT << "\"" << VkImageTiling_map[*obj] << "\"" << std::endl;
2153 }
2154
2155 static std::map<deUint64, std::string> VkImageType_map = {
2156 std::make_pair(0, "VK_IMAGE_TYPE_1D"),
2157 std::make_pair(1, "VK_IMAGE_TYPE_2D"),
2158 std::make_pair(2, "VK_IMAGE_TYPE_3D"),
2159 };
print_VkImageType(VkImageType obj,const std::string & str,bool commaNeeded=true)2160 static void print_VkImageType(VkImageType obj, const std::string& str, bool commaNeeded=true) {
2161 PRINT_SPACE
2162 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2163 if (commaNeeded)
2164 _OUT << "\"" << VkImageType_map[obj] << "\"," << std::endl;
2165 else
2166 _OUT << "\"" << VkImageType_map[obj] << "\"" << std::endl;
2167 }
print_VkImageType(const VkImageType * obj,const std::string & str,bool commaNeeded=true)2168 static void print_VkImageType(const VkImageType * obj, const std::string& str, bool commaNeeded=true) {
2169 PRINT_SPACE
2170 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2171 if (commaNeeded)
2172 _OUT << "\"" << VkImageType_map[*obj] << "\"," << std::endl;
2173 else
2174 _OUT << "\"" << VkImageType_map[*obj] << "\"" << std::endl;
2175 }
2176
2177 static std::map<deUint64, std::string> VkImageUsageFlagBits_map = {
2178 std::make_pair(1ULL << 0, "VK_IMAGE_USAGE_TRANSFER_SRC_BIT"),
2179 std::make_pair(1ULL << 1, "VK_IMAGE_USAGE_TRANSFER_DST_BIT"),
2180 std::make_pair(1ULL << 2, "VK_IMAGE_USAGE_SAMPLED_BIT"),
2181 std::make_pair(1ULL << 3, "VK_IMAGE_USAGE_STORAGE_BIT"),
2182 std::make_pair(1ULL << 4, "VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT"),
2183 std::make_pair(1ULL << 5, "VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT"),
2184 std::make_pair(1ULL << 6, "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT"),
2185 std::make_pair(1ULL << 7, "VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT"),
2186 std::make_pair(1ULL << 10, "VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR"),
2187 std::make_pair(1ULL << 11, "VK_IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR"),
2188 std::make_pair(1ULL << 12, "VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR"),
2189 std::make_pair(1ULL << 16, "VK_IMAGE_USAGE_RESERVED_16_BIT_QCOM"),
2190 std::make_pair(1ULL << 17, "VK_IMAGE_USAGE_RESERVED_17_BIT_QCOM"),
2191 std::make_pair(1ULL << 9, "VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT"),
2192 std::make_pair(1ULL << 8, "VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR"),
2193 std::make_pair(1ULL << 13, "VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR"),
2194 std::make_pair(1ULL << 14, "VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR"),
2195 std::make_pair(1ULL << 15, "VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR"),
2196 std::make_pair(1ULL << 19, "VK_IMAGE_USAGE_RESERVED_19_BIT_EXT"),
2197 std::make_pair(1ULL << 18, "VK_IMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI"),
2198 };
print_VkImageUsageFlagBits(VkImageUsageFlagBits obj,const std::string & str,bool commaNeeded=true)2199 static void print_VkImageUsageFlagBits(VkImageUsageFlagBits obj, const std::string& str, bool commaNeeded=true) {
2200 PRINT_SPACE
2201 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2202 if (commaNeeded)
2203 _OUT << "\"" << VkImageUsageFlagBits_map[obj] << "\"," << std::endl;
2204 else
2205 _OUT << "\"" << VkImageUsageFlagBits_map[obj] << "\"" << std::endl;
2206 }
print_VkImageUsageFlagBits(const VkImageUsageFlagBits * obj,const std::string & str,bool commaNeeded=true)2207 static void print_VkImageUsageFlagBits(const VkImageUsageFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2208 PRINT_SPACE
2209 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2210 if (commaNeeded)
2211 _OUT << "\"" << VkImageUsageFlagBits_map[*obj] << "\"," << std::endl;
2212 else
2213 _OUT << "\"" << VkImageUsageFlagBits_map[*obj] << "\"" << std::endl;
2214 }
2215
2216 static std::map<deUint64, std::string> VkMemoryHeapFlagBits_map = {
2217 std::make_pair(1ULL << 0, "VK_MEMORY_HEAP_DEVICE_LOCAL_BIT"),
2218 std::make_pair(1ULL << 1, "VK_MEMORY_HEAP_MULTI_INSTANCE_BIT"),
2219 std::make_pair(1ULL << 2, "VK_MEMORY_HEAP_SEU_SAFE_BIT"),
2220 };
print_VkMemoryHeapFlagBits(VkMemoryHeapFlagBits obj,const std::string & str,bool commaNeeded=true)2221 static void print_VkMemoryHeapFlagBits(VkMemoryHeapFlagBits obj, const std::string& str, bool commaNeeded=true) {
2222 PRINT_SPACE
2223 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2224 if (commaNeeded)
2225 _OUT << "\"" << VkMemoryHeapFlagBits_map[obj] << "\"," << std::endl;
2226 else
2227 _OUT << "\"" << VkMemoryHeapFlagBits_map[obj] << "\"" << std::endl;
2228 }
print_VkMemoryHeapFlagBits(const VkMemoryHeapFlagBits * obj,const std::string & str,bool commaNeeded=true)2229 static void print_VkMemoryHeapFlagBits(const VkMemoryHeapFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2230 PRINT_SPACE
2231 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2232 if (commaNeeded)
2233 _OUT << "\"" << VkMemoryHeapFlagBits_map[*obj] << "\"," << std::endl;
2234 else
2235 _OUT << "\"" << VkMemoryHeapFlagBits_map[*obj] << "\"" << std::endl;
2236 }
2237
2238 static std::map<deUint64, std::string> VkMemoryPropertyFlagBits_map = {
2239 std::make_pair(1ULL << 0, "VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT"),
2240 std::make_pair(1ULL << 1, "VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT"),
2241 std::make_pair(1ULL << 2, "VK_MEMORY_PROPERTY_HOST_COHERENT_BIT"),
2242 std::make_pair(1ULL << 3, "VK_MEMORY_PROPERTY_HOST_CACHED_BIT"),
2243 std::make_pair(1ULL << 4, "VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT"),
2244 std::make_pair(1ULL << 5, "VK_MEMORY_PROPERTY_PROTECTED_BIT"),
2245 std::make_pair(1ULL << 6, "VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD"),
2246 std::make_pair(1ULL << 7, "VK_MEMORY_PROPERTY_DEVICE_UNCACHED_BIT_AMD"),
2247 std::make_pair(1ULL << 8, "VK_MEMORY_PROPERTY_RDMA_CAPABLE_BIT_NV"),
2248 };
print_VkMemoryPropertyFlagBits(VkMemoryPropertyFlagBits obj,const std::string & str,bool commaNeeded=true)2249 static void print_VkMemoryPropertyFlagBits(VkMemoryPropertyFlagBits obj, const std::string& str, bool commaNeeded=true) {
2250 PRINT_SPACE
2251 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2252 if (commaNeeded)
2253 _OUT << "\"" << VkMemoryPropertyFlagBits_map[obj] << "\"," << std::endl;
2254 else
2255 _OUT << "\"" << VkMemoryPropertyFlagBits_map[obj] << "\"" << std::endl;
2256 }
print_VkMemoryPropertyFlagBits(const VkMemoryPropertyFlagBits * obj,const std::string & str,bool commaNeeded=true)2257 static void print_VkMemoryPropertyFlagBits(const VkMemoryPropertyFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2258 PRINT_SPACE
2259 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2260 if (commaNeeded)
2261 _OUT << "\"" << VkMemoryPropertyFlagBits_map[*obj] << "\"," << std::endl;
2262 else
2263 _OUT << "\"" << VkMemoryPropertyFlagBits_map[*obj] << "\"" << std::endl;
2264 }
2265
2266 static std::map<deUint64, std::string> VkPhysicalDeviceType_map = {
2267 std::make_pair(0, "VK_PHYSICAL_DEVICE_TYPE_OTHER"),
2268 std::make_pair(1, "VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU"),
2269 std::make_pair(2, "VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU"),
2270 std::make_pair(3, "VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU"),
2271 std::make_pair(4, "VK_PHYSICAL_DEVICE_TYPE_CPU"),
2272 };
print_VkPhysicalDeviceType(VkPhysicalDeviceType obj,const std::string & str,bool commaNeeded=true)2273 static void print_VkPhysicalDeviceType(VkPhysicalDeviceType obj, const std::string& str, bool commaNeeded=true) {
2274 PRINT_SPACE
2275 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2276 if (commaNeeded)
2277 _OUT << "\"" << VkPhysicalDeviceType_map[obj] << "\"," << std::endl;
2278 else
2279 _OUT << "\"" << VkPhysicalDeviceType_map[obj] << "\"" << std::endl;
2280 }
print_VkPhysicalDeviceType(const VkPhysicalDeviceType * obj,const std::string & str,bool commaNeeded=true)2281 static void print_VkPhysicalDeviceType(const VkPhysicalDeviceType * obj, const std::string& str, bool commaNeeded=true) {
2282 PRINT_SPACE
2283 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2284 if (commaNeeded)
2285 _OUT << "\"" << VkPhysicalDeviceType_map[*obj] << "\"," << std::endl;
2286 else
2287 _OUT << "\"" << VkPhysicalDeviceType_map[*obj] << "\"" << std::endl;
2288 }
2289
2290 static std::map<deUint64, std::string> VkQueueFlagBits_map = {
2291 std::make_pair(1ULL << 0, "VK_QUEUE_GRAPHICS_BIT"),
2292 std::make_pair(1ULL << 1, "VK_QUEUE_COMPUTE_BIT"),
2293 std::make_pair(1ULL << 2, "VK_QUEUE_TRANSFER_BIT"),
2294 std::make_pair(1ULL << 4, "VK_QUEUE_PROTECTED_BIT"),
2295 std::make_pair(1ULL << 5, "VK_QUEUE_VIDEO_DECODE_BIT_KHR"),
2296 std::make_pair(1ULL << 6, "VK_QUEUE_VIDEO_ENCODE_BIT_KHR"),
2297 };
print_VkQueueFlagBits(VkQueueFlagBits obj,const std::string & str,bool commaNeeded=true)2298 static void print_VkQueueFlagBits(VkQueueFlagBits obj, const std::string& str, bool commaNeeded=true) {
2299 PRINT_SPACE
2300 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2301 if (commaNeeded)
2302 _OUT << "\"" << VkQueueFlagBits_map[obj] << "\"," << std::endl;
2303 else
2304 _OUT << "\"" << VkQueueFlagBits_map[obj] << "\"" << std::endl;
2305 }
print_VkQueueFlagBits(const VkQueueFlagBits * obj,const std::string & str,bool commaNeeded=true)2306 static void print_VkQueueFlagBits(const VkQueueFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2307 PRINT_SPACE
2308 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2309 if (commaNeeded)
2310 _OUT << "\"" << VkQueueFlagBits_map[*obj] << "\"," << std::endl;
2311 else
2312 _OUT << "\"" << VkQueueFlagBits_map[*obj] << "\"" << std::endl;
2313 }
2314
2315 static std::map<deUint64, std::string> VkDeviceQueueCreateFlagBits_map = {
2316 std::make_pair(1ULL << 0, "VK_DEVICE_QUEUE_CREATE_PROTECTED_BIT"),
2317 };
print_VkDeviceQueueCreateFlagBits(VkDeviceQueueCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2318 static void print_VkDeviceQueueCreateFlagBits(VkDeviceQueueCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2319 PRINT_SPACE
2320 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2321 if (commaNeeded)
2322 _OUT << "\"" << VkDeviceQueueCreateFlagBits_map[obj] << "\"," << std::endl;
2323 else
2324 _OUT << "\"" << VkDeviceQueueCreateFlagBits_map[obj] << "\"" << std::endl;
2325 }
print_VkDeviceQueueCreateFlagBits(const VkDeviceQueueCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2326 static void print_VkDeviceQueueCreateFlagBits(const VkDeviceQueueCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2327 PRINT_SPACE
2328 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2329 if (commaNeeded)
2330 _OUT << "\"" << VkDeviceQueueCreateFlagBits_map[*obj] << "\"," << std::endl;
2331 else
2332 _OUT << "\"" << VkDeviceQueueCreateFlagBits_map[*obj] << "\"" << std::endl;
2333 }
2334
2335 static std::map<deUint64, std::string> VkPipelineStageFlagBits_map = {
2336 std::make_pair(1ULL << 0, "VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT"),
2337 std::make_pair(1ULL << 1, "VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT"),
2338 std::make_pair(1ULL << 2, "VK_PIPELINE_STAGE_VERTEX_INPUT_BIT"),
2339 std::make_pair(1ULL << 3, "VK_PIPELINE_STAGE_VERTEX_SHADER_BIT"),
2340 std::make_pair(1ULL << 4, "VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT"),
2341 std::make_pair(1ULL << 5, "VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT"),
2342 std::make_pair(1ULL << 6, "VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT"),
2343 std::make_pair(1ULL << 7, "VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT"),
2344 std::make_pair(1ULL << 8, "VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT"),
2345 std::make_pair(1ULL << 9, "VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT"),
2346 std::make_pair(1ULL << 10, "VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT"),
2347 std::make_pair(1ULL << 11, "VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT"),
2348 std::make_pair(1ULL << 12, "VK_PIPELINE_STAGE_TRANSFER_BIT"),
2349 std::make_pair(1ULL << 13, "VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT"),
2350 std::make_pair(1ULL << 14, "VK_PIPELINE_STAGE_HOST_BIT"),
2351 std::make_pair(1ULL << 15, "VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT"),
2352 std::make_pair(1ULL << 16, "VK_PIPELINE_STAGE_ALL_COMMANDS_BIT"),
2353 std::make_pair(1ULL << 24, "VK_PIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT"),
2354 std::make_pair(1ULL << 18, "VK_PIPELINE_STAGE_CONDITIONAL_RENDERING_BIT_EXT"),
2355 std::make_pair(1ULL << 25, "VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_KHR"),
2356 std::make_pair(1ULL << 21, "VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR"),
2357 std::make_pair(1ULL << 19, "VK_PIPELINE_STAGE_TASK_SHADER_BIT_NV"),
2358 std::make_pair(1ULL << 20, "VK_PIPELINE_STAGE_MESH_SHADER_BIT_NV"),
2359 std::make_pair(1ULL << 23, "VK_PIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXT"),
2360 std::make_pair(1ULL << 22, "VK_PIPELINE_STAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR"),
2361 std::make_pair(1ULL << 17, "VK_PIPELINE_STAGE_COMMAND_PREPROCESS_BIT_NV"),
2362 std::make_pair(0, "VK_PIPELINE_STAGE_NONE_KHR"),
2363 };
print_VkPipelineStageFlagBits(VkPipelineStageFlagBits obj,const std::string & str,bool commaNeeded=true)2364 static void print_VkPipelineStageFlagBits(VkPipelineStageFlagBits obj, const std::string& str, bool commaNeeded=true) {
2365 PRINT_SPACE
2366 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2367 if (commaNeeded)
2368 _OUT << "\"" << VkPipelineStageFlagBits_map[obj] << "\"," << std::endl;
2369 else
2370 _OUT << "\"" << VkPipelineStageFlagBits_map[obj] << "\"" << std::endl;
2371 }
print_VkPipelineStageFlagBits(const VkPipelineStageFlagBits * obj,const std::string & str,bool commaNeeded=true)2372 static void print_VkPipelineStageFlagBits(const VkPipelineStageFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2373 PRINT_SPACE
2374 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2375 if (commaNeeded)
2376 _OUT << "\"" << VkPipelineStageFlagBits_map[*obj] << "\"," << std::endl;
2377 else
2378 _OUT << "\"" << VkPipelineStageFlagBits_map[*obj] << "\"" << std::endl;
2379 }
2380
2381 static std::map<deUint64, std::string> VkFenceCreateFlagBits_map = {
2382 std::make_pair(1ULL << 0, "VK_FENCE_CREATE_SIGNALED_BIT"),
2383 };
print_VkFenceCreateFlagBits(VkFenceCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2384 static void print_VkFenceCreateFlagBits(VkFenceCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2385 PRINT_SPACE
2386 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2387 if (commaNeeded)
2388 _OUT << "\"" << VkFenceCreateFlagBits_map[obj] << "\"," << std::endl;
2389 else
2390 _OUT << "\"" << VkFenceCreateFlagBits_map[obj] << "\"" << std::endl;
2391 }
print_VkFenceCreateFlagBits(const VkFenceCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2392 static void print_VkFenceCreateFlagBits(const VkFenceCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2393 PRINT_SPACE
2394 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2395 if (commaNeeded)
2396 _OUT << "\"" << VkFenceCreateFlagBits_map[*obj] << "\"," << std::endl;
2397 else
2398 _OUT << "\"" << VkFenceCreateFlagBits_map[*obj] << "\"" << std::endl;
2399 }
2400
2401 static std::map<deUint64, std::string> VkEventCreateFlagBits_map = {
2402 std::make_pair(1ULL << 0, "VK_EVENT_CREATE_DEVICE_ONLY_BIT_KHR"),
2403 };
print_VkEventCreateFlagBits(VkEventCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2404 static void print_VkEventCreateFlagBits(VkEventCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2405 PRINT_SPACE
2406 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2407 if (commaNeeded)
2408 _OUT << "\"" << VkEventCreateFlagBits_map[obj] << "\"," << std::endl;
2409 else
2410 _OUT << "\"" << VkEventCreateFlagBits_map[obj] << "\"" << std::endl;
2411 }
print_VkEventCreateFlagBits(const VkEventCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2412 static void print_VkEventCreateFlagBits(const VkEventCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2413 PRINT_SPACE
2414 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2415 if (commaNeeded)
2416 _OUT << "\"" << VkEventCreateFlagBits_map[*obj] << "\"," << std::endl;
2417 else
2418 _OUT << "\"" << VkEventCreateFlagBits_map[*obj] << "\"" << std::endl;
2419 }
2420
2421 static std::map<deUint64, std::string> VkQueryPipelineStatisticFlagBits_map = {
2422 std::make_pair(1ULL << 0, "VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT"),
2423 std::make_pair(1ULL << 1, "VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT"),
2424 std::make_pair(1ULL << 2, "VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT"),
2425 std::make_pair(1ULL << 3, "VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT"),
2426 std::make_pair(1ULL << 4, "VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT"),
2427 std::make_pair(1ULL << 5, "VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT"),
2428 std::make_pair(1ULL << 6, "VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT"),
2429 std::make_pair(1ULL << 7, "VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT"),
2430 std::make_pair(1ULL << 8, "VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT"),
2431 std::make_pair(1ULL << 9, "VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT"),
2432 std::make_pair(1ULL << 10, "VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT"),
2433 };
print_VkQueryPipelineStatisticFlagBits(VkQueryPipelineStatisticFlagBits obj,const std::string & str,bool commaNeeded=true)2434 static void print_VkQueryPipelineStatisticFlagBits(VkQueryPipelineStatisticFlagBits obj, const std::string& str, bool commaNeeded=true) {
2435 PRINT_SPACE
2436 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2437 if (commaNeeded)
2438 _OUT << "\"" << VkQueryPipelineStatisticFlagBits_map[obj] << "\"," << std::endl;
2439 else
2440 _OUT << "\"" << VkQueryPipelineStatisticFlagBits_map[obj] << "\"" << std::endl;
2441 }
print_VkQueryPipelineStatisticFlagBits(const VkQueryPipelineStatisticFlagBits * obj,const std::string & str,bool commaNeeded=true)2442 static void print_VkQueryPipelineStatisticFlagBits(const VkQueryPipelineStatisticFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2443 PRINT_SPACE
2444 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2445 if (commaNeeded)
2446 _OUT << "\"" << VkQueryPipelineStatisticFlagBits_map[*obj] << "\"," << std::endl;
2447 else
2448 _OUT << "\"" << VkQueryPipelineStatisticFlagBits_map[*obj] << "\"" << std::endl;
2449 }
2450
2451 static std::map<deUint64, std::string> VkQueryType_map = {
2452 std::make_pair(0, "VK_QUERY_TYPE_OCCLUSION"),
2453 std::make_pair(1, "VK_QUERY_TYPE_PIPELINE_STATISTICS"),
2454 std::make_pair(2, "VK_QUERY_TYPE_TIMESTAMP"),
2455 std::make_pair(1000023000, "VK_QUERY_TYPE_RESULT_STATUS_ONLY_KHR"),
2456 std::make_pair(1000028004, "VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT"),
2457 std::make_pair(1000116000, "VK_QUERY_TYPE_PERFORMANCE_QUERY_KHR"),
2458 std::make_pair(1000150000, "VK_QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR"),
2459 std::make_pair(1000150001, "VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR"),
2460 std::make_pair(1000165000, "VK_QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV"),
2461 std::make_pair(1000210000, "VK_QUERY_TYPE_PERFORMANCE_QUERY_INTEL"),
2462 std::make_pair(1000299000, "VK_QUERY_TYPE_VIDEO_ENCODE_BITSTREAM_BUFFER_RANGE_KHR"),
2463 };
print_VkQueryType(VkQueryType obj,const std::string & str,bool commaNeeded=true)2464 static void print_VkQueryType(VkQueryType obj, const std::string& str, bool commaNeeded=true) {
2465 PRINT_SPACE
2466 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2467 if (commaNeeded)
2468 _OUT << "\"" << VkQueryType_map[obj] << "\"," << std::endl;
2469 else
2470 _OUT << "\"" << VkQueryType_map[obj] << "\"" << std::endl;
2471 }
print_VkQueryType(const VkQueryType * obj,const std::string & str,bool commaNeeded=true)2472 static void print_VkQueryType(const VkQueryType * obj, const std::string& str, bool commaNeeded=true) {
2473 PRINT_SPACE
2474 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2475 if (commaNeeded)
2476 _OUT << "\"" << VkQueryType_map[*obj] << "\"," << std::endl;
2477 else
2478 _OUT << "\"" << VkQueryType_map[*obj] << "\"" << std::endl;
2479 }
2480
2481 static std::map<deUint64, std::string> VkQueryResultFlagBits_map = {
2482 std::make_pair(1ULL << 0, "VK_QUERY_RESULT_64_BIT"),
2483 std::make_pair(1ULL << 1, "VK_QUERY_RESULT_WAIT_BIT"),
2484 std::make_pair(1ULL << 2, "VK_QUERY_RESULT_WITH_AVAILABILITY_BIT"),
2485 std::make_pair(1ULL << 3, "VK_QUERY_RESULT_PARTIAL_BIT"),
2486 std::make_pair(1ULL << 4, "VK_QUERY_RESULT_WITH_STATUS_BIT_KHR"),
2487 };
print_VkQueryResultFlagBits(VkQueryResultFlagBits obj,const std::string & str,bool commaNeeded=true)2488 static void print_VkQueryResultFlagBits(VkQueryResultFlagBits obj, const std::string& str, bool commaNeeded=true) {
2489 PRINT_SPACE
2490 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2491 if (commaNeeded)
2492 _OUT << "\"" << VkQueryResultFlagBits_map[obj] << "\"," << std::endl;
2493 else
2494 _OUT << "\"" << VkQueryResultFlagBits_map[obj] << "\"" << std::endl;
2495 }
print_VkQueryResultFlagBits(const VkQueryResultFlagBits * obj,const std::string & str,bool commaNeeded=true)2496 static void print_VkQueryResultFlagBits(const VkQueryResultFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2497 PRINT_SPACE
2498 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2499 if (commaNeeded)
2500 _OUT << "\"" << VkQueryResultFlagBits_map[*obj] << "\"," << std::endl;
2501 else
2502 _OUT << "\"" << VkQueryResultFlagBits_map[*obj] << "\"" << std::endl;
2503 }
2504
2505 static std::map<deUint64, std::string> VkBufferCreateFlagBits_map = {
2506 std::make_pair(1ULL << 0, "VK_BUFFER_CREATE_SPARSE_BINDING_BIT"),
2507 std::make_pair(1ULL << 1, "VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT"),
2508 std::make_pair(1ULL << 2, "VK_BUFFER_CREATE_SPARSE_ALIASED_BIT"),
2509 std::make_pair(1ULL << 3, "VK_BUFFER_CREATE_PROTECTED_BIT"),
2510 std::make_pair(1ULL << 4, "VK_BUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT"),
2511 std::make_pair(1ULL << 5, "VK_BUFFER_CREATE_RESERVED_5_BIT_AMD"),
2512 };
print_VkBufferCreateFlagBits(VkBufferCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2513 static void print_VkBufferCreateFlagBits(VkBufferCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2514 PRINT_SPACE
2515 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2516 if (commaNeeded)
2517 _OUT << "\"" << VkBufferCreateFlagBits_map[obj] << "\"," << std::endl;
2518 else
2519 _OUT << "\"" << VkBufferCreateFlagBits_map[obj] << "\"" << std::endl;
2520 }
print_VkBufferCreateFlagBits(const VkBufferCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2521 static void print_VkBufferCreateFlagBits(const VkBufferCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2522 PRINT_SPACE
2523 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2524 if (commaNeeded)
2525 _OUT << "\"" << VkBufferCreateFlagBits_map[*obj] << "\"," << std::endl;
2526 else
2527 _OUT << "\"" << VkBufferCreateFlagBits_map[*obj] << "\"" << std::endl;
2528 }
2529
2530 static std::map<deUint64, std::string> VkBufferUsageFlagBits_map = {
2531 std::make_pair(1ULL << 0, "VK_BUFFER_USAGE_TRANSFER_SRC_BIT"),
2532 std::make_pair(1ULL << 1, "VK_BUFFER_USAGE_TRANSFER_DST_BIT"),
2533 std::make_pair(1ULL << 2, "VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT"),
2534 std::make_pair(1ULL << 3, "VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT"),
2535 std::make_pair(1ULL << 4, "VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT"),
2536 std::make_pair(1ULL << 5, "VK_BUFFER_USAGE_STORAGE_BUFFER_BIT"),
2537 std::make_pair(1ULL << 6, "VK_BUFFER_USAGE_INDEX_BUFFER_BIT"),
2538 std::make_pair(1ULL << 7, "VK_BUFFER_USAGE_VERTEX_BUFFER_BIT"),
2539 std::make_pair(1ULL << 8, "VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT"),
2540 std::make_pair(1ULL << 17, "VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT"),
2541 std::make_pair(1ULL << 13, "VK_BUFFER_USAGE_VIDEO_DECODE_SRC_BIT_KHR"),
2542 std::make_pair(1ULL << 14, "VK_BUFFER_USAGE_VIDEO_DECODE_DST_BIT_KHR"),
2543 std::make_pair(1ULL << 11, "VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT"),
2544 std::make_pair(1ULL << 12, "VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT"),
2545 std::make_pair(1ULL << 9, "VK_BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT"),
2546 std::make_pair(1ULL << 19, "VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR"),
2547 std::make_pair(1ULL << 20, "VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR"),
2548 std::make_pair(1ULL << 10, "VK_BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR"),
2549 std::make_pair(1ULL << 18, "VK_BUFFER_USAGE_RESERVED_18_BIT_QCOM"),
2550 std::make_pair(1ULL << 15, "VK_BUFFER_USAGE_VIDEO_ENCODE_DST_BIT_KHR"),
2551 std::make_pair(1ULL << 16, "VK_BUFFER_USAGE_VIDEO_ENCODE_SRC_BIT_KHR"),
2552 std::make_pair(1ULL << 21, "VK_BUFFER_USAGE_RESERVED_21_BIT_AMD"),
2553 std::make_pair(1ULL << 22, "VK_BUFFER_USAGE_RESERVED_22_BIT_AMD"),
2554 };
print_VkBufferUsageFlagBits(VkBufferUsageFlagBits obj,const std::string & str,bool commaNeeded=true)2555 static void print_VkBufferUsageFlagBits(VkBufferUsageFlagBits obj, const std::string& str, bool commaNeeded=true) {
2556 PRINT_SPACE
2557 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2558 if (commaNeeded)
2559 _OUT << "\"" << VkBufferUsageFlagBits_map[obj] << "\"," << std::endl;
2560 else
2561 _OUT << "\"" << VkBufferUsageFlagBits_map[obj] << "\"" << std::endl;
2562 }
print_VkBufferUsageFlagBits(const VkBufferUsageFlagBits * obj,const std::string & str,bool commaNeeded=true)2563 static void print_VkBufferUsageFlagBits(const VkBufferUsageFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2564 PRINT_SPACE
2565 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2566 if (commaNeeded)
2567 _OUT << "\"" << VkBufferUsageFlagBits_map[*obj] << "\"," << std::endl;
2568 else
2569 _OUT << "\"" << VkBufferUsageFlagBits_map[*obj] << "\"" << std::endl;
2570 }
2571
2572 static std::map<deUint64, std::string> VkSharingMode_map = {
2573 std::make_pair(0, "VK_SHARING_MODE_EXCLUSIVE"),
2574 std::make_pair(1, "VK_SHARING_MODE_CONCURRENT"),
2575 };
print_VkSharingMode(VkSharingMode obj,const std::string & str,bool commaNeeded=true)2576 static void print_VkSharingMode(VkSharingMode obj, const std::string& str, bool commaNeeded=true) {
2577 PRINT_SPACE
2578 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2579 if (commaNeeded)
2580 _OUT << "\"" << VkSharingMode_map[obj] << "\"," << std::endl;
2581 else
2582 _OUT << "\"" << VkSharingMode_map[obj] << "\"" << std::endl;
2583 }
print_VkSharingMode(const VkSharingMode * obj,const std::string & str,bool commaNeeded=true)2584 static void print_VkSharingMode(const VkSharingMode * obj, const std::string& str, bool commaNeeded=true) {
2585 PRINT_SPACE
2586 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2587 if (commaNeeded)
2588 _OUT << "\"" << VkSharingMode_map[*obj] << "\"," << std::endl;
2589 else
2590 _OUT << "\"" << VkSharingMode_map[*obj] << "\"" << std::endl;
2591 }
2592
2593 static std::map<deUint64, std::string> VkComponentSwizzle_map = {
2594 std::make_pair(0, "VK_COMPONENT_SWIZZLE_IDENTITY"),
2595 std::make_pair(1, "VK_COMPONENT_SWIZZLE_ZERO"),
2596 std::make_pair(2, "VK_COMPONENT_SWIZZLE_ONE"),
2597 std::make_pair(3, "VK_COMPONENT_SWIZZLE_R"),
2598 std::make_pair(4, "VK_COMPONENT_SWIZZLE_G"),
2599 std::make_pair(5, "VK_COMPONENT_SWIZZLE_B"),
2600 std::make_pair(6, "VK_COMPONENT_SWIZZLE_A"),
2601 };
print_VkComponentSwizzle(VkComponentSwizzle obj,const std::string & str,bool commaNeeded=true)2602 static void print_VkComponentSwizzle(VkComponentSwizzle obj, const std::string& str, bool commaNeeded=true) {
2603 PRINT_SPACE
2604 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2605 if (commaNeeded)
2606 _OUT << "\"" << VkComponentSwizzle_map[obj] << "\"," << std::endl;
2607 else
2608 _OUT << "\"" << VkComponentSwizzle_map[obj] << "\"" << std::endl;
2609 }
print_VkComponentSwizzle(const VkComponentSwizzle * obj,const std::string & str,bool commaNeeded=true)2610 static void print_VkComponentSwizzle(const VkComponentSwizzle * obj, const std::string& str, bool commaNeeded=true) {
2611 PRINT_SPACE
2612 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2613 if (commaNeeded)
2614 _OUT << "\"" << VkComponentSwizzle_map[*obj] << "\"," << std::endl;
2615 else
2616 _OUT << "\"" << VkComponentSwizzle_map[*obj] << "\"" << std::endl;
2617 }
2618
2619 static std::map<deUint64, std::string> VkImageViewCreateFlagBits_map = {
2620 std::make_pair(1ULL << 0, "VK_IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT"),
2621 std::make_pair(1ULL << 1, "VK_IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT"),
2622 };
print_VkImageViewCreateFlagBits(VkImageViewCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2623 static void print_VkImageViewCreateFlagBits(VkImageViewCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2624 PRINT_SPACE
2625 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2626 if (commaNeeded)
2627 _OUT << "\"" << VkImageViewCreateFlagBits_map[obj] << "\"," << std::endl;
2628 else
2629 _OUT << "\"" << VkImageViewCreateFlagBits_map[obj] << "\"" << std::endl;
2630 }
print_VkImageViewCreateFlagBits(const VkImageViewCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2631 static void print_VkImageViewCreateFlagBits(const VkImageViewCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2632 PRINT_SPACE
2633 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2634 if (commaNeeded)
2635 _OUT << "\"" << VkImageViewCreateFlagBits_map[*obj] << "\"," << std::endl;
2636 else
2637 _OUT << "\"" << VkImageViewCreateFlagBits_map[*obj] << "\"" << std::endl;
2638 }
2639
2640 static std::map<deUint64, std::string> VkImageViewType_map = {
2641 std::make_pair(0, "VK_IMAGE_VIEW_TYPE_1D"),
2642 std::make_pair(1, "VK_IMAGE_VIEW_TYPE_2D"),
2643 std::make_pair(2, "VK_IMAGE_VIEW_TYPE_3D"),
2644 std::make_pair(3, "VK_IMAGE_VIEW_TYPE_CUBE"),
2645 std::make_pair(4, "VK_IMAGE_VIEW_TYPE_1D_ARRAY"),
2646 std::make_pair(5, "VK_IMAGE_VIEW_TYPE_2D_ARRAY"),
2647 std::make_pair(6, "VK_IMAGE_VIEW_TYPE_CUBE_ARRAY"),
2648 };
print_VkImageViewType(VkImageViewType obj,const std::string & str,bool commaNeeded=true)2649 static void print_VkImageViewType(VkImageViewType obj, const std::string& str, bool commaNeeded=true) {
2650 PRINT_SPACE
2651 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2652 if (commaNeeded)
2653 _OUT << "\"" << VkImageViewType_map[obj] << "\"," << std::endl;
2654 else
2655 _OUT << "\"" << VkImageViewType_map[obj] << "\"" << std::endl;
2656 }
print_VkImageViewType(const VkImageViewType * obj,const std::string & str,bool commaNeeded=true)2657 static void print_VkImageViewType(const VkImageViewType * obj, const std::string& str, bool commaNeeded=true) {
2658 PRINT_SPACE
2659 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2660 if (commaNeeded)
2661 _OUT << "\"" << VkImageViewType_map[*obj] << "\"," << std::endl;
2662 else
2663 _OUT << "\"" << VkImageViewType_map[*obj] << "\"" << std::endl;
2664 }
2665
2666 static std::map<deUint64, std::string> VkPipelineCacheCreateFlagBits_map = {
2667 std::make_pair(1ULL << 2, "VK_PIPELINE_CACHE_CREATE_USE_APPLICATION_STORAGE_BIT"),
2668 std::make_pair(1ULL << 1, "VK_PIPELINE_CACHE_CREATE_RESERVED_1_BIT_EXT"),
2669 std::make_pair(1ULL << 0, "VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT_EXT"),
2670 };
print_VkPipelineCacheCreateFlagBits(VkPipelineCacheCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2671 static void print_VkPipelineCacheCreateFlagBits(VkPipelineCacheCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2672 PRINT_SPACE
2673 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2674 if (commaNeeded)
2675 _OUT << "\"" << VkPipelineCacheCreateFlagBits_map[obj] << "\"," << std::endl;
2676 else
2677 _OUT << "\"" << VkPipelineCacheCreateFlagBits_map[obj] << "\"" << std::endl;
2678 }
print_VkPipelineCacheCreateFlagBits(const VkPipelineCacheCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2679 static void print_VkPipelineCacheCreateFlagBits(const VkPipelineCacheCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2680 PRINT_SPACE
2681 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2682 if (commaNeeded)
2683 _OUT << "\"" << VkPipelineCacheCreateFlagBits_map[*obj] << "\"," << std::endl;
2684 else
2685 _OUT << "\"" << VkPipelineCacheCreateFlagBits_map[*obj] << "\"" << std::endl;
2686 }
2687
2688 static std::map<deUint64, std::string> VkBlendFactor_map = {
2689 std::make_pair(0, "VK_BLEND_FACTOR_ZERO"),
2690 std::make_pair(1, "VK_BLEND_FACTOR_ONE"),
2691 std::make_pair(2, "VK_BLEND_FACTOR_SRC_COLOR"),
2692 std::make_pair(3, "VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR"),
2693 std::make_pair(4, "VK_BLEND_FACTOR_DST_COLOR"),
2694 std::make_pair(5, "VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR"),
2695 std::make_pair(6, "VK_BLEND_FACTOR_SRC_ALPHA"),
2696 std::make_pair(7, "VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA"),
2697 std::make_pair(8, "VK_BLEND_FACTOR_DST_ALPHA"),
2698 std::make_pair(9, "VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA"),
2699 std::make_pair(10, "VK_BLEND_FACTOR_CONSTANT_COLOR"),
2700 std::make_pair(11, "VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR"),
2701 std::make_pair(12, "VK_BLEND_FACTOR_CONSTANT_ALPHA"),
2702 std::make_pair(13, "VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA"),
2703 std::make_pair(14, "VK_BLEND_FACTOR_SRC_ALPHA_SATURATE"),
2704 std::make_pair(15, "VK_BLEND_FACTOR_SRC1_COLOR"),
2705 std::make_pair(16, "VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR"),
2706 std::make_pair(17, "VK_BLEND_FACTOR_SRC1_ALPHA"),
2707 std::make_pair(18, "VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA"),
2708 };
print_VkBlendFactor(VkBlendFactor obj,const std::string & str,bool commaNeeded=true)2709 static void print_VkBlendFactor(VkBlendFactor obj, const std::string& str, bool commaNeeded=true) {
2710 PRINT_SPACE
2711 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2712 if (commaNeeded)
2713 _OUT << "\"" << VkBlendFactor_map[obj] << "\"," << std::endl;
2714 else
2715 _OUT << "\"" << VkBlendFactor_map[obj] << "\"" << std::endl;
2716 }
print_VkBlendFactor(const VkBlendFactor * obj,const std::string & str,bool commaNeeded=true)2717 static void print_VkBlendFactor(const VkBlendFactor * obj, const std::string& str, bool commaNeeded=true) {
2718 PRINT_SPACE
2719 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2720 if (commaNeeded)
2721 _OUT << "\"" << VkBlendFactor_map[*obj] << "\"," << std::endl;
2722 else
2723 _OUT << "\"" << VkBlendFactor_map[*obj] << "\"" << std::endl;
2724 }
2725
2726 static std::map<deUint64, std::string> VkBlendOp_map = {
2727 std::make_pair(0, "VK_BLEND_OP_ADD"),
2728 std::make_pair(1, "VK_BLEND_OP_SUBTRACT"),
2729 std::make_pair(2, "VK_BLEND_OP_REVERSE_SUBTRACT"),
2730 std::make_pair(3, "VK_BLEND_OP_MIN"),
2731 std::make_pair(4, "VK_BLEND_OP_MAX"),
2732 std::make_pair(1000148000, "VK_BLEND_OP_ZERO_EXT"),
2733 std::make_pair(1000148001, "VK_BLEND_OP_SRC_EXT"),
2734 std::make_pair(1000148002, "VK_BLEND_OP_DST_EXT"),
2735 std::make_pair(1000148003, "VK_BLEND_OP_SRC_OVER_EXT"),
2736 std::make_pair(1000148004, "VK_BLEND_OP_DST_OVER_EXT"),
2737 std::make_pair(1000148005, "VK_BLEND_OP_SRC_IN_EXT"),
2738 std::make_pair(1000148006, "VK_BLEND_OP_DST_IN_EXT"),
2739 std::make_pair(1000148007, "VK_BLEND_OP_SRC_OUT_EXT"),
2740 std::make_pair(1000148008, "VK_BLEND_OP_DST_OUT_EXT"),
2741 std::make_pair(1000148009, "VK_BLEND_OP_SRC_ATOP_EXT"),
2742 std::make_pair(1000148010, "VK_BLEND_OP_DST_ATOP_EXT"),
2743 std::make_pair(1000148011, "VK_BLEND_OP_XOR_EXT"),
2744 std::make_pair(1000148012, "VK_BLEND_OP_MULTIPLY_EXT"),
2745 std::make_pair(1000148013, "VK_BLEND_OP_SCREEN_EXT"),
2746 std::make_pair(1000148014, "VK_BLEND_OP_OVERLAY_EXT"),
2747 std::make_pair(1000148015, "VK_BLEND_OP_DARKEN_EXT"),
2748 std::make_pair(1000148016, "VK_BLEND_OP_LIGHTEN_EXT"),
2749 std::make_pair(1000148017, "VK_BLEND_OP_COLORDODGE_EXT"),
2750 std::make_pair(1000148018, "VK_BLEND_OP_COLORBURN_EXT"),
2751 std::make_pair(1000148019, "VK_BLEND_OP_HARDLIGHT_EXT"),
2752 std::make_pair(1000148020, "VK_BLEND_OP_SOFTLIGHT_EXT"),
2753 std::make_pair(1000148021, "VK_BLEND_OP_DIFFERENCE_EXT"),
2754 std::make_pair(1000148022, "VK_BLEND_OP_EXCLUSION_EXT"),
2755 std::make_pair(1000148023, "VK_BLEND_OP_INVERT_EXT"),
2756 std::make_pair(1000148024, "VK_BLEND_OP_INVERT_RGB_EXT"),
2757 std::make_pair(1000148025, "VK_BLEND_OP_LINEARDODGE_EXT"),
2758 std::make_pair(1000148026, "VK_BLEND_OP_LINEARBURN_EXT"),
2759 std::make_pair(1000148027, "VK_BLEND_OP_VIVIDLIGHT_EXT"),
2760 std::make_pair(1000148028, "VK_BLEND_OP_LINEARLIGHT_EXT"),
2761 std::make_pair(1000148029, "VK_BLEND_OP_PINLIGHT_EXT"),
2762 std::make_pair(1000148030, "VK_BLEND_OP_HARDMIX_EXT"),
2763 std::make_pair(1000148031, "VK_BLEND_OP_HSL_HUE_EXT"),
2764 std::make_pair(1000148032, "VK_BLEND_OP_HSL_SATURATION_EXT"),
2765 std::make_pair(1000148033, "VK_BLEND_OP_HSL_COLOR_EXT"),
2766 std::make_pair(1000148034, "VK_BLEND_OP_HSL_LUMINOSITY_EXT"),
2767 std::make_pair(1000148035, "VK_BLEND_OP_PLUS_EXT"),
2768 std::make_pair(1000148036, "VK_BLEND_OP_PLUS_CLAMPED_EXT"),
2769 std::make_pair(1000148037, "VK_BLEND_OP_PLUS_CLAMPED_ALPHA_EXT"),
2770 std::make_pair(1000148038, "VK_BLEND_OP_PLUS_DARKER_EXT"),
2771 std::make_pair(1000148039, "VK_BLEND_OP_MINUS_EXT"),
2772 std::make_pair(1000148040, "VK_BLEND_OP_MINUS_CLAMPED_EXT"),
2773 std::make_pair(1000148041, "VK_BLEND_OP_CONTRAST_EXT"),
2774 std::make_pair(1000148042, "VK_BLEND_OP_INVERT_OVG_EXT"),
2775 std::make_pair(1000148043, "VK_BLEND_OP_RED_EXT"),
2776 std::make_pair(1000148044, "VK_BLEND_OP_GREEN_EXT"),
2777 std::make_pair(1000148045, "VK_BLEND_OP_BLUE_EXT"),
2778 };
print_VkBlendOp(VkBlendOp obj,const std::string & str,bool commaNeeded=true)2779 static void print_VkBlendOp(VkBlendOp obj, const std::string& str, bool commaNeeded=true) {
2780 PRINT_SPACE
2781 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2782 if (commaNeeded)
2783 _OUT << "\"" << VkBlendOp_map[obj] << "\"," << std::endl;
2784 else
2785 _OUT << "\"" << VkBlendOp_map[obj] << "\"" << std::endl;
2786 }
print_VkBlendOp(const VkBlendOp * obj,const std::string & str,bool commaNeeded=true)2787 static void print_VkBlendOp(const VkBlendOp * obj, const std::string& str, bool commaNeeded=true) {
2788 PRINT_SPACE
2789 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2790 if (commaNeeded)
2791 _OUT << "\"" << VkBlendOp_map[*obj] << "\"," << std::endl;
2792 else
2793 _OUT << "\"" << VkBlendOp_map[*obj] << "\"" << std::endl;
2794 }
2795
2796 static std::map<deUint64, std::string> VkColorComponentFlagBits_map = {
2797 std::make_pair(1ULL << 0, "VK_COLOR_COMPONENT_R_BIT"),
2798 std::make_pair(1ULL << 1, "VK_COLOR_COMPONENT_G_BIT"),
2799 std::make_pair(1ULL << 2, "VK_COLOR_COMPONENT_B_BIT"),
2800 std::make_pair(1ULL << 3, "VK_COLOR_COMPONENT_A_BIT"),
2801 };
print_VkColorComponentFlagBits(VkColorComponentFlagBits obj,const std::string & str,bool commaNeeded=true)2802 static void print_VkColorComponentFlagBits(VkColorComponentFlagBits obj, const std::string& str, bool commaNeeded=true) {
2803 PRINT_SPACE
2804 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2805 if (commaNeeded)
2806 _OUT << "\"" << VkColorComponentFlagBits_map[obj] << "\"," << std::endl;
2807 else
2808 _OUT << "\"" << VkColorComponentFlagBits_map[obj] << "\"" << std::endl;
2809 }
print_VkColorComponentFlagBits(const VkColorComponentFlagBits * obj,const std::string & str,bool commaNeeded=true)2810 static void print_VkColorComponentFlagBits(const VkColorComponentFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2811 PRINT_SPACE
2812 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2813 if (commaNeeded)
2814 _OUT << "\"" << VkColorComponentFlagBits_map[*obj] << "\"," << std::endl;
2815 else
2816 _OUT << "\"" << VkColorComponentFlagBits_map[*obj] << "\"" << std::endl;
2817 }
2818
2819 static std::map<deUint64, std::string> VkCompareOp_map = {
2820 std::make_pair(0, "VK_COMPARE_OP_NEVER"),
2821 std::make_pair(1, "VK_COMPARE_OP_LESS"),
2822 std::make_pair(2, "VK_COMPARE_OP_EQUAL"),
2823 std::make_pair(3, "VK_COMPARE_OP_LESS_OR_EQUAL"),
2824 std::make_pair(4, "VK_COMPARE_OP_GREATER"),
2825 std::make_pair(5, "VK_COMPARE_OP_NOT_EQUAL"),
2826 std::make_pair(6, "VK_COMPARE_OP_GREATER_OR_EQUAL"),
2827 std::make_pair(7, "VK_COMPARE_OP_ALWAYS"),
2828 };
print_VkCompareOp(VkCompareOp obj,const std::string & str,bool commaNeeded=true)2829 static void print_VkCompareOp(VkCompareOp obj, const std::string& str, bool commaNeeded=true) {
2830 PRINT_SPACE
2831 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2832 if (commaNeeded)
2833 _OUT << "\"" << VkCompareOp_map[obj] << "\"," << std::endl;
2834 else
2835 _OUT << "\"" << VkCompareOp_map[obj] << "\"" << std::endl;
2836 }
print_VkCompareOp(const VkCompareOp * obj,const std::string & str,bool commaNeeded=true)2837 static void print_VkCompareOp(const VkCompareOp * obj, const std::string& str, bool commaNeeded=true) {
2838 PRINT_SPACE
2839 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2840 if (commaNeeded)
2841 _OUT << "\"" << VkCompareOp_map[*obj] << "\"," << std::endl;
2842 else
2843 _OUT << "\"" << VkCompareOp_map[*obj] << "\"" << std::endl;
2844 }
2845
2846 static std::map<deUint64, std::string> VkPipelineCreateFlagBits_map = {
2847 std::make_pair(1ULL << 0, "VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT"),
2848 std::make_pair(1ULL << 3, "VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT"),
2849 std::make_pair(1ULL << 4, "VK_PIPELINE_CREATE_DISPATCH_BASE_BIT"),
2850 std::make_pair(1ULL << 21, "VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR"),
2851 std::make_pair(1ULL << 22, "VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT"),
2852 std::make_pair(1ULL << 14, "VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR"),
2853 std::make_pair(1ULL << 15, "VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR"),
2854 std::make_pair(1ULL << 16, "VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_MISS_SHADERS_BIT_KHR"),
2855 std::make_pair(1ULL << 17, "VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR"),
2856 std::make_pair(1ULL << 12, "VK_PIPELINE_CREATE_RAY_TRACING_SKIP_TRIANGLES_BIT_KHR"),
2857 std::make_pair(1ULL << 13, "VK_PIPELINE_CREATE_RAY_TRACING_SKIP_AABBS_BIT_KHR"),
2858 std::make_pair(1ULL << 19, "VK_PIPELINE_CREATE_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR"),
2859 std::make_pair(1ULL << 5, "VK_PIPELINE_CREATE_DEFER_COMPILE_BIT_NV"),
2860 std::make_pair(1ULL << 6, "VK_PIPELINE_CREATE_CAPTURE_STATISTICS_BIT_KHR"),
2861 std::make_pair(1ULL << 7, "VK_PIPELINE_CREATE_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR"),
2862 std::make_pair(1ULL << 18, "VK_PIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV"),
2863 std::make_pair(1ULL << 11, "VK_PIPELINE_CREATE_LIBRARY_BIT_KHR"),
2864 std::make_pair(1ULL << 8, "VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT_EXT"),
2865 std::make_pair(1ULL << 9, "VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT_EXT"),
2866 std::make_pair(1ULL << 23, "VK_PIPELINE_CREATE_RESERVED_23_BIT_AMD"),
2867 std::make_pair(1ULL << 10, "VK_PIPELINE_CREATE_RESERVED_10_BIT_AMD"),
2868 std::make_pair(1ULL << 20, "VK_PIPELINE_CREATE_RAY_TRACING_ALLOW_MOTION_BIT_NV"),
2869 };
print_VkPipelineCreateFlagBits(VkPipelineCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2870 static void print_VkPipelineCreateFlagBits(VkPipelineCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2871 PRINT_SPACE
2872 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2873 if (commaNeeded)
2874 _OUT << "\"" << VkPipelineCreateFlagBits_map[obj] << "\"," << std::endl;
2875 else
2876 _OUT << "\"" << VkPipelineCreateFlagBits_map[obj] << "\"" << std::endl;
2877 }
print_VkPipelineCreateFlagBits(const VkPipelineCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2878 static void print_VkPipelineCreateFlagBits(const VkPipelineCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2879 PRINT_SPACE
2880 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2881 if (commaNeeded)
2882 _OUT << "\"" << VkPipelineCreateFlagBits_map[*obj] << "\"," << std::endl;
2883 else
2884 _OUT << "\"" << VkPipelineCreateFlagBits_map[*obj] << "\"" << std::endl;
2885 }
2886
2887 static std::map<deUint64, std::string> VkPipelineShaderStageCreateFlagBits_map = {
2888 std::make_pair(1ULL << 0, "VK_PIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT"),
2889 std::make_pair(1ULL << 1, "VK_PIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT"),
2890 std::make_pair(1ULL << 3, "VK_PIPELINE_SHADER_STAGE_CREATE_RESERVED_3_BIT_KHR"),
2891 };
print_VkPipelineShaderStageCreateFlagBits(VkPipelineShaderStageCreateFlagBits obj,const std::string & str,bool commaNeeded=true)2892 static void print_VkPipelineShaderStageCreateFlagBits(VkPipelineShaderStageCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
2893 PRINT_SPACE
2894 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2895 if (commaNeeded)
2896 _OUT << "\"" << VkPipelineShaderStageCreateFlagBits_map[obj] << "\"," << std::endl;
2897 else
2898 _OUT << "\"" << VkPipelineShaderStageCreateFlagBits_map[obj] << "\"" << std::endl;
2899 }
print_VkPipelineShaderStageCreateFlagBits(const VkPipelineShaderStageCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)2900 static void print_VkPipelineShaderStageCreateFlagBits(const VkPipelineShaderStageCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2901 PRINT_SPACE
2902 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2903 if (commaNeeded)
2904 _OUT << "\"" << VkPipelineShaderStageCreateFlagBits_map[*obj] << "\"," << std::endl;
2905 else
2906 _OUT << "\"" << VkPipelineShaderStageCreateFlagBits_map[*obj] << "\"" << std::endl;
2907 }
2908
2909 static std::map<deUint64, std::string> VkShaderStageFlagBits_map = {
2910 std::make_pair(1ULL << 0, "VK_SHADER_STAGE_VERTEX_BIT"),
2911 std::make_pair(1ULL << 1, "VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT"),
2912 std::make_pair(1ULL << 2, "VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT"),
2913 std::make_pair(1ULL << 3, "VK_SHADER_STAGE_GEOMETRY_BIT"),
2914 std::make_pair(1ULL << 4, "VK_SHADER_STAGE_FRAGMENT_BIT"),
2915 std::make_pair(1ULL << 5, "VK_SHADER_STAGE_COMPUTE_BIT"),
2916 std::make_pair(0x0000001F, "VK_SHADER_STAGE_ALL_GRAPHICS"),
2917 std::make_pair(0x7FFFFFFF, "VK_SHADER_STAGE_ALL"),
2918 std::make_pair(1ULL << 8, "VK_SHADER_STAGE_RAYGEN_BIT_KHR"),
2919 std::make_pair(1ULL << 9, "VK_SHADER_STAGE_ANY_HIT_BIT_KHR"),
2920 std::make_pair(1ULL << 10, "VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR"),
2921 std::make_pair(1ULL << 11, "VK_SHADER_STAGE_MISS_BIT_KHR"),
2922 std::make_pair(1ULL << 12, "VK_SHADER_STAGE_INTERSECTION_BIT_KHR"),
2923 std::make_pair(1ULL << 13, "VK_SHADER_STAGE_CALLABLE_BIT_KHR"),
2924 std::make_pair(1ULL << 6, "VK_SHADER_STAGE_TASK_BIT_NV"),
2925 std::make_pair(1ULL << 7, "VK_SHADER_STAGE_MESH_BIT_NV"),
2926 std::make_pair(1ULL << 14, "VK_SHADER_STAGE_SUBPASS_SHADING_BIT_HUAWEI"),
2927 };
print_VkShaderStageFlagBits(VkShaderStageFlagBits obj,const std::string & str,bool commaNeeded=true)2928 static void print_VkShaderStageFlagBits(VkShaderStageFlagBits obj, const std::string& str, bool commaNeeded=true) {
2929 PRINT_SPACE
2930 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2931 if (commaNeeded)
2932 _OUT << "\"" << VkShaderStageFlagBits_map[obj] << "\"," << std::endl;
2933 else
2934 _OUT << "\"" << VkShaderStageFlagBits_map[obj] << "\"" << std::endl;
2935 }
print_VkShaderStageFlagBits(const VkShaderStageFlagBits * obj,const std::string & str,bool commaNeeded=true)2936 static void print_VkShaderStageFlagBits(const VkShaderStageFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2937 PRINT_SPACE
2938 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2939 if (commaNeeded)
2940 _OUT << "\"" << VkShaderStageFlagBits_map[*obj] << "\"," << std::endl;
2941 else
2942 _OUT << "\"" << VkShaderStageFlagBits_map[*obj] << "\"" << std::endl;
2943 }
2944
2945 static std::map<deUint64, std::string> VkCullModeFlagBits_map = {
2946 std::make_pair(0, "VK_CULL_MODE_NONE"),
2947 std::make_pair(1ULL << 0, "VK_CULL_MODE_FRONT_BIT"),
2948 std::make_pair(1ULL << 1, "VK_CULL_MODE_BACK_BIT"),
2949 std::make_pair(0x00000003, "VK_CULL_MODE_FRONT_AND_BACK"),
2950 };
print_VkCullModeFlagBits(VkCullModeFlagBits obj,const std::string & str,bool commaNeeded=true)2951 static void print_VkCullModeFlagBits(VkCullModeFlagBits obj, const std::string& str, bool commaNeeded=true) {
2952 PRINT_SPACE
2953 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2954 if (commaNeeded)
2955 _OUT << "\"" << VkCullModeFlagBits_map[obj] << "\"," << std::endl;
2956 else
2957 _OUT << "\"" << VkCullModeFlagBits_map[obj] << "\"" << std::endl;
2958 }
print_VkCullModeFlagBits(const VkCullModeFlagBits * obj,const std::string & str,bool commaNeeded=true)2959 static void print_VkCullModeFlagBits(const VkCullModeFlagBits * obj, const std::string& str, bool commaNeeded=true) {
2960 PRINT_SPACE
2961 if (str != "") _OUT << "\"" << str << "\"" << " : ";
2962 if (commaNeeded)
2963 _OUT << "\"" << VkCullModeFlagBits_map[*obj] << "\"," << std::endl;
2964 else
2965 _OUT << "\"" << VkCullModeFlagBits_map[*obj] << "\"" << std::endl;
2966 }
2967
2968 static std::map<deUint64, std::string> VkDynamicState_map = {
2969 std::make_pair(0, "VK_DYNAMIC_STATE_VIEWPORT"),
2970 std::make_pair(1, "VK_DYNAMIC_STATE_SCISSOR"),
2971 std::make_pair(2, "VK_DYNAMIC_STATE_LINE_WIDTH"),
2972 std::make_pair(3, "VK_DYNAMIC_STATE_DEPTH_BIAS"),
2973 std::make_pair(4, "VK_DYNAMIC_STATE_BLEND_CONSTANTS"),
2974 std::make_pair(5, "VK_DYNAMIC_STATE_DEPTH_BOUNDS"),
2975 std::make_pair(6, "VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK"),
2976 std::make_pair(7, "VK_DYNAMIC_STATE_STENCIL_WRITE_MASK"),
2977 std::make_pair(8, "VK_DYNAMIC_STATE_STENCIL_REFERENCE"),
2978 std::make_pair(1000087000, "VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV"),
2979 std::make_pair(1000099000, "VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT"),
2980 std::make_pair(1000143000, "VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT"),
2981 std::make_pair(1000347000, "VK_DYNAMIC_STATE_RAY_TRACING_PIPELINE_STACK_SIZE_KHR"),
2982 std::make_pair(1000164004, "VK_DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV"),
2983 std::make_pair(1000164006, "VK_DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV"),
2984 std::make_pair(1000205001, "VK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV"),
2985 std::make_pair(1000226000, "VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR"),
2986 std::make_pair(1000259000, "VK_DYNAMIC_STATE_LINE_STIPPLE_EXT"),
2987 std::make_pair(1000267000, "VK_DYNAMIC_STATE_CULL_MODE_EXT"),
2988 std::make_pair(1000267001, "VK_DYNAMIC_STATE_FRONT_FACE_EXT"),
2989 std::make_pair(1000267002, "VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY_EXT"),
2990 std::make_pair(1000267003, "VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT"),
2991 std::make_pair(1000267004, "VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT"),
2992 std::make_pair(1000267005, "VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT"),
2993 std::make_pair(1000267006, "VK_DYNAMIC_STATE_DEPTH_TEST_ENABLE_EXT"),
2994 std::make_pair(1000267007, "VK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE_EXT"),
2995 std::make_pair(1000267008, "VK_DYNAMIC_STATE_DEPTH_COMPARE_OP_EXT"),
2996 std::make_pair(1000267009, "VK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE_EXT"),
2997 std::make_pair(1000267010, "VK_DYNAMIC_STATE_STENCIL_TEST_ENABLE_EXT"),
2998 std::make_pair(1000267011, "VK_DYNAMIC_STATE_STENCIL_OP_EXT"),
2999 std::make_pair(1000352000, "VK_DYNAMIC_STATE_VERTEX_INPUT_EXT"),
3000 std::make_pair(1000377000, "VK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT"),
3001 std::make_pair(1000377001, "VK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE_EXT"),
3002 std::make_pair(1000377002, "VK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE_EXT"),
3003 std::make_pair(1000377003, "VK_DYNAMIC_STATE_LOGIC_OP_EXT"),
3004 std::make_pair(1000377004, "VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE_EXT"),
3005 std::make_pair(1000381000, "VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT"),
3006 };
print_VkDynamicState(VkDynamicState obj,const std::string & str,bool commaNeeded=true)3007 static void print_VkDynamicState(VkDynamicState obj, const std::string& str, bool commaNeeded=true) {
3008 PRINT_SPACE
3009 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3010 if (commaNeeded)
3011 _OUT << "\"" << VkDynamicState_map[obj] << "\"," << std::endl;
3012 else
3013 _OUT << "\"" << VkDynamicState_map[obj] << "\"" << std::endl;
3014 }
print_VkDynamicState(const VkDynamicState * obj,const std::string & str,bool commaNeeded=true)3015 static void print_VkDynamicState(const VkDynamicState * obj, const std::string& str, bool commaNeeded=true) {
3016 PRINT_SPACE
3017 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3018 if (commaNeeded)
3019 _OUT << "\"" << VkDynamicState_map[*obj] << "\"," << std::endl;
3020 else
3021 _OUT << "\"" << VkDynamicState_map[*obj] << "\"" << std::endl;
3022 }
3023
3024 static std::map<deUint64, std::string> VkFrontFace_map = {
3025 std::make_pair(0, "VK_FRONT_FACE_COUNTER_CLOCKWISE"),
3026 std::make_pair(1, "VK_FRONT_FACE_CLOCKWISE"),
3027 };
print_VkFrontFace(VkFrontFace obj,const std::string & str,bool commaNeeded=true)3028 static void print_VkFrontFace(VkFrontFace obj, const std::string& str, bool commaNeeded=true) {
3029 PRINT_SPACE
3030 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3031 if (commaNeeded)
3032 _OUT << "\"" << VkFrontFace_map[obj] << "\"," << std::endl;
3033 else
3034 _OUT << "\"" << VkFrontFace_map[obj] << "\"" << std::endl;
3035 }
print_VkFrontFace(const VkFrontFace * obj,const std::string & str,bool commaNeeded=true)3036 static void print_VkFrontFace(const VkFrontFace * obj, const std::string& str, bool commaNeeded=true) {
3037 PRINT_SPACE
3038 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3039 if (commaNeeded)
3040 _OUT << "\"" << VkFrontFace_map[*obj] << "\"," << std::endl;
3041 else
3042 _OUT << "\"" << VkFrontFace_map[*obj] << "\"" << std::endl;
3043 }
3044
3045 static std::map<deUint64, std::string> VkVertexInputRate_map = {
3046 std::make_pair(0, "VK_VERTEX_INPUT_RATE_VERTEX"),
3047 std::make_pair(1, "VK_VERTEX_INPUT_RATE_INSTANCE"),
3048 };
print_VkVertexInputRate(VkVertexInputRate obj,const std::string & str,bool commaNeeded=true)3049 static void print_VkVertexInputRate(VkVertexInputRate obj, const std::string& str, bool commaNeeded=true) {
3050 PRINT_SPACE
3051 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3052 if (commaNeeded)
3053 _OUT << "\"" << VkVertexInputRate_map[obj] << "\"," << std::endl;
3054 else
3055 _OUT << "\"" << VkVertexInputRate_map[obj] << "\"" << std::endl;
3056 }
print_VkVertexInputRate(const VkVertexInputRate * obj,const std::string & str,bool commaNeeded=true)3057 static void print_VkVertexInputRate(const VkVertexInputRate * obj, const std::string& str, bool commaNeeded=true) {
3058 PRINT_SPACE
3059 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3060 if (commaNeeded)
3061 _OUT << "\"" << VkVertexInputRate_map[*obj] << "\"," << std::endl;
3062 else
3063 _OUT << "\"" << VkVertexInputRate_map[*obj] << "\"" << std::endl;
3064 }
3065
3066 static std::map<deUint64, std::string> VkPrimitiveTopology_map = {
3067 std::make_pair(0, "VK_PRIMITIVE_TOPOLOGY_POINT_LIST"),
3068 std::make_pair(1, "VK_PRIMITIVE_TOPOLOGY_LINE_LIST"),
3069 std::make_pair(2, "VK_PRIMITIVE_TOPOLOGY_LINE_STRIP"),
3070 std::make_pair(3, "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST"),
3071 std::make_pair(4, "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP"),
3072 std::make_pair(5, "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN"),
3073 std::make_pair(6, "VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY"),
3074 std::make_pair(7, "VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY"),
3075 std::make_pair(8, "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY"),
3076 std::make_pair(9, "VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY"),
3077 std::make_pair(10, "VK_PRIMITIVE_TOPOLOGY_PATCH_LIST"),
3078 };
print_VkPrimitiveTopology(VkPrimitiveTopology obj,const std::string & str,bool commaNeeded=true)3079 static void print_VkPrimitiveTopology(VkPrimitiveTopology obj, const std::string& str, bool commaNeeded=true) {
3080 PRINT_SPACE
3081 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3082 if (commaNeeded)
3083 _OUT << "\"" << VkPrimitiveTopology_map[obj] << "\"," << std::endl;
3084 else
3085 _OUT << "\"" << VkPrimitiveTopology_map[obj] << "\"" << std::endl;
3086 }
print_VkPrimitiveTopology(const VkPrimitiveTopology * obj,const std::string & str,bool commaNeeded=true)3087 static void print_VkPrimitiveTopology(const VkPrimitiveTopology * obj, const std::string& str, bool commaNeeded=true) {
3088 PRINT_SPACE
3089 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3090 if (commaNeeded)
3091 _OUT << "\"" << VkPrimitiveTopology_map[*obj] << "\"," << std::endl;
3092 else
3093 _OUT << "\"" << VkPrimitiveTopology_map[*obj] << "\"" << std::endl;
3094 }
3095
3096 static std::map<deUint64, std::string> VkPolygonMode_map = {
3097 std::make_pair(0, "VK_POLYGON_MODE_FILL"),
3098 std::make_pair(1, "VK_POLYGON_MODE_LINE"),
3099 std::make_pair(2, "VK_POLYGON_MODE_POINT"),
3100 std::make_pair(1000153000, "VK_POLYGON_MODE_FILL_RECTANGLE_NV"),
3101 };
print_VkPolygonMode(VkPolygonMode obj,const std::string & str,bool commaNeeded=true)3102 static void print_VkPolygonMode(VkPolygonMode obj, const std::string& str, bool commaNeeded=true) {
3103 PRINT_SPACE
3104 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3105 if (commaNeeded)
3106 _OUT << "\"" << VkPolygonMode_map[obj] << "\"," << std::endl;
3107 else
3108 _OUT << "\"" << VkPolygonMode_map[obj] << "\"" << std::endl;
3109 }
print_VkPolygonMode(const VkPolygonMode * obj,const std::string & str,bool commaNeeded=true)3110 static void print_VkPolygonMode(const VkPolygonMode * obj, const std::string& str, bool commaNeeded=true) {
3111 PRINT_SPACE
3112 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3113 if (commaNeeded)
3114 _OUT << "\"" << VkPolygonMode_map[*obj] << "\"," << std::endl;
3115 else
3116 _OUT << "\"" << VkPolygonMode_map[*obj] << "\"" << std::endl;
3117 }
3118
3119 static std::map<deUint64, std::string> VkStencilOp_map = {
3120 std::make_pair(0, "VK_STENCIL_OP_KEEP"),
3121 std::make_pair(1, "VK_STENCIL_OP_ZERO"),
3122 std::make_pair(2, "VK_STENCIL_OP_REPLACE"),
3123 std::make_pair(3, "VK_STENCIL_OP_INCREMENT_AND_CLAMP"),
3124 std::make_pair(4, "VK_STENCIL_OP_DECREMENT_AND_CLAMP"),
3125 std::make_pair(5, "VK_STENCIL_OP_INVERT"),
3126 std::make_pair(6, "VK_STENCIL_OP_INCREMENT_AND_WRAP"),
3127 std::make_pair(7, "VK_STENCIL_OP_DECREMENT_AND_WRAP"),
3128 };
print_VkStencilOp(VkStencilOp obj,const std::string & str,bool commaNeeded=true)3129 static void print_VkStencilOp(VkStencilOp obj, const std::string& str, bool commaNeeded=true) {
3130 PRINT_SPACE
3131 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3132 if (commaNeeded)
3133 _OUT << "\"" << VkStencilOp_map[obj] << "\"," << std::endl;
3134 else
3135 _OUT << "\"" << VkStencilOp_map[obj] << "\"" << std::endl;
3136 }
print_VkStencilOp(const VkStencilOp * obj,const std::string & str,bool commaNeeded=true)3137 static void print_VkStencilOp(const VkStencilOp * obj, const std::string& str, bool commaNeeded=true) {
3138 PRINT_SPACE
3139 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3140 if (commaNeeded)
3141 _OUT << "\"" << VkStencilOp_map[*obj] << "\"," << std::endl;
3142 else
3143 _OUT << "\"" << VkStencilOp_map[*obj] << "\"" << std::endl;
3144 }
3145
3146 static std::map<deUint64, std::string> VkLogicOp_map = {
3147 std::make_pair(0, "VK_LOGIC_OP_CLEAR"),
3148 std::make_pair(1, "VK_LOGIC_OP_AND"),
3149 std::make_pair(2, "VK_LOGIC_OP_AND_REVERSE"),
3150 std::make_pair(3, "VK_LOGIC_OP_COPY"),
3151 std::make_pair(4, "VK_LOGIC_OP_AND_INVERTED"),
3152 std::make_pair(5, "VK_LOGIC_OP_NO_OP"),
3153 std::make_pair(6, "VK_LOGIC_OP_XOR"),
3154 std::make_pair(7, "VK_LOGIC_OP_OR"),
3155 std::make_pair(8, "VK_LOGIC_OP_NOR"),
3156 std::make_pair(9, "VK_LOGIC_OP_EQUIVALENT"),
3157 std::make_pair(10, "VK_LOGIC_OP_INVERT"),
3158 std::make_pair(11, "VK_LOGIC_OP_OR_REVERSE"),
3159 std::make_pair(12, "VK_LOGIC_OP_COPY_INVERTED"),
3160 std::make_pair(13, "VK_LOGIC_OP_OR_INVERTED"),
3161 std::make_pair(14, "VK_LOGIC_OP_NAND"),
3162 std::make_pair(15, "VK_LOGIC_OP_SET"),
3163 };
print_VkLogicOp(VkLogicOp obj,const std::string & str,bool commaNeeded=true)3164 static void print_VkLogicOp(VkLogicOp obj, const std::string& str, bool commaNeeded=true) {
3165 PRINT_SPACE
3166 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3167 if (commaNeeded)
3168 _OUT << "\"" << VkLogicOp_map[obj] << "\"," << std::endl;
3169 else
3170 _OUT << "\"" << VkLogicOp_map[obj] << "\"" << std::endl;
3171 }
print_VkLogicOp(const VkLogicOp * obj,const std::string & str,bool commaNeeded=true)3172 static void print_VkLogicOp(const VkLogicOp * obj, const std::string& str, bool commaNeeded=true) {
3173 PRINT_SPACE
3174 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3175 if (commaNeeded)
3176 _OUT << "\"" << VkLogicOp_map[*obj] << "\"," << std::endl;
3177 else
3178 _OUT << "\"" << VkLogicOp_map[*obj] << "\"" << std::endl;
3179 }
3180
3181 static std::map<deUint64, std::string> VkBorderColor_map = {
3182 std::make_pair(0, "VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK"),
3183 std::make_pair(1, "VK_BORDER_COLOR_INT_TRANSPARENT_BLACK"),
3184 std::make_pair(2, "VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK"),
3185 std::make_pair(3, "VK_BORDER_COLOR_INT_OPAQUE_BLACK"),
3186 std::make_pair(4, "VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE"),
3187 std::make_pair(5, "VK_BORDER_COLOR_INT_OPAQUE_WHITE"),
3188 std::make_pair(1000287003, "VK_BORDER_COLOR_FLOAT_CUSTOM_EXT"),
3189 std::make_pair(1000287004, "VK_BORDER_COLOR_INT_CUSTOM_EXT"),
3190 };
print_VkBorderColor(VkBorderColor obj,const std::string & str,bool commaNeeded=true)3191 static void print_VkBorderColor(VkBorderColor obj, const std::string& str, bool commaNeeded=true) {
3192 PRINT_SPACE
3193 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3194 if (commaNeeded)
3195 _OUT << "\"" << VkBorderColor_map[obj] << "\"," << std::endl;
3196 else
3197 _OUT << "\"" << VkBorderColor_map[obj] << "\"" << std::endl;
3198 }
print_VkBorderColor(const VkBorderColor * obj,const std::string & str,bool commaNeeded=true)3199 static void print_VkBorderColor(const VkBorderColor * obj, const std::string& str, bool commaNeeded=true) {
3200 PRINT_SPACE
3201 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3202 if (commaNeeded)
3203 _OUT << "\"" << VkBorderColor_map[*obj] << "\"," << std::endl;
3204 else
3205 _OUT << "\"" << VkBorderColor_map[*obj] << "\"" << std::endl;
3206 }
3207
3208 static std::map<deUint64, std::string> VkFilter_map = {
3209 std::make_pair(0, "VK_FILTER_NEAREST"),
3210 std::make_pair(1, "VK_FILTER_LINEAR"),
3211 std::make_pair(1000015000, "VK_FILTER_CUBIC_IMG"),
3212 };
print_VkFilter(VkFilter obj,const std::string & str,bool commaNeeded=true)3213 static void print_VkFilter(VkFilter obj, const std::string& str, bool commaNeeded=true) {
3214 PRINT_SPACE
3215 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3216 if (commaNeeded)
3217 _OUT << "\"" << VkFilter_map[obj] << "\"," << std::endl;
3218 else
3219 _OUT << "\"" << VkFilter_map[obj] << "\"" << std::endl;
3220 }
print_VkFilter(const VkFilter * obj,const std::string & str,bool commaNeeded=true)3221 static void print_VkFilter(const VkFilter * obj, const std::string& str, bool commaNeeded=true) {
3222 PRINT_SPACE
3223 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3224 if (commaNeeded)
3225 _OUT << "\"" << VkFilter_map[*obj] << "\"," << std::endl;
3226 else
3227 _OUT << "\"" << VkFilter_map[*obj] << "\"" << std::endl;
3228 }
3229
3230 static std::map<deUint64, std::string> VkSamplerAddressMode_map = {
3231 std::make_pair(0, "VK_SAMPLER_ADDRESS_MODE_REPEAT"),
3232 std::make_pair(1, "VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT"),
3233 std::make_pair(2, "VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE"),
3234 std::make_pair(3, "VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER"),
3235 std::make_pair(4, "VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE"),
3236 std::make_pair(4, "VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE"),
3237 };
print_VkSamplerAddressMode(VkSamplerAddressMode obj,const std::string & str,bool commaNeeded=true)3238 static void print_VkSamplerAddressMode(VkSamplerAddressMode obj, const std::string& str, bool commaNeeded=true) {
3239 PRINT_SPACE
3240 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3241 if (commaNeeded)
3242 _OUT << "\"" << VkSamplerAddressMode_map[obj] << "\"," << std::endl;
3243 else
3244 _OUT << "\"" << VkSamplerAddressMode_map[obj] << "\"" << std::endl;
3245 }
print_VkSamplerAddressMode(const VkSamplerAddressMode * obj,const std::string & str,bool commaNeeded=true)3246 static void print_VkSamplerAddressMode(const VkSamplerAddressMode * obj, const std::string& str, bool commaNeeded=true) {
3247 PRINT_SPACE
3248 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3249 if (commaNeeded)
3250 _OUT << "\"" << VkSamplerAddressMode_map[*obj] << "\"," << std::endl;
3251 else
3252 _OUT << "\"" << VkSamplerAddressMode_map[*obj] << "\"" << std::endl;
3253 }
3254
3255 static std::map<deUint64, std::string> VkSamplerCreateFlagBits_map = {
3256 std::make_pair(1ULL << 0, "VK_SAMPLER_CREATE_SUBSAMPLED_BIT_EXT"),
3257 std::make_pair(1ULL << 1, "VK_SAMPLER_CREATE_SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXT"),
3258 std::make_pair(1ULL << 3, "VK_SAMPLER_CREATE_RESERVED_3_BIT_AMD"),
3259 std::make_pair(1ULL << 2, "VK_SAMPLER_CREATE_RESERVED_2_BIT_EXT"),
3260 };
print_VkSamplerCreateFlagBits(VkSamplerCreateFlagBits obj,const std::string & str,bool commaNeeded=true)3261 static void print_VkSamplerCreateFlagBits(VkSamplerCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
3262 PRINT_SPACE
3263 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3264 if (commaNeeded)
3265 _OUT << "\"" << VkSamplerCreateFlagBits_map[obj] << "\"," << std::endl;
3266 else
3267 _OUT << "\"" << VkSamplerCreateFlagBits_map[obj] << "\"" << std::endl;
3268 }
print_VkSamplerCreateFlagBits(const VkSamplerCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)3269 static void print_VkSamplerCreateFlagBits(const VkSamplerCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3270 PRINT_SPACE
3271 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3272 if (commaNeeded)
3273 _OUT << "\"" << VkSamplerCreateFlagBits_map[*obj] << "\"," << std::endl;
3274 else
3275 _OUT << "\"" << VkSamplerCreateFlagBits_map[*obj] << "\"" << std::endl;
3276 }
3277
3278 static std::map<deUint64, std::string> VkSamplerMipmapMode_map = {
3279 std::make_pair(0, "VK_SAMPLER_MIPMAP_MODE_NEAREST"),
3280 std::make_pair(1, "VK_SAMPLER_MIPMAP_MODE_LINEAR"),
3281 };
print_VkSamplerMipmapMode(VkSamplerMipmapMode obj,const std::string & str,bool commaNeeded=true)3282 static void print_VkSamplerMipmapMode(VkSamplerMipmapMode obj, const std::string& str, bool commaNeeded=true) {
3283 PRINT_SPACE
3284 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3285 if (commaNeeded)
3286 _OUT << "\"" << VkSamplerMipmapMode_map[obj] << "\"," << std::endl;
3287 else
3288 _OUT << "\"" << VkSamplerMipmapMode_map[obj] << "\"" << std::endl;
3289 }
print_VkSamplerMipmapMode(const VkSamplerMipmapMode * obj,const std::string & str,bool commaNeeded=true)3290 static void print_VkSamplerMipmapMode(const VkSamplerMipmapMode * obj, const std::string& str, bool commaNeeded=true) {
3291 PRINT_SPACE
3292 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3293 if (commaNeeded)
3294 _OUT << "\"" << VkSamplerMipmapMode_map[*obj] << "\"," << std::endl;
3295 else
3296 _OUT << "\"" << VkSamplerMipmapMode_map[*obj] << "\"" << std::endl;
3297 }
3298
3299 static std::map<deUint64, std::string> VkDescriptorPoolCreateFlagBits_map = {
3300 std::make_pair(1ULL << 0, "VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT"),
3301 std::make_pair(1ULL << 1, "VK_DESCRIPTOR_POOL_CREATE_UPDATE_AFTER_BIND_BIT"),
3302 std::make_pair(1ULL << 2, "VK_DESCRIPTOR_POOL_CREATE_HOST_ONLY_BIT_VALVE"),
3303 };
print_VkDescriptorPoolCreateFlagBits(VkDescriptorPoolCreateFlagBits obj,const std::string & str,bool commaNeeded=true)3304 static void print_VkDescriptorPoolCreateFlagBits(VkDescriptorPoolCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
3305 PRINT_SPACE
3306 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3307 if (commaNeeded)
3308 _OUT << "\"" << VkDescriptorPoolCreateFlagBits_map[obj] << "\"," << std::endl;
3309 else
3310 _OUT << "\"" << VkDescriptorPoolCreateFlagBits_map[obj] << "\"" << std::endl;
3311 }
print_VkDescriptorPoolCreateFlagBits(const VkDescriptorPoolCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)3312 static void print_VkDescriptorPoolCreateFlagBits(const VkDescriptorPoolCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3313 PRINT_SPACE
3314 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3315 if (commaNeeded)
3316 _OUT << "\"" << VkDescriptorPoolCreateFlagBits_map[*obj] << "\"," << std::endl;
3317 else
3318 _OUT << "\"" << VkDescriptorPoolCreateFlagBits_map[*obj] << "\"" << std::endl;
3319 }
3320
3321 static std::map<deUint64, std::string> VkDescriptorType_map = {
3322 std::make_pair(0, "VK_DESCRIPTOR_TYPE_SAMPLER"),
3323 std::make_pair(1, "VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER"),
3324 std::make_pair(2, "VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE"),
3325 std::make_pair(3, "VK_DESCRIPTOR_TYPE_STORAGE_IMAGE"),
3326 std::make_pair(4, "VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER"),
3327 std::make_pair(5, "VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER"),
3328 std::make_pair(6, "VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER"),
3329 std::make_pair(7, "VK_DESCRIPTOR_TYPE_STORAGE_BUFFER"),
3330 std::make_pair(8, "VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC"),
3331 std::make_pair(9, "VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC"),
3332 std::make_pair(10, "VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT"),
3333 std::make_pair(1000138000, "VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT"),
3334 std::make_pair(1000150000, "VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR"),
3335 std::make_pair(1000165000, "VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV"),
3336 std::make_pair(1000351000, "VK_DESCRIPTOR_TYPE_MUTABLE_VALVE"),
3337 };
print_VkDescriptorType(VkDescriptorType obj,const std::string & str,bool commaNeeded=true)3338 static void print_VkDescriptorType(VkDescriptorType obj, const std::string& str, bool commaNeeded=true) {
3339 PRINT_SPACE
3340 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3341 if (commaNeeded)
3342 _OUT << "\"" << VkDescriptorType_map[obj] << "\"," << std::endl;
3343 else
3344 _OUT << "\"" << VkDescriptorType_map[obj] << "\"" << std::endl;
3345 }
print_VkDescriptorType(const VkDescriptorType * obj,const std::string & str,bool commaNeeded=true)3346 static void print_VkDescriptorType(const VkDescriptorType * obj, const std::string& str, bool commaNeeded=true) {
3347 PRINT_SPACE
3348 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3349 if (commaNeeded)
3350 _OUT << "\"" << VkDescriptorType_map[*obj] << "\"," << std::endl;
3351 else
3352 _OUT << "\"" << VkDescriptorType_map[*obj] << "\"" << std::endl;
3353 }
3354
3355 static std::map<deUint64, std::string> VkDescriptorSetLayoutCreateFlagBits_map = {
3356 std::make_pair(1ULL << 1, "VK_DESCRIPTOR_SET_LAYOUT_CREATE_UPDATE_AFTER_BIND_POOL_BIT"),
3357 std::make_pair(1ULL << 0, "VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR"),
3358 std::make_pair(1ULL << 4, "VK_DESCRIPTOR_SET_LAYOUT_CREATE_RESERVED_4_BIT_AMD"),
3359 std::make_pair(1ULL << 3, "VK_DESCRIPTOR_SET_LAYOUT_CREATE_RESERVED_3_BIT_AMD"),
3360 std::make_pair(1ULL << 2, "VK_DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_VALVE"),
3361 };
print_VkDescriptorSetLayoutCreateFlagBits(VkDescriptorSetLayoutCreateFlagBits obj,const std::string & str,bool commaNeeded=true)3362 static void print_VkDescriptorSetLayoutCreateFlagBits(VkDescriptorSetLayoutCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
3363 PRINT_SPACE
3364 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3365 if (commaNeeded)
3366 _OUT << "\"" << VkDescriptorSetLayoutCreateFlagBits_map[obj] << "\"," << std::endl;
3367 else
3368 _OUT << "\"" << VkDescriptorSetLayoutCreateFlagBits_map[obj] << "\"" << std::endl;
3369 }
print_VkDescriptorSetLayoutCreateFlagBits(const VkDescriptorSetLayoutCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)3370 static void print_VkDescriptorSetLayoutCreateFlagBits(const VkDescriptorSetLayoutCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3371 PRINT_SPACE
3372 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3373 if (commaNeeded)
3374 _OUT << "\"" << VkDescriptorSetLayoutCreateFlagBits_map[*obj] << "\"," << std::endl;
3375 else
3376 _OUT << "\"" << VkDescriptorSetLayoutCreateFlagBits_map[*obj] << "\"" << std::endl;
3377 }
3378
3379 static std::map<deUint64, std::string> VkAttachmentDescriptionFlagBits_map = {
3380 std::make_pair(1ULL << 0, "VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT"),
3381 };
print_VkAttachmentDescriptionFlagBits(VkAttachmentDescriptionFlagBits obj,const std::string & str,bool commaNeeded=true)3382 static void print_VkAttachmentDescriptionFlagBits(VkAttachmentDescriptionFlagBits obj, const std::string& str, bool commaNeeded=true) {
3383 PRINT_SPACE
3384 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3385 if (commaNeeded)
3386 _OUT << "\"" << VkAttachmentDescriptionFlagBits_map[obj] << "\"," << std::endl;
3387 else
3388 _OUT << "\"" << VkAttachmentDescriptionFlagBits_map[obj] << "\"" << std::endl;
3389 }
print_VkAttachmentDescriptionFlagBits(const VkAttachmentDescriptionFlagBits * obj,const std::string & str,bool commaNeeded=true)3390 static void print_VkAttachmentDescriptionFlagBits(const VkAttachmentDescriptionFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3391 PRINT_SPACE
3392 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3393 if (commaNeeded)
3394 _OUT << "\"" << VkAttachmentDescriptionFlagBits_map[*obj] << "\"," << std::endl;
3395 else
3396 _OUT << "\"" << VkAttachmentDescriptionFlagBits_map[*obj] << "\"" << std::endl;
3397 }
3398
3399 static std::map<deUint64, std::string> VkAttachmentLoadOp_map = {
3400 std::make_pair(0, "VK_ATTACHMENT_LOAD_OP_LOAD"),
3401 std::make_pair(1, "VK_ATTACHMENT_LOAD_OP_CLEAR"),
3402 std::make_pair(2, "VK_ATTACHMENT_LOAD_OP_DONT_CARE"),
3403 std::make_pair(1000400000, "VK_ATTACHMENT_LOAD_OP_NONE_EXT"),
3404 };
print_VkAttachmentLoadOp(VkAttachmentLoadOp obj,const std::string & str,bool commaNeeded=true)3405 static void print_VkAttachmentLoadOp(VkAttachmentLoadOp obj, const std::string& str, bool commaNeeded=true) {
3406 PRINT_SPACE
3407 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3408 if (commaNeeded)
3409 _OUT << "\"" << VkAttachmentLoadOp_map[obj] << "\"," << std::endl;
3410 else
3411 _OUT << "\"" << VkAttachmentLoadOp_map[obj] << "\"" << std::endl;
3412 }
print_VkAttachmentLoadOp(const VkAttachmentLoadOp * obj,const std::string & str,bool commaNeeded=true)3413 static void print_VkAttachmentLoadOp(const VkAttachmentLoadOp * obj, const std::string& str, bool commaNeeded=true) {
3414 PRINT_SPACE
3415 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3416 if (commaNeeded)
3417 _OUT << "\"" << VkAttachmentLoadOp_map[*obj] << "\"," << std::endl;
3418 else
3419 _OUT << "\"" << VkAttachmentLoadOp_map[*obj] << "\"" << std::endl;
3420 }
3421
3422 static std::map<deUint64, std::string> VkAttachmentStoreOp_map = {
3423 std::make_pair(0, "VK_ATTACHMENT_STORE_OP_STORE"),
3424 std::make_pair(1, "VK_ATTACHMENT_STORE_OP_DONT_CARE"),
3425 std::make_pair(1000301000, "VK_ATTACHMENT_STORE_OP_NONE_KHR"),
3426 };
print_VkAttachmentStoreOp(VkAttachmentStoreOp obj,const std::string & str,bool commaNeeded=true)3427 static void print_VkAttachmentStoreOp(VkAttachmentStoreOp obj, const std::string& str, bool commaNeeded=true) {
3428 PRINT_SPACE
3429 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3430 if (commaNeeded)
3431 _OUT << "\"" << VkAttachmentStoreOp_map[obj] << "\"," << std::endl;
3432 else
3433 _OUT << "\"" << VkAttachmentStoreOp_map[obj] << "\"" << std::endl;
3434 }
print_VkAttachmentStoreOp(const VkAttachmentStoreOp * obj,const std::string & str,bool commaNeeded=true)3435 static void print_VkAttachmentStoreOp(const VkAttachmentStoreOp * obj, const std::string& str, bool commaNeeded=true) {
3436 PRINT_SPACE
3437 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3438 if (commaNeeded)
3439 _OUT << "\"" << VkAttachmentStoreOp_map[*obj] << "\"," << std::endl;
3440 else
3441 _OUT << "\"" << VkAttachmentStoreOp_map[*obj] << "\"" << std::endl;
3442 }
3443
3444 static std::map<deUint64, std::string> VkDependencyFlagBits_map = {
3445 std::make_pair(1ULL << 0, "VK_DEPENDENCY_BY_REGION_BIT"),
3446 std::make_pair(1ULL << 2, "VK_DEPENDENCY_DEVICE_GROUP_BIT"),
3447 std::make_pair(1ULL << 1, "VK_DEPENDENCY_VIEW_LOCAL_BIT"),
3448 };
print_VkDependencyFlagBits(VkDependencyFlagBits obj,const std::string & str,bool commaNeeded=true)3449 static void print_VkDependencyFlagBits(VkDependencyFlagBits obj, const std::string& str, bool commaNeeded=true) {
3450 PRINT_SPACE
3451 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3452 if (commaNeeded)
3453 _OUT << "\"" << VkDependencyFlagBits_map[obj] << "\"," << std::endl;
3454 else
3455 _OUT << "\"" << VkDependencyFlagBits_map[obj] << "\"" << std::endl;
3456 }
print_VkDependencyFlagBits(const VkDependencyFlagBits * obj,const std::string & str,bool commaNeeded=true)3457 static void print_VkDependencyFlagBits(const VkDependencyFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3458 PRINT_SPACE
3459 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3460 if (commaNeeded)
3461 _OUT << "\"" << VkDependencyFlagBits_map[*obj] << "\"," << std::endl;
3462 else
3463 _OUT << "\"" << VkDependencyFlagBits_map[*obj] << "\"" << std::endl;
3464 }
3465
3466 static std::map<deUint64, std::string> VkFramebufferCreateFlagBits_map = {
3467 std::make_pair(1ULL << 0, "VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT"),
3468 };
print_VkFramebufferCreateFlagBits(VkFramebufferCreateFlagBits obj,const std::string & str,bool commaNeeded=true)3469 static void print_VkFramebufferCreateFlagBits(VkFramebufferCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
3470 PRINT_SPACE
3471 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3472 if (commaNeeded)
3473 _OUT << "\"" << VkFramebufferCreateFlagBits_map[obj] << "\"," << std::endl;
3474 else
3475 _OUT << "\"" << VkFramebufferCreateFlagBits_map[obj] << "\"" << std::endl;
3476 }
print_VkFramebufferCreateFlagBits(const VkFramebufferCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)3477 static void print_VkFramebufferCreateFlagBits(const VkFramebufferCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3478 PRINT_SPACE
3479 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3480 if (commaNeeded)
3481 _OUT << "\"" << VkFramebufferCreateFlagBits_map[*obj] << "\"," << std::endl;
3482 else
3483 _OUT << "\"" << VkFramebufferCreateFlagBits_map[*obj] << "\"" << std::endl;
3484 }
3485
3486 static std::map<deUint64, std::string> VkPipelineBindPoint_map = {
3487 std::make_pair(0, "VK_PIPELINE_BIND_POINT_GRAPHICS"),
3488 std::make_pair(1, "VK_PIPELINE_BIND_POINT_COMPUTE"),
3489 std::make_pair(1000165000, "VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR"),
3490 std::make_pair(1000369003, "VK_PIPELINE_BIND_POINT_SUBPASS_SHADING_HUAWEI"),
3491 };
print_VkPipelineBindPoint(VkPipelineBindPoint obj,const std::string & str,bool commaNeeded=true)3492 static void print_VkPipelineBindPoint(VkPipelineBindPoint obj, const std::string& str, bool commaNeeded=true) {
3493 PRINT_SPACE
3494 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3495 if (commaNeeded)
3496 _OUT << "\"" << VkPipelineBindPoint_map[obj] << "\"," << std::endl;
3497 else
3498 _OUT << "\"" << VkPipelineBindPoint_map[obj] << "\"" << std::endl;
3499 }
print_VkPipelineBindPoint(const VkPipelineBindPoint * obj,const std::string & str,bool commaNeeded=true)3500 static void print_VkPipelineBindPoint(const VkPipelineBindPoint * obj, const std::string& str, bool commaNeeded=true) {
3501 PRINT_SPACE
3502 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3503 if (commaNeeded)
3504 _OUT << "\"" << VkPipelineBindPoint_map[*obj] << "\"," << std::endl;
3505 else
3506 _OUT << "\"" << VkPipelineBindPoint_map[*obj] << "\"" << std::endl;
3507 }
3508
3509 static std::map<deUint64, std::string> VkRenderPassCreateFlagBits_map = {
3510 std::make_pair(1ULL << 0, "VK_RENDER_PASS_CREATE_RESERVED_0_BIT_KHR"),
3511 std::make_pair(1ULL << 1, "VK_RENDER_PASS_CREATE_TRANSFORM_BIT_QCOM"),
3512 };
print_VkRenderPassCreateFlagBits(VkRenderPassCreateFlagBits obj,const std::string & str,bool commaNeeded=true)3513 static void print_VkRenderPassCreateFlagBits(VkRenderPassCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
3514 PRINT_SPACE
3515 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3516 if (commaNeeded)
3517 _OUT << "\"" << VkRenderPassCreateFlagBits_map[obj] << "\"," << std::endl;
3518 else
3519 _OUT << "\"" << VkRenderPassCreateFlagBits_map[obj] << "\"" << std::endl;
3520 }
print_VkRenderPassCreateFlagBits(const VkRenderPassCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)3521 static void print_VkRenderPassCreateFlagBits(const VkRenderPassCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3522 PRINT_SPACE
3523 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3524 if (commaNeeded)
3525 _OUT << "\"" << VkRenderPassCreateFlagBits_map[*obj] << "\"," << std::endl;
3526 else
3527 _OUT << "\"" << VkRenderPassCreateFlagBits_map[*obj] << "\"" << std::endl;
3528 }
3529
3530 static std::map<deUint64, std::string> VkSubpassDescriptionFlagBits_map = {
3531 std::make_pair(1ULL << 0, "VK_SUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX"),
3532 std::make_pair(1ULL << 1, "VK_SUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX"),
3533 std::make_pair(1ULL << 2, "VK_SUBPASS_DESCRIPTION_FRAGMENT_REGION_BIT_QCOM"),
3534 std::make_pair(1ULL << 3, "VK_SUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM"),
3535 std::make_pair(1ULL << 4, "VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_COLOR_ACCESS_BIT_ARM"),
3536 std::make_pair(1ULL << 5, "VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_DEPTH_ACCESS_BIT_ARM"),
3537 std::make_pair(1ULL << 6, "VK_SUBPASS_DESCRIPTION_RASTERIZATION_ORDER_ATTACHMENT_STENCIL_ACCESS_BIT_ARM"),
3538 };
print_VkSubpassDescriptionFlagBits(VkSubpassDescriptionFlagBits obj,const std::string & str,bool commaNeeded=true)3539 static void print_VkSubpassDescriptionFlagBits(VkSubpassDescriptionFlagBits obj, const std::string& str, bool commaNeeded=true) {
3540 PRINT_SPACE
3541 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3542 if (commaNeeded)
3543 _OUT << "\"" << VkSubpassDescriptionFlagBits_map[obj] << "\"," << std::endl;
3544 else
3545 _OUT << "\"" << VkSubpassDescriptionFlagBits_map[obj] << "\"" << std::endl;
3546 }
print_VkSubpassDescriptionFlagBits(const VkSubpassDescriptionFlagBits * obj,const std::string & str,bool commaNeeded=true)3547 static void print_VkSubpassDescriptionFlagBits(const VkSubpassDescriptionFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3548 PRINT_SPACE
3549 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3550 if (commaNeeded)
3551 _OUT << "\"" << VkSubpassDescriptionFlagBits_map[*obj] << "\"," << std::endl;
3552 else
3553 _OUT << "\"" << VkSubpassDescriptionFlagBits_map[*obj] << "\"" << std::endl;
3554 }
3555
3556 static std::map<deUint64, std::string> VkCommandPoolCreateFlagBits_map = {
3557 std::make_pair(1ULL << 0, "VK_COMMAND_POOL_CREATE_TRANSIENT_BIT"),
3558 std::make_pair(1ULL << 1, "VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT"),
3559 std::make_pair(1ULL << 2, "VK_COMMAND_POOL_CREATE_PROTECTED_BIT"),
3560 };
print_VkCommandPoolCreateFlagBits(VkCommandPoolCreateFlagBits obj,const std::string & str,bool commaNeeded=true)3561 static void print_VkCommandPoolCreateFlagBits(VkCommandPoolCreateFlagBits obj, const std::string& str, bool commaNeeded=true) {
3562 PRINT_SPACE
3563 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3564 if (commaNeeded)
3565 _OUT << "\"" << VkCommandPoolCreateFlagBits_map[obj] << "\"," << std::endl;
3566 else
3567 _OUT << "\"" << VkCommandPoolCreateFlagBits_map[obj] << "\"" << std::endl;
3568 }
print_VkCommandPoolCreateFlagBits(const VkCommandPoolCreateFlagBits * obj,const std::string & str,bool commaNeeded=true)3569 static void print_VkCommandPoolCreateFlagBits(const VkCommandPoolCreateFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3570 PRINT_SPACE
3571 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3572 if (commaNeeded)
3573 _OUT << "\"" << VkCommandPoolCreateFlagBits_map[*obj] << "\"," << std::endl;
3574 else
3575 _OUT << "\"" << VkCommandPoolCreateFlagBits_map[*obj] << "\"" << std::endl;
3576 }
3577
3578 static std::map<deUint64, std::string> VkCommandPoolResetFlagBits_map = {
3579 std::make_pair(1ULL << 1, "VK_COMMAND_POOL_RESET_RESERVED_1_BIT_COREAVI"),
3580 };
print_VkCommandPoolResetFlagBits(VkCommandPoolResetFlagBits obj,const std::string & str,bool commaNeeded=true)3581 static void print_VkCommandPoolResetFlagBits(VkCommandPoolResetFlagBits obj, const std::string& str, bool commaNeeded=true) {
3582 PRINT_SPACE
3583 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3584 if (commaNeeded)
3585 _OUT << "\"" << VkCommandPoolResetFlagBits_map[obj] << "\"," << std::endl;
3586 else
3587 _OUT << "\"" << VkCommandPoolResetFlagBits_map[obj] << "\"" << std::endl;
3588 }
print_VkCommandPoolResetFlagBits(const VkCommandPoolResetFlagBits * obj,const std::string & str,bool commaNeeded=true)3589 static void print_VkCommandPoolResetFlagBits(const VkCommandPoolResetFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3590 PRINT_SPACE
3591 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3592 if (commaNeeded)
3593 _OUT << "\"" << VkCommandPoolResetFlagBits_map[*obj] << "\"," << std::endl;
3594 else
3595 _OUT << "\"" << VkCommandPoolResetFlagBits_map[*obj] << "\"" << std::endl;
3596 }
3597
3598 static std::map<deUint64, std::string> VkCommandBufferLevel_map = {
3599 std::make_pair(0, "VK_COMMAND_BUFFER_LEVEL_PRIMARY"),
3600 std::make_pair(1, "VK_COMMAND_BUFFER_LEVEL_SECONDARY"),
3601 };
print_VkCommandBufferLevel(VkCommandBufferLevel obj,const std::string & str,bool commaNeeded=true)3602 static void print_VkCommandBufferLevel(VkCommandBufferLevel obj, const std::string& str, bool commaNeeded=true) {
3603 PRINT_SPACE
3604 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3605 if (commaNeeded)
3606 _OUT << "\"" << VkCommandBufferLevel_map[obj] << "\"," << std::endl;
3607 else
3608 _OUT << "\"" << VkCommandBufferLevel_map[obj] << "\"" << std::endl;
3609 }
print_VkCommandBufferLevel(const VkCommandBufferLevel * obj,const std::string & str,bool commaNeeded=true)3610 static void print_VkCommandBufferLevel(const VkCommandBufferLevel * obj, const std::string& str, bool commaNeeded=true) {
3611 PRINT_SPACE
3612 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3613 if (commaNeeded)
3614 _OUT << "\"" << VkCommandBufferLevel_map[*obj] << "\"," << std::endl;
3615 else
3616 _OUT << "\"" << VkCommandBufferLevel_map[*obj] << "\"" << std::endl;
3617 }
3618
3619 static std::map<deUint64, std::string> VkCommandBufferUsageFlagBits_map = {
3620 std::make_pair(1ULL << 0, "VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT"),
3621 std::make_pair(1ULL << 1, "VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT"),
3622 std::make_pair(1ULL << 2, "VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT"),
3623 };
print_VkCommandBufferUsageFlagBits(VkCommandBufferUsageFlagBits obj,const std::string & str,bool commaNeeded=true)3624 static void print_VkCommandBufferUsageFlagBits(VkCommandBufferUsageFlagBits obj, const std::string& str, bool commaNeeded=true) {
3625 PRINT_SPACE
3626 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3627 if (commaNeeded)
3628 _OUT << "\"" << VkCommandBufferUsageFlagBits_map[obj] << "\"," << std::endl;
3629 else
3630 _OUT << "\"" << VkCommandBufferUsageFlagBits_map[obj] << "\"" << std::endl;
3631 }
print_VkCommandBufferUsageFlagBits(const VkCommandBufferUsageFlagBits * obj,const std::string & str,bool commaNeeded=true)3632 static void print_VkCommandBufferUsageFlagBits(const VkCommandBufferUsageFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3633 PRINT_SPACE
3634 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3635 if (commaNeeded)
3636 _OUT << "\"" << VkCommandBufferUsageFlagBits_map[*obj] << "\"," << std::endl;
3637 else
3638 _OUT << "\"" << VkCommandBufferUsageFlagBits_map[*obj] << "\"" << std::endl;
3639 }
3640
3641 static std::map<deUint64, std::string> VkQueryControlFlagBits_map = {
3642 std::make_pair(1ULL << 0, "VK_QUERY_CONTROL_PRECISE_BIT"),
3643 };
print_VkQueryControlFlagBits(VkQueryControlFlagBits obj,const std::string & str,bool commaNeeded=true)3644 static void print_VkQueryControlFlagBits(VkQueryControlFlagBits obj, const std::string& str, bool commaNeeded=true) {
3645 PRINT_SPACE
3646 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3647 if (commaNeeded)
3648 _OUT << "\"" << VkQueryControlFlagBits_map[obj] << "\"," << std::endl;
3649 else
3650 _OUT << "\"" << VkQueryControlFlagBits_map[obj] << "\"" << std::endl;
3651 }
print_VkQueryControlFlagBits(const VkQueryControlFlagBits * obj,const std::string & str,bool commaNeeded=true)3652 static void print_VkQueryControlFlagBits(const VkQueryControlFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3653 PRINT_SPACE
3654 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3655 if (commaNeeded)
3656 _OUT << "\"" << VkQueryControlFlagBits_map[*obj] << "\"," << std::endl;
3657 else
3658 _OUT << "\"" << VkQueryControlFlagBits_map[*obj] << "\"" << std::endl;
3659 }
3660
3661 static std::map<deUint64, std::string> VkCommandBufferResetFlagBits_map = {
3662 std::make_pair(1ULL << 0, "VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT"),
3663 };
print_VkCommandBufferResetFlagBits(VkCommandBufferResetFlagBits obj,const std::string & str,bool commaNeeded=true)3664 static void print_VkCommandBufferResetFlagBits(VkCommandBufferResetFlagBits obj, const std::string& str, bool commaNeeded=true) {
3665 PRINT_SPACE
3666 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3667 if (commaNeeded)
3668 _OUT << "\"" << VkCommandBufferResetFlagBits_map[obj] << "\"," << std::endl;
3669 else
3670 _OUT << "\"" << VkCommandBufferResetFlagBits_map[obj] << "\"" << std::endl;
3671 }
print_VkCommandBufferResetFlagBits(const VkCommandBufferResetFlagBits * obj,const std::string & str,bool commaNeeded=true)3672 static void print_VkCommandBufferResetFlagBits(const VkCommandBufferResetFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3673 PRINT_SPACE
3674 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3675 if (commaNeeded)
3676 _OUT << "\"" << VkCommandBufferResetFlagBits_map[*obj] << "\"," << std::endl;
3677 else
3678 _OUT << "\"" << VkCommandBufferResetFlagBits_map[*obj] << "\"" << std::endl;
3679 }
3680
3681 static std::map<deUint64, std::string> VkIndexType_map = {
3682 std::make_pair(0, "VK_INDEX_TYPE_UINT16"),
3683 std::make_pair(1, "VK_INDEX_TYPE_UINT32"),
3684 std::make_pair(1000165000, "VK_INDEX_TYPE_NONE_KHR"),
3685 std::make_pair(1000265000, "VK_INDEX_TYPE_UINT8_EXT"),
3686 };
print_VkIndexType(VkIndexType obj,const std::string & str,bool commaNeeded=true)3687 static void print_VkIndexType(VkIndexType obj, const std::string& str, bool commaNeeded=true) {
3688 PRINT_SPACE
3689 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3690 if (commaNeeded)
3691 _OUT << "\"" << VkIndexType_map[obj] << "\"," << std::endl;
3692 else
3693 _OUT << "\"" << VkIndexType_map[obj] << "\"" << std::endl;
3694 }
print_VkIndexType(const VkIndexType * obj,const std::string & str,bool commaNeeded=true)3695 static void print_VkIndexType(const VkIndexType * obj, const std::string& str, bool commaNeeded=true) {
3696 PRINT_SPACE
3697 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3698 if (commaNeeded)
3699 _OUT << "\"" << VkIndexType_map[*obj] << "\"," << std::endl;
3700 else
3701 _OUT << "\"" << VkIndexType_map[*obj] << "\"" << std::endl;
3702 }
3703
3704 static std::map<deUint64, std::string> VkStencilFaceFlagBits_map = {
3705 std::make_pair(1ULL << 0, "VK_STENCIL_FACE_FRONT_BIT"),
3706 std::make_pair(1ULL << 1, "VK_STENCIL_FACE_BACK_BIT"),
3707 std::make_pair(0x00000003, "VK_STENCIL_FACE_FRONT_AND_BACK"),
3708 };
print_VkStencilFaceFlagBits(VkStencilFaceFlagBits obj,const std::string & str,bool commaNeeded=true)3709 static void print_VkStencilFaceFlagBits(VkStencilFaceFlagBits obj, const std::string& str, bool commaNeeded=true) {
3710 PRINT_SPACE
3711 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3712 if (commaNeeded)
3713 _OUT << "\"" << VkStencilFaceFlagBits_map[obj] << "\"," << std::endl;
3714 else
3715 _OUT << "\"" << VkStencilFaceFlagBits_map[obj] << "\"" << std::endl;
3716 }
print_VkStencilFaceFlagBits(const VkStencilFaceFlagBits * obj,const std::string & str,bool commaNeeded=true)3717 static void print_VkStencilFaceFlagBits(const VkStencilFaceFlagBits * obj, const std::string& str, bool commaNeeded=true) {
3718 PRINT_SPACE
3719 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3720 if (commaNeeded)
3721 _OUT << "\"" << VkStencilFaceFlagBits_map[*obj] << "\"," << std::endl;
3722 else
3723 _OUT << "\"" << VkStencilFaceFlagBits_map[*obj] << "\"" << std::endl;
3724 }
3725
3726 static std::map<deUint64, std::string> VkSubpassContents_map = {
3727 std::make_pair(0, "VK_SUBPASS_CONTENTS_INLINE"),
3728 std::make_pair(1, "VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS"),
3729 };
print_VkSubpassContents(VkSubpassContents obj,const std::string & str,bool commaNeeded=true)3730 static void print_VkSubpassContents(VkSubpassContents obj, const std::string& str, bool commaNeeded=true) {
3731 PRINT_SPACE
3732 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3733 if (commaNeeded)
3734 _OUT << "\"" << VkSubpassContents_map[obj] << "\"," << std::endl;
3735 else
3736 _OUT << "\"" << VkSubpassContents_map[obj] << "\"" << std::endl;
3737 }
print_VkSubpassContents(const VkSubpassContents * obj,const std::string & str,bool commaNeeded=true)3738 static void print_VkSubpassContents(const VkSubpassContents * obj, const std::string& str, bool commaNeeded=true) {
3739 PRINT_SPACE
3740 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3741 if (commaNeeded)
3742 _OUT << "\"" << VkSubpassContents_map[*obj] << "\"," << std::endl;
3743 else
3744 _OUT << "\"" << VkSubpassContents_map[*obj] << "\"" << std::endl;
3745 }
3746
print_VkAccessFlags(VkAccessFlags obj,const std::string & str,bool commaNeeded=true)3747 static void print_VkAccessFlags(VkAccessFlags obj, const std::string& str, bool commaNeeded=true) {
3748 PRINT_SPACE
3749 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3750 const int max_bits = 64; // We don't expect the number to be larger.
3751 std::bitset<max_bits> b(obj);
3752 _OUT << "\"";
3753 if (obj == 0) _OUT << "0";
3754 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3755 if (b[i] == 1) {
3756 bitCount++;
3757 if (bitCount < b.count())
3758 _OUT << VkAccessFlagBits_map[1ULL<<i] << " | ";
3759 else
3760 _OUT << VkAccessFlagBits_map[1ULL<<i];
3761 }
3762 }
3763 if (commaNeeded)
3764 _OUT << "\"" << ",";
3765 else
3766 _OUT << "\""<< "";
3767 _OUT << std::endl;
3768 }
print_VkAccessFlags(const VkAccessFlags * obj,const std::string & str,bool commaNeeded=true)3769 static void print_VkAccessFlags(const VkAccessFlags * obj, const std::string& str, bool commaNeeded=true) {
3770 PRINT_SPACE
3771 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3772 const int max_bits = 64; // We don't expect the number to be larger.
3773 std::bitset<max_bits> b(obj);
3774 _OUT << "\"";
3775 if (obj == 0) _OUT << "0";
3776 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3777 if (b[i] == 1) {
3778 bitCount++;
3779 if (bitCount < b.count())
3780 _OUT << VkAccessFlagBits_map[1ULL<<i] << " | ";
3781 else
3782 _OUT << VkAccessFlagBits_map[1ULL<<i];
3783 }
3784 }
3785 if (commaNeeded)
3786 _OUT << "\"" << ",";
3787 else
3788 _OUT << "\""<< "";
3789 _OUT << std::endl;
3790 }
3791
print_VkImageAspectFlags(VkImageAspectFlags obj,const std::string & str,bool commaNeeded=true)3792 static void print_VkImageAspectFlags(VkImageAspectFlags obj, const std::string& str, bool commaNeeded=true) {
3793 PRINT_SPACE
3794 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3795 const int max_bits = 64; // We don't expect the number to be larger.
3796 std::bitset<max_bits> b(obj);
3797 _OUT << "\"";
3798 if (obj == 0) _OUT << "0";
3799 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3800 if (b[i] == 1) {
3801 bitCount++;
3802 if (bitCount < b.count())
3803 _OUT << VkImageAspectFlagBits_map[1ULL<<i] << " | ";
3804 else
3805 _OUT << VkImageAspectFlagBits_map[1ULL<<i];
3806 }
3807 }
3808 if (commaNeeded)
3809 _OUT << "\"" << ",";
3810 else
3811 _OUT << "\""<< "";
3812 _OUT << std::endl;
3813 }
print_VkImageAspectFlags(const VkImageAspectFlags * obj,const std::string & str,bool commaNeeded=true)3814 static void print_VkImageAspectFlags(const VkImageAspectFlags * obj, const std::string& str, bool commaNeeded=true) {
3815 PRINT_SPACE
3816 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3817 const int max_bits = 64; // We don't expect the number to be larger.
3818 std::bitset<max_bits> b(obj);
3819 _OUT << "\"";
3820 if (obj == 0) _OUT << "0";
3821 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3822 if (b[i] == 1) {
3823 bitCount++;
3824 if (bitCount < b.count())
3825 _OUT << VkImageAspectFlagBits_map[1ULL<<i] << " | ";
3826 else
3827 _OUT << VkImageAspectFlagBits_map[1ULL<<i];
3828 }
3829 }
3830 if (commaNeeded)
3831 _OUT << "\"" << ",";
3832 else
3833 _OUT << "\""<< "";
3834 _OUT << std::endl;
3835 }
3836
print_VkFormatFeatureFlags(VkFormatFeatureFlags obj,const std::string & str,bool commaNeeded=true)3837 static void print_VkFormatFeatureFlags(VkFormatFeatureFlags obj, const std::string& str, bool commaNeeded=true) {
3838 PRINT_SPACE
3839 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3840 const int max_bits = 64; // We don't expect the number to be larger.
3841 std::bitset<max_bits> b(obj);
3842 _OUT << "\"";
3843 if (obj == 0) _OUT << "0";
3844 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3845 if (b[i] == 1) {
3846 bitCount++;
3847 if (bitCount < b.count())
3848 _OUT << VkFormatFeatureFlagBits_map[1ULL<<i] << " | ";
3849 else
3850 _OUT << VkFormatFeatureFlagBits_map[1ULL<<i];
3851 }
3852 }
3853 if (commaNeeded)
3854 _OUT << "\"" << ",";
3855 else
3856 _OUT << "\""<< "";
3857 _OUT << std::endl;
3858 }
print_VkFormatFeatureFlags(const VkFormatFeatureFlags * obj,const std::string & str,bool commaNeeded=true)3859 static void print_VkFormatFeatureFlags(const VkFormatFeatureFlags * obj, const std::string& str, bool commaNeeded=true) {
3860 PRINT_SPACE
3861 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3862 const int max_bits = 64; // We don't expect the number to be larger.
3863 std::bitset<max_bits> b(obj);
3864 _OUT << "\"";
3865 if (obj == 0) _OUT << "0";
3866 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3867 if (b[i] == 1) {
3868 bitCount++;
3869 if (bitCount < b.count())
3870 _OUT << VkFormatFeatureFlagBits_map[1ULL<<i] << " | ";
3871 else
3872 _OUT << VkFormatFeatureFlagBits_map[1ULL<<i];
3873 }
3874 }
3875 if (commaNeeded)
3876 _OUT << "\"" << ",";
3877 else
3878 _OUT << "\""<< "";
3879 _OUT << std::endl;
3880 }
3881
print_VkImageCreateFlags(VkImageCreateFlags obj,const std::string & str,bool commaNeeded=true)3882 static void print_VkImageCreateFlags(VkImageCreateFlags obj, const std::string& str, bool commaNeeded=true) {
3883 PRINT_SPACE
3884 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3885 const int max_bits = 64; // We don't expect the number to be larger.
3886 std::bitset<max_bits> b(obj);
3887 _OUT << "\"";
3888 if (obj == 0) _OUT << "0";
3889 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3890 if (b[i] == 1) {
3891 bitCount++;
3892 if (bitCount < b.count())
3893 _OUT << VkImageCreateFlagBits_map[1ULL<<i] << " | ";
3894 else
3895 _OUT << VkImageCreateFlagBits_map[1ULL<<i];
3896 }
3897 }
3898 if (commaNeeded)
3899 _OUT << "\"" << ",";
3900 else
3901 _OUT << "\""<< "";
3902 _OUT << std::endl;
3903 }
print_VkImageCreateFlags(const VkImageCreateFlags * obj,const std::string & str,bool commaNeeded=true)3904 static void print_VkImageCreateFlags(const VkImageCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
3905 PRINT_SPACE
3906 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3907 const int max_bits = 64; // We don't expect the number to be larger.
3908 std::bitset<max_bits> b(obj);
3909 _OUT << "\"";
3910 if (obj == 0) _OUT << "0";
3911 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3912 if (b[i] == 1) {
3913 bitCount++;
3914 if (bitCount < b.count())
3915 _OUT << VkImageCreateFlagBits_map[1ULL<<i] << " | ";
3916 else
3917 _OUT << VkImageCreateFlagBits_map[1ULL<<i];
3918 }
3919 }
3920 if (commaNeeded)
3921 _OUT << "\"" << ",";
3922 else
3923 _OUT << "\""<< "";
3924 _OUT << std::endl;
3925 }
3926
print_VkSampleCountFlags(VkSampleCountFlags obj,const std::string & str,bool commaNeeded=true)3927 static void print_VkSampleCountFlags(VkSampleCountFlags obj, const std::string& str, bool commaNeeded=true) {
3928 PRINT_SPACE
3929 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3930 const int max_bits = 64; // We don't expect the number to be larger.
3931 std::bitset<max_bits> b(obj);
3932 _OUT << "\"";
3933 if (obj == 0) _OUT << "0";
3934 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3935 if (b[i] == 1) {
3936 bitCount++;
3937 if (bitCount < b.count())
3938 _OUT << VkSampleCountFlagBits_map[1ULL<<i] << " | ";
3939 else
3940 _OUT << VkSampleCountFlagBits_map[1ULL<<i];
3941 }
3942 }
3943 if (commaNeeded)
3944 _OUT << "\"" << ",";
3945 else
3946 _OUT << "\""<< "";
3947 _OUT << std::endl;
3948 }
print_VkSampleCountFlags(const VkSampleCountFlags * obj,const std::string & str,bool commaNeeded=true)3949 static void print_VkSampleCountFlags(const VkSampleCountFlags * obj, const std::string& str, bool commaNeeded=true) {
3950 PRINT_SPACE
3951 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3952 const int max_bits = 64; // We don't expect the number to be larger.
3953 std::bitset<max_bits> b(obj);
3954 _OUT << "\"";
3955 if (obj == 0) _OUT << "0";
3956 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3957 if (b[i] == 1) {
3958 bitCount++;
3959 if (bitCount < b.count())
3960 _OUT << VkSampleCountFlagBits_map[1ULL<<i] << " | ";
3961 else
3962 _OUT << VkSampleCountFlagBits_map[1ULL<<i];
3963 }
3964 }
3965 if (commaNeeded)
3966 _OUT << "\"" << ",";
3967 else
3968 _OUT << "\""<< "";
3969 _OUT << std::endl;
3970 }
3971
print_VkImageUsageFlags(VkImageUsageFlags obj,const std::string & str,bool commaNeeded=true)3972 static void print_VkImageUsageFlags(VkImageUsageFlags obj, const std::string& str, bool commaNeeded=true) {
3973 PRINT_SPACE
3974 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3975 const int max_bits = 64; // We don't expect the number to be larger.
3976 std::bitset<max_bits> b(obj);
3977 _OUT << "\"";
3978 if (obj == 0) _OUT << "0";
3979 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
3980 if (b[i] == 1) {
3981 bitCount++;
3982 if (bitCount < b.count())
3983 _OUT << VkImageUsageFlagBits_map[1ULL<<i] << " | ";
3984 else
3985 _OUT << VkImageUsageFlagBits_map[1ULL<<i];
3986 }
3987 }
3988 if (commaNeeded)
3989 _OUT << "\"" << ",";
3990 else
3991 _OUT << "\""<< "";
3992 _OUT << std::endl;
3993 }
print_VkImageUsageFlags(const VkImageUsageFlags * obj,const std::string & str,bool commaNeeded=true)3994 static void print_VkImageUsageFlags(const VkImageUsageFlags * obj, const std::string& str, bool commaNeeded=true) {
3995 PRINT_SPACE
3996 if (str != "") _OUT << "\"" << str << "\"" << " : ";
3997 const int max_bits = 64; // We don't expect the number to be larger.
3998 std::bitset<max_bits> b(obj);
3999 _OUT << "\"";
4000 if (obj == 0) _OUT << "0";
4001 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4002 if (b[i] == 1) {
4003 bitCount++;
4004 if (bitCount < b.count())
4005 _OUT << VkImageUsageFlagBits_map[1ULL<<i] << " | ";
4006 else
4007 _OUT << VkImageUsageFlagBits_map[1ULL<<i];
4008 }
4009 }
4010 if (commaNeeded)
4011 _OUT << "\"" << ",";
4012 else
4013 _OUT << "\""<< "";
4014 _OUT << std::endl;
4015 }
4016
print_VkInstanceCreateFlags(VkInstanceCreateFlags obj,const std::string & str,bool commaNeeded=true)4017 static void print_VkInstanceCreateFlags(VkInstanceCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4018 PRINT_SPACE
4019 if (commaNeeded)
4020 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4021 else
4022 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4023 }
print_VkInstanceCreateFlags(const VkInstanceCreateFlags * obj,const std::string & str,bool commaNeeded=true)4024 static void print_VkInstanceCreateFlags(const VkInstanceCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4025 PRINT_SPACE
4026 if (commaNeeded)
4027 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4028 else
4029 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4030 }
4031
print_VkMemoryHeapFlags(VkMemoryHeapFlags obj,const std::string & str,bool commaNeeded=true)4032 static void print_VkMemoryHeapFlags(VkMemoryHeapFlags obj, const std::string& str, bool commaNeeded=true) {
4033 PRINT_SPACE
4034 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4035 const int max_bits = 64; // We don't expect the number to be larger.
4036 std::bitset<max_bits> b(obj);
4037 _OUT << "\"";
4038 if (obj == 0) _OUT << "0";
4039 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4040 if (b[i] == 1) {
4041 bitCount++;
4042 if (bitCount < b.count())
4043 _OUT << VkMemoryHeapFlagBits_map[1ULL<<i] << " | ";
4044 else
4045 _OUT << VkMemoryHeapFlagBits_map[1ULL<<i];
4046 }
4047 }
4048 if (commaNeeded)
4049 _OUT << "\"" << ",";
4050 else
4051 _OUT << "\""<< "";
4052 _OUT << std::endl;
4053 }
print_VkMemoryHeapFlags(const VkMemoryHeapFlags * obj,const std::string & str,bool commaNeeded=true)4054 static void print_VkMemoryHeapFlags(const VkMemoryHeapFlags * obj, const std::string& str, bool commaNeeded=true) {
4055 PRINT_SPACE
4056 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4057 const int max_bits = 64; // We don't expect the number to be larger.
4058 std::bitset<max_bits> b(obj);
4059 _OUT << "\"";
4060 if (obj == 0) _OUT << "0";
4061 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4062 if (b[i] == 1) {
4063 bitCount++;
4064 if (bitCount < b.count())
4065 _OUT << VkMemoryHeapFlagBits_map[1ULL<<i] << " | ";
4066 else
4067 _OUT << VkMemoryHeapFlagBits_map[1ULL<<i];
4068 }
4069 }
4070 if (commaNeeded)
4071 _OUT << "\"" << ",";
4072 else
4073 _OUT << "\""<< "";
4074 _OUT << std::endl;
4075 }
4076
print_VkMemoryPropertyFlags(VkMemoryPropertyFlags obj,const std::string & str,bool commaNeeded=true)4077 static void print_VkMemoryPropertyFlags(VkMemoryPropertyFlags obj, const std::string& str, bool commaNeeded=true) {
4078 PRINT_SPACE
4079 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4080 const int max_bits = 64; // We don't expect the number to be larger.
4081 std::bitset<max_bits> b(obj);
4082 _OUT << "\"";
4083 if (obj == 0) _OUT << "0";
4084 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4085 if (b[i] == 1) {
4086 bitCount++;
4087 if (bitCount < b.count())
4088 _OUT << VkMemoryPropertyFlagBits_map[1ULL<<i] << " | ";
4089 else
4090 _OUT << VkMemoryPropertyFlagBits_map[1ULL<<i];
4091 }
4092 }
4093 if (commaNeeded)
4094 _OUT << "\"" << ",";
4095 else
4096 _OUT << "\""<< "";
4097 _OUT << std::endl;
4098 }
print_VkMemoryPropertyFlags(const VkMemoryPropertyFlags * obj,const std::string & str,bool commaNeeded=true)4099 static void print_VkMemoryPropertyFlags(const VkMemoryPropertyFlags * obj, const std::string& str, bool commaNeeded=true) {
4100 PRINT_SPACE
4101 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4102 const int max_bits = 64; // We don't expect the number to be larger.
4103 std::bitset<max_bits> b(obj);
4104 _OUT << "\"";
4105 if (obj == 0) _OUT << "0";
4106 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4107 if (b[i] == 1) {
4108 bitCount++;
4109 if (bitCount < b.count())
4110 _OUT << VkMemoryPropertyFlagBits_map[1ULL<<i] << " | ";
4111 else
4112 _OUT << VkMemoryPropertyFlagBits_map[1ULL<<i];
4113 }
4114 }
4115 if (commaNeeded)
4116 _OUT << "\"" << ",";
4117 else
4118 _OUT << "\""<< "";
4119 _OUT << std::endl;
4120 }
4121
print_VkQueueFlags(VkQueueFlags obj,const std::string & str,bool commaNeeded=true)4122 static void print_VkQueueFlags(VkQueueFlags obj, const std::string& str, bool commaNeeded=true) {
4123 PRINT_SPACE
4124 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4125 const int max_bits = 64; // We don't expect the number to be larger.
4126 std::bitset<max_bits> b(obj);
4127 _OUT << "\"";
4128 if (obj == 0) _OUT << "0";
4129 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4130 if (b[i] == 1) {
4131 bitCount++;
4132 if (bitCount < b.count())
4133 _OUT << VkQueueFlagBits_map[1ULL<<i] << " | ";
4134 else
4135 _OUT << VkQueueFlagBits_map[1ULL<<i];
4136 }
4137 }
4138 if (commaNeeded)
4139 _OUT << "\"" << ",";
4140 else
4141 _OUT << "\""<< "";
4142 _OUT << std::endl;
4143 }
print_VkQueueFlags(const VkQueueFlags * obj,const std::string & str,bool commaNeeded=true)4144 static void print_VkQueueFlags(const VkQueueFlags * obj, const std::string& str, bool commaNeeded=true) {
4145 PRINT_SPACE
4146 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4147 const int max_bits = 64; // We don't expect the number to be larger.
4148 std::bitset<max_bits> b(obj);
4149 _OUT << "\"";
4150 if (obj == 0) _OUT << "0";
4151 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4152 if (b[i] == 1) {
4153 bitCount++;
4154 if (bitCount < b.count())
4155 _OUT << VkQueueFlagBits_map[1ULL<<i] << " | ";
4156 else
4157 _OUT << VkQueueFlagBits_map[1ULL<<i];
4158 }
4159 }
4160 if (commaNeeded)
4161 _OUT << "\"" << ",";
4162 else
4163 _OUT << "\""<< "";
4164 _OUT << std::endl;
4165 }
4166
print_VkDeviceCreateFlags(VkDeviceCreateFlags obj,const std::string & str,bool commaNeeded=true)4167 static void print_VkDeviceCreateFlags(VkDeviceCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4168 PRINT_SPACE
4169 if (commaNeeded)
4170 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4171 else
4172 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4173 }
print_VkDeviceCreateFlags(const VkDeviceCreateFlags * obj,const std::string & str,bool commaNeeded=true)4174 static void print_VkDeviceCreateFlags(const VkDeviceCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4175 PRINT_SPACE
4176 if (commaNeeded)
4177 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4178 else
4179 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4180 }
4181
print_VkDeviceQueueCreateFlags(VkDeviceQueueCreateFlags obj,const std::string & str,bool commaNeeded=true)4182 static void print_VkDeviceQueueCreateFlags(VkDeviceQueueCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4183 PRINT_SPACE
4184 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4185 const int max_bits = 64; // We don't expect the number to be larger.
4186 std::bitset<max_bits> b(obj);
4187 _OUT << "\"";
4188 if (obj == 0) _OUT << "0";
4189 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4190 if (b[i] == 1) {
4191 bitCount++;
4192 if (bitCount < b.count())
4193 _OUT << VkDeviceQueueCreateFlagBits_map[1ULL<<i] << " | ";
4194 else
4195 _OUT << VkDeviceQueueCreateFlagBits_map[1ULL<<i];
4196 }
4197 }
4198 if (commaNeeded)
4199 _OUT << "\"" << ",";
4200 else
4201 _OUT << "\""<< "";
4202 _OUT << std::endl;
4203 }
print_VkDeviceQueueCreateFlags(const VkDeviceQueueCreateFlags * obj,const std::string & str,bool commaNeeded=true)4204 static void print_VkDeviceQueueCreateFlags(const VkDeviceQueueCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4205 PRINT_SPACE
4206 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4207 const int max_bits = 64; // We don't expect the number to be larger.
4208 std::bitset<max_bits> b(obj);
4209 _OUT << "\"";
4210 if (obj == 0) _OUT << "0";
4211 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4212 if (b[i] == 1) {
4213 bitCount++;
4214 if (bitCount < b.count())
4215 _OUT << VkDeviceQueueCreateFlagBits_map[1ULL<<i] << " | ";
4216 else
4217 _OUT << VkDeviceQueueCreateFlagBits_map[1ULL<<i];
4218 }
4219 }
4220 if (commaNeeded)
4221 _OUT << "\"" << ",";
4222 else
4223 _OUT << "\""<< "";
4224 _OUT << std::endl;
4225 }
4226
print_VkPipelineStageFlags(VkPipelineStageFlags obj,const std::string & str,bool commaNeeded=true)4227 static void print_VkPipelineStageFlags(VkPipelineStageFlags obj, const std::string& str, bool commaNeeded=true) {
4228 PRINT_SPACE
4229 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4230 const int max_bits = 64; // We don't expect the number to be larger.
4231 std::bitset<max_bits> b(obj);
4232 _OUT << "\"";
4233 if (obj == 0) _OUT << "0";
4234 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4235 if (b[i] == 1) {
4236 bitCount++;
4237 if (bitCount < b.count())
4238 _OUT << VkPipelineStageFlagBits_map[1ULL<<i] << " | ";
4239 else
4240 _OUT << VkPipelineStageFlagBits_map[1ULL<<i];
4241 }
4242 }
4243 if (commaNeeded)
4244 _OUT << "\"" << ",";
4245 else
4246 _OUT << "\""<< "";
4247 _OUT << std::endl;
4248 }
print_VkPipelineStageFlags(const VkPipelineStageFlags * obj,const std::string & str,bool commaNeeded=true)4249 static void print_VkPipelineStageFlags(const VkPipelineStageFlags * obj, const std::string& str, bool commaNeeded=true) {
4250 PRINT_SPACE
4251 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4252 const int max_bits = 64; // We don't expect the number to be larger.
4253 std::bitset<max_bits> b(obj);
4254 _OUT << "\"";
4255 if (obj == 0) _OUT << "0";
4256 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4257 if (b[i] == 1) {
4258 bitCount++;
4259 if (bitCount < b.count())
4260 _OUT << VkPipelineStageFlagBits_map[1ULL<<i] << " | ";
4261 else
4262 _OUT << VkPipelineStageFlagBits_map[1ULL<<i];
4263 }
4264 }
4265 if (commaNeeded)
4266 _OUT << "\"" << ",";
4267 else
4268 _OUT << "\""<< "";
4269 _OUT << std::endl;
4270 }
4271
print_VkMemoryMapFlags(VkMemoryMapFlags obj,const std::string & str,bool commaNeeded=true)4272 static void print_VkMemoryMapFlags(VkMemoryMapFlags obj, const std::string& str, bool commaNeeded=true) {
4273 PRINT_SPACE
4274 if (commaNeeded)
4275 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4276 else
4277 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4278 }
print_VkMemoryMapFlags(const VkMemoryMapFlags * obj,const std::string & str,bool commaNeeded=true)4279 static void print_VkMemoryMapFlags(const VkMemoryMapFlags * obj, const std::string& str, bool commaNeeded=true) {
4280 PRINT_SPACE
4281 if (commaNeeded)
4282 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4283 else
4284 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4285 }
4286
print_VkFenceCreateFlags(VkFenceCreateFlags obj,const std::string & str,bool commaNeeded=true)4287 static void print_VkFenceCreateFlags(VkFenceCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4288 PRINT_SPACE
4289 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4290 const int max_bits = 64; // We don't expect the number to be larger.
4291 std::bitset<max_bits> b(obj);
4292 _OUT << "\"";
4293 if (obj == 0) _OUT << "0";
4294 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4295 if (b[i] == 1) {
4296 bitCount++;
4297 if (bitCount < b.count())
4298 _OUT << VkFenceCreateFlagBits_map[1ULL<<i] << " | ";
4299 else
4300 _OUT << VkFenceCreateFlagBits_map[1ULL<<i];
4301 }
4302 }
4303 if (commaNeeded)
4304 _OUT << "\"" << ",";
4305 else
4306 _OUT << "\""<< "";
4307 _OUT << std::endl;
4308 }
print_VkFenceCreateFlags(const VkFenceCreateFlags * obj,const std::string & str,bool commaNeeded=true)4309 static void print_VkFenceCreateFlags(const VkFenceCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4310 PRINT_SPACE
4311 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4312 const int max_bits = 64; // We don't expect the number to be larger.
4313 std::bitset<max_bits> b(obj);
4314 _OUT << "\"";
4315 if (obj == 0) _OUT << "0";
4316 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4317 if (b[i] == 1) {
4318 bitCount++;
4319 if (bitCount < b.count())
4320 _OUT << VkFenceCreateFlagBits_map[1ULL<<i] << " | ";
4321 else
4322 _OUT << VkFenceCreateFlagBits_map[1ULL<<i];
4323 }
4324 }
4325 if (commaNeeded)
4326 _OUT << "\"" << ",";
4327 else
4328 _OUT << "\""<< "";
4329 _OUT << std::endl;
4330 }
4331
print_VkSemaphoreCreateFlags(VkSemaphoreCreateFlags obj,const std::string & str,bool commaNeeded=true)4332 static void print_VkSemaphoreCreateFlags(VkSemaphoreCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4333 PRINT_SPACE
4334 if (commaNeeded)
4335 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4336 else
4337 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4338 }
print_VkSemaphoreCreateFlags(const VkSemaphoreCreateFlags * obj,const std::string & str,bool commaNeeded=true)4339 static void print_VkSemaphoreCreateFlags(const VkSemaphoreCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4340 PRINT_SPACE
4341 if (commaNeeded)
4342 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4343 else
4344 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4345 }
4346
print_VkEventCreateFlags(VkEventCreateFlags obj,const std::string & str,bool commaNeeded=true)4347 static void print_VkEventCreateFlags(VkEventCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4348 PRINT_SPACE
4349 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4350 const int max_bits = 64; // We don't expect the number to be larger.
4351 std::bitset<max_bits> b(obj);
4352 _OUT << "\"";
4353 if (obj == 0) _OUT << "0";
4354 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4355 if (b[i] == 1) {
4356 bitCount++;
4357 if (bitCount < b.count())
4358 _OUT << VkEventCreateFlagBits_map[1ULL<<i] << " | ";
4359 else
4360 _OUT << VkEventCreateFlagBits_map[1ULL<<i];
4361 }
4362 }
4363 if (commaNeeded)
4364 _OUT << "\"" << ",";
4365 else
4366 _OUT << "\""<< "";
4367 _OUT << std::endl;
4368 }
print_VkEventCreateFlags(const VkEventCreateFlags * obj,const std::string & str,bool commaNeeded=true)4369 static void print_VkEventCreateFlags(const VkEventCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4370 PRINT_SPACE
4371 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4372 const int max_bits = 64; // We don't expect the number to be larger.
4373 std::bitset<max_bits> b(obj);
4374 _OUT << "\"";
4375 if (obj == 0) _OUT << "0";
4376 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4377 if (b[i] == 1) {
4378 bitCount++;
4379 if (bitCount < b.count())
4380 _OUT << VkEventCreateFlagBits_map[1ULL<<i] << " | ";
4381 else
4382 _OUT << VkEventCreateFlagBits_map[1ULL<<i];
4383 }
4384 }
4385 if (commaNeeded)
4386 _OUT << "\"" << ",";
4387 else
4388 _OUT << "\""<< "";
4389 _OUT << std::endl;
4390 }
4391
print_VkQueryPipelineStatisticFlags(VkQueryPipelineStatisticFlags obj,const std::string & str,bool commaNeeded=true)4392 static void print_VkQueryPipelineStatisticFlags(VkQueryPipelineStatisticFlags obj, const std::string& str, bool commaNeeded=true) {
4393 PRINT_SPACE
4394 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4395 const int max_bits = 64; // We don't expect the number to be larger.
4396 std::bitset<max_bits> b(obj);
4397 _OUT << "\"";
4398 if (obj == 0) _OUT << "0";
4399 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4400 if (b[i] == 1) {
4401 bitCount++;
4402 if (bitCount < b.count())
4403 _OUT << VkQueryPipelineStatisticFlagBits_map[1ULL<<i] << " | ";
4404 else
4405 _OUT << VkQueryPipelineStatisticFlagBits_map[1ULL<<i];
4406 }
4407 }
4408 if (commaNeeded)
4409 _OUT << "\"" << ",";
4410 else
4411 _OUT << "\""<< "";
4412 _OUT << std::endl;
4413 }
print_VkQueryPipelineStatisticFlags(const VkQueryPipelineStatisticFlags * obj,const std::string & str,bool commaNeeded=true)4414 static void print_VkQueryPipelineStatisticFlags(const VkQueryPipelineStatisticFlags * obj, const std::string& str, bool commaNeeded=true) {
4415 PRINT_SPACE
4416 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4417 const int max_bits = 64; // We don't expect the number to be larger.
4418 std::bitset<max_bits> b(obj);
4419 _OUT << "\"";
4420 if (obj == 0) _OUT << "0";
4421 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4422 if (b[i] == 1) {
4423 bitCount++;
4424 if (bitCount < b.count())
4425 _OUT << VkQueryPipelineStatisticFlagBits_map[1ULL<<i] << " | ";
4426 else
4427 _OUT << VkQueryPipelineStatisticFlagBits_map[1ULL<<i];
4428 }
4429 }
4430 if (commaNeeded)
4431 _OUT << "\"" << ",";
4432 else
4433 _OUT << "\""<< "";
4434 _OUT << std::endl;
4435 }
4436
print_VkQueryPoolCreateFlags(VkQueryPoolCreateFlags obj,const std::string & str,bool commaNeeded=true)4437 static void print_VkQueryPoolCreateFlags(VkQueryPoolCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4438 PRINT_SPACE
4439 if (commaNeeded)
4440 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4441 else
4442 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4443 }
print_VkQueryPoolCreateFlags(const VkQueryPoolCreateFlags * obj,const std::string & str,bool commaNeeded=true)4444 static void print_VkQueryPoolCreateFlags(const VkQueryPoolCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4445 PRINT_SPACE
4446 if (commaNeeded)
4447 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4448 else
4449 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4450 }
4451
print_VkQueryResultFlags(VkQueryResultFlags obj,const std::string & str,bool commaNeeded=true)4452 static void print_VkQueryResultFlags(VkQueryResultFlags obj, const std::string& str, bool commaNeeded=true) {
4453 PRINT_SPACE
4454 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4455 const int max_bits = 64; // We don't expect the number to be larger.
4456 std::bitset<max_bits> b(obj);
4457 _OUT << "\"";
4458 if (obj == 0) _OUT << "0";
4459 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4460 if (b[i] == 1) {
4461 bitCount++;
4462 if (bitCount < b.count())
4463 _OUT << VkQueryResultFlagBits_map[1ULL<<i] << " | ";
4464 else
4465 _OUT << VkQueryResultFlagBits_map[1ULL<<i];
4466 }
4467 }
4468 if (commaNeeded)
4469 _OUT << "\"" << ",";
4470 else
4471 _OUT << "\""<< "";
4472 _OUT << std::endl;
4473 }
print_VkQueryResultFlags(const VkQueryResultFlags * obj,const std::string & str,bool commaNeeded=true)4474 static void print_VkQueryResultFlags(const VkQueryResultFlags * obj, const std::string& str, bool commaNeeded=true) {
4475 PRINT_SPACE
4476 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4477 const int max_bits = 64; // We don't expect the number to be larger.
4478 std::bitset<max_bits> b(obj);
4479 _OUT << "\"";
4480 if (obj == 0) _OUT << "0";
4481 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4482 if (b[i] == 1) {
4483 bitCount++;
4484 if (bitCount < b.count())
4485 _OUT << VkQueryResultFlagBits_map[1ULL<<i] << " | ";
4486 else
4487 _OUT << VkQueryResultFlagBits_map[1ULL<<i];
4488 }
4489 }
4490 if (commaNeeded)
4491 _OUT << "\"" << ",";
4492 else
4493 _OUT << "\""<< "";
4494 _OUT << std::endl;
4495 }
4496
print_VkBufferCreateFlags(VkBufferCreateFlags obj,const std::string & str,bool commaNeeded=true)4497 static void print_VkBufferCreateFlags(VkBufferCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4498 PRINT_SPACE
4499 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4500 const int max_bits = 64; // We don't expect the number to be larger.
4501 std::bitset<max_bits> b(obj);
4502 _OUT << "\"";
4503 if (obj == 0) _OUT << "0";
4504 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4505 if (b[i] == 1) {
4506 bitCount++;
4507 if (bitCount < b.count())
4508 _OUT << VkBufferCreateFlagBits_map[1ULL<<i] << " | ";
4509 else
4510 _OUT << VkBufferCreateFlagBits_map[1ULL<<i];
4511 }
4512 }
4513 if (commaNeeded)
4514 _OUT << "\"" << ",";
4515 else
4516 _OUT << "\""<< "";
4517 _OUT << std::endl;
4518 }
print_VkBufferCreateFlags(const VkBufferCreateFlags * obj,const std::string & str,bool commaNeeded=true)4519 static void print_VkBufferCreateFlags(const VkBufferCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4520 PRINT_SPACE
4521 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4522 const int max_bits = 64; // We don't expect the number to be larger.
4523 std::bitset<max_bits> b(obj);
4524 _OUT << "\"";
4525 if (obj == 0) _OUT << "0";
4526 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4527 if (b[i] == 1) {
4528 bitCount++;
4529 if (bitCount < b.count())
4530 _OUT << VkBufferCreateFlagBits_map[1ULL<<i] << " | ";
4531 else
4532 _OUT << VkBufferCreateFlagBits_map[1ULL<<i];
4533 }
4534 }
4535 if (commaNeeded)
4536 _OUT << "\"" << ",";
4537 else
4538 _OUT << "\""<< "";
4539 _OUT << std::endl;
4540 }
4541
print_VkBufferUsageFlags(VkBufferUsageFlags obj,const std::string & str,bool commaNeeded=true)4542 static void print_VkBufferUsageFlags(VkBufferUsageFlags obj, const std::string& str, bool commaNeeded=true) {
4543 PRINT_SPACE
4544 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4545 const int max_bits = 64; // We don't expect the number to be larger.
4546 std::bitset<max_bits> b(obj);
4547 _OUT << "\"";
4548 if (obj == 0) _OUT << "0";
4549 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4550 if (b[i] == 1) {
4551 bitCount++;
4552 if (bitCount < b.count())
4553 _OUT << VkBufferUsageFlagBits_map[1ULL<<i] << " | ";
4554 else
4555 _OUT << VkBufferUsageFlagBits_map[1ULL<<i];
4556 }
4557 }
4558 if (commaNeeded)
4559 _OUT << "\"" << ",";
4560 else
4561 _OUT << "\""<< "";
4562 _OUT << std::endl;
4563 }
print_VkBufferUsageFlags(const VkBufferUsageFlags * obj,const std::string & str,bool commaNeeded=true)4564 static void print_VkBufferUsageFlags(const VkBufferUsageFlags * obj, const std::string& str, bool commaNeeded=true) {
4565 PRINT_SPACE
4566 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4567 const int max_bits = 64; // We don't expect the number to be larger.
4568 std::bitset<max_bits> b(obj);
4569 _OUT << "\"";
4570 if (obj == 0) _OUT << "0";
4571 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4572 if (b[i] == 1) {
4573 bitCount++;
4574 if (bitCount < b.count())
4575 _OUT << VkBufferUsageFlagBits_map[1ULL<<i] << " | ";
4576 else
4577 _OUT << VkBufferUsageFlagBits_map[1ULL<<i];
4578 }
4579 }
4580 if (commaNeeded)
4581 _OUT << "\"" << ",";
4582 else
4583 _OUT << "\""<< "";
4584 _OUT << std::endl;
4585 }
4586
print_VkBufferViewCreateFlags(VkBufferViewCreateFlags obj,const std::string & str,bool commaNeeded=true)4587 static void print_VkBufferViewCreateFlags(VkBufferViewCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4588 PRINT_SPACE
4589 if (commaNeeded)
4590 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4591 else
4592 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4593 }
print_VkBufferViewCreateFlags(const VkBufferViewCreateFlags * obj,const std::string & str,bool commaNeeded=true)4594 static void print_VkBufferViewCreateFlags(const VkBufferViewCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4595 PRINT_SPACE
4596 if (commaNeeded)
4597 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4598 else
4599 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4600 }
4601
print_VkImageViewCreateFlags(VkImageViewCreateFlags obj,const std::string & str,bool commaNeeded=true)4602 static void print_VkImageViewCreateFlags(VkImageViewCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4603 PRINT_SPACE
4604 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4605 const int max_bits = 64; // We don't expect the number to be larger.
4606 std::bitset<max_bits> b(obj);
4607 _OUT << "\"";
4608 if (obj == 0) _OUT << "0";
4609 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4610 if (b[i] == 1) {
4611 bitCount++;
4612 if (bitCount < b.count())
4613 _OUT << VkImageViewCreateFlagBits_map[1ULL<<i] << " | ";
4614 else
4615 _OUT << VkImageViewCreateFlagBits_map[1ULL<<i];
4616 }
4617 }
4618 if (commaNeeded)
4619 _OUT << "\"" << ",";
4620 else
4621 _OUT << "\""<< "";
4622 _OUT << std::endl;
4623 }
print_VkImageViewCreateFlags(const VkImageViewCreateFlags * obj,const std::string & str,bool commaNeeded=true)4624 static void print_VkImageViewCreateFlags(const VkImageViewCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4625 PRINT_SPACE
4626 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4627 const int max_bits = 64; // We don't expect the number to be larger.
4628 std::bitset<max_bits> b(obj);
4629 _OUT << "\"";
4630 if (obj == 0) _OUT << "0";
4631 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4632 if (b[i] == 1) {
4633 bitCount++;
4634 if (bitCount < b.count())
4635 _OUT << VkImageViewCreateFlagBits_map[1ULL<<i] << " | ";
4636 else
4637 _OUT << VkImageViewCreateFlagBits_map[1ULL<<i];
4638 }
4639 }
4640 if (commaNeeded)
4641 _OUT << "\"" << ",";
4642 else
4643 _OUT << "\""<< "";
4644 _OUT << std::endl;
4645 }
4646
print_VkPipelineCacheCreateFlags(VkPipelineCacheCreateFlags obj,const std::string & str,bool commaNeeded=true)4647 static void print_VkPipelineCacheCreateFlags(VkPipelineCacheCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4648 PRINT_SPACE
4649 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4650 const int max_bits = 64; // We don't expect the number to be larger.
4651 std::bitset<max_bits> b(obj);
4652 _OUT << "\"";
4653 if (obj == 0) _OUT << "0";
4654 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4655 if (b[i] == 1) {
4656 bitCount++;
4657 if (bitCount < b.count())
4658 _OUT << VkPipelineCacheCreateFlagBits_map[1ULL<<i] << " | ";
4659 else
4660 _OUT << VkPipelineCacheCreateFlagBits_map[1ULL<<i];
4661 }
4662 }
4663 if (commaNeeded)
4664 _OUT << "\"" << ",";
4665 else
4666 _OUT << "\""<< "";
4667 _OUT << std::endl;
4668 }
print_VkPipelineCacheCreateFlags(const VkPipelineCacheCreateFlags * obj,const std::string & str,bool commaNeeded=true)4669 static void print_VkPipelineCacheCreateFlags(const VkPipelineCacheCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4670 PRINT_SPACE
4671 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4672 const int max_bits = 64; // We don't expect the number to be larger.
4673 std::bitset<max_bits> b(obj);
4674 _OUT << "\"";
4675 if (obj == 0) _OUT << "0";
4676 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4677 if (b[i] == 1) {
4678 bitCount++;
4679 if (bitCount < b.count())
4680 _OUT << VkPipelineCacheCreateFlagBits_map[1ULL<<i] << " | ";
4681 else
4682 _OUT << VkPipelineCacheCreateFlagBits_map[1ULL<<i];
4683 }
4684 }
4685 if (commaNeeded)
4686 _OUT << "\"" << ",";
4687 else
4688 _OUT << "\""<< "";
4689 _OUT << std::endl;
4690 }
4691
print_VkColorComponentFlags(VkColorComponentFlags obj,const std::string & str,bool commaNeeded=true)4692 static void print_VkColorComponentFlags(VkColorComponentFlags obj, const std::string& str, bool commaNeeded=true) {
4693 PRINT_SPACE
4694 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4695 const int max_bits = 64; // We don't expect the number to be larger.
4696 std::bitset<max_bits> b(obj);
4697 _OUT << "\"";
4698 if (obj == 0) _OUT << "0";
4699 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4700 if (b[i] == 1) {
4701 bitCount++;
4702 if (bitCount < b.count())
4703 _OUT << VkColorComponentFlagBits_map[1ULL<<i] << " | ";
4704 else
4705 _OUT << VkColorComponentFlagBits_map[1ULL<<i];
4706 }
4707 }
4708 if (commaNeeded)
4709 _OUT << "\"" << ",";
4710 else
4711 _OUT << "\""<< "";
4712 _OUT << std::endl;
4713 }
print_VkColorComponentFlags(const VkColorComponentFlags * obj,const std::string & str,bool commaNeeded=true)4714 static void print_VkColorComponentFlags(const VkColorComponentFlags * obj, const std::string& str, bool commaNeeded=true) {
4715 PRINT_SPACE
4716 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4717 const int max_bits = 64; // We don't expect the number to be larger.
4718 std::bitset<max_bits> b(obj);
4719 _OUT << "\"";
4720 if (obj == 0) _OUT << "0";
4721 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4722 if (b[i] == 1) {
4723 bitCount++;
4724 if (bitCount < b.count())
4725 _OUT << VkColorComponentFlagBits_map[1ULL<<i] << " | ";
4726 else
4727 _OUT << VkColorComponentFlagBits_map[1ULL<<i];
4728 }
4729 }
4730 if (commaNeeded)
4731 _OUT << "\"" << ",";
4732 else
4733 _OUT << "\""<< "";
4734 _OUT << std::endl;
4735 }
4736
print_VkPipelineCreateFlags(VkPipelineCreateFlags obj,const std::string & str,bool commaNeeded=true)4737 static void print_VkPipelineCreateFlags(VkPipelineCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4738 PRINT_SPACE
4739 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4740 const int max_bits = 64; // We don't expect the number to be larger.
4741 std::bitset<max_bits> b(obj);
4742 _OUT << "\"";
4743 if (obj == 0) _OUT << "0";
4744 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4745 if (b[i] == 1) {
4746 bitCount++;
4747 if (bitCount < b.count())
4748 _OUT << VkPipelineCreateFlagBits_map[1ULL<<i] << " | ";
4749 else
4750 _OUT << VkPipelineCreateFlagBits_map[1ULL<<i];
4751 }
4752 }
4753 if (commaNeeded)
4754 _OUT << "\"" << ",";
4755 else
4756 _OUT << "\""<< "";
4757 _OUT << std::endl;
4758 }
print_VkPipelineCreateFlags(const VkPipelineCreateFlags * obj,const std::string & str,bool commaNeeded=true)4759 static void print_VkPipelineCreateFlags(const VkPipelineCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4760 PRINT_SPACE
4761 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4762 const int max_bits = 64; // We don't expect the number to be larger.
4763 std::bitset<max_bits> b(obj);
4764 _OUT << "\"";
4765 if (obj == 0) _OUT << "0";
4766 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4767 if (b[i] == 1) {
4768 bitCount++;
4769 if (bitCount < b.count())
4770 _OUT << VkPipelineCreateFlagBits_map[1ULL<<i] << " | ";
4771 else
4772 _OUT << VkPipelineCreateFlagBits_map[1ULL<<i];
4773 }
4774 }
4775 if (commaNeeded)
4776 _OUT << "\"" << ",";
4777 else
4778 _OUT << "\""<< "";
4779 _OUT << std::endl;
4780 }
4781
print_VkPipelineShaderStageCreateFlags(VkPipelineShaderStageCreateFlags obj,const std::string & str,bool commaNeeded=true)4782 static void print_VkPipelineShaderStageCreateFlags(VkPipelineShaderStageCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4783 PRINT_SPACE
4784 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4785 const int max_bits = 64; // We don't expect the number to be larger.
4786 std::bitset<max_bits> b(obj);
4787 _OUT << "\"";
4788 if (obj == 0) _OUT << "0";
4789 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4790 if (b[i] == 1) {
4791 bitCount++;
4792 if (bitCount < b.count())
4793 _OUT << VkPipelineShaderStageCreateFlagBits_map[1ULL<<i] << " | ";
4794 else
4795 _OUT << VkPipelineShaderStageCreateFlagBits_map[1ULL<<i];
4796 }
4797 }
4798 if (commaNeeded)
4799 _OUT << "\"" << ",";
4800 else
4801 _OUT << "\""<< "";
4802 _OUT << std::endl;
4803 }
print_VkPipelineShaderStageCreateFlags(const VkPipelineShaderStageCreateFlags * obj,const std::string & str,bool commaNeeded=true)4804 static void print_VkPipelineShaderStageCreateFlags(const VkPipelineShaderStageCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4805 PRINT_SPACE
4806 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4807 const int max_bits = 64; // We don't expect the number to be larger.
4808 std::bitset<max_bits> b(obj);
4809 _OUT << "\"";
4810 if (obj == 0) _OUT << "0";
4811 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4812 if (b[i] == 1) {
4813 bitCount++;
4814 if (bitCount < b.count())
4815 _OUT << VkPipelineShaderStageCreateFlagBits_map[1ULL<<i] << " | ";
4816 else
4817 _OUT << VkPipelineShaderStageCreateFlagBits_map[1ULL<<i];
4818 }
4819 }
4820 if (commaNeeded)
4821 _OUT << "\"" << ",";
4822 else
4823 _OUT << "\""<< "";
4824 _OUT << std::endl;
4825 }
4826
print_VkCullModeFlags(VkCullModeFlags obj,const std::string & str,bool commaNeeded=true)4827 static void print_VkCullModeFlags(VkCullModeFlags obj, const std::string& str, bool commaNeeded=true) {
4828 PRINT_SPACE
4829 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4830 const int max_bits = 64; // We don't expect the number to be larger.
4831 std::bitset<max_bits> b(obj);
4832 _OUT << "\"";
4833 if (obj == 0) _OUT << "0";
4834 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4835 if (b[i] == 1) {
4836 bitCount++;
4837 if (bitCount < b.count())
4838 _OUT << VkCullModeFlagBits_map[1ULL<<i] << " | ";
4839 else
4840 _OUT << VkCullModeFlagBits_map[1ULL<<i];
4841 }
4842 }
4843 if (commaNeeded)
4844 _OUT << "\"" << ",";
4845 else
4846 _OUT << "\""<< "";
4847 _OUT << std::endl;
4848 }
print_VkCullModeFlags(const VkCullModeFlags * obj,const std::string & str,bool commaNeeded=true)4849 static void print_VkCullModeFlags(const VkCullModeFlags * obj, const std::string& str, bool commaNeeded=true) {
4850 PRINT_SPACE
4851 if (str != "") _OUT << "\"" << str << "\"" << " : ";
4852 const int max_bits = 64; // We don't expect the number to be larger.
4853 std::bitset<max_bits> b(obj);
4854 _OUT << "\"";
4855 if (obj == 0) _OUT << "0";
4856 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
4857 if (b[i] == 1) {
4858 bitCount++;
4859 if (bitCount < b.count())
4860 _OUT << VkCullModeFlagBits_map[1ULL<<i] << " | ";
4861 else
4862 _OUT << VkCullModeFlagBits_map[1ULL<<i];
4863 }
4864 }
4865 if (commaNeeded)
4866 _OUT << "\"" << ",";
4867 else
4868 _OUT << "\""<< "";
4869 _OUT << std::endl;
4870 }
4871
print_VkPipelineVertexInputStateCreateFlags(VkPipelineVertexInputStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4872 static void print_VkPipelineVertexInputStateCreateFlags(VkPipelineVertexInputStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4873 PRINT_SPACE
4874 if (commaNeeded)
4875 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4876 else
4877 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4878 }
print_VkPipelineVertexInputStateCreateFlags(const VkPipelineVertexInputStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4879 static void print_VkPipelineVertexInputStateCreateFlags(const VkPipelineVertexInputStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4880 PRINT_SPACE
4881 if (commaNeeded)
4882 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4883 else
4884 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4885 }
4886
print_VkPipelineInputAssemblyStateCreateFlags(VkPipelineInputAssemblyStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4887 static void print_VkPipelineInputAssemblyStateCreateFlags(VkPipelineInputAssemblyStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4888 PRINT_SPACE
4889 if (commaNeeded)
4890 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4891 else
4892 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4893 }
print_VkPipelineInputAssemblyStateCreateFlags(const VkPipelineInputAssemblyStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4894 static void print_VkPipelineInputAssemblyStateCreateFlags(const VkPipelineInputAssemblyStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4895 PRINT_SPACE
4896 if (commaNeeded)
4897 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4898 else
4899 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4900 }
4901
print_VkPipelineTessellationStateCreateFlags(VkPipelineTessellationStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4902 static void print_VkPipelineTessellationStateCreateFlags(VkPipelineTessellationStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4903 PRINT_SPACE
4904 if (commaNeeded)
4905 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4906 else
4907 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4908 }
print_VkPipelineTessellationStateCreateFlags(const VkPipelineTessellationStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4909 static void print_VkPipelineTessellationStateCreateFlags(const VkPipelineTessellationStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4910 PRINT_SPACE
4911 if (commaNeeded)
4912 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4913 else
4914 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4915 }
4916
print_VkPipelineViewportStateCreateFlags(VkPipelineViewportStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4917 static void print_VkPipelineViewportStateCreateFlags(VkPipelineViewportStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4918 PRINT_SPACE
4919 if (commaNeeded)
4920 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4921 else
4922 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4923 }
print_VkPipelineViewportStateCreateFlags(const VkPipelineViewportStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4924 static void print_VkPipelineViewportStateCreateFlags(const VkPipelineViewportStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4925 PRINT_SPACE
4926 if (commaNeeded)
4927 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4928 else
4929 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4930 }
4931
print_VkPipelineRasterizationStateCreateFlags(VkPipelineRasterizationStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4932 static void print_VkPipelineRasterizationStateCreateFlags(VkPipelineRasterizationStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4933 PRINT_SPACE
4934 if (commaNeeded)
4935 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4936 else
4937 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4938 }
print_VkPipelineRasterizationStateCreateFlags(const VkPipelineRasterizationStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4939 static void print_VkPipelineRasterizationStateCreateFlags(const VkPipelineRasterizationStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4940 PRINT_SPACE
4941 if (commaNeeded)
4942 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4943 else
4944 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4945 }
4946
print_VkPipelineMultisampleStateCreateFlags(VkPipelineMultisampleStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4947 static void print_VkPipelineMultisampleStateCreateFlags(VkPipelineMultisampleStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4948 PRINT_SPACE
4949 if (commaNeeded)
4950 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4951 else
4952 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4953 }
print_VkPipelineMultisampleStateCreateFlags(const VkPipelineMultisampleStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4954 static void print_VkPipelineMultisampleStateCreateFlags(const VkPipelineMultisampleStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4955 PRINT_SPACE
4956 if (commaNeeded)
4957 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4958 else
4959 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4960 }
4961
print_VkPipelineDepthStencilStateCreateFlags(VkPipelineDepthStencilStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4962 static void print_VkPipelineDepthStencilStateCreateFlags(VkPipelineDepthStencilStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4963 PRINT_SPACE
4964 if (commaNeeded)
4965 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4966 else
4967 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4968 }
print_VkPipelineDepthStencilStateCreateFlags(const VkPipelineDepthStencilStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4969 static void print_VkPipelineDepthStencilStateCreateFlags(const VkPipelineDepthStencilStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4970 PRINT_SPACE
4971 if (commaNeeded)
4972 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4973 else
4974 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4975 }
4976
print_VkPipelineColorBlendStateCreateFlags(VkPipelineColorBlendStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4977 static void print_VkPipelineColorBlendStateCreateFlags(VkPipelineColorBlendStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4978 PRINT_SPACE
4979 if (commaNeeded)
4980 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4981 else
4982 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4983 }
print_VkPipelineColorBlendStateCreateFlags(const VkPipelineColorBlendStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4984 static void print_VkPipelineColorBlendStateCreateFlags(const VkPipelineColorBlendStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
4985 PRINT_SPACE
4986 if (commaNeeded)
4987 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4988 else
4989 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4990 }
4991
print_VkPipelineDynamicStateCreateFlags(VkPipelineDynamicStateCreateFlags obj,const std::string & str,bool commaNeeded=true)4992 static void print_VkPipelineDynamicStateCreateFlags(VkPipelineDynamicStateCreateFlags obj, const std::string& str, bool commaNeeded=true) {
4993 PRINT_SPACE
4994 if (commaNeeded)
4995 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
4996 else
4997 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
4998 }
print_VkPipelineDynamicStateCreateFlags(const VkPipelineDynamicStateCreateFlags * obj,const std::string & str,bool commaNeeded=true)4999 static void print_VkPipelineDynamicStateCreateFlags(const VkPipelineDynamicStateCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5000 PRINT_SPACE
5001 if (commaNeeded)
5002 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
5003 else
5004 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
5005 }
5006
print_VkPipelineLayoutCreateFlags(VkPipelineLayoutCreateFlags obj,const std::string & str,bool commaNeeded=true)5007 static void print_VkPipelineLayoutCreateFlags(VkPipelineLayoutCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5008 PRINT_SPACE
5009 if (commaNeeded)
5010 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
5011 else
5012 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
5013 }
print_VkPipelineLayoutCreateFlags(const VkPipelineLayoutCreateFlags * obj,const std::string & str,bool commaNeeded=true)5014 static void print_VkPipelineLayoutCreateFlags(const VkPipelineLayoutCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5015 PRINT_SPACE
5016 if (commaNeeded)
5017 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
5018 else
5019 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
5020 }
5021
print_VkShaderStageFlags(VkShaderStageFlags obj,const std::string & str,bool commaNeeded=true)5022 static void print_VkShaderStageFlags(VkShaderStageFlags obj, const std::string& str, bool commaNeeded=true) {
5023 PRINT_SPACE
5024 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5025 const int max_bits = 64; // We don't expect the number to be larger.
5026 std::bitset<max_bits> b(obj);
5027 _OUT << "\"";
5028 if (obj == 0) _OUT << "0";
5029 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5030 if (b[i] == 1) {
5031 bitCount++;
5032 if (bitCount < b.count())
5033 _OUT << VkShaderStageFlagBits_map[1ULL<<i] << " | ";
5034 else
5035 _OUT << VkShaderStageFlagBits_map[1ULL<<i];
5036 }
5037 }
5038 if (commaNeeded)
5039 _OUT << "\"" << ",";
5040 else
5041 _OUT << "\""<< "";
5042 _OUT << std::endl;
5043 }
print_VkShaderStageFlags(const VkShaderStageFlags * obj,const std::string & str,bool commaNeeded=true)5044 static void print_VkShaderStageFlags(const VkShaderStageFlags * obj, const std::string& str, bool commaNeeded=true) {
5045 PRINT_SPACE
5046 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5047 const int max_bits = 64; // We don't expect the number to be larger.
5048 std::bitset<max_bits> b(obj);
5049 _OUT << "\"";
5050 if (obj == 0) _OUT << "0";
5051 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5052 if (b[i] == 1) {
5053 bitCount++;
5054 if (bitCount < b.count())
5055 _OUT << VkShaderStageFlagBits_map[1ULL<<i] << " | ";
5056 else
5057 _OUT << VkShaderStageFlagBits_map[1ULL<<i];
5058 }
5059 }
5060 if (commaNeeded)
5061 _OUT << "\"" << ",";
5062 else
5063 _OUT << "\""<< "";
5064 _OUT << std::endl;
5065 }
5066
print_VkSamplerCreateFlags(VkSamplerCreateFlags obj,const std::string & str,bool commaNeeded=true)5067 static void print_VkSamplerCreateFlags(VkSamplerCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5068 PRINT_SPACE
5069 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5070 const int max_bits = 64; // We don't expect the number to be larger.
5071 std::bitset<max_bits> b(obj);
5072 _OUT << "\"";
5073 if (obj == 0) _OUT << "0";
5074 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5075 if (b[i] == 1) {
5076 bitCount++;
5077 if (bitCount < b.count())
5078 _OUT << VkSamplerCreateFlagBits_map[1ULL<<i] << " | ";
5079 else
5080 _OUT << VkSamplerCreateFlagBits_map[1ULL<<i];
5081 }
5082 }
5083 if (commaNeeded)
5084 _OUT << "\"" << ",";
5085 else
5086 _OUT << "\""<< "";
5087 _OUT << std::endl;
5088 }
print_VkSamplerCreateFlags(const VkSamplerCreateFlags * obj,const std::string & str,bool commaNeeded=true)5089 static void print_VkSamplerCreateFlags(const VkSamplerCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5090 PRINT_SPACE
5091 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5092 const int max_bits = 64; // We don't expect the number to be larger.
5093 std::bitset<max_bits> b(obj);
5094 _OUT << "\"";
5095 if (obj == 0) _OUT << "0";
5096 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5097 if (b[i] == 1) {
5098 bitCount++;
5099 if (bitCount < b.count())
5100 _OUT << VkSamplerCreateFlagBits_map[1ULL<<i] << " | ";
5101 else
5102 _OUT << VkSamplerCreateFlagBits_map[1ULL<<i];
5103 }
5104 }
5105 if (commaNeeded)
5106 _OUT << "\"" << ",";
5107 else
5108 _OUT << "\""<< "";
5109 _OUT << std::endl;
5110 }
5111
print_VkDescriptorPoolCreateFlags(VkDescriptorPoolCreateFlags obj,const std::string & str,bool commaNeeded=true)5112 static void print_VkDescriptorPoolCreateFlags(VkDescriptorPoolCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5113 PRINT_SPACE
5114 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5115 const int max_bits = 64; // We don't expect the number to be larger.
5116 std::bitset<max_bits> b(obj);
5117 _OUT << "\"";
5118 if (obj == 0) _OUT << "0";
5119 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5120 if (b[i] == 1) {
5121 bitCount++;
5122 if (bitCount < b.count())
5123 _OUT << VkDescriptorPoolCreateFlagBits_map[1ULL<<i] << " | ";
5124 else
5125 _OUT << VkDescriptorPoolCreateFlagBits_map[1ULL<<i];
5126 }
5127 }
5128 if (commaNeeded)
5129 _OUT << "\"" << ",";
5130 else
5131 _OUT << "\""<< "";
5132 _OUT << std::endl;
5133 }
print_VkDescriptorPoolCreateFlags(const VkDescriptorPoolCreateFlags * obj,const std::string & str,bool commaNeeded=true)5134 static void print_VkDescriptorPoolCreateFlags(const VkDescriptorPoolCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5135 PRINT_SPACE
5136 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5137 const int max_bits = 64; // We don't expect the number to be larger.
5138 std::bitset<max_bits> b(obj);
5139 _OUT << "\"";
5140 if (obj == 0) _OUT << "0";
5141 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5142 if (b[i] == 1) {
5143 bitCount++;
5144 if (bitCount < b.count())
5145 _OUT << VkDescriptorPoolCreateFlagBits_map[1ULL<<i] << " | ";
5146 else
5147 _OUT << VkDescriptorPoolCreateFlagBits_map[1ULL<<i];
5148 }
5149 }
5150 if (commaNeeded)
5151 _OUT << "\"" << ",";
5152 else
5153 _OUT << "\""<< "";
5154 _OUT << std::endl;
5155 }
5156
print_VkDescriptorPoolResetFlags(VkDescriptorPoolResetFlags obj,const std::string & str,bool commaNeeded=true)5157 static void print_VkDescriptorPoolResetFlags(VkDescriptorPoolResetFlags obj, const std::string& str, bool commaNeeded=true) {
5158 PRINT_SPACE
5159 if (commaNeeded)
5160 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
5161 else
5162 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
5163 }
print_VkDescriptorPoolResetFlags(const VkDescriptorPoolResetFlags * obj,const std::string & str,bool commaNeeded=true)5164 static void print_VkDescriptorPoolResetFlags(const VkDescriptorPoolResetFlags * obj, const std::string& str, bool commaNeeded=true) {
5165 PRINT_SPACE
5166 if (commaNeeded)
5167 _OUT << "\"" << str << "\"" << " : " << obj << "," << std::endl;
5168 else
5169 _OUT << "\"" << str << "\"" << " : " << obj << std::endl;
5170 }
5171
print_VkDescriptorSetLayoutCreateFlags(VkDescriptorSetLayoutCreateFlags obj,const std::string & str,bool commaNeeded=true)5172 static void print_VkDescriptorSetLayoutCreateFlags(VkDescriptorSetLayoutCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5173 PRINT_SPACE
5174 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5175 const int max_bits = 64; // We don't expect the number to be larger.
5176 std::bitset<max_bits> b(obj);
5177 _OUT << "\"";
5178 if (obj == 0) _OUT << "0";
5179 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5180 if (b[i] == 1) {
5181 bitCount++;
5182 if (bitCount < b.count())
5183 _OUT << VkDescriptorSetLayoutCreateFlagBits_map[1ULL<<i] << " | ";
5184 else
5185 _OUT << VkDescriptorSetLayoutCreateFlagBits_map[1ULL<<i];
5186 }
5187 }
5188 if (commaNeeded)
5189 _OUT << "\"" << ",";
5190 else
5191 _OUT << "\""<< "";
5192 _OUT << std::endl;
5193 }
print_VkDescriptorSetLayoutCreateFlags(const VkDescriptorSetLayoutCreateFlags * obj,const std::string & str,bool commaNeeded=true)5194 static void print_VkDescriptorSetLayoutCreateFlags(const VkDescriptorSetLayoutCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5195 PRINT_SPACE
5196 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5197 const int max_bits = 64; // We don't expect the number to be larger.
5198 std::bitset<max_bits> b(obj);
5199 _OUT << "\"";
5200 if (obj == 0) _OUT << "0";
5201 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5202 if (b[i] == 1) {
5203 bitCount++;
5204 if (bitCount < b.count())
5205 _OUT << VkDescriptorSetLayoutCreateFlagBits_map[1ULL<<i] << " | ";
5206 else
5207 _OUT << VkDescriptorSetLayoutCreateFlagBits_map[1ULL<<i];
5208 }
5209 }
5210 if (commaNeeded)
5211 _OUT << "\"" << ",";
5212 else
5213 _OUT << "\""<< "";
5214 _OUT << std::endl;
5215 }
5216
print_VkAttachmentDescriptionFlags(VkAttachmentDescriptionFlags obj,const std::string & str,bool commaNeeded=true)5217 static void print_VkAttachmentDescriptionFlags(VkAttachmentDescriptionFlags obj, const std::string& str, bool commaNeeded=true) {
5218 PRINT_SPACE
5219 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5220 const int max_bits = 64; // We don't expect the number to be larger.
5221 std::bitset<max_bits> b(obj);
5222 _OUT << "\"";
5223 if (obj == 0) _OUT << "0";
5224 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5225 if (b[i] == 1) {
5226 bitCount++;
5227 if (bitCount < b.count())
5228 _OUT << VkAttachmentDescriptionFlagBits_map[1ULL<<i] << " | ";
5229 else
5230 _OUT << VkAttachmentDescriptionFlagBits_map[1ULL<<i];
5231 }
5232 }
5233 if (commaNeeded)
5234 _OUT << "\"" << ",";
5235 else
5236 _OUT << "\""<< "";
5237 _OUT << std::endl;
5238 }
print_VkAttachmentDescriptionFlags(const VkAttachmentDescriptionFlags * obj,const std::string & str,bool commaNeeded=true)5239 static void print_VkAttachmentDescriptionFlags(const VkAttachmentDescriptionFlags * obj, const std::string& str, bool commaNeeded=true) {
5240 PRINT_SPACE
5241 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5242 const int max_bits = 64; // We don't expect the number to be larger.
5243 std::bitset<max_bits> b(obj);
5244 _OUT << "\"";
5245 if (obj == 0) _OUT << "0";
5246 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5247 if (b[i] == 1) {
5248 bitCount++;
5249 if (bitCount < b.count())
5250 _OUT << VkAttachmentDescriptionFlagBits_map[1ULL<<i] << " | ";
5251 else
5252 _OUT << VkAttachmentDescriptionFlagBits_map[1ULL<<i];
5253 }
5254 }
5255 if (commaNeeded)
5256 _OUT << "\"" << ",";
5257 else
5258 _OUT << "\""<< "";
5259 _OUT << std::endl;
5260 }
5261
print_VkDependencyFlags(VkDependencyFlags obj,const std::string & str,bool commaNeeded=true)5262 static void print_VkDependencyFlags(VkDependencyFlags obj, const std::string& str, bool commaNeeded=true) {
5263 PRINT_SPACE
5264 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5265 const int max_bits = 64; // We don't expect the number to be larger.
5266 std::bitset<max_bits> b(obj);
5267 _OUT << "\"";
5268 if (obj == 0) _OUT << "0";
5269 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5270 if (b[i] == 1) {
5271 bitCount++;
5272 if (bitCount < b.count())
5273 _OUT << VkDependencyFlagBits_map[1ULL<<i] << " | ";
5274 else
5275 _OUT << VkDependencyFlagBits_map[1ULL<<i];
5276 }
5277 }
5278 if (commaNeeded)
5279 _OUT << "\"" << ",";
5280 else
5281 _OUT << "\""<< "";
5282 _OUT << std::endl;
5283 }
print_VkDependencyFlags(const VkDependencyFlags * obj,const std::string & str,bool commaNeeded=true)5284 static void print_VkDependencyFlags(const VkDependencyFlags * obj, const std::string& str, bool commaNeeded=true) {
5285 PRINT_SPACE
5286 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5287 const int max_bits = 64; // We don't expect the number to be larger.
5288 std::bitset<max_bits> b(obj);
5289 _OUT << "\"";
5290 if (obj == 0) _OUT << "0";
5291 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5292 if (b[i] == 1) {
5293 bitCount++;
5294 if (bitCount < b.count())
5295 _OUT << VkDependencyFlagBits_map[1ULL<<i] << " | ";
5296 else
5297 _OUT << VkDependencyFlagBits_map[1ULL<<i];
5298 }
5299 }
5300 if (commaNeeded)
5301 _OUT << "\"" << ",";
5302 else
5303 _OUT << "\""<< "";
5304 _OUT << std::endl;
5305 }
5306
print_VkFramebufferCreateFlags(VkFramebufferCreateFlags obj,const std::string & str,bool commaNeeded=true)5307 static void print_VkFramebufferCreateFlags(VkFramebufferCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5308 PRINT_SPACE
5309 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5310 const int max_bits = 64; // We don't expect the number to be larger.
5311 std::bitset<max_bits> b(obj);
5312 _OUT << "\"";
5313 if (obj == 0) _OUT << "0";
5314 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5315 if (b[i] == 1) {
5316 bitCount++;
5317 if (bitCount < b.count())
5318 _OUT << VkFramebufferCreateFlagBits_map[1ULL<<i] << " | ";
5319 else
5320 _OUT << VkFramebufferCreateFlagBits_map[1ULL<<i];
5321 }
5322 }
5323 if (commaNeeded)
5324 _OUT << "\"" << ",";
5325 else
5326 _OUT << "\""<< "";
5327 _OUT << std::endl;
5328 }
print_VkFramebufferCreateFlags(const VkFramebufferCreateFlags * obj,const std::string & str,bool commaNeeded=true)5329 static void print_VkFramebufferCreateFlags(const VkFramebufferCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5330 PRINT_SPACE
5331 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5332 const int max_bits = 64; // We don't expect the number to be larger.
5333 std::bitset<max_bits> b(obj);
5334 _OUT << "\"";
5335 if (obj == 0) _OUT << "0";
5336 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5337 if (b[i] == 1) {
5338 bitCount++;
5339 if (bitCount < b.count())
5340 _OUT << VkFramebufferCreateFlagBits_map[1ULL<<i] << " | ";
5341 else
5342 _OUT << VkFramebufferCreateFlagBits_map[1ULL<<i];
5343 }
5344 }
5345 if (commaNeeded)
5346 _OUT << "\"" << ",";
5347 else
5348 _OUT << "\""<< "";
5349 _OUT << std::endl;
5350 }
5351
print_VkRenderPassCreateFlags(VkRenderPassCreateFlags obj,const std::string & str,bool commaNeeded=true)5352 static void print_VkRenderPassCreateFlags(VkRenderPassCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5353 PRINT_SPACE
5354 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5355 const int max_bits = 64; // We don't expect the number to be larger.
5356 std::bitset<max_bits> b(obj);
5357 _OUT << "\"";
5358 if (obj == 0) _OUT << "0";
5359 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5360 if (b[i] == 1) {
5361 bitCount++;
5362 if (bitCount < b.count())
5363 _OUT << VkRenderPassCreateFlagBits_map[1ULL<<i] << " | ";
5364 else
5365 _OUT << VkRenderPassCreateFlagBits_map[1ULL<<i];
5366 }
5367 }
5368 if (commaNeeded)
5369 _OUT << "\"" << ",";
5370 else
5371 _OUT << "\""<< "";
5372 _OUT << std::endl;
5373 }
print_VkRenderPassCreateFlags(const VkRenderPassCreateFlags * obj,const std::string & str,bool commaNeeded=true)5374 static void print_VkRenderPassCreateFlags(const VkRenderPassCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5375 PRINT_SPACE
5376 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5377 const int max_bits = 64; // We don't expect the number to be larger.
5378 std::bitset<max_bits> b(obj);
5379 _OUT << "\"";
5380 if (obj == 0) _OUT << "0";
5381 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5382 if (b[i] == 1) {
5383 bitCount++;
5384 if (bitCount < b.count())
5385 _OUT << VkRenderPassCreateFlagBits_map[1ULL<<i] << " | ";
5386 else
5387 _OUT << VkRenderPassCreateFlagBits_map[1ULL<<i];
5388 }
5389 }
5390 if (commaNeeded)
5391 _OUT << "\"" << ",";
5392 else
5393 _OUT << "\""<< "";
5394 _OUT << std::endl;
5395 }
5396
print_VkSubpassDescriptionFlags(VkSubpassDescriptionFlags obj,const std::string & str,bool commaNeeded=true)5397 static void print_VkSubpassDescriptionFlags(VkSubpassDescriptionFlags obj, const std::string& str, bool commaNeeded=true) {
5398 PRINT_SPACE
5399 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5400 const int max_bits = 64; // We don't expect the number to be larger.
5401 std::bitset<max_bits> b(obj);
5402 _OUT << "\"";
5403 if (obj == 0) _OUT << "0";
5404 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5405 if (b[i] == 1) {
5406 bitCount++;
5407 if (bitCount < b.count())
5408 _OUT << VkSubpassDescriptionFlagBits_map[1ULL<<i] << " | ";
5409 else
5410 _OUT << VkSubpassDescriptionFlagBits_map[1ULL<<i];
5411 }
5412 }
5413 if (commaNeeded)
5414 _OUT << "\"" << ",";
5415 else
5416 _OUT << "\""<< "";
5417 _OUT << std::endl;
5418 }
print_VkSubpassDescriptionFlags(const VkSubpassDescriptionFlags * obj,const std::string & str,bool commaNeeded=true)5419 static void print_VkSubpassDescriptionFlags(const VkSubpassDescriptionFlags * obj, const std::string& str, bool commaNeeded=true) {
5420 PRINT_SPACE
5421 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5422 const int max_bits = 64; // We don't expect the number to be larger.
5423 std::bitset<max_bits> b(obj);
5424 _OUT << "\"";
5425 if (obj == 0) _OUT << "0";
5426 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5427 if (b[i] == 1) {
5428 bitCount++;
5429 if (bitCount < b.count())
5430 _OUT << VkSubpassDescriptionFlagBits_map[1ULL<<i] << " | ";
5431 else
5432 _OUT << VkSubpassDescriptionFlagBits_map[1ULL<<i];
5433 }
5434 }
5435 if (commaNeeded)
5436 _OUT << "\"" << ",";
5437 else
5438 _OUT << "\""<< "";
5439 _OUT << std::endl;
5440 }
5441
print_VkCommandPoolCreateFlags(VkCommandPoolCreateFlags obj,const std::string & str,bool commaNeeded=true)5442 static void print_VkCommandPoolCreateFlags(VkCommandPoolCreateFlags obj, const std::string& str, bool commaNeeded=true) {
5443 PRINT_SPACE
5444 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5445 const int max_bits = 64; // We don't expect the number to be larger.
5446 std::bitset<max_bits> b(obj);
5447 _OUT << "\"";
5448 if (obj == 0) _OUT << "0";
5449 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5450 if (b[i] == 1) {
5451 bitCount++;
5452 if (bitCount < b.count())
5453 _OUT << VkCommandPoolCreateFlagBits_map[1ULL<<i] << " | ";
5454 else
5455 _OUT << VkCommandPoolCreateFlagBits_map[1ULL<<i];
5456 }
5457 }
5458 if (commaNeeded)
5459 _OUT << "\"" << ",";
5460 else
5461 _OUT << "\""<< "";
5462 _OUT << std::endl;
5463 }
print_VkCommandPoolCreateFlags(const VkCommandPoolCreateFlags * obj,const std::string & str,bool commaNeeded=true)5464 static void print_VkCommandPoolCreateFlags(const VkCommandPoolCreateFlags * obj, const std::string& str, bool commaNeeded=true) {
5465 PRINT_SPACE
5466 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5467 const int max_bits = 64; // We don't expect the number to be larger.
5468 std::bitset<max_bits> b(obj);
5469 _OUT << "\"";
5470 if (obj == 0) _OUT << "0";
5471 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5472 if (b[i] == 1) {
5473 bitCount++;
5474 if (bitCount < b.count())
5475 _OUT << VkCommandPoolCreateFlagBits_map[1ULL<<i] << " | ";
5476 else
5477 _OUT << VkCommandPoolCreateFlagBits_map[1ULL<<i];
5478 }
5479 }
5480 if (commaNeeded)
5481 _OUT << "\"" << ",";
5482 else
5483 _OUT << "\""<< "";
5484 _OUT << std::endl;
5485 }
5486
print_VkCommandPoolResetFlags(VkCommandPoolResetFlags obj,const std::string & str,bool commaNeeded=true)5487 static void print_VkCommandPoolResetFlags(VkCommandPoolResetFlags obj, const std::string& str, bool commaNeeded=true) {
5488 PRINT_SPACE
5489 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5490 const int max_bits = 64; // We don't expect the number to be larger.
5491 std::bitset<max_bits> b(obj);
5492 _OUT << "\"";
5493 if (obj == 0) _OUT << "0";
5494 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5495 if (b[i] == 1) {
5496 bitCount++;
5497 if (bitCount < b.count())
5498 _OUT << VkCommandPoolResetFlagBits_map[1ULL<<i] << " | ";
5499 else
5500 _OUT << VkCommandPoolResetFlagBits_map[1ULL<<i];
5501 }
5502 }
5503 if (commaNeeded)
5504 _OUT << "\"" << ",";
5505 else
5506 _OUT << "\""<< "";
5507 _OUT << std::endl;
5508 }
print_VkCommandPoolResetFlags(const VkCommandPoolResetFlags * obj,const std::string & str,bool commaNeeded=true)5509 static void print_VkCommandPoolResetFlags(const VkCommandPoolResetFlags * obj, const std::string& str, bool commaNeeded=true) {
5510 PRINT_SPACE
5511 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5512 const int max_bits = 64; // We don't expect the number to be larger.
5513 std::bitset<max_bits> b(obj);
5514 _OUT << "\"";
5515 if (obj == 0) _OUT << "0";
5516 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5517 if (b[i] == 1) {
5518 bitCount++;
5519 if (bitCount < b.count())
5520 _OUT << VkCommandPoolResetFlagBits_map[1ULL<<i] << " | ";
5521 else
5522 _OUT << VkCommandPoolResetFlagBits_map[1ULL<<i];
5523 }
5524 }
5525 if (commaNeeded)
5526 _OUT << "\"" << ",";
5527 else
5528 _OUT << "\""<< "";
5529 _OUT << std::endl;
5530 }
5531
print_VkCommandBufferUsageFlags(VkCommandBufferUsageFlags obj,const std::string & str,bool commaNeeded=true)5532 static void print_VkCommandBufferUsageFlags(VkCommandBufferUsageFlags obj, const std::string& str, bool commaNeeded=true) {
5533 PRINT_SPACE
5534 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5535 const int max_bits = 64; // We don't expect the number to be larger.
5536 std::bitset<max_bits> b(obj);
5537 _OUT << "\"";
5538 if (obj == 0) _OUT << "0";
5539 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5540 if (b[i] == 1) {
5541 bitCount++;
5542 if (bitCount < b.count())
5543 _OUT << VkCommandBufferUsageFlagBits_map[1ULL<<i] << " | ";
5544 else
5545 _OUT << VkCommandBufferUsageFlagBits_map[1ULL<<i];
5546 }
5547 }
5548 if (commaNeeded)
5549 _OUT << "\"" << ",";
5550 else
5551 _OUT << "\""<< "";
5552 _OUT << std::endl;
5553 }
print_VkCommandBufferUsageFlags(const VkCommandBufferUsageFlags * obj,const std::string & str,bool commaNeeded=true)5554 static void print_VkCommandBufferUsageFlags(const VkCommandBufferUsageFlags * obj, const std::string& str, bool commaNeeded=true) {
5555 PRINT_SPACE
5556 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5557 const int max_bits = 64; // We don't expect the number to be larger.
5558 std::bitset<max_bits> b(obj);
5559 _OUT << "\"";
5560 if (obj == 0) _OUT << "0";
5561 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5562 if (b[i] == 1) {
5563 bitCount++;
5564 if (bitCount < b.count())
5565 _OUT << VkCommandBufferUsageFlagBits_map[1ULL<<i] << " | ";
5566 else
5567 _OUT << VkCommandBufferUsageFlagBits_map[1ULL<<i];
5568 }
5569 }
5570 if (commaNeeded)
5571 _OUT << "\"" << ",";
5572 else
5573 _OUT << "\""<< "";
5574 _OUT << std::endl;
5575 }
5576
print_VkQueryControlFlags(VkQueryControlFlags obj,const std::string & str,bool commaNeeded=true)5577 static void print_VkQueryControlFlags(VkQueryControlFlags obj, const std::string& str, bool commaNeeded=true) {
5578 PRINT_SPACE
5579 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5580 const int max_bits = 64; // We don't expect the number to be larger.
5581 std::bitset<max_bits> b(obj);
5582 _OUT << "\"";
5583 if (obj == 0) _OUT << "0";
5584 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5585 if (b[i] == 1) {
5586 bitCount++;
5587 if (bitCount < b.count())
5588 _OUT << VkQueryControlFlagBits_map[1ULL<<i] << " | ";
5589 else
5590 _OUT << VkQueryControlFlagBits_map[1ULL<<i];
5591 }
5592 }
5593 if (commaNeeded)
5594 _OUT << "\"" << ",";
5595 else
5596 _OUT << "\""<< "";
5597 _OUT << std::endl;
5598 }
print_VkQueryControlFlags(const VkQueryControlFlags * obj,const std::string & str,bool commaNeeded=true)5599 static void print_VkQueryControlFlags(const VkQueryControlFlags * obj, const std::string& str, bool commaNeeded=true) {
5600 PRINT_SPACE
5601 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5602 const int max_bits = 64; // We don't expect the number to be larger.
5603 std::bitset<max_bits> b(obj);
5604 _OUT << "\"";
5605 if (obj == 0) _OUT << "0";
5606 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5607 if (b[i] == 1) {
5608 bitCount++;
5609 if (bitCount < b.count())
5610 _OUT << VkQueryControlFlagBits_map[1ULL<<i] << " | ";
5611 else
5612 _OUT << VkQueryControlFlagBits_map[1ULL<<i];
5613 }
5614 }
5615 if (commaNeeded)
5616 _OUT << "\"" << ",";
5617 else
5618 _OUT << "\""<< "";
5619 _OUT << std::endl;
5620 }
5621
print_VkCommandBufferResetFlags(VkCommandBufferResetFlags obj,const std::string & str,bool commaNeeded=true)5622 static void print_VkCommandBufferResetFlags(VkCommandBufferResetFlags obj, const std::string& str, bool commaNeeded=true) {
5623 PRINT_SPACE
5624 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5625 const int max_bits = 64; // We don't expect the number to be larger.
5626 std::bitset<max_bits> b(obj);
5627 _OUT << "\"";
5628 if (obj == 0) _OUT << "0";
5629 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5630 if (b[i] == 1) {
5631 bitCount++;
5632 if (bitCount < b.count())
5633 _OUT << VkCommandBufferResetFlagBits_map[1ULL<<i] << " | ";
5634 else
5635 _OUT << VkCommandBufferResetFlagBits_map[1ULL<<i];
5636 }
5637 }
5638 if (commaNeeded)
5639 _OUT << "\"" << ",";
5640 else
5641 _OUT << "\""<< "";
5642 _OUT << std::endl;
5643 }
print_VkCommandBufferResetFlags(const VkCommandBufferResetFlags * obj,const std::string & str,bool commaNeeded=true)5644 static void print_VkCommandBufferResetFlags(const VkCommandBufferResetFlags * obj, const std::string& str, bool commaNeeded=true) {
5645 PRINT_SPACE
5646 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5647 const int max_bits = 64; // We don't expect the number to be larger.
5648 std::bitset<max_bits> b(obj);
5649 _OUT << "\"";
5650 if (obj == 0) _OUT << "0";
5651 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5652 if (b[i] == 1) {
5653 bitCount++;
5654 if (bitCount < b.count())
5655 _OUT << VkCommandBufferResetFlagBits_map[1ULL<<i] << " | ";
5656 else
5657 _OUT << VkCommandBufferResetFlagBits_map[1ULL<<i];
5658 }
5659 }
5660 if (commaNeeded)
5661 _OUT << "\"" << ",";
5662 else
5663 _OUT << "\""<< "";
5664 _OUT << std::endl;
5665 }
5666
print_VkStencilFaceFlags(VkStencilFaceFlags obj,const std::string & str,bool commaNeeded=true)5667 static void print_VkStencilFaceFlags(VkStencilFaceFlags obj, const std::string& str, bool commaNeeded=true) {
5668 PRINT_SPACE
5669 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5670 const int max_bits = 64; // We don't expect the number to be larger.
5671 std::bitset<max_bits> b(obj);
5672 _OUT << "\"";
5673 if (obj == 0) _OUT << "0";
5674 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5675 if (b[i] == 1) {
5676 bitCount++;
5677 if (bitCount < b.count())
5678 _OUT << VkStencilFaceFlagBits_map[1ULL<<i] << " | ";
5679 else
5680 _OUT << VkStencilFaceFlagBits_map[1ULL<<i];
5681 }
5682 }
5683 if (commaNeeded)
5684 _OUT << "\"" << ",";
5685 else
5686 _OUT << "\""<< "";
5687 _OUT << std::endl;
5688 }
print_VkStencilFaceFlags(const VkStencilFaceFlags * obj,const std::string & str,bool commaNeeded=true)5689 static void print_VkStencilFaceFlags(const VkStencilFaceFlags * obj, const std::string& str, bool commaNeeded=true) {
5690 PRINT_SPACE
5691 if (str != "") _OUT << "\"" << str << "\"" << " : ";
5692 const int max_bits = 64; // We don't expect the number to be larger.
5693 std::bitset<max_bits> b(obj);
5694 _OUT << "\"";
5695 if (obj == 0) _OUT << "0";
5696 for (unsigned int i = 0, bitCount = 0; i < b.size(); i++) {
5697 if (b[i] == 1) {
5698 bitCount++;
5699 if (bitCount < b.count())
5700 _OUT << VkStencilFaceFlagBits_map[1ULL<<i] << " | ";
5701 else
5702 _OUT << VkStencilFaceFlagBits_map[1ULL<<i];
5703 }
5704 }
5705 if (commaNeeded)
5706 _OUT << "\"" << ",";
5707 else
5708 _OUT << "\""<< "";
5709 _OUT << std::endl;
5710 }
5711
print_VkExtent2D(VkExtent2D obj,const std::string & s,bool commaNeeded=true)5712 static void print_VkExtent2D(VkExtent2D obj, const std::string& s, bool commaNeeded=true) {
5713 PRINT_SPACE
5714 _OUT << "{" << std::endl;
5715 INDENT(4);
5716
5717 print_uint32_t(obj.width, "width", 1);
5718
5719 print_uint32_t(obj.height, "height", 0);
5720
5721 INDENT(-4);
5722 PRINT_SPACE
5723 if (commaNeeded)
5724 _OUT << "}," << std::endl;
5725 else
5726 _OUT << "}" << std::endl;
5727 }
print_VkExtent2D(const VkExtent2D * obj,const std::string & s,bool commaNeeded=true)5728 static void print_VkExtent2D(const VkExtent2D * obj, const std::string& s, bool commaNeeded=true) {
5729 PRINT_SPACE
5730 _OUT << "{" << std::endl;
5731 INDENT(4);
5732
5733 print_uint32_t(obj->width, "width", 1);
5734
5735 print_uint32_t(obj->height, "height", 0);
5736
5737 INDENT(-4);
5738 PRINT_SPACE
5739 if (commaNeeded)
5740 _OUT << "}," << std::endl;
5741 else
5742 _OUT << "}" << std::endl;
5743 }
5744
print_VkExtent3D(VkExtent3D obj,const std::string & s,bool commaNeeded=true)5745 static void print_VkExtent3D(VkExtent3D obj, const std::string& s, bool commaNeeded=true) {
5746 PRINT_SPACE
5747 _OUT << "{" << std::endl;
5748 INDENT(4);
5749
5750 print_uint32_t(obj.width, "width", 1);
5751
5752 print_uint32_t(obj.height, "height", 1);
5753
5754 print_uint32_t(obj.depth, "depth", 0);
5755
5756 INDENT(-4);
5757 PRINT_SPACE
5758 if (commaNeeded)
5759 _OUT << "}," << std::endl;
5760 else
5761 _OUT << "}" << std::endl;
5762 }
print_VkExtent3D(const VkExtent3D * obj,const std::string & s,bool commaNeeded=true)5763 static void print_VkExtent3D(const VkExtent3D * obj, const std::string& s, bool commaNeeded=true) {
5764 PRINT_SPACE
5765 _OUT << "{" << std::endl;
5766 INDENT(4);
5767
5768 print_uint32_t(obj->width, "width", 1);
5769
5770 print_uint32_t(obj->height, "height", 1);
5771
5772 print_uint32_t(obj->depth, "depth", 0);
5773
5774 INDENT(-4);
5775 PRINT_SPACE
5776 if (commaNeeded)
5777 _OUT << "}," << std::endl;
5778 else
5779 _OUT << "}" << std::endl;
5780 }
5781
print_VkOffset2D(VkOffset2D obj,const std::string & s,bool commaNeeded=true)5782 static void print_VkOffset2D(VkOffset2D obj, const std::string& s, bool commaNeeded=true) {
5783 PRINT_SPACE
5784 _OUT << "{" << std::endl;
5785 INDENT(4);
5786
5787 print_int32_t(obj.x, "x", 1);
5788
5789 print_int32_t(obj.y, "y", 0);
5790
5791 INDENT(-4);
5792 PRINT_SPACE
5793 if (commaNeeded)
5794 _OUT << "}," << std::endl;
5795 else
5796 _OUT << "}" << std::endl;
5797 }
print_VkOffset2D(const VkOffset2D * obj,const std::string & s,bool commaNeeded=true)5798 static void print_VkOffset2D(const VkOffset2D * obj, const std::string& s, bool commaNeeded=true) {
5799 PRINT_SPACE
5800 _OUT << "{" << std::endl;
5801 INDENT(4);
5802
5803 print_int32_t(obj->x, "x", 1);
5804
5805 print_int32_t(obj->y, "y", 0);
5806
5807 INDENT(-4);
5808 PRINT_SPACE
5809 if (commaNeeded)
5810 _OUT << "}," << std::endl;
5811 else
5812 _OUT << "}" << std::endl;
5813 }
5814
print_VkOffset3D(VkOffset3D obj,const std::string & s,bool commaNeeded=true)5815 static void print_VkOffset3D(VkOffset3D obj, const std::string& s, bool commaNeeded=true) {
5816 PRINT_SPACE
5817 _OUT << "{" << std::endl;
5818 INDENT(4);
5819
5820 print_int32_t(obj.x, "x", 1);
5821
5822 print_int32_t(obj.y, "y", 1);
5823
5824 print_int32_t(obj.z, "z", 0);
5825
5826 INDENT(-4);
5827 PRINT_SPACE
5828 if (commaNeeded)
5829 _OUT << "}," << std::endl;
5830 else
5831 _OUT << "}" << std::endl;
5832 }
print_VkOffset3D(const VkOffset3D * obj,const std::string & s,bool commaNeeded=true)5833 static void print_VkOffset3D(const VkOffset3D * obj, const std::string& s, bool commaNeeded=true) {
5834 PRINT_SPACE
5835 _OUT << "{" << std::endl;
5836 INDENT(4);
5837
5838 print_int32_t(obj->x, "x", 1);
5839
5840 print_int32_t(obj->y, "y", 1);
5841
5842 print_int32_t(obj->z, "z", 0);
5843
5844 INDENT(-4);
5845 PRINT_SPACE
5846 if (commaNeeded)
5847 _OUT << "}," << std::endl;
5848 else
5849 _OUT << "}" << std::endl;
5850 }
5851
print_VkRect2D(VkRect2D obj,const std::string & s,bool commaNeeded=true)5852 static void print_VkRect2D(VkRect2D obj, const std::string& s, bool commaNeeded=true) {
5853 PRINT_SPACE
5854 _OUT << "{" << std::endl;
5855 INDENT(4);
5856
5857 PRINT_SPACE
5858 _OUT << "\"offset\": " << std::endl;
5859 {
5860 print_VkOffset2D(obj.offset, "offset", 1);
5861 }
5862
5863 PRINT_SPACE
5864 _OUT << "\"extent\": " << std::endl;
5865 {
5866 print_VkExtent2D(obj.extent, "extent", 0);
5867 }
5868
5869 INDENT(-4);
5870 PRINT_SPACE
5871 if (commaNeeded)
5872 _OUT << "}," << std::endl;
5873 else
5874 _OUT << "}" << std::endl;
5875 }
print_VkRect2D(const VkRect2D * obj,const std::string & s,bool commaNeeded=true)5876 static void print_VkRect2D(const VkRect2D * obj, const std::string& s, bool commaNeeded=true) {
5877 PRINT_SPACE
5878 _OUT << "{" << std::endl;
5879 INDENT(4);
5880
5881 PRINT_SPACE
5882 _OUT << "\"offset\": " << std::endl;
5883 {
5884 print_VkOffset2D(obj->offset, "offset", 1);
5885 }
5886
5887 PRINT_SPACE
5888 _OUT << "\"extent\": " << std::endl;
5889 {
5890 print_VkExtent2D(obj->extent, "extent", 0);
5891 }
5892
5893 INDENT(-4);
5894 PRINT_SPACE
5895 if (commaNeeded)
5896 _OUT << "}," << std::endl;
5897 else
5898 _OUT << "}" << std::endl;
5899 }
5900
print_VkBaseInStructure(VkBaseInStructure obj,const std::string & s,bool commaNeeded=true)5901 static void print_VkBaseInStructure(VkBaseInStructure obj, const std::string& s, bool commaNeeded=true) {
5902 PRINT_SPACE
5903 _OUT << "{" << std::endl;
5904 INDENT(4);
5905
5906 print_VkStructureType(obj.sType, "sType", 1);
5907
5908 if (obj.pNext) {
5909 dumpPNextChain(obj.pNext);
5910 } else {
5911 PRINT_SPACE
5912 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
5913 }
5914
5915 INDENT(-4);
5916 PRINT_SPACE
5917 if (commaNeeded)
5918 _OUT << "}," << std::endl;
5919 else
5920 _OUT << "}" << std::endl;
5921 }
print_VkBaseInStructure(const VkBaseInStructure * obj,const std::string & s,bool commaNeeded=true)5922 static void print_VkBaseInStructure(const VkBaseInStructure * obj, const std::string& s, bool commaNeeded=true) {
5923 PRINT_SPACE
5924 _OUT << "{" << std::endl;
5925 INDENT(4);
5926
5927 print_VkStructureType(obj->sType, "sType", 1);
5928
5929 if (obj->pNext) {
5930 dumpPNextChain(obj->pNext);
5931 } else {
5932 PRINT_SPACE
5933 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
5934 }
5935
5936 INDENT(-4);
5937 PRINT_SPACE
5938 if (commaNeeded)
5939 _OUT << "}," << std::endl;
5940 else
5941 _OUT << "}" << std::endl;
5942 }
5943
print_VkBaseOutStructure(VkBaseOutStructure obj,const std::string & s,bool commaNeeded=true)5944 static void print_VkBaseOutStructure(VkBaseOutStructure obj, const std::string& s, bool commaNeeded=true) {
5945 PRINT_SPACE
5946 _OUT << "{" << std::endl;
5947 INDENT(4);
5948
5949 print_VkStructureType(obj.sType, "sType", 1);
5950
5951 if (obj.pNext) {
5952 dumpPNextChain(obj.pNext);
5953 } else {
5954 PRINT_SPACE
5955 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
5956 }
5957
5958 INDENT(-4);
5959 PRINT_SPACE
5960 if (commaNeeded)
5961 _OUT << "}," << std::endl;
5962 else
5963 _OUT << "}" << std::endl;
5964 }
print_VkBaseOutStructure(const VkBaseOutStructure * obj,const std::string & s,bool commaNeeded=true)5965 static void print_VkBaseOutStructure(const VkBaseOutStructure * obj, const std::string& s, bool commaNeeded=true) {
5966 PRINT_SPACE
5967 _OUT << "{" << std::endl;
5968 INDENT(4);
5969
5970 print_VkStructureType(obj->sType, "sType", 1);
5971
5972 if (obj->pNext) {
5973 dumpPNextChain(obj->pNext);
5974 } else {
5975 PRINT_SPACE
5976 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
5977 }
5978
5979 INDENT(-4);
5980 PRINT_SPACE
5981 if (commaNeeded)
5982 _OUT << "}," << std::endl;
5983 else
5984 _OUT << "}" << std::endl;
5985 }
5986
print_VkBufferMemoryBarrier(VkBufferMemoryBarrier obj,const std::string & s,bool commaNeeded=true)5987 static void print_VkBufferMemoryBarrier(VkBufferMemoryBarrier obj, const std::string& s, bool commaNeeded=true) {
5988 PRINT_SPACE
5989 _OUT << "{" << std::endl;
5990 INDENT(4);
5991
5992 print_VkStructureType(obj.sType, "sType", 1);
5993
5994 if (obj.pNext) {
5995 dumpPNextChain(obj.pNext);
5996 } else {
5997 PRINT_SPACE
5998 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
5999 }
6000
6001 print_VkAccessFlags(obj.srcAccessMask, "srcAccessMask", 1);
6002
6003 print_VkAccessFlags(obj.dstAccessMask, "dstAccessMask", 1);
6004
6005 print_uint32_t(obj.srcQueueFamilyIndex, "srcQueueFamilyIndex", 1);
6006
6007 print_uint32_t(obj.dstQueueFamilyIndex, "dstQueueFamilyIndex", 1);
6008
6009 // CTS : required value
6010 PRINT_SPACE _OUT << "\"" << "buffer" << "\"" << " : " << "\"" << "\"," << std::endl;
6011
6012 print_VkDeviceSize(obj.offset, "offset", 1);
6013
6014 print_VkDeviceSize(obj.size, "size", 0);
6015
6016 INDENT(-4);
6017 PRINT_SPACE
6018 if (commaNeeded)
6019 _OUT << "}," << std::endl;
6020 else
6021 _OUT << "}" << std::endl;
6022 }
print_VkBufferMemoryBarrier(const VkBufferMemoryBarrier * obj,const std::string & s,bool commaNeeded=true)6023 static void print_VkBufferMemoryBarrier(const VkBufferMemoryBarrier * obj, const std::string& s, bool commaNeeded=true) {
6024 PRINT_SPACE
6025 _OUT << "{" << std::endl;
6026 INDENT(4);
6027
6028 print_VkStructureType(obj->sType, "sType", 1);
6029
6030 if (obj->pNext) {
6031 dumpPNextChain(obj->pNext);
6032 } else {
6033 PRINT_SPACE
6034 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6035 }
6036
6037 print_VkAccessFlags(obj->srcAccessMask, "srcAccessMask", 1);
6038
6039 print_VkAccessFlags(obj->dstAccessMask, "dstAccessMask", 1);
6040
6041 print_uint32_t(obj->srcQueueFamilyIndex, "srcQueueFamilyIndex", 1);
6042
6043 print_uint32_t(obj->dstQueueFamilyIndex, "dstQueueFamilyIndex", 1);
6044
6045 // CTS : required value
6046 PRINT_SPACE _OUT << "\"" << "buffer" << "\"" << " : " << "\"" << "\"," << std::endl;
6047
6048 print_VkDeviceSize(obj->offset, "offset", 1);
6049
6050 print_VkDeviceSize(obj->size, "size", 0);
6051
6052 INDENT(-4);
6053 PRINT_SPACE
6054 if (commaNeeded)
6055 _OUT << "}," << std::endl;
6056 else
6057 _OUT << "}" << std::endl;
6058 }
6059
print_VkDispatchIndirectCommand(VkDispatchIndirectCommand obj,const std::string & s,bool commaNeeded=true)6060 static void print_VkDispatchIndirectCommand(VkDispatchIndirectCommand obj, const std::string& s, bool commaNeeded=true) {
6061 PRINT_SPACE
6062 _OUT << "{" << std::endl;
6063 INDENT(4);
6064
6065 print_uint32_t(obj.x, "x", 1);
6066
6067 print_uint32_t(obj.y, "y", 1);
6068
6069 print_uint32_t(obj.z, "z", 0);
6070
6071 INDENT(-4);
6072 PRINT_SPACE
6073 if (commaNeeded)
6074 _OUT << "}," << std::endl;
6075 else
6076 _OUT << "}" << std::endl;
6077 }
print_VkDispatchIndirectCommand(const VkDispatchIndirectCommand * obj,const std::string & s,bool commaNeeded=true)6078 static void print_VkDispatchIndirectCommand(const VkDispatchIndirectCommand * obj, const std::string& s, bool commaNeeded=true) {
6079 PRINT_SPACE
6080 _OUT << "{" << std::endl;
6081 INDENT(4);
6082
6083 print_uint32_t(obj->x, "x", 1);
6084
6085 print_uint32_t(obj->y, "y", 1);
6086
6087 print_uint32_t(obj->z, "z", 0);
6088
6089 INDENT(-4);
6090 PRINT_SPACE
6091 if (commaNeeded)
6092 _OUT << "}," << std::endl;
6093 else
6094 _OUT << "}" << std::endl;
6095 }
6096
print_VkDrawIndexedIndirectCommand(VkDrawIndexedIndirectCommand obj,const std::string & s,bool commaNeeded=true)6097 static void print_VkDrawIndexedIndirectCommand(VkDrawIndexedIndirectCommand obj, const std::string& s, bool commaNeeded=true) {
6098 PRINT_SPACE
6099 _OUT << "{" << std::endl;
6100 INDENT(4);
6101
6102 print_uint32_t(obj.indexCount, "indexCount", 1);
6103
6104 print_uint32_t(obj.instanceCount, "instanceCount", 1);
6105
6106 print_uint32_t(obj.firstIndex, "firstIndex", 1);
6107
6108 print_int32_t(obj.vertexOffset, "vertexOffset", 1);
6109
6110 print_uint32_t(obj.firstInstance, "firstInstance", 0);
6111
6112 INDENT(-4);
6113 PRINT_SPACE
6114 if (commaNeeded)
6115 _OUT << "}," << std::endl;
6116 else
6117 _OUT << "}" << std::endl;
6118 }
print_VkDrawIndexedIndirectCommand(const VkDrawIndexedIndirectCommand * obj,const std::string & s,bool commaNeeded=true)6119 static void print_VkDrawIndexedIndirectCommand(const VkDrawIndexedIndirectCommand * obj, const std::string& s, bool commaNeeded=true) {
6120 PRINT_SPACE
6121 _OUT << "{" << std::endl;
6122 INDENT(4);
6123
6124 print_uint32_t(obj->indexCount, "indexCount", 1);
6125
6126 print_uint32_t(obj->instanceCount, "instanceCount", 1);
6127
6128 print_uint32_t(obj->firstIndex, "firstIndex", 1);
6129
6130 print_int32_t(obj->vertexOffset, "vertexOffset", 1);
6131
6132 print_uint32_t(obj->firstInstance, "firstInstance", 0);
6133
6134 INDENT(-4);
6135 PRINT_SPACE
6136 if (commaNeeded)
6137 _OUT << "}," << std::endl;
6138 else
6139 _OUT << "}" << std::endl;
6140 }
6141
print_VkDrawIndirectCommand(VkDrawIndirectCommand obj,const std::string & s,bool commaNeeded=true)6142 static void print_VkDrawIndirectCommand(VkDrawIndirectCommand obj, const std::string& s, bool commaNeeded=true) {
6143 PRINT_SPACE
6144 _OUT << "{" << std::endl;
6145 INDENT(4);
6146
6147 print_uint32_t(obj.vertexCount, "vertexCount", 1);
6148
6149 print_uint32_t(obj.instanceCount, "instanceCount", 1);
6150
6151 print_uint32_t(obj.firstVertex, "firstVertex", 1);
6152
6153 print_uint32_t(obj.firstInstance, "firstInstance", 0);
6154
6155 INDENT(-4);
6156 PRINT_SPACE
6157 if (commaNeeded)
6158 _OUT << "}," << std::endl;
6159 else
6160 _OUT << "}" << std::endl;
6161 }
print_VkDrawIndirectCommand(const VkDrawIndirectCommand * obj,const std::string & s,bool commaNeeded=true)6162 static void print_VkDrawIndirectCommand(const VkDrawIndirectCommand * obj, const std::string& s, bool commaNeeded=true) {
6163 PRINT_SPACE
6164 _OUT << "{" << std::endl;
6165 INDENT(4);
6166
6167 print_uint32_t(obj->vertexCount, "vertexCount", 1);
6168
6169 print_uint32_t(obj->instanceCount, "instanceCount", 1);
6170
6171 print_uint32_t(obj->firstVertex, "firstVertex", 1);
6172
6173 print_uint32_t(obj->firstInstance, "firstInstance", 0);
6174
6175 INDENT(-4);
6176 PRINT_SPACE
6177 if (commaNeeded)
6178 _OUT << "}," << std::endl;
6179 else
6180 _OUT << "}" << std::endl;
6181 }
6182
print_VkImageSubresourceRange(VkImageSubresourceRange obj,const std::string & s,bool commaNeeded=true)6183 static void print_VkImageSubresourceRange(VkImageSubresourceRange obj, const std::string& s, bool commaNeeded=true) {
6184 PRINT_SPACE
6185 _OUT << "{" << std::endl;
6186 INDENT(4);
6187
6188 print_VkImageAspectFlags(obj.aspectMask, "aspectMask", 1);
6189
6190 print_uint32_t(obj.baseMipLevel, "baseMipLevel", 1);
6191
6192 print_uint32_t(obj.levelCount, "levelCount", 1);
6193
6194 print_uint32_t(obj.baseArrayLayer, "baseArrayLayer", 1);
6195
6196 print_uint32_t(obj.layerCount, "layerCount", 0);
6197
6198 INDENT(-4);
6199 PRINT_SPACE
6200 if (commaNeeded)
6201 _OUT << "}," << std::endl;
6202 else
6203 _OUT << "}" << std::endl;
6204 }
print_VkImageSubresourceRange(const VkImageSubresourceRange * obj,const std::string & s,bool commaNeeded=true)6205 static void print_VkImageSubresourceRange(const VkImageSubresourceRange * obj, const std::string& s, bool commaNeeded=true) {
6206 PRINT_SPACE
6207 _OUT << "{" << std::endl;
6208 INDENT(4);
6209
6210 print_VkImageAspectFlags(obj->aspectMask, "aspectMask", 1);
6211
6212 print_uint32_t(obj->baseMipLevel, "baseMipLevel", 1);
6213
6214 print_uint32_t(obj->levelCount, "levelCount", 1);
6215
6216 print_uint32_t(obj->baseArrayLayer, "baseArrayLayer", 1);
6217
6218 print_uint32_t(obj->layerCount, "layerCount", 0);
6219
6220 INDENT(-4);
6221 PRINT_SPACE
6222 if (commaNeeded)
6223 _OUT << "}," << std::endl;
6224 else
6225 _OUT << "}" << std::endl;
6226 }
6227
print_VkImageMemoryBarrier(VkImageMemoryBarrier obj,const std::string & s,bool commaNeeded=true)6228 static void print_VkImageMemoryBarrier(VkImageMemoryBarrier obj, const std::string& s, bool commaNeeded=true) {
6229 PRINT_SPACE
6230 _OUT << "{" << std::endl;
6231 INDENT(4);
6232
6233 print_VkStructureType(obj.sType, "sType", 1);
6234
6235 if (obj.pNext) {
6236 dumpPNextChain(obj.pNext);
6237 } else {
6238 PRINT_SPACE
6239 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6240 }
6241
6242 print_VkAccessFlags(obj.srcAccessMask, "srcAccessMask", 1);
6243
6244 print_VkAccessFlags(obj.dstAccessMask, "dstAccessMask", 1);
6245
6246 print_VkImageLayout(obj.oldLayout, "oldLayout", 1);
6247
6248 print_VkImageLayout(obj.newLayout, "newLayout", 1);
6249
6250 print_uint32_t(obj.srcQueueFamilyIndex, "srcQueueFamilyIndex", 1);
6251
6252 print_uint32_t(obj.dstQueueFamilyIndex, "dstQueueFamilyIndex", 1);
6253
6254 // CTS : required value
6255 PRINT_SPACE _OUT << "\"" << "image" << "\"" << " : " << "\"" << "\"," << std::endl;
6256
6257 PRINT_SPACE
6258 _OUT << "\"subresourceRange\": " << std::endl;
6259 {
6260 print_VkImageSubresourceRange(obj.subresourceRange, "subresourceRange", 0);
6261 }
6262
6263 INDENT(-4);
6264 PRINT_SPACE
6265 if (commaNeeded)
6266 _OUT << "}," << std::endl;
6267 else
6268 _OUT << "}" << std::endl;
6269 }
print_VkImageMemoryBarrier(const VkImageMemoryBarrier * obj,const std::string & s,bool commaNeeded=true)6270 static void print_VkImageMemoryBarrier(const VkImageMemoryBarrier * obj, const std::string& s, bool commaNeeded=true) {
6271 PRINT_SPACE
6272 _OUT << "{" << std::endl;
6273 INDENT(4);
6274
6275 print_VkStructureType(obj->sType, "sType", 1);
6276
6277 if (obj->pNext) {
6278 dumpPNextChain(obj->pNext);
6279 } else {
6280 PRINT_SPACE
6281 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6282 }
6283
6284 print_VkAccessFlags(obj->srcAccessMask, "srcAccessMask", 1);
6285
6286 print_VkAccessFlags(obj->dstAccessMask, "dstAccessMask", 1);
6287
6288 print_VkImageLayout(obj->oldLayout, "oldLayout", 1);
6289
6290 print_VkImageLayout(obj->newLayout, "newLayout", 1);
6291
6292 print_uint32_t(obj->srcQueueFamilyIndex, "srcQueueFamilyIndex", 1);
6293
6294 print_uint32_t(obj->dstQueueFamilyIndex, "dstQueueFamilyIndex", 1);
6295
6296 // CTS : required value
6297 PRINT_SPACE _OUT << "\"" << "image" << "\"" << " : " << "\"" << "\"," << std::endl;
6298
6299 PRINT_SPACE
6300 _OUT << "\"subresourceRange\": " << std::endl;
6301 {
6302 print_VkImageSubresourceRange(obj->subresourceRange, "subresourceRange", 0);
6303 }
6304
6305 INDENT(-4);
6306 PRINT_SPACE
6307 if (commaNeeded)
6308 _OUT << "}," << std::endl;
6309 else
6310 _OUT << "}" << std::endl;
6311 }
6312
print_VkMemoryBarrier(VkMemoryBarrier obj,const std::string & s,bool commaNeeded=true)6313 static void print_VkMemoryBarrier(VkMemoryBarrier obj, const std::string& s, bool commaNeeded=true) {
6314 PRINT_SPACE
6315 _OUT << "{" << std::endl;
6316 INDENT(4);
6317
6318 print_VkStructureType(obj.sType, "sType", 1);
6319
6320 if (obj.pNext) {
6321 dumpPNextChain(obj.pNext);
6322 } else {
6323 PRINT_SPACE
6324 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6325 }
6326
6327 print_VkAccessFlags(obj.srcAccessMask, "srcAccessMask", 1);
6328
6329 print_VkAccessFlags(obj.dstAccessMask, "dstAccessMask", 0);
6330
6331 INDENT(-4);
6332 PRINT_SPACE
6333 if (commaNeeded)
6334 _OUT << "}," << std::endl;
6335 else
6336 _OUT << "}" << std::endl;
6337 }
print_VkMemoryBarrier(const VkMemoryBarrier * obj,const std::string & s,bool commaNeeded=true)6338 static void print_VkMemoryBarrier(const VkMemoryBarrier * obj, const std::string& s, bool commaNeeded=true) {
6339 PRINT_SPACE
6340 _OUT << "{" << std::endl;
6341 INDENT(4);
6342
6343 print_VkStructureType(obj->sType, "sType", 1);
6344
6345 if (obj->pNext) {
6346 dumpPNextChain(obj->pNext);
6347 } else {
6348 PRINT_SPACE
6349 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6350 }
6351
6352 print_VkAccessFlags(obj->srcAccessMask, "srcAccessMask", 1);
6353
6354 print_VkAccessFlags(obj->dstAccessMask, "dstAccessMask", 0);
6355
6356 INDENT(-4);
6357 PRINT_SPACE
6358 if (commaNeeded)
6359 _OUT << "}," << std::endl;
6360 else
6361 _OUT << "}" << std::endl;
6362 }
6363
print_VkPipelineCacheHeaderVersionOne(VkPipelineCacheHeaderVersionOne obj,const std::string & s,bool commaNeeded=true)6364 static void print_VkPipelineCacheHeaderVersionOne(VkPipelineCacheHeaderVersionOne obj, const std::string& s, bool commaNeeded=true) {
6365 PRINT_SPACE
6366 _OUT << "{" << std::endl;
6367 INDENT(4);
6368
6369 print_uint32_t(obj.headerSize, "headerSize", 1);
6370
6371 print_VkPipelineCacheHeaderVersion(obj.headerVersion, "headerVersion", 1);
6372
6373 print_uint32_t(obj.vendorID, "vendorID", 1);
6374
6375 print_uint32_t(obj.deviceID, "deviceID", 1);
6376
6377 PRINT_SPACE
6378 _OUT << "\"pipelineCacheUUID\":" << std::endl;
6379 PRINT_SPACE
6380 _OUT << "[" << std::endl;
6381 for (unsigned int i = 0; i < VK_UUID_SIZE; i++) {
6382 bool isCommaNeeded = (i+1) != VK_UUID_SIZE;
6383 print_uint8_t(obj.pipelineCacheUUID[i], "", isCommaNeeded);
6384 }
6385 PRINT_SPACE
6386 _OUT << "]" << "" << std::endl;
6387
6388 INDENT(-4);
6389 PRINT_SPACE
6390 if (commaNeeded)
6391 _OUT << "}," << std::endl;
6392 else
6393 _OUT << "}" << std::endl;
6394 }
print_VkPipelineCacheHeaderVersionOne(const VkPipelineCacheHeaderVersionOne * obj,const std::string & s,bool commaNeeded=true)6395 static void print_VkPipelineCacheHeaderVersionOne(const VkPipelineCacheHeaderVersionOne * obj, const std::string& s, bool commaNeeded=true) {
6396 PRINT_SPACE
6397 _OUT << "{" << std::endl;
6398 INDENT(4);
6399
6400 print_uint32_t(obj->headerSize, "headerSize", 1);
6401
6402 print_VkPipelineCacheHeaderVersion(obj->headerVersion, "headerVersion", 1);
6403
6404 print_uint32_t(obj->vendorID, "vendorID", 1);
6405
6406 print_uint32_t(obj->deviceID, "deviceID", 1);
6407
6408 PRINT_SPACE
6409 _OUT << "\"pipelineCacheUUID\":" << std::endl;
6410 PRINT_SPACE
6411 _OUT << "[" << std::endl;
6412 for (unsigned int i = 0; i < VK_UUID_SIZE; i++) {
6413 bool isCommaNeeded = (i+1) != VK_UUID_SIZE;
6414 print_uint8_t(obj->pipelineCacheUUID[i], "", isCommaNeeded);
6415 }
6416 PRINT_SPACE
6417 _OUT << "]" << "" << std::endl;
6418
6419 INDENT(-4);
6420 PRINT_SPACE
6421 if (commaNeeded)
6422 _OUT << "}," << std::endl;
6423 else
6424 _OUT << "}" << std::endl;
6425 }
6426
print_VkAllocationCallbacks(VkAllocationCallbacks obj,const std::string & s,bool commaNeeded=true)6427 static void print_VkAllocationCallbacks(VkAllocationCallbacks obj, const std::string& s, bool commaNeeded=true) {
6428 PRINT_SPACE
6429 _OUT << "{" << std::endl;
6430 INDENT(4);
6431
6432 /** Note: Ignoring void* data. **/
6433
6434 /** Note: Ignoring function pointer (PFN_vkAllocationFunction). **/
6435
6436 /** Note: Ignoring function pointer (PFN_vkReallocationFunction). **/
6437
6438 /** Note: Ignoring function pointer (PFN_vkFreeFunction). **/
6439
6440 /** Note: Ignoring function pointer (PFN_vkInternalAllocationNotification). **/
6441
6442 /** Note: Ignoring function pointer (PFN_vkInternalFreeNotification). **/
6443
6444 INDENT(-4);
6445 PRINT_SPACE
6446 if (commaNeeded)
6447 _OUT << "}," << std::endl;
6448 else
6449 _OUT << "}" << std::endl;
6450 }
print_VkAllocationCallbacks(const VkAllocationCallbacks * obj,const std::string & s,bool commaNeeded=true)6451 static void print_VkAllocationCallbacks(const VkAllocationCallbacks * obj, const std::string& s, bool commaNeeded=true) {
6452 PRINT_SPACE
6453 _OUT << "{" << std::endl;
6454 INDENT(4);
6455
6456 /** Note: Ignoring void* data. **/
6457
6458 /** Note: Ignoring function pointer (PFN_vkAllocationFunction). **/
6459
6460 /** Note: Ignoring function pointer (PFN_vkReallocationFunction). **/
6461
6462 /** Note: Ignoring function pointer (PFN_vkFreeFunction). **/
6463
6464 /** Note: Ignoring function pointer (PFN_vkInternalAllocationNotification). **/
6465
6466 /** Note: Ignoring function pointer (PFN_vkInternalFreeNotification). **/
6467
6468 INDENT(-4);
6469 PRINT_SPACE
6470 if (commaNeeded)
6471 _OUT << "}," << std::endl;
6472 else
6473 _OUT << "}" << std::endl;
6474 }
6475
print_VkApplicationInfo(VkApplicationInfo obj,const std::string & s,bool commaNeeded=true)6476 static void print_VkApplicationInfo(VkApplicationInfo obj, const std::string& s, bool commaNeeded=true) {
6477 PRINT_SPACE
6478 _OUT << "{" << std::endl;
6479 INDENT(4);
6480
6481 print_VkStructureType(obj.sType, "sType", 1);
6482
6483 if (obj.pNext) {
6484 dumpPNextChain(obj.pNext);
6485 } else {
6486 PRINT_SPACE
6487 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6488 }
6489
6490 print_char(obj.pApplicationName, "pApplicationName", 1);
6491
6492 print_uint32_t(obj.applicationVersion, "applicationVersion", 1);
6493
6494 print_char(obj.pEngineName, "pEngineName", 1);
6495
6496 print_uint32_t(obj.engineVersion, "engineVersion", 1);
6497
6498 print_uint32_t(obj.apiVersion, "apiVersion", 0);
6499
6500 INDENT(-4);
6501 PRINT_SPACE
6502 if (commaNeeded)
6503 _OUT << "}," << std::endl;
6504 else
6505 _OUT << "}" << std::endl;
6506 }
print_VkApplicationInfo(const VkApplicationInfo * obj,const std::string & s,bool commaNeeded=true)6507 static void print_VkApplicationInfo(const VkApplicationInfo * obj, const std::string& s, bool commaNeeded=true) {
6508 PRINT_SPACE
6509 _OUT << "{" << std::endl;
6510 INDENT(4);
6511
6512 print_VkStructureType(obj->sType, "sType", 1);
6513
6514 if (obj->pNext) {
6515 dumpPNextChain(obj->pNext);
6516 } else {
6517 PRINT_SPACE
6518 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6519 }
6520
6521 print_char(obj->pApplicationName, "pApplicationName", 1);
6522
6523 print_uint32_t(obj->applicationVersion, "applicationVersion", 1);
6524
6525 print_char(obj->pEngineName, "pEngineName", 1);
6526
6527 print_uint32_t(obj->engineVersion, "engineVersion", 1);
6528
6529 print_uint32_t(obj->apiVersion, "apiVersion", 0);
6530
6531 INDENT(-4);
6532 PRINT_SPACE
6533 if (commaNeeded)
6534 _OUT << "}," << std::endl;
6535 else
6536 _OUT << "}" << std::endl;
6537 }
6538
print_VkFormatProperties(VkFormatProperties obj,const std::string & s,bool commaNeeded=true)6539 static void print_VkFormatProperties(VkFormatProperties obj, const std::string& s, bool commaNeeded=true) {
6540 PRINT_SPACE
6541 _OUT << "{" << std::endl;
6542 INDENT(4);
6543
6544 print_VkFormatFeatureFlags(obj.linearTilingFeatures, "linearTilingFeatures", 1);
6545
6546 print_VkFormatFeatureFlags(obj.optimalTilingFeatures, "optimalTilingFeatures", 1);
6547
6548 print_VkFormatFeatureFlags(obj.bufferFeatures, "bufferFeatures", 0);
6549
6550 INDENT(-4);
6551 PRINT_SPACE
6552 if (commaNeeded)
6553 _OUT << "}," << std::endl;
6554 else
6555 _OUT << "}" << std::endl;
6556 }
print_VkFormatProperties(const VkFormatProperties * obj,const std::string & s,bool commaNeeded=true)6557 static void print_VkFormatProperties(const VkFormatProperties * obj, const std::string& s, bool commaNeeded=true) {
6558 PRINT_SPACE
6559 _OUT << "{" << std::endl;
6560 INDENT(4);
6561
6562 print_VkFormatFeatureFlags(obj->linearTilingFeatures, "linearTilingFeatures", 1);
6563
6564 print_VkFormatFeatureFlags(obj->optimalTilingFeatures, "optimalTilingFeatures", 1);
6565
6566 print_VkFormatFeatureFlags(obj->bufferFeatures, "bufferFeatures", 0);
6567
6568 INDENT(-4);
6569 PRINT_SPACE
6570 if (commaNeeded)
6571 _OUT << "}," << std::endl;
6572 else
6573 _OUT << "}" << std::endl;
6574 }
6575
print_VkImageFormatProperties(VkImageFormatProperties obj,const std::string & s,bool commaNeeded=true)6576 static void print_VkImageFormatProperties(VkImageFormatProperties obj, const std::string& s, bool commaNeeded=true) {
6577 PRINT_SPACE
6578 _OUT << "{" << std::endl;
6579 INDENT(4);
6580
6581 PRINT_SPACE
6582 _OUT << "\"maxExtent\": " << std::endl;
6583 {
6584 print_VkExtent3D(obj.maxExtent, "maxExtent", 1);
6585 }
6586
6587 print_uint32_t(obj.maxMipLevels, "maxMipLevels", 1);
6588
6589 print_uint32_t(obj.maxArrayLayers, "maxArrayLayers", 1);
6590
6591 print_VkSampleCountFlags(obj.sampleCounts, "sampleCounts", 1);
6592
6593 print_VkDeviceSize(obj.maxResourceSize, "maxResourceSize", 0);
6594
6595 INDENT(-4);
6596 PRINT_SPACE
6597 if (commaNeeded)
6598 _OUT << "}," << std::endl;
6599 else
6600 _OUT << "}" << std::endl;
6601 }
print_VkImageFormatProperties(const VkImageFormatProperties * obj,const std::string & s,bool commaNeeded=true)6602 static void print_VkImageFormatProperties(const VkImageFormatProperties * obj, const std::string& s, bool commaNeeded=true) {
6603 PRINT_SPACE
6604 _OUT << "{" << std::endl;
6605 INDENT(4);
6606
6607 PRINT_SPACE
6608 _OUT << "\"maxExtent\": " << std::endl;
6609 {
6610 print_VkExtent3D(obj->maxExtent, "maxExtent", 1);
6611 }
6612
6613 print_uint32_t(obj->maxMipLevels, "maxMipLevels", 1);
6614
6615 print_uint32_t(obj->maxArrayLayers, "maxArrayLayers", 1);
6616
6617 print_VkSampleCountFlags(obj->sampleCounts, "sampleCounts", 1);
6618
6619 print_VkDeviceSize(obj->maxResourceSize, "maxResourceSize", 0);
6620
6621 INDENT(-4);
6622 PRINT_SPACE
6623 if (commaNeeded)
6624 _OUT << "}," << std::endl;
6625 else
6626 _OUT << "}" << std::endl;
6627 }
6628
print_VkInstanceCreateInfo(VkInstanceCreateInfo obj,const std::string & s,bool commaNeeded=true)6629 static void print_VkInstanceCreateInfo(VkInstanceCreateInfo obj, const std::string& s, bool commaNeeded=true) {
6630 PRINT_SPACE
6631 _OUT << "{" << std::endl;
6632 INDENT(4);
6633
6634 print_VkStructureType(obj.sType, "sType", 1);
6635
6636 if (obj.pNext) {
6637 dumpPNextChain(obj.pNext);
6638 } else {
6639 PRINT_SPACE
6640 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6641 }
6642
6643 print_VkInstanceCreateFlags(obj.flags, "flags", 1);
6644
6645 PRINT_SPACE
6646 _OUT << "\"pApplicationInfo\": " << std::endl;
6647 if (obj.pApplicationInfo) {
6648 print_VkApplicationInfo(obj.pApplicationInfo, "pApplicationInfo", 1);
6649 }
6650 else
6651 {
6652 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
6653 }
6654
6655 print_uint32_t(obj.enabledLayerCount, "enabledLayerCount", 1);
6656
6657 print_char(obj.ppEnabledLayerNames, "ppEnabledLayerNames", 1);
6658
6659 print_uint32_t(obj.enabledExtensionCount, "enabledExtensionCount", 1);
6660
6661 print_char(obj.ppEnabledExtensionNames, "ppEnabledExtensionNames", 0);
6662
6663 INDENT(-4);
6664 PRINT_SPACE
6665 if (commaNeeded)
6666 _OUT << "}," << std::endl;
6667 else
6668 _OUT << "}" << std::endl;
6669 }
print_VkInstanceCreateInfo(const VkInstanceCreateInfo * obj,const std::string & s,bool commaNeeded=true)6670 static void print_VkInstanceCreateInfo(const VkInstanceCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
6671 PRINT_SPACE
6672 _OUT << "{" << std::endl;
6673 INDENT(4);
6674
6675 print_VkStructureType(obj->sType, "sType", 1);
6676
6677 if (obj->pNext) {
6678 dumpPNextChain(obj->pNext);
6679 } else {
6680 PRINT_SPACE
6681 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
6682 }
6683
6684 print_VkInstanceCreateFlags(obj->flags, "flags", 1);
6685
6686 PRINT_SPACE
6687 _OUT << "\"pApplicationInfo\": " << std::endl;
6688 if (obj->pApplicationInfo) {
6689 print_VkApplicationInfo(obj->pApplicationInfo, "pApplicationInfo", 1);
6690 }
6691 else
6692 {
6693 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
6694 }
6695
6696 print_uint32_t(obj->enabledLayerCount, "enabledLayerCount", 1);
6697
6698 print_char(obj->ppEnabledLayerNames, "ppEnabledLayerNames", 1);
6699
6700 print_uint32_t(obj->enabledExtensionCount, "enabledExtensionCount", 1);
6701
6702 print_char(obj->ppEnabledExtensionNames, "ppEnabledExtensionNames", 0);
6703
6704 INDENT(-4);
6705 PRINT_SPACE
6706 if (commaNeeded)
6707 _OUT << "}," << std::endl;
6708 else
6709 _OUT << "}" << std::endl;
6710 }
6711
print_VkMemoryHeap(VkMemoryHeap obj,const std::string & s,bool commaNeeded=true)6712 static void print_VkMemoryHeap(VkMemoryHeap obj, const std::string& s, bool commaNeeded=true) {
6713 PRINT_SPACE
6714 _OUT << "{" << std::endl;
6715 INDENT(4);
6716
6717 print_VkDeviceSize(obj.size, "size", 1);
6718
6719 print_VkMemoryHeapFlags(obj.flags, "flags", 0);
6720
6721 INDENT(-4);
6722 PRINT_SPACE
6723 if (commaNeeded)
6724 _OUT << "}," << std::endl;
6725 else
6726 _OUT << "}" << std::endl;
6727 }
print_VkMemoryHeap(const VkMemoryHeap * obj,const std::string & s,bool commaNeeded=true)6728 static void print_VkMemoryHeap(const VkMemoryHeap * obj, const std::string& s, bool commaNeeded=true) {
6729 PRINT_SPACE
6730 _OUT << "{" << std::endl;
6731 INDENT(4);
6732
6733 print_VkDeviceSize(obj->size, "size", 1);
6734
6735 print_VkMemoryHeapFlags(obj->flags, "flags", 0);
6736
6737 INDENT(-4);
6738 PRINT_SPACE
6739 if (commaNeeded)
6740 _OUT << "}," << std::endl;
6741 else
6742 _OUT << "}" << std::endl;
6743 }
6744
print_VkMemoryType(VkMemoryType obj,const std::string & s,bool commaNeeded=true)6745 static void print_VkMemoryType(VkMemoryType obj, const std::string& s, bool commaNeeded=true) {
6746 PRINT_SPACE
6747 _OUT << "{" << std::endl;
6748 INDENT(4);
6749
6750 print_VkMemoryPropertyFlags(obj.propertyFlags, "propertyFlags", 1);
6751
6752 print_uint32_t(obj.heapIndex, "heapIndex", 0);
6753
6754 INDENT(-4);
6755 PRINT_SPACE
6756 if (commaNeeded)
6757 _OUT << "}," << std::endl;
6758 else
6759 _OUT << "}" << std::endl;
6760 }
print_VkMemoryType(const VkMemoryType * obj,const std::string & s,bool commaNeeded=true)6761 static void print_VkMemoryType(const VkMemoryType * obj, const std::string& s, bool commaNeeded=true) {
6762 PRINT_SPACE
6763 _OUT << "{" << std::endl;
6764 INDENT(4);
6765
6766 print_VkMemoryPropertyFlags(obj->propertyFlags, "propertyFlags", 1);
6767
6768 print_uint32_t(obj->heapIndex, "heapIndex", 0);
6769
6770 INDENT(-4);
6771 PRINT_SPACE
6772 if (commaNeeded)
6773 _OUT << "}," << std::endl;
6774 else
6775 _OUT << "}" << std::endl;
6776 }
6777
print_VkPhysicalDeviceFeatures(VkPhysicalDeviceFeatures obj,const std::string & s,bool commaNeeded=true)6778 static void print_VkPhysicalDeviceFeatures(VkPhysicalDeviceFeatures obj, const std::string& s, bool commaNeeded=true) {
6779 PRINT_SPACE
6780 _OUT << "{" << std::endl;
6781 INDENT(4);
6782
6783 print_VkBool32(obj.robustBufferAccess, "robustBufferAccess", 1);
6784
6785 print_VkBool32(obj.fullDrawIndexUint32, "fullDrawIndexUint32", 1);
6786
6787 print_VkBool32(obj.imageCubeArray, "imageCubeArray", 1);
6788
6789 print_VkBool32(obj.independentBlend, "independentBlend", 1);
6790
6791 print_VkBool32(obj.geometryShader, "geometryShader", 1);
6792
6793 print_VkBool32(obj.tessellationShader, "tessellationShader", 1);
6794
6795 print_VkBool32(obj.sampleRateShading, "sampleRateShading", 1);
6796
6797 print_VkBool32(obj.dualSrcBlend, "dualSrcBlend", 1);
6798
6799 print_VkBool32(obj.logicOp, "logicOp", 1);
6800
6801 print_VkBool32(obj.multiDrawIndirect, "multiDrawIndirect", 1);
6802
6803 print_VkBool32(obj.drawIndirectFirstInstance, "drawIndirectFirstInstance", 1);
6804
6805 print_VkBool32(obj.depthClamp, "depthClamp", 1);
6806
6807 print_VkBool32(obj.depthBiasClamp, "depthBiasClamp", 1);
6808
6809 print_VkBool32(obj.fillModeNonSolid, "fillModeNonSolid", 1);
6810
6811 print_VkBool32(obj.depthBounds, "depthBounds", 1);
6812
6813 print_VkBool32(obj.wideLines, "wideLines", 1);
6814
6815 print_VkBool32(obj.largePoints, "largePoints", 1);
6816
6817 print_VkBool32(obj.alphaToOne, "alphaToOne", 1);
6818
6819 print_VkBool32(obj.multiViewport, "multiViewport", 1);
6820
6821 print_VkBool32(obj.samplerAnisotropy, "samplerAnisotropy", 1);
6822
6823 print_VkBool32(obj.textureCompressionETC2, "textureCompressionETC2", 1);
6824
6825 print_VkBool32(obj.textureCompressionASTC_LDR, "textureCompressionASTC_LDR", 1);
6826
6827 print_VkBool32(obj.textureCompressionBC, "textureCompressionBC", 1);
6828
6829 print_VkBool32(obj.occlusionQueryPrecise, "occlusionQueryPrecise", 1);
6830
6831 print_VkBool32(obj.pipelineStatisticsQuery, "pipelineStatisticsQuery", 1);
6832
6833 print_VkBool32(obj.vertexPipelineStoresAndAtomics, "vertexPipelineStoresAndAtomics", 1);
6834
6835 print_VkBool32(obj.fragmentStoresAndAtomics, "fragmentStoresAndAtomics", 1);
6836
6837 print_VkBool32(obj.shaderTessellationAndGeometryPointSize, "shaderTessellationAndGeometryPointSize", 1);
6838
6839 print_VkBool32(obj.shaderImageGatherExtended, "shaderImageGatherExtended", 1);
6840
6841 print_VkBool32(obj.shaderStorageImageExtendedFormats, "shaderStorageImageExtendedFormats", 1);
6842
6843 print_VkBool32(obj.shaderStorageImageMultisample, "shaderStorageImageMultisample", 1);
6844
6845 print_VkBool32(obj.shaderStorageImageReadWithoutFormat, "shaderStorageImageReadWithoutFormat", 1);
6846
6847 print_VkBool32(obj.shaderStorageImageWriteWithoutFormat, "shaderStorageImageWriteWithoutFormat", 1);
6848
6849 print_VkBool32(obj.shaderUniformBufferArrayDynamicIndexing, "shaderUniformBufferArrayDynamicIndexing", 1);
6850
6851 print_VkBool32(obj.shaderSampledImageArrayDynamicIndexing, "shaderSampledImageArrayDynamicIndexing", 1);
6852
6853 print_VkBool32(obj.shaderStorageBufferArrayDynamicIndexing, "shaderStorageBufferArrayDynamicIndexing", 1);
6854
6855 print_VkBool32(obj.shaderStorageImageArrayDynamicIndexing, "shaderStorageImageArrayDynamicIndexing", 1);
6856
6857 print_VkBool32(obj.shaderClipDistance, "shaderClipDistance", 1);
6858
6859 print_VkBool32(obj.shaderCullDistance, "shaderCullDistance", 1);
6860
6861 print_VkBool32(obj.shaderFloat64, "shaderFloat64", 1);
6862
6863 print_VkBool32(obj.shaderInt64, "shaderInt64", 1);
6864
6865 print_VkBool32(obj.shaderInt16, "shaderInt16", 1);
6866
6867 print_VkBool32(obj.shaderResourceResidency, "shaderResourceResidency", 1);
6868
6869 print_VkBool32(obj.shaderResourceMinLod, "shaderResourceMinLod", 1);
6870
6871 print_VkBool32(obj.sparseBinding, "sparseBinding", 1);
6872
6873 print_VkBool32(obj.sparseResidencyBuffer, "sparseResidencyBuffer", 1);
6874
6875 print_VkBool32(obj.sparseResidencyImage2D, "sparseResidencyImage2D", 1);
6876
6877 print_VkBool32(obj.sparseResidencyImage3D, "sparseResidencyImage3D", 1);
6878
6879 print_VkBool32(obj.sparseResidency2Samples, "sparseResidency2Samples", 1);
6880
6881 print_VkBool32(obj.sparseResidency4Samples, "sparseResidency4Samples", 1);
6882
6883 print_VkBool32(obj.sparseResidency8Samples, "sparseResidency8Samples", 1);
6884
6885 print_VkBool32(obj.sparseResidency16Samples, "sparseResidency16Samples", 1);
6886
6887 print_VkBool32(obj.sparseResidencyAliased, "sparseResidencyAliased", 1);
6888
6889 print_VkBool32(obj.variableMultisampleRate, "variableMultisampleRate", 1);
6890
6891 print_VkBool32(obj.inheritedQueries, "inheritedQueries", 0);
6892
6893 INDENT(-4);
6894 PRINT_SPACE
6895 if (commaNeeded)
6896 _OUT << "}," << std::endl;
6897 else
6898 _OUT << "}" << std::endl;
6899 }
print_VkPhysicalDeviceFeatures(const VkPhysicalDeviceFeatures * obj,const std::string & s,bool commaNeeded=true)6900 static void print_VkPhysicalDeviceFeatures(const VkPhysicalDeviceFeatures * obj, const std::string& s, bool commaNeeded=true) {
6901 PRINT_SPACE
6902 _OUT << "{" << std::endl;
6903 INDENT(4);
6904
6905 print_VkBool32(obj->robustBufferAccess, "robustBufferAccess", 1);
6906
6907 print_VkBool32(obj->fullDrawIndexUint32, "fullDrawIndexUint32", 1);
6908
6909 print_VkBool32(obj->imageCubeArray, "imageCubeArray", 1);
6910
6911 print_VkBool32(obj->independentBlend, "independentBlend", 1);
6912
6913 print_VkBool32(obj->geometryShader, "geometryShader", 1);
6914
6915 print_VkBool32(obj->tessellationShader, "tessellationShader", 1);
6916
6917 print_VkBool32(obj->sampleRateShading, "sampleRateShading", 1);
6918
6919 print_VkBool32(obj->dualSrcBlend, "dualSrcBlend", 1);
6920
6921 print_VkBool32(obj->logicOp, "logicOp", 1);
6922
6923 print_VkBool32(obj->multiDrawIndirect, "multiDrawIndirect", 1);
6924
6925 print_VkBool32(obj->drawIndirectFirstInstance, "drawIndirectFirstInstance", 1);
6926
6927 print_VkBool32(obj->depthClamp, "depthClamp", 1);
6928
6929 print_VkBool32(obj->depthBiasClamp, "depthBiasClamp", 1);
6930
6931 print_VkBool32(obj->fillModeNonSolid, "fillModeNonSolid", 1);
6932
6933 print_VkBool32(obj->depthBounds, "depthBounds", 1);
6934
6935 print_VkBool32(obj->wideLines, "wideLines", 1);
6936
6937 print_VkBool32(obj->largePoints, "largePoints", 1);
6938
6939 print_VkBool32(obj->alphaToOne, "alphaToOne", 1);
6940
6941 print_VkBool32(obj->multiViewport, "multiViewport", 1);
6942
6943 print_VkBool32(obj->samplerAnisotropy, "samplerAnisotropy", 1);
6944
6945 print_VkBool32(obj->textureCompressionETC2, "textureCompressionETC2", 1);
6946
6947 print_VkBool32(obj->textureCompressionASTC_LDR, "textureCompressionASTC_LDR", 1);
6948
6949 print_VkBool32(obj->textureCompressionBC, "textureCompressionBC", 1);
6950
6951 print_VkBool32(obj->occlusionQueryPrecise, "occlusionQueryPrecise", 1);
6952
6953 print_VkBool32(obj->pipelineStatisticsQuery, "pipelineStatisticsQuery", 1);
6954
6955 print_VkBool32(obj->vertexPipelineStoresAndAtomics, "vertexPipelineStoresAndAtomics", 1);
6956
6957 print_VkBool32(obj->fragmentStoresAndAtomics, "fragmentStoresAndAtomics", 1);
6958
6959 print_VkBool32(obj->shaderTessellationAndGeometryPointSize, "shaderTessellationAndGeometryPointSize", 1);
6960
6961 print_VkBool32(obj->shaderImageGatherExtended, "shaderImageGatherExtended", 1);
6962
6963 print_VkBool32(obj->shaderStorageImageExtendedFormats, "shaderStorageImageExtendedFormats", 1);
6964
6965 print_VkBool32(obj->shaderStorageImageMultisample, "shaderStorageImageMultisample", 1);
6966
6967 print_VkBool32(obj->shaderStorageImageReadWithoutFormat, "shaderStorageImageReadWithoutFormat", 1);
6968
6969 print_VkBool32(obj->shaderStorageImageWriteWithoutFormat, "shaderStorageImageWriteWithoutFormat", 1);
6970
6971 print_VkBool32(obj->shaderUniformBufferArrayDynamicIndexing, "shaderUniformBufferArrayDynamicIndexing", 1);
6972
6973 print_VkBool32(obj->shaderSampledImageArrayDynamicIndexing, "shaderSampledImageArrayDynamicIndexing", 1);
6974
6975 print_VkBool32(obj->shaderStorageBufferArrayDynamicIndexing, "shaderStorageBufferArrayDynamicIndexing", 1);
6976
6977 print_VkBool32(obj->shaderStorageImageArrayDynamicIndexing, "shaderStorageImageArrayDynamicIndexing", 1);
6978
6979 print_VkBool32(obj->shaderClipDistance, "shaderClipDistance", 1);
6980
6981 print_VkBool32(obj->shaderCullDistance, "shaderCullDistance", 1);
6982
6983 print_VkBool32(obj->shaderFloat64, "shaderFloat64", 1);
6984
6985 print_VkBool32(obj->shaderInt64, "shaderInt64", 1);
6986
6987 print_VkBool32(obj->shaderInt16, "shaderInt16", 1);
6988
6989 print_VkBool32(obj->shaderResourceResidency, "shaderResourceResidency", 1);
6990
6991 print_VkBool32(obj->shaderResourceMinLod, "shaderResourceMinLod", 1);
6992
6993 print_VkBool32(obj->sparseBinding, "sparseBinding", 1);
6994
6995 print_VkBool32(obj->sparseResidencyBuffer, "sparseResidencyBuffer", 1);
6996
6997 print_VkBool32(obj->sparseResidencyImage2D, "sparseResidencyImage2D", 1);
6998
6999 print_VkBool32(obj->sparseResidencyImage3D, "sparseResidencyImage3D", 1);
7000
7001 print_VkBool32(obj->sparseResidency2Samples, "sparseResidency2Samples", 1);
7002
7003 print_VkBool32(obj->sparseResidency4Samples, "sparseResidency4Samples", 1);
7004
7005 print_VkBool32(obj->sparseResidency8Samples, "sparseResidency8Samples", 1);
7006
7007 print_VkBool32(obj->sparseResidency16Samples, "sparseResidency16Samples", 1);
7008
7009 print_VkBool32(obj->sparseResidencyAliased, "sparseResidencyAliased", 1);
7010
7011 print_VkBool32(obj->variableMultisampleRate, "variableMultisampleRate", 1);
7012
7013 print_VkBool32(obj->inheritedQueries, "inheritedQueries", 0);
7014
7015 INDENT(-4);
7016 PRINT_SPACE
7017 if (commaNeeded)
7018 _OUT << "}," << std::endl;
7019 else
7020 _OUT << "}" << std::endl;
7021 }
7022
print_VkPhysicalDeviceLimits(VkPhysicalDeviceLimits obj,const std::string & s,bool commaNeeded=true)7023 static void print_VkPhysicalDeviceLimits(VkPhysicalDeviceLimits obj, const std::string& s, bool commaNeeded=true) {
7024 PRINT_SPACE
7025 _OUT << "{" << std::endl;
7026 INDENT(4);
7027
7028 print_uint32_t(obj.maxImageDimension1D, "maxImageDimension1D", 1);
7029
7030 print_uint32_t(obj.maxImageDimension2D, "maxImageDimension2D", 1);
7031
7032 print_uint32_t(obj.maxImageDimension3D, "maxImageDimension3D", 1);
7033
7034 print_uint32_t(obj.maxImageDimensionCube, "maxImageDimensionCube", 1);
7035
7036 print_uint32_t(obj.maxImageArrayLayers, "maxImageArrayLayers", 1);
7037
7038 print_uint32_t(obj.maxTexelBufferElements, "maxTexelBufferElements", 1);
7039
7040 print_uint32_t(obj.maxUniformBufferRange, "maxUniformBufferRange", 1);
7041
7042 print_uint32_t(obj.maxStorageBufferRange, "maxStorageBufferRange", 1);
7043
7044 print_uint32_t(obj.maxPushConstantsSize, "maxPushConstantsSize", 1);
7045
7046 print_uint32_t(obj.maxMemoryAllocationCount, "maxMemoryAllocationCount", 1);
7047
7048 print_uint32_t(obj.maxSamplerAllocationCount, "maxSamplerAllocationCount", 1);
7049
7050 print_VkDeviceSize(obj.bufferImageGranularity, "bufferImageGranularity", 1);
7051
7052 print_VkDeviceSize(obj.sparseAddressSpaceSize, "sparseAddressSpaceSize", 1);
7053
7054 print_uint32_t(obj.maxBoundDescriptorSets, "maxBoundDescriptorSets", 1);
7055
7056 print_uint32_t(obj.maxPerStageDescriptorSamplers, "maxPerStageDescriptorSamplers", 1);
7057
7058 print_uint32_t(obj.maxPerStageDescriptorUniformBuffers, "maxPerStageDescriptorUniformBuffers", 1);
7059
7060 print_uint32_t(obj.maxPerStageDescriptorStorageBuffers, "maxPerStageDescriptorStorageBuffers", 1);
7061
7062 print_uint32_t(obj.maxPerStageDescriptorSampledImages, "maxPerStageDescriptorSampledImages", 1);
7063
7064 print_uint32_t(obj.maxPerStageDescriptorStorageImages, "maxPerStageDescriptorStorageImages", 1);
7065
7066 print_uint32_t(obj.maxPerStageDescriptorInputAttachments, "maxPerStageDescriptorInputAttachments", 1);
7067
7068 print_uint32_t(obj.maxPerStageResources, "maxPerStageResources", 1);
7069
7070 print_uint32_t(obj.maxDescriptorSetSamplers, "maxDescriptorSetSamplers", 1);
7071
7072 print_uint32_t(obj.maxDescriptorSetUniformBuffers, "maxDescriptorSetUniformBuffers", 1);
7073
7074 print_uint32_t(obj.maxDescriptorSetUniformBuffersDynamic, "maxDescriptorSetUniformBuffersDynamic", 1);
7075
7076 print_uint32_t(obj.maxDescriptorSetStorageBuffers, "maxDescriptorSetStorageBuffers", 1);
7077
7078 print_uint32_t(obj.maxDescriptorSetStorageBuffersDynamic, "maxDescriptorSetStorageBuffersDynamic", 1);
7079
7080 print_uint32_t(obj.maxDescriptorSetSampledImages, "maxDescriptorSetSampledImages", 1);
7081
7082 print_uint32_t(obj.maxDescriptorSetStorageImages, "maxDescriptorSetStorageImages", 1);
7083
7084 print_uint32_t(obj.maxDescriptorSetInputAttachments, "maxDescriptorSetInputAttachments", 1);
7085
7086 print_uint32_t(obj.maxVertexInputAttributes, "maxVertexInputAttributes", 1);
7087
7088 print_uint32_t(obj.maxVertexInputBindings, "maxVertexInputBindings", 1);
7089
7090 print_uint32_t(obj.maxVertexInputAttributeOffset, "maxVertexInputAttributeOffset", 1);
7091
7092 print_uint32_t(obj.maxVertexInputBindingStride, "maxVertexInputBindingStride", 1);
7093
7094 print_uint32_t(obj.maxVertexOutputComponents, "maxVertexOutputComponents", 1);
7095
7096 print_uint32_t(obj.maxTessellationGenerationLevel, "maxTessellationGenerationLevel", 1);
7097
7098 print_uint32_t(obj.maxTessellationPatchSize, "maxTessellationPatchSize", 1);
7099
7100 print_uint32_t(obj.maxTessellationControlPerVertexInputComponents, "maxTessellationControlPerVertexInputComponents", 1);
7101
7102 print_uint32_t(obj.maxTessellationControlPerVertexOutputComponents, "maxTessellationControlPerVertexOutputComponents", 1);
7103
7104 print_uint32_t(obj.maxTessellationControlPerPatchOutputComponents, "maxTessellationControlPerPatchOutputComponents", 1);
7105
7106 print_uint32_t(obj.maxTessellationControlTotalOutputComponents, "maxTessellationControlTotalOutputComponents", 1);
7107
7108 print_uint32_t(obj.maxTessellationEvaluationInputComponents, "maxTessellationEvaluationInputComponents", 1);
7109
7110 print_uint32_t(obj.maxTessellationEvaluationOutputComponents, "maxTessellationEvaluationOutputComponents", 1);
7111
7112 print_uint32_t(obj.maxGeometryShaderInvocations, "maxGeometryShaderInvocations", 1);
7113
7114 print_uint32_t(obj.maxGeometryInputComponents, "maxGeometryInputComponents", 1);
7115
7116 print_uint32_t(obj.maxGeometryOutputComponents, "maxGeometryOutputComponents", 1);
7117
7118 print_uint32_t(obj.maxGeometryOutputVertices, "maxGeometryOutputVertices", 1);
7119
7120 print_uint32_t(obj.maxGeometryTotalOutputComponents, "maxGeometryTotalOutputComponents", 1);
7121
7122 print_uint32_t(obj.maxFragmentInputComponents, "maxFragmentInputComponents", 1);
7123
7124 print_uint32_t(obj.maxFragmentOutputAttachments, "maxFragmentOutputAttachments", 1);
7125
7126 print_uint32_t(obj.maxFragmentDualSrcAttachments, "maxFragmentDualSrcAttachments", 1);
7127
7128 print_uint32_t(obj.maxFragmentCombinedOutputResources, "maxFragmentCombinedOutputResources", 1);
7129
7130 print_uint32_t(obj.maxComputeSharedMemorySize, "maxComputeSharedMemorySize", 1);
7131
7132 PRINT_SPACE
7133 _OUT << "\"maxComputeWorkGroupCount\":" << std::endl;
7134 PRINT_SPACE
7135 _OUT << "[" << std::endl;
7136 for (unsigned int i = 0; i < 3; i++) {
7137 bool isCommaNeeded = (i+1) != 3;
7138 print_uint32_t(obj.maxComputeWorkGroupCount[i], "", isCommaNeeded);
7139 }
7140 PRINT_SPACE
7141 _OUT << "]" << "," << std::endl;
7142
7143 print_uint32_t(obj.maxComputeWorkGroupInvocations, "maxComputeWorkGroupInvocations", 1);
7144
7145 PRINT_SPACE
7146 _OUT << "\"maxComputeWorkGroupSize\":" << std::endl;
7147 PRINT_SPACE
7148 _OUT << "[" << std::endl;
7149 for (unsigned int i = 0; i < 3; i++) {
7150 bool isCommaNeeded = (i+1) != 3;
7151 print_uint32_t(obj.maxComputeWorkGroupSize[i], "", isCommaNeeded);
7152 }
7153 PRINT_SPACE
7154 _OUT << "]" << "," << std::endl;
7155
7156 print_uint32_t(obj.subPixelPrecisionBits, "subPixelPrecisionBits", 1);
7157
7158 print_uint32_t(obj.subTexelPrecisionBits, "subTexelPrecisionBits", 1);
7159
7160 print_uint32_t(obj.mipmapPrecisionBits, "mipmapPrecisionBits", 1);
7161
7162 print_uint32_t(obj.maxDrawIndexedIndexValue, "maxDrawIndexedIndexValue", 1);
7163
7164 print_uint32_t(obj.maxDrawIndirectCount, "maxDrawIndirectCount", 1);
7165
7166 print_float(obj.maxSamplerLodBias, "maxSamplerLodBias", 1);
7167
7168 print_float(obj.maxSamplerAnisotropy, "maxSamplerAnisotropy", 1);
7169
7170 print_uint32_t(obj.maxViewports, "maxViewports", 1);
7171
7172 PRINT_SPACE
7173 _OUT << "\"maxViewportDimensions\":" << std::endl;
7174 PRINT_SPACE
7175 _OUT << "[" << std::endl;
7176 for (unsigned int i = 0; i < 2; i++) {
7177 bool isCommaNeeded = (i+1) != 2;
7178 print_uint32_t(obj.maxViewportDimensions[i], "", isCommaNeeded);
7179 }
7180 PRINT_SPACE
7181 _OUT << "]" << "," << std::endl;
7182
7183 PRINT_SPACE
7184 _OUT << "\"viewportBoundsRange\":" << std::endl;
7185 PRINT_SPACE
7186 _OUT << "[" << std::endl;
7187 for (unsigned int i = 0; i < 2; i++) {
7188 bool isCommaNeeded = (i+1) != 2;
7189 print_float(obj.viewportBoundsRange[i], "", isCommaNeeded);
7190 }
7191 PRINT_SPACE
7192 _OUT << "]" << "," << std::endl;
7193
7194 print_uint32_t(obj.viewportSubPixelBits, "viewportSubPixelBits", 1);
7195
7196 print_size_t(obj.minMemoryMapAlignment, "minMemoryMapAlignment", 1);
7197
7198 print_VkDeviceSize(obj.minTexelBufferOffsetAlignment, "minTexelBufferOffsetAlignment", 1);
7199
7200 print_VkDeviceSize(obj.minUniformBufferOffsetAlignment, "minUniformBufferOffsetAlignment", 1);
7201
7202 print_VkDeviceSize(obj.minStorageBufferOffsetAlignment, "minStorageBufferOffsetAlignment", 1);
7203
7204 print_int32_t(obj.minTexelOffset, "minTexelOffset", 1);
7205
7206 print_uint32_t(obj.maxTexelOffset, "maxTexelOffset", 1);
7207
7208 print_int32_t(obj.minTexelGatherOffset, "minTexelGatherOffset", 1);
7209
7210 print_uint32_t(obj.maxTexelGatherOffset, "maxTexelGatherOffset", 1);
7211
7212 print_float(obj.minInterpolationOffset, "minInterpolationOffset", 1);
7213
7214 print_float(obj.maxInterpolationOffset, "maxInterpolationOffset", 1);
7215
7216 print_uint32_t(obj.subPixelInterpolationOffsetBits, "subPixelInterpolationOffsetBits", 1);
7217
7218 print_uint32_t(obj.maxFramebufferWidth, "maxFramebufferWidth", 1);
7219
7220 print_uint32_t(obj.maxFramebufferHeight, "maxFramebufferHeight", 1);
7221
7222 print_uint32_t(obj.maxFramebufferLayers, "maxFramebufferLayers", 1);
7223
7224 print_VkSampleCountFlags(obj.framebufferColorSampleCounts, "framebufferColorSampleCounts", 1);
7225
7226 print_VkSampleCountFlags(obj.framebufferDepthSampleCounts, "framebufferDepthSampleCounts", 1);
7227
7228 print_VkSampleCountFlags(obj.framebufferStencilSampleCounts, "framebufferStencilSampleCounts", 1);
7229
7230 print_VkSampleCountFlags(obj.framebufferNoAttachmentsSampleCounts, "framebufferNoAttachmentsSampleCounts", 1);
7231
7232 print_uint32_t(obj.maxColorAttachments, "maxColorAttachments", 1);
7233
7234 print_VkSampleCountFlags(obj.sampledImageColorSampleCounts, "sampledImageColorSampleCounts", 1);
7235
7236 print_VkSampleCountFlags(obj.sampledImageIntegerSampleCounts, "sampledImageIntegerSampleCounts", 1);
7237
7238 print_VkSampleCountFlags(obj.sampledImageDepthSampleCounts, "sampledImageDepthSampleCounts", 1);
7239
7240 print_VkSampleCountFlags(obj.sampledImageStencilSampleCounts, "sampledImageStencilSampleCounts", 1);
7241
7242 print_VkSampleCountFlags(obj.storageImageSampleCounts, "storageImageSampleCounts", 1);
7243
7244 print_uint32_t(obj.maxSampleMaskWords, "maxSampleMaskWords", 1);
7245
7246 print_VkBool32(obj.timestampComputeAndGraphics, "timestampComputeAndGraphics", 1);
7247
7248 print_float(obj.timestampPeriod, "timestampPeriod", 1);
7249
7250 print_uint32_t(obj.maxClipDistances, "maxClipDistances", 1);
7251
7252 print_uint32_t(obj.maxCullDistances, "maxCullDistances", 1);
7253
7254 print_uint32_t(obj.maxCombinedClipAndCullDistances, "maxCombinedClipAndCullDistances", 1);
7255
7256 print_uint32_t(obj.discreteQueuePriorities, "discreteQueuePriorities", 1);
7257
7258 PRINT_SPACE
7259 _OUT << "\"pointSizeRange\":" << std::endl;
7260 PRINT_SPACE
7261 _OUT << "[" << std::endl;
7262 for (unsigned int i = 0; i < 2; i++) {
7263 bool isCommaNeeded = (i+1) != 2;
7264 print_float(obj.pointSizeRange[i], "", isCommaNeeded);
7265 }
7266 PRINT_SPACE
7267 _OUT << "]" << "," << std::endl;
7268
7269 PRINT_SPACE
7270 _OUT << "\"lineWidthRange\":" << std::endl;
7271 PRINT_SPACE
7272 _OUT << "[" << std::endl;
7273 for (unsigned int i = 0; i < 2; i++) {
7274 bool isCommaNeeded = (i+1) != 2;
7275 print_float(obj.lineWidthRange[i], "", isCommaNeeded);
7276 }
7277 PRINT_SPACE
7278 _OUT << "]" << "," << std::endl;
7279
7280 print_float(obj.pointSizeGranularity, "pointSizeGranularity", 1);
7281
7282 print_float(obj.lineWidthGranularity, "lineWidthGranularity", 1);
7283
7284 print_VkBool32(obj.strictLines, "strictLines", 1);
7285
7286 print_VkBool32(obj.standardSampleLocations, "standardSampleLocations", 1);
7287
7288 print_VkDeviceSize(obj.optimalBufferCopyOffsetAlignment, "optimalBufferCopyOffsetAlignment", 1);
7289
7290 print_VkDeviceSize(obj.optimalBufferCopyRowPitchAlignment, "optimalBufferCopyRowPitchAlignment", 1);
7291
7292 print_VkDeviceSize(obj.nonCoherentAtomSize, "nonCoherentAtomSize", 0);
7293
7294 INDENT(-4);
7295 PRINT_SPACE
7296 if (commaNeeded)
7297 _OUT << "}," << std::endl;
7298 else
7299 _OUT << "}" << std::endl;
7300 }
print_VkPhysicalDeviceLimits(const VkPhysicalDeviceLimits * obj,const std::string & s,bool commaNeeded=true)7301 static void print_VkPhysicalDeviceLimits(const VkPhysicalDeviceLimits * obj, const std::string& s, bool commaNeeded=true) {
7302 PRINT_SPACE
7303 _OUT << "{" << std::endl;
7304 INDENT(4);
7305
7306 print_uint32_t(obj->maxImageDimension1D, "maxImageDimension1D", 1);
7307
7308 print_uint32_t(obj->maxImageDimension2D, "maxImageDimension2D", 1);
7309
7310 print_uint32_t(obj->maxImageDimension3D, "maxImageDimension3D", 1);
7311
7312 print_uint32_t(obj->maxImageDimensionCube, "maxImageDimensionCube", 1);
7313
7314 print_uint32_t(obj->maxImageArrayLayers, "maxImageArrayLayers", 1);
7315
7316 print_uint32_t(obj->maxTexelBufferElements, "maxTexelBufferElements", 1);
7317
7318 print_uint32_t(obj->maxUniformBufferRange, "maxUniformBufferRange", 1);
7319
7320 print_uint32_t(obj->maxStorageBufferRange, "maxStorageBufferRange", 1);
7321
7322 print_uint32_t(obj->maxPushConstantsSize, "maxPushConstantsSize", 1);
7323
7324 print_uint32_t(obj->maxMemoryAllocationCount, "maxMemoryAllocationCount", 1);
7325
7326 print_uint32_t(obj->maxSamplerAllocationCount, "maxSamplerAllocationCount", 1);
7327
7328 print_VkDeviceSize(obj->bufferImageGranularity, "bufferImageGranularity", 1);
7329
7330 print_VkDeviceSize(obj->sparseAddressSpaceSize, "sparseAddressSpaceSize", 1);
7331
7332 print_uint32_t(obj->maxBoundDescriptorSets, "maxBoundDescriptorSets", 1);
7333
7334 print_uint32_t(obj->maxPerStageDescriptorSamplers, "maxPerStageDescriptorSamplers", 1);
7335
7336 print_uint32_t(obj->maxPerStageDescriptorUniformBuffers, "maxPerStageDescriptorUniformBuffers", 1);
7337
7338 print_uint32_t(obj->maxPerStageDescriptorStorageBuffers, "maxPerStageDescriptorStorageBuffers", 1);
7339
7340 print_uint32_t(obj->maxPerStageDescriptorSampledImages, "maxPerStageDescriptorSampledImages", 1);
7341
7342 print_uint32_t(obj->maxPerStageDescriptorStorageImages, "maxPerStageDescriptorStorageImages", 1);
7343
7344 print_uint32_t(obj->maxPerStageDescriptorInputAttachments, "maxPerStageDescriptorInputAttachments", 1);
7345
7346 print_uint32_t(obj->maxPerStageResources, "maxPerStageResources", 1);
7347
7348 print_uint32_t(obj->maxDescriptorSetSamplers, "maxDescriptorSetSamplers", 1);
7349
7350 print_uint32_t(obj->maxDescriptorSetUniformBuffers, "maxDescriptorSetUniformBuffers", 1);
7351
7352 print_uint32_t(obj->maxDescriptorSetUniformBuffersDynamic, "maxDescriptorSetUniformBuffersDynamic", 1);
7353
7354 print_uint32_t(obj->maxDescriptorSetStorageBuffers, "maxDescriptorSetStorageBuffers", 1);
7355
7356 print_uint32_t(obj->maxDescriptorSetStorageBuffersDynamic, "maxDescriptorSetStorageBuffersDynamic", 1);
7357
7358 print_uint32_t(obj->maxDescriptorSetSampledImages, "maxDescriptorSetSampledImages", 1);
7359
7360 print_uint32_t(obj->maxDescriptorSetStorageImages, "maxDescriptorSetStorageImages", 1);
7361
7362 print_uint32_t(obj->maxDescriptorSetInputAttachments, "maxDescriptorSetInputAttachments", 1);
7363
7364 print_uint32_t(obj->maxVertexInputAttributes, "maxVertexInputAttributes", 1);
7365
7366 print_uint32_t(obj->maxVertexInputBindings, "maxVertexInputBindings", 1);
7367
7368 print_uint32_t(obj->maxVertexInputAttributeOffset, "maxVertexInputAttributeOffset", 1);
7369
7370 print_uint32_t(obj->maxVertexInputBindingStride, "maxVertexInputBindingStride", 1);
7371
7372 print_uint32_t(obj->maxVertexOutputComponents, "maxVertexOutputComponents", 1);
7373
7374 print_uint32_t(obj->maxTessellationGenerationLevel, "maxTessellationGenerationLevel", 1);
7375
7376 print_uint32_t(obj->maxTessellationPatchSize, "maxTessellationPatchSize", 1);
7377
7378 print_uint32_t(obj->maxTessellationControlPerVertexInputComponents, "maxTessellationControlPerVertexInputComponents", 1);
7379
7380 print_uint32_t(obj->maxTessellationControlPerVertexOutputComponents, "maxTessellationControlPerVertexOutputComponents", 1);
7381
7382 print_uint32_t(obj->maxTessellationControlPerPatchOutputComponents, "maxTessellationControlPerPatchOutputComponents", 1);
7383
7384 print_uint32_t(obj->maxTessellationControlTotalOutputComponents, "maxTessellationControlTotalOutputComponents", 1);
7385
7386 print_uint32_t(obj->maxTessellationEvaluationInputComponents, "maxTessellationEvaluationInputComponents", 1);
7387
7388 print_uint32_t(obj->maxTessellationEvaluationOutputComponents, "maxTessellationEvaluationOutputComponents", 1);
7389
7390 print_uint32_t(obj->maxGeometryShaderInvocations, "maxGeometryShaderInvocations", 1);
7391
7392 print_uint32_t(obj->maxGeometryInputComponents, "maxGeometryInputComponents", 1);
7393
7394 print_uint32_t(obj->maxGeometryOutputComponents, "maxGeometryOutputComponents", 1);
7395
7396 print_uint32_t(obj->maxGeometryOutputVertices, "maxGeometryOutputVertices", 1);
7397
7398 print_uint32_t(obj->maxGeometryTotalOutputComponents, "maxGeometryTotalOutputComponents", 1);
7399
7400 print_uint32_t(obj->maxFragmentInputComponents, "maxFragmentInputComponents", 1);
7401
7402 print_uint32_t(obj->maxFragmentOutputAttachments, "maxFragmentOutputAttachments", 1);
7403
7404 print_uint32_t(obj->maxFragmentDualSrcAttachments, "maxFragmentDualSrcAttachments", 1);
7405
7406 print_uint32_t(obj->maxFragmentCombinedOutputResources, "maxFragmentCombinedOutputResources", 1);
7407
7408 print_uint32_t(obj->maxComputeSharedMemorySize, "maxComputeSharedMemorySize", 1);
7409
7410 PRINT_SPACE
7411 _OUT << "\"maxComputeWorkGroupCount\":" << std::endl;
7412 PRINT_SPACE
7413 _OUT << "[" << std::endl;
7414 for (unsigned int i = 0; i < 3; i++) {
7415 bool isCommaNeeded = (i+1) != 3;
7416 print_uint32_t(obj->maxComputeWorkGroupCount[i], "", isCommaNeeded);
7417 }
7418 PRINT_SPACE
7419 _OUT << "]" << "," << std::endl;
7420
7421 print_uint32_t(obj->maxComputeWorkGroupInvocations, "maxComputeWorkGroupInvocations", 1);
7422
7423 PRINT_SPACE
7424 _OUT << "\"maxComputeWorkGroupSize\":" << std::endl;
7425 PRINT_SPACE
7426 _OUT << "[" << std::endl;
7427 for (unsigned int i = 0; i < 3; i++) {
7428 bool isCommaNeeded = (i+1) != 3;
7429 print_uint32_t(obj->maxComputeWorkGroupSize[i], "", isCommaNeeded);
7430 }
7431 PRINT_SPACE
7432 _OUT << "]" << "," << std::endl;
7433
7434 print_uint32_t(obj->subPixelPrecisionBits, "subPixelPrecisionBits", 1);
7435
7436 print_uint32_t(obj->subTexelPrecisionBits, "subTexelPrecisionBits", 1);
7437
7438 print_uint32_t(obj->mipmapPrecisionBits, "mipmapPrecisionBits", 1);
7439
7440 print_uint32_t(obj->maxDrawIndexedIndexValue, "maxDrawIndexedIndexValue", 1);
7441
7442 print_uint32_t(obj->maxDrawIndirectCount, "maxDrawIndirectCount", 1);
7443
7444 print_float(obj->maxSamplerLodBias, "maxSamplerLodBias", 1);
7445
7446 print_float(obj->maxSamplerAnisotropy, "maxSamplerAnisotropy", 1);
7447
7448 print_uint32_t(obj->maxViewports, "maxViewports", 1);
7449
7450 PRINT_SPACE
7451 _OUT << "\"maxViewportDimensions\":" << std::endl;
7452 PRINT_SPACE
7453 _OUT << "[" << std::endl;
7454 for (unsigned int i = 0; i < 2; i++) {
7455 bool isCommaNeeded = (i+1) != 2;
7456 print_uint32_t(obj->maxViewportDimensions[i], "", isCommaNeeded);
7457 }
7458 PRINT_SPACE
7459 _OUT << "]" << "," << std::endl;
7460
7461 PRINT_SPACE
7462 _OUT << "\"viewportBoundsRange\":" << std::endl;
7463 PRINT_SPACE
7464 _OUT << "[" << std::endl;
7465 for (unsigned int i = 0; i < 2; i++) {
7466 bool isCommaNeeded = (i+1) != 2;
7467 print_float(obj->viewportBoundsRange[i], "", isCommaNeeded);
7468 }
7469 PRINT_SPACE
7470 _OUT << "]" << "," << std::endl;
7471
7472 print_uint32_t(obj->viewportSubPixelBits, "viewportSubPixelBits", 1);
7473
7474 print_size_t(obj->minMemoryMapAlignment, "minMemoryMapAlignment", 1);
7475
7476 print_VkDeviceSize(obj->minTexelBufferOffsetAlignment, "minTexelBufferOffsetAlignment", 1);
7477
7478 print_VkDeviceSize(obj->minUniformBufferOffsetAlignment, "minUniformBufferOffsetAlignment", 1);
7479
7480 print_VkDeviceSize(obj->minStorageBufferOffsetAlignment, "minStorageBufferOffsetAlignment", 1);
7481
7482 print_int32_t(obj->minTexelOffset, "minTexelOffset", 1);
7483
7484 print_uint32_t(obj->maxTexelOffset, "maxTexelOffset", 1);
7485
7486 print_int32_t(obj->minTexelGatherOffset, "minTexelGatherOffset", 1);
7487
7488 print_uint32_t(obj->maxTexelGatherOffset, "maxTexelGatherOffset", 1);
7489
7490 print_float(obj->minInterpolationOffset, "minInterpolationOffset", 1);
7491
7492 print_float(obj->maxInterpolationOffset, "maxInterpolationOffset", 1);
7493
7494 print_uint32_t(obj->subPixelInterpolationOffsetBits, "subPixelInterpolationOffsetBits", 1);
7495
7496 print_uint32_t(obj->maxFramebufferWidth, "maxFramebufferWidth", 1);
7497
7498 print_uint32_t(obj->maxFramebufferHeight, "maxFramebufferHeight", 1);
7499
7500 print_uint32_t(obj->maxFramebufferLayers, "maxFramebufferLayers", 1);
7501
7502 print_VkSampleCountFlags(obj->framebufferColorSampleCounts, "framebufferColorSampleCounts", 1);
7503
7504 print_VkSampleCountFlags(obj->framebufferDepthSampleCounts, "framebufferDepthSampleCounts", 1);
7505
7506 print_VkSampleCountFlags(obj->framebufferStencilSampleCounts, "framebufferStencilSampleCounts", 1);
7507
7508 print_VkSampleCountFlags(obj->framebufferNoAttachmentsSampleCounts, "framebufferNoAttachmentsSampleCounts", 1);
7509
7510 print_uint32_t(obj->maxColorAttachments, "maxColorAttachments", 1);
7511
7512 print_VkSampleCountFlags(obj->sampledImageColorSampleCounts, "sampledImageColorSampleCounts", 1);
7513
7514 print_VkSampleCountFlags(obj->sampledImageIntegerSampleCounts, "sampledImageIntegerSampleCounts", 1);
7515
7516 print_VkSampleCountFlags(obj->sampledImageDepthSampleCounts, "sampledImageDepthSampleCounts", 1);
7517
7518 print_VkSampleCountFlags(obj->sampledImageStencilSampleCounts, "sampledImageStencilSampleCounts", 1);
7519
7520 print_VkSampleCountFlags(obj->storageImageSampleCounts, "storageImageSampleCounts", 1);
7521
7522 print_uint32_t(obj->maxSampleMaskWords, "maxSampleMaskWords", 1);
7523
7524 print_VkBool32(obj->timestampComputeAndGraphics, "timestampComputeAndGraphics", 1);
7525
7526 print_float(obj->timestampPeriod, "timestampPeriod", 1);
7527
7528 print_uint32_t(obj->maxClipDistances, "maxClipDistances", 1);
7529
7530 print_uint32_t(obj->maxCullDistances, "maxCullDistances", 1);
7531
7532 print_uint32_t(obj->maxCombinedClipAndCullDistances, "maxCombinedClipAndCullDistances", 1);
7533
7534 print_uint32_t(obj->discreteQueuePriorities, "discreteQueuePriorities", 1);
7535
7536 PRINT_SPACE
7537 _OUT << "\"pointSizeRange\":" << std::endl;
7538 PRINT_SPACE
7539 _OUT << "[" << std::endl;
7540 for (unsigned int i = 0; i < 2; i++) {
7541 bool isCommaNeeded = (i+1) != 2;
7542 print_float(obj->pointSizeRange[i], "", isCommaNeeded);
7543 }
7544 PRINT_SPACE
7545 _OUT << "]" << "," << std::endl;
7546
7547 PRINT_SPACE
7548 _OUT << "\"lineWidthRange\":" << std::endl;
7549 PRINT_SPACE
7550 _OUT << "[" << std::endl;
7551 for (unsigned int i = 0; i < 2; i++) {
7552 bool isCommaNeeded = (i+1) != 2;
7553 print_float(obj->lineWidthRange[i], "", isCommaNeeded);
7554 }
7555 PRINT_SPACE
7556 _OUT << "]" << "," << std::endl;
7557
7558 print_float(obj->pointSizeGranularity, "pointSizeGranularity", 1);
7559
7560 print_float(obj->lineWidthGranularity, "lineWidthGranularity", 1);
7561
7562 print_VkBool32(obj->strictLines, "strictLines", 1);
7563
7564 print_VkBool32(obj->standardSampleLocations, "standardSampleLocations", 1);
7565
7566 print_VkDeviceSize(obj->optimalBufferCopyOffsetAlignment, "optimalBufferCopyOffsetAlignment", 1);
7567
7568 print_VkDeviceSize(obj->optimalBufferCopyRowPitchAlignment, "optimalBufferCopyRowPitchAlignment", 1);
7569
7570 print_VkDeviceSize(obj->nonCoherentAtomSize, "nonCoherentAtomSize", 0);
7571
7572 INDENT(-4);
7573 PRINT_SPACE
7574 if (commaNeeded)
7575 _OUT << "}," << std::endl;
7576 else
7577 _OUT << "}" << std::endl;
7578 }
7579
print_VkPhysicalDeviceMemoryProperties(VkPhysicalDeviceMemoryProperties obj,const std::string & s,bool commaNeeded=true)7580 static void print_VkPhysicalDeviceMemoryProperties(VkPhysicalDeviceMemoryProperties obj, const std::string& s, bool commaNeeded=true) {
7581 PRINT_SPACE
7582 _OUT << "{" << std::endl;
7583 INDENT(4);
7584
7585 print_uint32_t(obj.memoryTypeCount, "memoryTypeCount", 1);
7586
7587 PRINT_SPACE
7588 _OUT << "\"memoryTypes\":" << std::endl;
7589 PRINT_SPACE
7590 _OUT << "[" << std::endl;
7591 for (unsigned int i = 0; i < VK_MAX_MEMORY_TYPES; i++) {
7592 bool isCommaNeeded = (i+1) != VK_MAX_MEMORY_TYPES;
7593 print_VkMemoryType(obj.memoryTypes[i], "", isCommaNeeded);
7594 }
7595 PRINT_SPACE
7596 _OUT << "]" << "," << std::endl;
7597
7598 print_uint32_t(obj.memoryHeapCount, "memoryHeapCount", 1);
7599
7600 PRINT_SPACE
7601 _OUT << "\"memoryHeaps\":" << std::endl;
7602 PRINT_SPACE
7603 _OUT << "[" << std::endl;
7604 for (unsigned int i = 0; i < VK_MAX_MEMORY_HEAPS; i++) {
7605 bool isCommaNeeded = (i+1) != VK_MAX_MEMORY_HEAPS;
7606 print_VkMemoryHeap(obj.memoryHeaps[i], "", isCommaNeeded);
7607 }
7608 PRINT_SPACE
7609 _OUT << "]" << "" << std::endl;
7610
7611 INDENT(-4);
7612 PRINT_SPACE
7613 if (commaNeeded)
7614 _OUT << "}," << std::endl;
7615 else
7616 _OUT << "}" << std::endl;
7617 }
print_VkPhysicalDeviceMemoryProperties(const VkPhysicalDeviceMemoryProperties * obj,const std::string & s,bool commaNeeded=true)7618 static void print_VkPhysicalDeviceMemoryProperties(const VkPhysicalDeviceMemoryProperties * obj, const std::string& s, bool commaNeeded=true) {
7619 PRINT_SPACE
7620 _OUT << "{" << std::endl;
7621 INDENT(4);
7622
7623 print_uint32_t(obj->memoryTypeCount, "memoryTypeCount", 1);
7624
7625 PRINT_SPACE
7626 _OUT << "\"memoryTypes\":" << std::endl;
7627 PRINT_SPACE
7628 _OUT << "[" << std::endl;
7629 for (unsigned int i = 0; i < VK_MAX_MEMORY_TYPES; i++) {
7630 bool isCommaNeeded = (i+1) != VK_MAX_MEMORY_TYPES;
7631 print_VkMemoryType(obj->memoryTypes[i], "", isCommaNeeded);
7632 }
7633 PRINT_SPACE
7634 _OUT << "]" << "," << std::endl;
7635
7636 print_uint32_t(obj->memoryHeapCount, "memoryHeapCount", 1);
7637
7638 PRINT_SPACE
7639 _OUT << "\"memoryHeaps\":" << std::endl;
7640 PRINT_SPACE
7641 _OUT << "[" << std::endl;
7642 for (unsigned int i = 0; i < VK_MAX_MEMORY_HEAPS; i++) {
7643 bool isCommaNeeded = (i+1) != VK_MAX_MEMORY_HEAPS;
7644 print_VkMemoryHeap(obj->memoryHeaps[i], "", isCommaNeeded);
7645 }
7646 PRINT_SPACE
7647 _OUT << "]" << "" << std::endl;
7648
7649 INDENT(-4);
7650 PRINT_SPACE
7651 if (commaNeeded)
7652 _OUT << "}," << std::endl;
7653 else
7654 _OUT << "}" << std::endl;
7655 }
7656
print_VkPhysicalDeviceSparseProperties(VkPhysicalDeviceSparseProperties obj,const std::string & s,bool commaNeeded=true)7657 static void print_VkPhysicalDeviceSparseProperties(VkPhysicalDeviceSparseProperties obj, const std::string& s, bool commaNeeded=true) {
7658 PRINT_SPACE
7659 _OUT << "{" << std::endl;
7660 INDENT(4);
7661
7662 print_VkBool32(obj.residencyStandard2DBlockShape, "residencyStandard2DBlockShape", 1);
7663
7664 print_VkBool32(obj.residencyStandard2DMultisampleBlockShape, "residencyStandard2DMultisampleBlockShape", 1);
7665
7666 print_VkBool32(obj.residencyStandard3DBlockShape, "residencyStandard3DBlockShape", 1);
7667
7668 print_VkBool32(obj.residencyAlignedMipSize, "residencyAlignedMipSize", 1);
7669
7670 print_VkBool32(obj.residencyNonResidentStrict, "residencyNonResidentStrict", 0);
7671
7672 INDENT(-4);
7673 PRINT_SPACE
7674 if (commaNeeded)
7675 _OUT << "}," << std::endl;
7676 else
7677 _OUT << "}" << std::endl;
7678 }
print_VkPhysicalDeviceSparseProperties(const VkPhysicalDeviceSparseProperties * obj,const std::string & s,bool commaNeeded=true)7679 static void print_VkPhysicalDeviceSparseProperties(const VkPhysicalDeviceSparseProperties * obj, const std::string& s, bool commaNeeded=true) {
7680 PRINT_SPACE
7681 _OUT << "{" << std::endl;
7682 INDENT(4);
7683
7684 print_VkBool32(obj->residencyStandard2DBlockShape, "residencyStandard2DBlockShape", 1);
7685
7686 print_VkBool32(obj->residencyStandard2DMultisampleBlockShape, "residencyStandard2DMultisampleBlockShape", 1);
7687
7688 print_VkBool32(obj->residencyStandard3DBlockShape, "residencyStandard3DBlockShape", 1);
7689
7690 print_VkBool32(obj->residencyAlignedMipSize, "residencyAlignedMipSize", 1);
7691
7692 print_VkBool32(obj->residencyNonResidentStrict, "residencyNonResidentStrict", 0);
7693
7694 INDENT(-4);
7695 PRINT_SPACE
7696 if (commaNeeded)
7697 _OUT << "}," << std::endl;
7698 else
7699 _OUT << "}" << std::endl;
7700 }
7701
print_VkPhysicalDeviceProperties(VkPhysicalDeviceProperties obj,const std::string & s,bool commaNeeded=true)7702 static void print_VkPhysicalDeviceProperties(VkPhysicalDeviceProperties obj, const std::string& s, bool commaNeeded=true) {
7703 PRINT_SPACE
7704 _OUT << "{" << std::endl;
7705 INDENT(4);
7706
7707 print_uint32_t(obj.apiVersion, "apiVersion", 1);
7708
7709 print_uint32_t(obj.driverVersion, "driverVersion", 1);
7710
7711 print_uint32_t(obj.vendorID, "vendorID", 1);
7712
7713 print_uint32_t(obj.deviceID, "deviceID", 1);
7714
7715 print_VkPhysicalDeviceType(obj.deviceType, "deviceType", 1);
7716
7717 PRINT_SPACE
7718 _OUT << "\"deviceName\":" << std::endl;
7719 PRINT_SPACE
7720 _OUT << "[" << std::endl;
7721 for (unsigned int i = 0; i < VK_MAX_PHYSICAL_DEVICE_NAME_SIZE; i++) {
7722 bool isCommaNeeded = (i+1) != VK_MAX_PHYSICAL_DEVICE_NAME_SIZE;
7723 print_char(obj.deviceName[i], "", isCommaNeeded);
7724 }
7725 PRINT_SPACE
7726 _OUT << "]" << "," << std::endl;
7727
7728 PRINT_SPACE
7729 _OUT << "\"pipelineCacheUUID\":" << std::endl;
7730 PRINT_SPACE
7731 _OUT << "[" << std::endl;
7732 for (unsigned int i = 0; i < VK_UUID_SIZE; i++) {
7733 bool isCommaNeeded = (i+1) != VK_UUID_SIZE;
7734 print_uint8_t(obj.pipelineCacheUUID[i], "", isCommaNeeded);
7735 }
7736 PRINT_SPACE
7737 _OUT << "]" << "," << std::endl;
7738
7739 PRINT_SPACE
7740 _OUT << "\"limits\": " << std::endl;
7741 {
7742 print_VkPhysicalDeviceLimits(obj.limits, "limits", 1);
7743 }
7744
7745 PRINT_SPACE
7746 _OUT << "\"sparseProperties\": " << std::endl;
7747 {
7748 print_VkPhysicalDeviceSparseProperties(obj.sparseProperties, "sparseProperties", 0);
7749 }
7750
7751 INDENT(-4);
7752 PRINT_SPACE
7753 if (commaNeeded)
7754 _OUT << "}," << std::endl;
7755 else
7756 _OUT << "}" << std::endl;
7757 }
print_VkPhysicalDeviceProperties(const VkPhysicalDeviceProperties * obj,const std::string & s,bool commaNeeded=true)7758 static void print_VkPhysicalDeviceProperties(const VkPhysicalDeviceProperties * obj, const std::string& s, bool commaNeeded=true) {
7759 PRINT_SPACE
7760 _OUT << "{" << std::endl;
7761 INDENT(4);
7762
7763 print_uint32_t(obj->apiVersion, "apiVersion", 1);
7764
7765 print_uint32_t(obj->driverVersion, "driverVersion", 1);
7766
7767 print_uint32_t(obj->vendorID, "vendorID", 1);
7768
7769 print_uint32_t(obj->deviceID, "deviceID", 1);
7770
7771 print_VkPhysicalDeviceType(obj->deviceType, "deviceType", 1);
7772
7773 PRINT_SPACE
7774 _OUT << "\"deviceName\":" << std::endl;
7775 PRINT_SPACE
7776 _OUT << "[" << std::endl;
7777 for (unsigned int i = 0; i < VK_MAX_PHYSICAL_DEVICE_NAME_SIZE; i++) {
7778 bool isCommaNeeded = (i+1) != VK_MAX_PHYSICAL_DEVICE_NAME_SIZE;
7779 print_char(obj->deviceName[i], "", isCommaNeeded);
7780 }
7781 PRINT_SPACE
7782 _OUT << "]" << "," << std::endl;
7783
7784 PRINT_SPACE
7785 _OUT << "\"pipelineCacheUUID\":" << std::endl;
7786 PRINT_SPACE
7787 _OUT << "[" << std::endl;
7788 for (unsigned int i = 0; i < VK_UUID_SIZE; i++) {
7789 bool isCommaNeeded = (i+1) != VK_UUID_SIZE;
7790 print_uint8_t(obj->pipelineCacheUUID[i], "", isCommaNeeded);
7791 }
7792 PRINT_SPACE
7793 _OUT << "]" << "," << std::endl;
7794
7795 PRINT_SPACE
7796 _OUT << "\"limits\": " << std::endl;
7797 {
7798 print_VkPhysicalDeviceLimits(obj->limits, "limits", 1);
7799 }
7800
7801 PRINT_SPACE
7802 _OUT << "\"sparseProperties\": " << std::endl;
7803 {
7804 print_VkPhysicalDeviceSparseProperties(obj->sparseProperties, "sparseProperties", 0);
7805 }
7806
7807 INDENT(-4);
7808 PRINT_SPACE
7809 if (commaNeeded)
7810 _OUT << "}," << std::endl;
7811 else
7812 _OUT << "}" << std::endl;
7813 }
7814
print_VkQueueFamilyProperties(VkQueueFamilyProperties obj,const std::string & s,bool commaNeeded=true)7815 static void print_VkQueueFamilyProperties(VkQueueFamilyProperties obj, const std::string& s, bool commaNeeded=true) {
7816 PRINT_SPACE
7817 _OUT << "{" << std::endl;
7818 INDENT(4);
7819
7820 print_VkQueueFlags(obj.queueFlags, "queueFlags", 1);
7821
7822 print_uint32_t(obj.queueCount, "queueCount", 1);
7823
7824 print_uint32_t(obj.timestampValidBits, "timestampValidBits", 1);
7825
7826 PRINT_SPACE
7827 _OUT << "\"minImageTransferGranularity\": " << std::endl;
7828 {
7829 print_VkExtent3D(obj.minImageTransferGranularity, "minImageTransferGranularity", 0);
7830 }
7831
7832 INDENT(-4);
7833 PRINT_SPACE
7834 if (commaNeeded)
7835 _OUT << "}," << std::endl;
7836 else
7837 _OUT << "}" << std::endl;
7838 }
print_VkQueueFamilyProperties(const VkQueueFamilyProperties * obj,const std::string & s,bool commaNeeded=true)7839 static void print_VkQueueFamilyProperties(const VkQueueFamilyProperties * obj, const std::string& s, bool commaNeeded=true) {
7840 PRINT_SPACE
7841 _OUT << "{" << std::endl;
7842 INDENT(4);
7843
7844 print_VkQueueFlags(obj->queueFlags, "queueFlags", 1);
7845
7846 print_uint32_t(obj->queueCount, "queueCount", 1);
7847
7848 print_uint32_t(obj->timestampValidBits, "timestampValidBits", 1);
7849
7850 PRINT_SPACE
7851 _OUT << "\"minImageTransferGranularity\": " << std::endl;
7852 {
7853 print_VkExtent3D(obj->minImageTransferGranularity, "minImageTransferGranularity", 0);
7854 }
7855
7856 INDENT(-4);
7857 PRINT_SPACE
7858 if (commaNeeded)
7859 _OUT << "}," << std::endl;
7860 else
7861 _OUT << "}" << std::endl;
7862 }
7863
print_VkDeviceQueueCreateInfo(VkDeviceQueueCreateInfo obj,const std::string & s,bool commaNeeded=true)7864 static void print_VkDeviceQueueCreateInfo(VkDeviceQueueCreateInfo obj, const std::string& s, bool commaNeeded=true) {
7865 PRINT_SPACE
7866 _OUT << "{" << std::endl;
7867 INDENT(4);
7868
7869 print_VkStructureType(obj.sType, "sType", 1);
7870
7871 if (obj.pNext) {
7872 dumpPNextChain(obj.pNext);
7873 } else {
7874 PRINT_SPACE
7875 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
7876 }
7877
7878 print_VkDeviceQueueCreateFlags(obj.flags, "flags", 1);
7879
7880 print_uint32_t(obj.queueFamilyIndex, "queueFamilyIndex", 1);
7881
7882 print_uint32_t(obj.queueCount, "queueCount", 1);
7883
7884 PRINT_SPACE
7885 _OUT << "\"pQueuePriorities\":" << std::endl;
7886 PRINT_SPACE
7887 if (obj.pQueuePriorities) {
7888 _OUT << "[" << std::endl;
7889 for (unsigned int i = 0; i < obj.queueCount; i++) {
7890 bool isCommaNeeded = (i+1) != obj.queueCount;
7891 print_float(obj.pQueuePriorities[i], "", isCommaNeeded);
7892 }
7893 PRINT_SPACE
7894 _OUT << "]" << "" << std::endl;
7895 } else {
7896 _OUT << "\"NULL\"" << "" << std::endl;
7897 }
7898
7899 INDENT(-4);
7900 PRINT_SPACE
7901 if (commaNeeded)
7902 _OUT << "}," << std::endl;
7903 else
7904 _OUT << "}" << std::endl;
7905 }
print_VkDeviceQueueCreateInfo(const VkDeviceQueueCreateInfo * obj,const std::string & s,bool commaNeeded=true)7906 static void print_VkDeviceQueueCreateInfo(const VkDeviceQueueCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
7907 PRINT_SPACE
7908 _OUT << "{" << std::endl;
7909 INDENT(4);
7910
7911 print_VkStructureType(obj->sType, "sType", 1);
7912
7913 if (obj->pNext) {
7914 dumpPNextChain(obj->pNext);
7915 } else {
7916 PRINT_SPACE
7917 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
7918 }
7919
7920 print_VkDeviceQueueCreateFlags(obj->flags, "flags", 1);
7921
7922 print_uint32_t(obj->queueFamilyIndex, "queueFamilyIndex", 1);
7923
7924 print_uint32_t(obj->queueCount, "queueCount", 1);
7925
7926 PRINT_SPACE
7927 _OUT << "\"pQueuePriorities\":" << std::endl;
7928 PRINT_SPACE
7929 if (obj->pQueuePriorities) {
7930 _OUT << "[" << std::endl;
7931 for (unsigned int i = 0; i < obj->queueCount; i++) {
7932 bool isCommaNeeded = (i+1) != obj->queueCount;
7933 print_float(obj->pQueuePriorities[i], "", isCommaNeeded);
7934 }
7935 PRINT_SPACE
7936 _OUT << "]" << "" << std::endl;
7937 } else {
7938 _OUT << "\"NULL\"" << "" << std::endl;
7939 }
7940
7941 INDENT(-4);
7942 PRINT_SPACE
7943 if (commaNeeded)
7944 _OUT << "}," << std::endl;
7945 else
7946 _OUT << "}" << std::endl;
7947 }
7948
print_VkDeviceCreateInfo(VkDeviceCreateInfo obj,const std::string & s,bool commaNeeded=true)7949 static void print_VkDeviceCreateInfo(VkDeviceCreateInfo obj, const std::string& s, bool commaNeeded=true) {
7950 PRINT_SPACE
7951 _OUT << "{" << std::endl;
7952 INDENT(4);
7953
7954 print_VkStructureType(obj.sType, "sType", 1);
7955
7956 if (obj.pNext) {
7957 dumpPNextChain(obj.pNext);
7958 } else {
7959 PRINT_SPACE
7960 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
7961 }
7962
7963 print_VkDeviceCreateFlags(obj.flags, "flags", 1);
7964
7965 print_uint32_t(obj.queueCreateInfoCount, "queueCreateInfoCount", 1);
7966
7967 PRINT_SPACE
7968 _OUT << "\"pQueueCreateInfos\": " << std::endl;
7969 if (obj.pQueueCreateInfos) {
7970 PRINT_SPACE
7971 _OUT << "[" << std::endl;
7972 for (unsigned int i = 0; i < obj.queueCreateInfoCount; i++) {
7973 if (i+1 == obj.queueCreateInfoCount)
7974 print_VkDeviceQueueCreateInfo(obj.pQueueCreateInfos[i], "pQueueCreateInfos", 0);
7975 else
7976 print_VkDeviceQueueCreateInfo(obj.pQueueCreateInfos[i], "pQueueCreateInfos", 1);
7977 }
7978 PRINT_SPACE
7979 _OUT << "]," << std::endl;
7980 }
7981 else
7982 {
7983 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
7984 }
7985
7986 print_uint32_t(obj.enabledLayerCount, "enabledLayerCount", 1);
7987
7988 print_char(obj.ppEnabledLayerNames, "ppEnabledLayerNames", 1);
7989
7990 print_uint32_t(obj.enabledExtensionCount, "enabledExtensionCount", 1);
7991
7992 print_char(obj.ppEnabledExtensionNames, "ppEnabledExtensionNames", 1);
7993
7994 PRINT_SPACE
7995 _OUT << "\"pEnabledFeatures\": " << std::endl;
7996 if (obj.pEnabledFeatures) {
7997 print_VkPhysicalDeviceFeatures(obj.pEnabledFeatures, "pEnabledFeatures", 0);
7998 }
7999 else
8000 {
8001 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
8002 }
8003
8004 INDENT(-4);
8005 PRINT_SPACE
8006 if (commaNeeded)
8007 _OUT << "}," << std::endl;
8008 else
8009 _OUT << "}" << std::endl;
8010 }
print_VkDeviceCreateInfo(const VkDeviceCreateInfo * obj,const std::string & s,bool commaNeeded=true)8011 static void print_VkDeviceCreateInfo(const VkDeviceCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8012 PRINT_SPACE
8013 _OUT << "{" << std::endl;
8014 INDENT(4);
8015
8016 print_VkStructureType(obj->sType, "sType", 1);
8017
8018 if (obj->pNext) {
8019 dumpPNextChain(obj->pNext);
8020 } else {
8021 PRINT_SPACE
8022 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8023 }
8024
8025 print_VkDeviceCreateFlags(obj->flags, "flags", 1);
8026
8027 print_uint32_t(obj->queueCreateInfoCount, "queueCreateInfoCount", 1);
8028
8029 PRINT_SPACE
8030 _OUT << "\"pQueueCreateInfos\": " << std::endl;
8031 if (obj->pQueueCreateInfos) {
8032 PRINT_SPACE
8033 _OUT << "[" << std::endl;
8034 for (unsigned int i = 0; i < obj->queueCreateInfoCount; i++) {
8035 if (i+1 == obj->queueCreateInfoCount)
8036 print_VkDeviceQueueCreateInfo(obj->pQueueCreateInfos[i], "pQueueCreateInfos", 0);
8037 else
8038 print_VkDeviceQueueCreateInfo(obj->pQueueCreateInfos[i], "pQueueCreateInfos", 1);
8039 }
8040 PRINT_SPACE
8041 _OUT << "]," << std::endl;
8042 }
8043 else
8044 {
8045 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
8046 }
8047
8048 print_uint32_t(obj->enabledLayerCount, "enabledLayerCount", 1);
8049
8050 print_char(obj->ppEnabledLayerNames, "ppEnabledLayerNames", 1);
8051
8052 print_uint32_t(obj->enabledExtensionCount, "enabledExtensionCount", 1);
8053
8054 print_char(obj->ppEnabledExtensionNames, "ppEnabledExtensionNames", 1);
8055
8056 PRINT_SPACE
8057 _OUT << "\"pEnabledFeatures\": " << std::endl;
8058 if (obj->pEnabledFeatures) {
8059 print_VkPhysicalDeviceFeatures(obj->pEnabledFeatures, "pEnabledFeatures", 0);
8060 }
8061 else
8062 {
8063 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
8064 }
8065
8066 INDENT(-4);
8067 PRINT_SPACE
8068 if (commaNeeded)
8069 _OUT << "}," << std::endl;
8070 else
8071 _OUT << "}" << std::endl;
8072 }
8073
print_VkExtensionProperties(VkExtensionProperties obj,const std::string & s,bool commaNeeded=true)8074 static void print_VkExtensionProperties(VkExtensionProperties obj, const std::string& s, bool commaNeeded=true) {
8075 PRINT_SPACE
8076 _OUT << "{" << std::endl;
8077 INDENT(4);
8078
8079 PRINT_SPACE
8080 _OUT << "\"extensionName\":" << std::endl;
8081 PRINT_SPACE
8082 _OUT << "[" << std::endl;
8083 for (unsigned int i = 0; i < VK_MAX_EXTENSION_NAME_SIZE; i++) {
8084 bool isCommaNeeded = (i+1) != VK_MAX_EXTENSION_NAME_SIZE;
8085 print_char(obj.extensionName[i], "", isCommaNeeded);
8086 }
8087 PRINT_SPACE
8088 _OUT << "]" << "," << std::endl;
8089
8090 print_uint32_t(obj.specVersion, "specVersion", 0);
8091
8092 INDENT(-4);
8093 PRINT_SPACE
8094 if (commaNeeded)
8095 _OUT << "}," << std::endl;
8096 else
8097 _OUT << "}" << std::endl;
8098 }
print_VkExtensionProperties(const VkExtensionProperties * obj,const std::string & s,bool commaNeeded=true)8099 static void print_VkExtensionProperties(const VkExtensionProperties * obj, const std::string& s, bool commaNeeded=true) {
8100 PRINT_SPACE
8101 _OUT << "{" << std::endl;
8102 INDENT(4);
8103
8104 PRINT_SPACE
8105 _OUT << "\"extensionName\":" << std::endl;
8106 PRINT_SPACE
8107 _OUT << "[" << std::endl;
8108 for (unsigned int i = 0; i < VK_MAX_EXTENSION_NAME_SIZE; i++) {
8109 bool isCommaNeeded = (i+1) != VK_MAX_EXTENSION_NAME_SIZE;
8110 print_char(obj->extensionName[i], "", isCommaNeeded);
8111 }
8112 PRINT_SPACE
8113 _OUT << "]" << "," << std::endl;
8114
8115 print_uint32_t(obj->specVersion, "specVersion", 0);
8116
8117 INDENT(-4);
8118 PRINT_SPACE
8119 if (commaNeeded)
8120 _OUT << "}," << std::endl;
8121 else
8122 _OUT << "}" << std::endl;
8123 }
8124
print_VkLayerProperties(VkLayerProperties obj,const std::string & s,bool commaNeeded=true)8125 static void print_VkLayerProperties(VkLayerProperties obj, const std::string& s, bool commaNeeded=true) {
8126 PRINT_SPACE
8127 _OUT << "{" << std::endl;
8128 INDENT(4);
8129
8130 PRINT_SPACE
8131 _OUT << "\"layerName\":" << std::endl;
8132 PRINT_SPACE
8133 _OUT << "[" << std::endl;
8134 for (unsigned int i = 0; i < VK_MAX_EXTENSION_NAME_SIZE; i++) {
8135 bool isCommaNeeded = (i+1) != VK_MAX_EXTENSION_NAME_SIZE;
8136 print_char(obj.layerName[i], "", isCommaNeeded);
8137 }
8138 PRINT_SPACE
8139 _OUT << "]" << "," << std::endl;
8140
8141 print_uint32_t(obj.specVersion, "specVersion", 1);
8142
8143 print_uint32_t(obj.implementationVersion, "implementationVersion", 1);
8144
8145 PRINT_SPACE
8146 _OUT << "\"description\":" << std::endl;
8147 PRINT_SPACE
8148 _OUT << "[" << std::endl;
8149 for (unsigned int i = 0; i < VK_MAX_DESCRIPTION_SIZE; i++) {
8150 bool isCommaNeeded = (i+1) != VK_MAX_DESCRIPTION_SIZE;
8151 print_char(obj.description[i], "", isCommaNeeded);
8152 }
8153 PRINT_SPACE
8154 _OUT << "]" << "" << std::endl;
8155
8156 INDENT(-4);
8157 PRINT_SPACE
8158 if (commaNeeded)
8159 _OUT << "}," << std::endl;
8160 else
8161 _OUT << "}" << std::endl;
8162 }
print_VkLayerProperties(const VkLayerProperties * obj,const std::string & s,bool commaNeeded=true)8163 static void print_VkLayerProperties(const VkLayerProperties * obj, const std::string& s, bool commaNeeded=true) {
8164 PRINT_SPACE
8165 _OUT << "{" << std::endl;
8166 INDENT(4);
8167
8168 PRINT_SPACE
8169 _OUT << "\"layerName\":" << std::endl;
8170 PRINT_SPACE
8171 _OUT << "[" << std::endl;
8172 for (unsigned int i = 0; i < VK_MAX_EXTENSION_NAME_SIZE; i++) {
8173 bool isCommaNeeded = (i+1) != VK_MAX_EXTENSION_NAME_SIZE;
8174 print_char(obj->layerName[i], "", isCommaNeeded);
8175 }
8176 PRINT_SPACE
8177 _OUT << "]" << "," << std::endl;
8178
8179 print_uint32_t(obj->specVersion, "specVersion", 1);
8180
8181 print_uint32_t(obj->implementationVersion, "implementationVersion", 1);
8182
8183 PRINT_SPACE
8184 _OUT << "\"description\":" << std::endl;
8185 PRINT_SPACE
8186 _OUT << "[" << std::endl;
8187 for (unsigned int i = 0; i < VK_MAX_DESCRIPTION_SIZE; i++) {
8188 bool isCommaNeeded = (i+1) != VK_MAX_DESCRIPTION_SIZE;
8189 print_char(obj->description[i], "", isCommaNeeded);
8190 }
8191 PRINT_SPACE
8192 _OUT << "]" << "" << std::endl;
8193
8194 INDENT(-4);
8195 PRINT_SPACE
8196 if (commaNeeded)
8197 _OUT << "}," << std::endl;
8198 else
8199 _OUT << "}" << std::endl;
8200 }
8201
print_VkSubmitInfo(VkSubmitInfo obj,const std::string & s,bool commaNeeded=true)8202 static void print_VkSubmitInfo(VkSubmitInfo obj, const std::string& s, bool commaNeeded=true) {
8203 PRINT_SPACE
8204 _OUT << "{" << std::endl;
8205 INDENT(4);
8206
8207 print_VkStructureType(obj.sType, "sType", 1);
8208
8209 if (obj.pNext) {
8210 dumpPNextChain(obj.pNext);
8211 } else {
8212 PRINT_SPACE
8213 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8214 }
8215
8216 print_uint32_t(obj.waitSemaphoreCount, "waitSemaphoreCount", 1);
8217
8218 PRINT_SPACE
8219 _OUT << "\"pWaitSemaphores\":" << std::endl;
8220 PRINT_SPACE
8221 if (obj.pWaitSemaphores) {
8222 _OUT << "[" << std::endl;
8223 for (unsigned int i = 0; i < obj.waitSemaphoreCount; i++) {
8224 std:: stringstream tmp;
8225 tmp << "pWaitSemaphores" << "_" << i;
8226 bool isCommaNeeded = (i+1) != obj.waitSemaphoreCount;
8227 print_VkSemaphore(obj.pWaitSemaphores[i], tmp.str(), isCommaNeeded);
8228 }
8229 PRINT_SPACE
8230 _OUT << "]" << "," << std::endl;
8231 } else {
8232 _OUT << "\"NULL\"" << "," << std::endl;
8233 }
8234
8235 PRINT_SPACE
8236 _OUT << "\"pWaitDstStageMask\":" << std::endl;
8237 PRINT_SPACE
8238 if (obj.pWaitDstStageMask) {
8239 _OUT << "[" << std::endl;
8240 for (unsigned int i = 0; i < obj.waitSemaphoreCount; i++) {
8241 bool isCommaNeeded = (i+1) != obj.waitSemaphoreCount;
8242 print_VkPipelineStageFlags(obj.pWaitDstStageMask[i], "", isCommaNeeded);
8243 }
8244 PRINT_SPACE
8245 _OUT << "]" << "," << std::endl;
8246 } else {
8247 _OUT << "\"NULL\"" << "," << std::endl;
8248 }
8249
8250 print_uint32_t(obj.commandBufferCount, "commandBufferCount", 1);
8251
8252 PRINT_SPACE
8253 _OUT << "\"pCommandBuffers\":" << std::endl;
8254 PRINT_SPACE
8255 if (obj.pCommandBuffers) {
8256 _OUT << "[" << std::endl;
8257 for (unsigned int i = 0; i < obj.commandBufferCount; i++) {
8258 std:: stringstream tmp;
8259 tmp << "pCommandBuffers" << "_" << i;
8260 bool isCommaNeeded = (i+1) != obj.commandBufferCount;
8261 print_VkCommandBuffer(obj.pCommandBuffers[i], tmp.str(), isCommaNeeded);
8262 }
8263 PRINT_SPACE
8264 _OUT << "]" << "," << std::endl;
8265 } else {
8266 _OUT << "\"NULL\"" << "," << std::endl;
8267 }
8268
8269 print_uint32_t(obj.signalSemaphoreCount, "signalSemaphoreCount", 1);
8270
8271 PRINT_SPACE
8272 _OUT << "\"pSignalSemaphores\":" << std::endl;
8273 PRINT_SPACE
8274 if (obj.pSignalSemaphores) {
8275 _OUT << "[" << std::endl;
8276 for (unsigned int i = 0; i < obj.signalSemaphoreCount; i++) {
8277 std:: stringstream tmp;
8278 tmp << "pSignalSemaphores" << "_" << i;
8279 bool isCommaNeeded = (i+1) != obj.signalSemaphoreCount;
8280 print_VkSemaphore(obj.pSignalSemaphores[i], tmp.str(), isCommaNeeded);
8281 }
8282 PRINT_SPACE
8283 _OUT << "]" << "" << std::endl;
8284 } else {
8285 _OUT << "\"NULL\"" << "" << std::endl;
8286 }
8287
8288 INDENT(-4);
8289 PRINT_SPACE
8290 if (commaNeeded)
8291 _OUT << "}," << std::endl;
8292 else
8293 _OUT << "}" << std::endl;
8294 }
print_VkSubmitInfo(const VkSubmitInfo * obj,const std::string & s,bool commaNeeded=true)8295 static void print_VkSubmitInfo(const VkSubmitInfo * obj, const std::string& s, bool commaNeeded=true) {
8296 PRINT_SPACE
8297 _OUT << "{" << std::endl;
8298 INDENT(4);
8299
8300 print_VkStructureType(obj->sType, "sType", 1);
8301
8302 if (obj->pNext) {
8303 dumpPNextChain(obj->pNext);
8304 } else {
8305 PRINT_SPACE
8306 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8307 }
8308
8309 print_uint32_t(obj->waitSemaphoreCount, "waitSemaphoreCount", 1);
8310
8311 PRINT_SPACE
8312 _OUT << "\"pWaitSemaphores\":" << std::endl;
8313 PRINT_SPACE
8314 if (obj->pWaitSemaphores) {
8315 _OUT << "[" << std::endl;
8316 for (unsigned int i = 0; i < obj->waitSemaphoreCount; i++) {
8317 std:: stringstream tmp;
8318 tmp << "pWaitSemaphores" << "_" << i;
8319 bool isCommaNeeded = (i+1) != obj->waitSemaphoreCount;
8320 print_VkSemaphore(obj->pWaitSemaphores[i], tmp.str(), isCommaNeeded);
8321 }
8322 PRINT_SPACE
8323 _OUT << "]" << "," << std::endl;
8324 } else {
8325 _OUT << "\"NULL\"" << "," << std::endl;
8326 }
8327
8328 PRINT_SPACE
8329 _OUT << "\"pWaitDstStageMask\":" << std::endl;
8330 PRINT_SPACE
8331 if (obj->pWaitDstStageMask) {
8332 _OUT << "[" << std::endl;
8333 for (unsigned int i = 0; i < obj->waitSemaphoreCount; i++) {
8334 bool isCommaNeeded = (i+1) != obj->waitSemaphoreCount;
8335 print_VkPipelineStageFlags(obj->pWaitDstStageMask[i], "", isCommaNeeded);
8336 }
8337 PRINT_SPACE
8338 _OUT << "]" << "," << std::endl;
8339 } else {
8340 _OUT << "\"NULL\"" << "," << std::endl;
8341 }
8342
8343 print_uint32_t(obj->commandBufferCount, "commandBufferCount", 1);
8344
8345 PRINT_SPACE
8346 _OUT << "\"pCommandBuffers\":" << std::endl;
8347 PRINT_SPACE
8348 if (obj->pCommandBuffers) {
8349 _OUT << "[" << std::endl;
8350 for (unsigned int i = 0; i < obj->commandBufferCount; i++) {
8351 std:: stringstream tmp;
8352 tmp << "pCommandBuffers" << "_" << i;
8353 bool isCommaNeeded = (i+1) != obj->commandBufferCount;
8354 print_VkCommandBuffer(obj->pCommandBuffers[i], tmp.str(), isCommaNeeded);
8355 }
8356 PRINT_SPACE
8357 _OUT << "]" << "," << std::endl;
8358 } else {
8359 _OUT << "\"NULL\"" << "," << std::endl;
8360 }
8361
8362 print_uint32_t(obj->signalSemaphoreCount, "signalSemaphoreCount", 1);
8363
8364 PRINT_SPACE
8365 _OUT << "\"pSignalSemaphores\":" << std::endl;
8366 PRINT_SPACE
8367 if (obj->pSignalSemaphores) {
8368 _OUT << "[" << std::endl;
8369 for (unsigned int i = 0; i < obj->signalSemaphoreCount; i++) {
8370 std:: stringstream tmp;
8371 tmp << "pSignalSemaphores" << "_" << i;
8372 bool isCommaNeeded = (i+1) != obj->signalSemaphoreCount;
8373 print_VkSemaphore(obj->pSignalSemaphores[i], tmp.str(), isCommaNeeded);
8374 }
8375 PRINT_SPACE
8376 _OUT << "]" << "" << std::endl;
8377 } else {
8378 _OUT << "\"NULL\"" << "" << std::endl;
8379 }
8380
8381 INDENT(-4);
8382 PRINT_SPACE
8383 if (commaNeeded)
8384 _OUT << "}," << std::endl;
8385 else
8386 _OUT << "}" << std::endl;
8387 }
8388
print_VkMappedMemoryRange(VkMappedMemoryRange obj,const std::string & s,bool commaNeeded=true)8389 static void print_VkMappedMemoryRange(VkMappedMemoryRange obj, const std::string& s, bool commaNeeded=true) {
8390 PRINT_SPACE
8391 _OUT << "{" << std::endl;
8392 INDENT(4);
8393
8394 print_VkStructureType(obj.sType, "sType", 1);
8395
8396 if (obj.pNext) {
8397 dumpPNextChain(obj.pNext);
8398 } else {
8399 PRINT_SPACE
8400 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8401 }
8402
8403 // CTS : required value
8404 PRINT_SPACE _OUT << "\"" << "memory" << "\"" << " : " << "\"" << "\"," << std::endl;
8405
8406 print_VkDeviceSize(obj.offset, "offset", 1);
8407
8408 print_VkDeviceSize(obj.size, "size", 0);
8409
8410 INDENT(-4);
8411 PRINT_SPACE
8412 if (commaNeeded)
8413 _OUT << "}," << std::endl;
8414 else
8415 _OUT << "}" << std::endl;
8416 }
print_VkMappedMemoryRange(const VkMappedMemoryRange * obj,const std::string & s,bool commaNeeded=true)8417 static void print_VkMappedMemoryRange(const VkMappedMemoryRange * obj, const std::string& s, bool commaNeeded=true) {
8418 PRINT_SPACE
8419 _OUT << "{" << std::endl;
8420 INDENT(4);
8421
8422 print_VkStructureType(obj->sType, "sType", 1);
8423
8424 if (obj->pNext) {
8425 dumpPNextChain(obj->pNext);
8426 } else {
8427 PRINT_SPACE
8428 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8429 }
8430
8431 // CTS : required value
8432 PRINT_SPACE _OUT << "\"" << "memory" << "\"" << " : " << "\"" << "\"," << std::endl;
8433
8434 print_VkDeviceSize(obj->offset, "offset", 1);
8435
8436 print_VkDeviceSize(obj->size, "size", 0);
8437
8438 INDENT(-4);
8439 PRINT_SPACE
8440 if (commaNeeded)
8441 _OUT << "}," << std::endl;
8442 else
8443 _OUT << "}" << std::endl;
8444 }
8445
print_VkMemoryAllocateInfo(VkMemoryAllocateInfo obj,const std::string & s,bool commaNeeded=true)8446 static void print_VkMemoryAllocateInfo(VkMemoryAllocateInfo obj, const std::string& s, bool commaNeeded=true) {
8447 PRINT_SPACE
8448 _OUT << "{" << std::endl;
8449 INDENT(4);
8450
8451 print_VkStructureType(obj.sType, "sType", 1);
8452
8453 if (obj.pNext) {
8454 dumpPNextChain(obj.pNext);
8455 } else {
8456 PRINT_SPACE
8457 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8458 }
8459
8460 print_VkDeviceSize(obj.allocationSize, "allocationSize", 1);
8461
8462 print_uint32_t(obj.memoryTypeIndex, "memoryTypeIndex", 0);
8463
8464 INDENT(-4);
8465 PRINT_SPACE
8466 if (commaNeeded)
8467 _OUT << "}," << std::endl;
8468 else
8469 _OUT << "}" << std::endl;
8470 }
print_VkMemoryAllocateInfo(const VkMemoryAllocateInfo * obj,const std::string & s,bool commaNeeded=true)8471 static void print_VkMemoryAllocateInfo(const VkMemoryAllocateInfo * obj, const std::string& s, bool commaNeeded=true) {
8472 PRINT_SPACE
8473 _OUT << "{" << std::endl;
8474 INDENT(4);
8475
8476 print_VkStructureType(obj->sType, "sType", 1);
8477
8478 if (obj->pNext) {
8479 dumpPNextChain(obj->pNext);
8480 } else {
8481 PRINT_SPACE
8482 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8483 }
8484
8485 print_VkDeviceSize(obj->allocationSize, "allocationSize", 1);
8486
8487 print_uint32_t(obj->memoryTypeIndex, "memoryTypeIndex", 0);
8488
8489 INDENT(-4);
8490 PRINT_SPACE
8491 if (commaNeeded)
8492 _OUT << "}," << std::endl;
8493 else
8494 _OUT << "}" << std::endl;
8495 }
8496
print_VkMemoryRequirements(VkMemoryRequirements obj,const std::string & s,bool commaNeeded=true)8497 static void print_VkMemoryRequirements(VkMemoryRequirements obj, const std::string& s, bool commaNeeded=true) {
8498 PRINT_SPACE
8499 _OUT << "{" << std::endl;
8500 INDENT(4);
8501
8502 print_VkDeviceSize(obj.size, "size", 1);
8503
8504 print_VkDeviceSize(obj.alignment, "alignment", 1);
8505
8506 print_uint32_t(obj.memoryTypeBits, "memoryTypeBits", 0);
8507
8508 INDENT(-4);
8509 PRINT_SPACE
8510 if (commaNeeded)
8511 _OUT << "}," << std::endl;
8512 else
8513 _OUT << "}" << std::endl;
8514 }
print_VkMemoryRequirements(const VkMemoryRequirements * obj,const std::string & s,bool commaNeeded=true)8515 static void print_VkMemoryRequirements(const VkMemoryRequirements * obj, const std::string& s, bool commaNeeded=true) {
8516 PRINT_SPACE
8517 _OUT << "{" << std::endl;
8518 INDENT(4);
8519
8520 print_VkDeviceSize(obj->size, "size", 1);
8521
8522 print_VkDeviceSize(obj->alignment, "alignment", 1);
8523
8524 print_uint32_t(obj->memoryTypeBits, "memoryTypeBits", 0);
8525
8526 INDENT(-4);
8527 PRINT_SPACE
8528 if (commaNeeded)
8529 _OUT << "}," << std::endl;
8530 else
8531 _OUT << "}" << std::endl;
8532 }
8533
print_VkImageSubresource(VkImageSubresource obj,const std::string & s,bool commaNeeded=true)8534 static void print_VkImageSubresource(VkImageSubresource obj, const std::string& s, bool commaNeeded=true) {
8535 PRINT_SPACE
8536 _OUT << "{" << std::endl;
8537 INDENT(4);
8538
8539 print_VkImageAspectFlags(obj.aspectMask, "aspectMask", 1);
8540
8541 print_uint32_t(obj.mipLevel, "mipLevel", 1);
8542
8543 print_uint32_t(obj.arrayLayer, "arrayLayer", 0);
8544
8545 INDENT(-4);
8546 PRINT_SPACE
8547 if (commaNeeded)
8548 _OUT << "}," << std::endl;
8549 else
8550 _OUT << "}" << std::endl;
8551 }
print_VkImageSubresource(const VkImageSubresource * obj,const std::string & s,bool commaNeeded=true)8552 static void print_VkImageSubresource(const VkImageSubresource * obj, const std::string& s, bool commaNeeded=true) {
8553 PRINT_SPACE
8554 _OUT << "{" << std::endl;
8555 INDENT(4);
8556
8557 print_VkImageAspectFlags(obj->aspectMask, "aspectMask", 1);
8558
8559 print_uint32_t(obj->mipLevel, "mipLevel", 1);
8560
8561 print_uint32_t(obj->arrayLayer, "arrayLayer", 0);
8562
8563 INDENT(-4);
8564 PRINT_SPACE
8565 if (commaNeeded)
8566 _OUT << "}," << std::endl;
8567 else
8568 _OUT << "}" << std::endl;
8569 }
8570
print_VkFenceCreateInfo(VkFenceCreateInfo obj,const std::string & s,bool commaNeeded=true)8571 static void print_VkFenceCreateInfo(VkFenceCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8572 PRINT_SPACE
8573 _OUT << "{" << std::endl;
8574 INDENT(4);
8575
8576 print_VkStructureType(obj.sType, "sType", 1);
8577
8578 if (obj.pNext) {
8579 dumpPNextChain(obj.pNext);
8580 } else {
8581 PRINT_SPACE
8582 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8583 }
8584
8585 print_VkFenceCreateFlags(obj.flags, "flags", 0);
8586
8587 INDENT(-4);
8588 PRINT_SPACE
8589 if (commaNeeded)
8590 _OUT << "}," << std::endl;
8591 else
8592 _OUT << "}" << std::endl;
8593 }
print_VkFenceCreateInfo(const VkFenceCreateInfo * obj,const std::string & s,bool commaNeeded=true)8594 static void print_VkFenceCreateInfo(const VkFenceCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8595 PRINT_SPACE
8596 _OUT << "{" << std::endl;
8597 INDENT(4);
8598
8599 print_VkStructureType(obj->sType, "sType", 1);
8600
8601 if (obj->pNext) {
8602 dumpPNextChain(obj->pNext);
8603 } else {
8604 PRINT_SPACE
8605 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8606 }
8607
8608 print_VkFenceCreateFlags(obj->flags, "flags", 0);
8609
8610 INDENT(-4);
8611 PRINT_SPACE
8612 if (commaNeeded)
8613 _OUT << "}," << std::endl;
8614 else
8615 _OUT << "}" << std::endl;
8616 }
8617
print_VkSemaphoreCreateInfo(VkSemaphoreCreateInfo obj,const std::string & s,bool commaNeeded=true)8618 static void print_VkSemaphoreCreateInfo(VkSemaphoreCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8619 PRINT_SPACE
8620 _OUT << "{" << std::endl;
8621 INDENT(4);
8622
8623 print_VkStructureType(obj.sType, "sType", 1);
8624
8625 if (obj.pNext) {
8626 dumpPNextChain(obj.pNext);
8627 } else {
8628 PRINT_SPACE
8629 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8630 }
8631
8632 print_VkSemaphoreCreateFlags(obj.flags, "flags", 0);
8633
8634 INDENT(-4);
8635 PRINT_SPACE
8636 if (commaNeeded)
8637 _OUT << "}," << std::endl;
8638 else
8639 _OUT << "}" << std::endl;
8640 }
print_VkSemaphoreCreateInfo(const VkSemaphoreCreateInfo * obj,const std::string & s,bool commaNeeded=true)8641 static void print_VkSemaphoreCreateInfo(const VkSemaphoreCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8642 PRINT_SPACE
8643 _OUT << "{" << std::endl;
8644 INDENT(4);
8645
8646 print_VkStructureType(obj->sType, "sType", 1);
8647
8648 if (obj->pNext) {
8649 dumpPNextChain(obj->pNext);
8650 } else {
8651 PRINT_SPACE
8652 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8653 }
8654
8655 print_VkSemaphoreCreateFlags(obj->flags, "flags", 0);
8656
8657 INDENT(-4);
8658 PRINT_SPACE
8659 if (commaNeeded)
8660 _OUT << "}," << std::endl;
8661 else
8662 _OUT << "}" << std::endl;
8663 }
8664
print_VkEventCreateInfo(VkEventCreateInfo obj,const std::string & s,bool commaNeeded=true)8665 static void print_VkEventCreateInfo(VkEventCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8666 PRINT_SPACE
8667 _OUT << "{" << std::endl;
8668 INDENT(4);
8669
8670 print_VkStructureType(obj.sType, "sType", 1);
8671
8672 if (obj.pNext) {
8673 dumpPNextChain(obj.pNext);
8674 } else {
8675 PRINT_SPACE
8676 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8677 }
8678
8679 print_VkEventCreateFlags(obj.flags, "flags", 0);
8680
8681 INDENT(-4);
8682 PRINT_SPACE
8683 if (commaNeeded)
8684 _OUT << "}," << std::endl;
8685 else
8686 _OUT << "}" << std::endl;
8687 }
print_VkEventCreateInfo(const VkEventCreateInfo * obj,const std::string & s,bool commaNeeded=true)8688 static void print_VkEventCreateInfo(const VkEventCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8689 PRINT_SPACE
8690 _OUT << "{" << std::endl;
8691 INDENT(4);
8692
8693 print_VkStructureType(obj->sType, "sType", 1);
8694
8695 if (obj->pNext) {
8696 dumpPNextChain(obj->pNext);
8697 } else {
8698 PRINT_SPACE
8699 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8700 }
8701
8702 print_VkEventCreateFlags(obj->flags, "flags", 0);
8703
8704 INDENT(-4);
8705 PRINT_SPACE
8706 if (commaNeeded)
8707 _OUT << "}," << std::endl;
8708 else
8709 _OUT << "}" << std::endl;
8710 }
8711
print_VkQueryPoolCreateInfo(VkQueryPoolCreateInfo obj,const std::string & s,bool commaNeeded=true)8712 static void print_VkQueryPoolCreateInfo(VkQueryPoolCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8713 PRINT_SPACE
8714 _OUT << "{" << std::endl;
8715 INDENT(4);
8716
8717 print_VkStructureType(obj.sType, "sType", 1);
8718
8719 if (obj.pNext) {
8720 dumpPNextChain(obj.pNext);
8721 } else {
8722 PRINT_SPACE
8723 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8724 }
8725
8726 print_VkQueryPoolCreateFlags(obj.flags, "flags", 1);
8727
8728 print_VkQueryType(obj.queryType, "queryType", 1);
8729
8730 print_uint32_t(obj.queryCount, "queryCount", 1);
8731
8732 print_VkQueryPipelineStatisticFlags(obj.pipelineStatistics, "pipelineStatistics", 0);
8733
8734 INDENT(-4);
8735 PRINT_SPACE
8736 if (commaNeeded)
8737 _OUT << "}," << std::endl;
8738 else
8739 _OUT << "}" << std::endl;
8740 }
print_VkQueryPoolCreateInfo(const VkQueryPoolCreateInfo * obj,const std::string & s,bool commaNeeded=true)8741 static void print_VkQueryPoolCreateInfo(const VkQueryPoolCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8742 PRINT_SPACE
8743 _OUT << "{" << std::endl;
8744 INDENT(4);
8745
8746 print_VkStructureType(obj->sType, "sType", 1);
8747
8748 if (obj->pNext) {
8749 dumpPNextChain(obj->pNext);
8750 } else {
8751 PRINT_SPACE
8752 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8753 }
8754
8755 print_VkQueryPoolCreateFlags(obj->flags, "flags", 1);
8756
8757 print_VkQueryType(obj->queryType, "queryType", 1);
8758
8759 print_uint32_t(obj->queryCount, "queryCount", 1);
8760
8761 print_VkQueryPipelineStatisticFlags(obj->pipelineStatistics, "pipelineStatistics", 0);
8762
8763 INDENT(-4);
8764 PRINT_SPACE
8765 if (commaNeeded)
8766 _OUT << "}," << std::endl;
8767 else
8768 _OUT << "}" << std::endl;
8769 }
8770
print_VkBufferCreateInfo(VkBufferCreateInfo obj,const std::string & s,bool commaNeeded=true)8771 static void print_VkBufferCreateInfo(VkBufferCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8772 PRINT_SPACE
8773 _OUT << "{" << std::endl;
8774 INDENT(4);
8775
8776 print_VkStructureType(obj.sType, "sType", 1);
8777
8778 if (obj.pNext) {
8779 dumpPNextChain(obj.pNext);
8780 } else {
8781 PRINT_SPACE
8782 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8783 }
8784
8785 print_VkBufferCreateFlags(obj.flags, "flags", 1);
8786
8787 print_VkDeviceSize(obj.size, "size", 1);
8788
8789 print_VkBufferUsageFlags(obj.usage, "usage", 1);
8790
8791 print_VkSharingMode(obj.sharingMode, "sharingMode", 1);
8792
8793 print_uint32_t(obj.queueFamilyIndexCount, "queueFamilyIndexCount", 1);
8794
8795 PRINT_SPACE
8796 _OUT << "\"pQueueFamilyIndices\":" << std::endl;
8797 PRINT_SPACE
8798 if (obj.pQueueFamilyIndices) {
8799 _OUT << "[" << std::endl;
8800 for (unsigned int i = 0; i < obj.queueFamilyIndexCount; i++) {
8801 bool isCommaNeeded = (i+1) != obj.queueFamilyIndexCount;
8802 print_uint32_t(obj.pQueueFamilyIndices[i], "", isCommaNeeded);
8803 }
8804 PRINT_SPACE
8805 _OUT << "]" << "" << std::endl;
8806 } else {
8807 _OUT << "\"NULL\"" << "" << std::endl;
8808 }
8809
8810 INDENT(-4);
8811 PRINT_SPACE
8812 if (commaNeeded)
8813 _OUT << "}," << std::endl;
8814 else
8815 _OUT << "}" << std::endl;
8816 }
print_VkBufferCreateInfo(const VkBufferCreateInfo * obj,const std::string & s,bool commaNeeded=true)8817 static void print_VkBufferCreateInfo(const VkBufferCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8818 PRINT_SPACE
8819 _OUT << "{" << std::endl;
8820 INDENT(4);
8821
8822 print_VkStructureType(obj->sType, "sType", 1);
8823
8824 if (obj->pNext) {
8825 dumpPNextChain(obj->pNext);
8826 } else {
8827 PRINT_SPACE
8828 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8829 }
8830
8831 print_VkBufferCreateFlags(obj->flags, "flags", 1);
8832
8833 print_VkDeviceSize(obj->size, "size", 1);
8834
8835 print_VkBufferUsageFlags(obj->usage, "usage", 1);
8836
8837 print_VkSharingMode(obj->sharingMode, "sharingMode", 1);
8838
8839 print_uint32_t(obj->queueFamilyIndexCount, "queueFamilyIndexCount", 1);
8840
8841 PRINT_SPACE
8842 _OUT << "\"pQueueFamilyIndices\":" << std::endl;
8843 PRINT_SPACE
8844 if (obj->pQueueFamilyIndices) {
8845 _OUT << "[" << std::endl;
8846 for (unsigned int i = 0; i < obj->queueFamilyIndexCount; i++) {
8847 bool isCommaNeeded = (i+1) != obj->queueFamilyIndexCount;
8848 print_uint32_t(obj->pQueueFamilyIndices[i], "", isCommaNeeded);
8849 }
8850 PRINT_SPACE
8851 _OUT << "]" << "" << std::endl;
8852 } else {
8853 _OUT << "\"NULL\"" << "" << std::endl;
8854 }
8855
8856 INDENT(-4);
8857 PRINT_SPACE
8858 if (commaNeeded)
8859 _OUT << "}," << std::endl;
8860 else
8861 _OUT << "}" << std::endl;
8862 }
8863
print_VkBufferViewCreateInfo(VkBufferViewCreateInfo obj,const std::string & s,bool commaNeeded=true)8864 static void print_VkBufferViewCreateInfo(VkBufferViewCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8865 PRINT_SPACE
8866 _OUT << "{" << std::endl;
8867 INDENT(4);
8868
8869 print_VkStructureType(obj.sType, "sType", 1);
8870
8871 if (obj.pNext) {
8872 dumpPNextChain(obj.pNext);
8873 } else {
8874 PRINT_SPACE
8875 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8876 }
8877
8878 print_VkBufferViewCreateFlags(obj.flags, "flags", 1);
8879
8880 // CTS : required value
8881 PRINT_SPACE _OUT << "\"" << "buffer" << "\"" << " : " << "\"" << "\"," << std::endl;
8882
8883 print_VkFormat(obj.format, "format", 1);
8884
8885 print_VkDeviceSize(obj.offset, "offset", 1);
8886
8887 print_VkDeviceSize(obj.range, "range", 0);
8888
8889 INDENT(-4);
8890 PRINT_SPACE
8891 if (commaNeeded)
8892 _OUT << "}," << std::endl;
8893 else
8894 _OUT << "}" << std::endl;
8895 }
print_VkBufferViewCreateInfo(const VkBufferViewCreateInfo * obj,const std::string & s,bool commaNeeded=true)8896 static void print_VkBufferViewCreateInfo(const VkBufferViewCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8897 PRINT_SPACE
8898 _OUT << "{" << std::endl;
8899 INDENT(4);
8900
8901 print_VkStructureType(obj->sType, "sType", 1);
8902
8903 if (obj->pNext) {
8904 dumpPNextChain(obj->pNext);
8905 } else {
8906 PRINT_SPACE
8907 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8908 }
8909
8910 print_VkBufferViewCreateFlags(obj->flags, "flags", 1);
8911
8912 // CTS : required value
8913 PRINT_SPACE _OUT << "\"" << "buffer" << "\"" << " : " << "\"" << "\"," << std::endl;
8914
8915 print_VkFormat(obj->format, "format", 1);
8916
8917 print_VkDeviceSize(obj->offset, "offset", 1);
8918
8919 print_VkDeviceSize(obj->range, "range", 0);
8920
8921 INDENT(-4);
8922 PRINT_SPACE
8923 if (commaNeeded)
8924 _OUT << "}," << std::endl;
8925 else
8926 _OUT << "}" << std::endl;
8927 }
8928
print_VkImageCreateInfo(VkImageCreateInfo obj,const std::string & s,bool commaNeeded=true)8929 static void print_VkImageCreateInfo(VkImageCreateInfo obj, const std::string& s, bool commaNeeded=true) {
8930 PRINT_SPACE
8931 _OUT << "{" << std::endl;
8932 INDENT(4);
8933
8934 print_VkStructureType(obj.sType, "sType", 1);
8935
8936 if (obj.pNext) {
8937 dumpPNextChain(obj.pNext);
8938 } else {
8939 PRINT_SPACE
8940 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
8941 }
8942
8943 print_VkImageCreateFlags(obj.flags, "flags", 1);
8944
8945 print_VkImageType(obj.imageType, "imageType", 1);
8946
8947 print_VkFormat(obj.format, "format", 1);
8948
8949 PRINT_SPACE
8950 _OUT << "\"extent\": " << std::endl;
8951 {
8952 print_VkExtent3D(obj.extent, "extent", 1);
8953 }
8954
8955 print_uint32_t(obj.mipLevels, "mipLevels", 1);
8956
8957 print_uint32_t(obj.arrayLayers, "arrayLayers", 1);
8958
8959 print_VkSampleCountFlagBits(obj.samples, "samples", 1);
8960
8961 print_VkImageTiling(obj.tiling, "tiling", 1);
8962
8963 print_VkImageUsageFlags(obj.usage, "usage", 1);
8964
8965 print_VkSharingMode(obj.sharingMode, "sharingMode", 1);
8966
8967 print_uint32_t(obj.queueFamilyIndexCount, "queueFamilyIndexCount", 1);
8968
8969 PRINT_SPACE
8970 _OUT << "\"pQueueFamilyIndices\":" << std::endl;
8971 PRINT_SPACE
8972 if (obj.pQueueFamilyIndices) {
8973 _OUT << "[" << std::endl;
8974 for (unsigned int i = 0; i < obj.queueFamilyIndexCount; i++) {
8975 bool isCommaNeeded = (i+1) != obj.queueFamilyIndexCount;
8976 print_uint32_t(obj.pQueueFamilyIndices[i], "", isCommaNeeded);
8977 }
8978 PRINT_SPACE
8979 _OUT << "]" << "," << std::endl;
8980 } else {
8981 _OUT << "\"NULL\"" << "," << std::endl;
8982 }
8983
8984 print_VkImageLayout(obj.initialLayout, "initialLayout", 0);
8985
8986 INDENT(-4);
8987 PRINT_SPACE
8988 if (commaNeeded)
8989 _OUT << "}," << std::endl;
8990 else
8991 _OUT << "}" << std::endl;
8992 }
print_VkImageCreateInfo(const VkImageCreateInfo * obj,const std::string & s,bool commaNeeded=true)8993 static void print_VkImageCreateInfo(const VkImageCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
8994 PRINT_SPACE
8995 _OUT << "{" << std::endl;
8996 INDENT(4);
8997
8998 print_VkStructureType(obj->sType, "sType", 1);
8999
9000 if (obj->pNext) {
9001 dumpPNextChain(obj->pNext);
9002 } else {
9003 PRINT_SPACE
9004 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9005 }
9006
9007 print_VkImageCreateFlags(obj->flags, "flags", 1);
9008
9009 print_VkImageType(obj->imageType, "imageType", 1);
9010
9011 print_VkFormat(obj->format, "format", 1);
9012
9013 PRINT_SPACE
9014 _OUT << "\"extent\": " << std::endl;
9015 {
9016 print_VkExtent3D(obj->extent, "extent", 1);
9017 }
9018
9019 print_uint32_t(obj->mipLevels, "mipLevels", 1);
9020
9021 print_uint32_t(obj->arrayLayers, "arrayLayers", 1);
9022
9023 print_VkSampleCountFlagBits(obj->samples, "samples", 1);
9024
9025 print_VkImageTiling(obj->tiling, "tiling", 1);
9026
9027 print_VkImageUsageFlags(obj->usage, "usage", 1);
9028
9029 print_VkSharingMode(obj->sharingMode, "sharingMode", 1);
9030
9031 print_uint32_t(obj->queueFamilyIndexCount, "queueFamilyIndexCount", 1);
9032
9033 PRINT_SPACE
9034 _OUT << "\"pQueueFamilyIndices\":" << std::endl;
9035 PRINT_SPACE
9036 if (obj->pQueueFamilyIndices) {
9037 _OUT << "[" << std::endl;
9038 for (unsigned int i = 0; i < obj->queueFamilyIndexCount; i++) {
9039 bool isCommaNeeded = (i+1) != obj->queueFamilyIndexCount;
9040 print_uint32_t(obj->pQueueFamilyIndices[i], "", isCommaNeeded);
9041 }
9042 PRINT_SPACE
9043 _OUT << "]" << "," << std::endl;
9044 } else {
9045 _OUT << "\"NULL\"" << "," << std::endl;
9046 }
9047
9048 print_VkImageLayout(obj->initialLayout, "initialLayout", 0);
9049
9050 INDENT(-4);
9051 PRINT_SPACE
9052 if (commaNeeded)
9053 _OUT << "}," << std::endl;
9054 else
9055 _OUT << "}" << std::endl;
9056 }
9057
print_VkSubresourceLayout(VkSubresourceLayout obj,const std::string & s,bool commaNeeded=true)9058 static void print_VkSubresourceLayout(VkSubresourceLayout obj, const std::string& s, bool commaNeeded=true) {
9059 PRINT_SPACE
9060 _OUT << "{" << std::endl;
9061 INDENT(4);
9062
9063 print_VkDeviceSize(obj.offset, "offset", 1);
9064
9065 print_VkDeviceSize(obj.size, "size", 1);
9066
9067 print_VkDeviceSize(obj.rowPitch, "rowPitch", 1);
9068
9069 print_VkDeviceSize(obj.arrayPitch, "arrayPitch", 1);
9070
9071 print_VkDeviceSize(obj.depthPitch, "depthPitch", 0);
9072
9073 INDENT(-4);
9074 PRINT_SPACE
9075 if (commaNeeded)
9076 _OUT << "}," << std::endl;
9077 else
9078 _OUT << "}" << std::endl;
9079 }
print_VkSubresourceLayout(const VkSubresourceLayout * obj,const std::string & s,bool commaNeeded=true)9080 static void print_VkSubresourceLayout(const VkSubresourceLayout * obj, const std::string& s, bool commaNeeded=true) {
9081 PRINT_SPACE
9082 _OUT << "{" << std::endl;
9083 INDENT(4);
9084
9085 print_VkDeviceSize(obj->offset, "offset", 1);
9086
9087 print_VkDeviceSize(obj->size, "size", 1);
9088
9089 print_VkDeviceSize(obj->rowPitch, "rowPitch", 1);
9090
9091 print_VkDeviceSize(obj->arrayPitch, "arrayPitch", 1);
9092
9093 print_VkDeviceSize(obj->depthPitch, "depthPitch", 0);
9094
9095 INDENT(-4);
9096 PRINT_SPACE
9097 if (commaNeeded)
9098 _OUT << "}," << std::endl;
9099 else
9100 _OUT << "}" << std::endl;
9101 }
9102
print_VkComponentMapping(VkComponentMapping obj,const std::string & s,bool commaNeeded=true)9103 static void print_VkComponentMapping(VkComponentMapping obj, const std::string& s, bool commaNeeded=true) {
9104 PRINT_SPACE
9105 _OUT << "{" << std::endl;
9106 INDENT(4);
9107
9108 print_VkComponentSwizzle(obj.r, "r", 1);
9109
9110 print_VkComponentSwizzle(obj.g, "g", 1);
9111
9112 print_VkComponentSwizzle(obj.b, "b", 1);
9113
9114 print_VkComponentSwizzle(obj.a, "a", 0);
9115
9116 INDENT(-4);
9117 PRINT_SPACE
9118 if (commaNeeded)
9119 _OUT << "}," << std::endl;
9120 else
9121 _OUT << "}" << std::endl;
9122 }
print_VkComponentMapping(const VkComponentMapping * obj,const std::string & s,bool commaNeeded=true)9123 static void print_VkComponentMapping(const VkComponentMapping * obj, const std::string& s, bool commaNeeded=true) {
9124 PRINT_SPACE
9125 _OUT << "{" << std::endl;
9126 INDENT(4);
9127
9128 print_VkComponentSwizzle(obj->r, "r", 1);
9129
9130 print_VkComponentSwizzle(obj->g, "g", 1);
9131
9132 print_VkComponentSwizzle(obj->b, "b", 1);
9133
9134 print_VkComponentSwizzle(obj->a, "a", 0);
9135
9136 INDENT(-4);
9137 PRINT_SPACE
9138 if (commaNeeded)
9139 _OUT << "}," << std::endl;
9140 else
9141 _OUT << "}" << std::endl;
9142 }
9143
print_VkImageViewCreateInfo(VkImageViewCreateInfo obj,const std::string & s,bool commaNeeded=true)9144 static void print_VkImageViewCreateInfo(VkImageViewCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9145 PRINT_SPACE
9146 _OUT << "{" << std::endl;
9147 INDENT(4);
9148
9149 print_VkStructureType(obj.sType, "sType", 1);
9150
9151 if (obj.pNext) {
9152 dumpPNextChain(obj.pNext);
9153 } else {
9154 PRINT_SPACE
9155 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9156 }
9157
9158 print_VkImageViewCreateFlags(obj.flags, "flags", 1);
9159
9160 // CTS : required value
9161 PRINT_SPACE _OUT << "\"" << "image" << "\"" << " : " << "\"" << "\"," << std::endl;
9162
9163 print_VkImageViewType(obj.viewType, "viewType", 1);
9164
9165 print_VkFormat(obj.format, "format", 1);
9166
9167 PRINT_SPACE
9168 _OUT << "\"components\": " << std::endl;
9169 {
9170 print_VkComponentMapping(obj.components, "components", 1);
9171 }
9172
9173 PRINT_SPACE
9174 _OUT << "\"subresourceRange\": " << std::endl;
9175 {
9176 print_VkImageSubresourceRange(obj.subresourceRange, "subresourceRange", 0);
9177 }
9178
9179 INDENT(-4);
9180 PRINT_SPACE
9181 if (commaNeeded)
9182 _OUT << "}," << std::endl;
9183 else
9184 _OUT << "}" << std::endl;
9185 }
print_VkImageViewCreateInfo(const VkImageViewCreateInfo * obj,const std::string & s,bool commaNeeded=true)9186 static void print_VkImageViewCreateInfo(const VkImageViewCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9187 PRINT_SPACE
9188 _OUT << "{" << std::endl;
9189 INDENT(4);
9190
9191 print_VkStructureType(obj->sType, "sType", 1);
9192
9193 if (obj->pNext) {
9194 dumpPNextChain(obj->pNext);
9195 } else {
9196 PRINT_SPACE
9197 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9198 }
9199
9200 print_VkImageViewCreateFlags(obj->flags, "flags", 1);
9201
9202 // CTS : required value
9203 PRINT_SPACE _OUT << "\"" << "image" << "\"" << " : " << "\"" << "\"," << std::endl;
9204
9205 print_VkImageViewType(obj->viewType, "viewType", 1);
9206
9207 print_VkFormat(obj->format, "format", 1);
9208
9209 PRINT_SPACE
9210 _OUT << "\"components\": " << std::endl;
9211 {
9212 print_VkComponentMapping(obj->components, "components", 1);
9213 }
9214
9215 PRINT_SPACE
9216 _OUT << "\"subresourceRange\": " << std::endl;
9217 {
9218 print_VkImageSubresourceRange(obj->subresourceRange, "subresourceRange", 0);
9219 }
9220
9221 INDENT(-4);
9222 PRINT_SPACE
9223 if (commaNeeded)
9224 _OUT << "}," << std::endl;
9225 else
9226 _OUT << "}" << std::endl;
9227 }
9228
print_VkPipelineCacheCreateInfo(VkPipelineCacheCreateInfo obj,const std::string & s,bool commaNeeded=true)9229 static void print_VkPipelineCacheCreateInfo(VkPipelineCacheCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9230 PRINT_SPACE
9231 _OUT << "{" << std::endl;
9232 INDENT(4);
9233
9234 print_VkStructureType(obj.sType, "sType", 1);
9235
9236 if (obj.pNext) {
9237 dumpPNextChain(obj.pNext);
9238 } else {
9239 PRINT_SPACE
9240 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9241 }
9242
9243 print_VkPipelineCacheCreateFlags(obj.flags, "flags", 1);
9244
9245 print_size_t(obj.initialDataSize, "initialDataSize", 1);
9246
9247 print_void_data(obj.pInitialData, int(obj.initialDataSize), "pInitialData", 0);
9248
9249 INDENT(-4);
9250 PRINT_SPACE
9251 if (commaNeeded)
9252 _OUT << "}," << std::endl;
9253 else
9254 _OUT << "}" << std::endl;
9255 }
print_VkPipelineCacheCreateInfo(const VkPipelineCacheCreateInfo * obj,const std::string & s,bool commaNeeded=true)9256 static void print_VkPipelineCacheCreateInfo(const VkPipelineCacheCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9257 PRINT_SPACE
9258 _OUT << "{" << std::endl;
9259 INDENT(4);
9260
9261 print_VkStructureType(obj->sType, "sType", 1);
9262
9263 if (obj->pNext) {
9264 dumpPNextChain(obj->pNext);
9265 } else {
9266 PRINT_SPACE
9267 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9268 }
9269
9270 print_VkPipelineCacheCreateFlags(obj->flags, "flags", 1);
9271
9272 print_size_t(obj->initialDataSize, "initialDataSize", 1);
9273
9274 print_void_data(obj->pInitialData, int(obj->initialDataSize), "pInitialData", 0);
9275
9276 INDENT(-4);
9277 PRINT_SPACE
9278 if (commaNeeded)
9279 _OUT << "}," << std::endl;
9280 else
9281 _OUT << "}" << std::endl;
9282 }
9283
print_VkSpecializationMapEntry(VkSpecializationMapEntry obj,const std::string & s,bool commaNeeded=true)9284 static void print_VkSpecializationMapEntry(VkSpecializationMapEntry obj, const std::string& s, bool commaNeeded=true) {
9285 PRINT_SPACE
9286 _OUT << "{" << std::endl;
9287 INDENT(4);
9288
9289 print_uint32_t(obj.constantID, "constantID", 1);
9290
9291 print_uint32_t(obj.offset, "offset", 1);
9292
9293 print_size_t(obj.size, "size", 0);
9294
9295 INDENT(-4);
9296 PRINT_SPACE
9297 if (commaNeeded)
9298 _OUT << "}," << std::endl;
9299 else
9300 _OUT << "}" << std::endl;
9301 }
print_VkSpecializationMapEntry(const VkSpecializationMapEntry * obj,const std::string & s,bool commaNeeded=true)9302 static void print_VkSpecializationMapEntry(const VkSpecializationMapEntry * obj, const std::string& s, bool commaNeeded=true) {
9303 PRINT_SPACE
9304 _OUT << "{" << std::endl;
9305 INDENT(4);
9306
9307 print_uint32_t(obj->constantID, "constantID", 1);
9308
9309 print_uint32_t(obj->offset, "offset", 1);
9310
9311 print_size_t(obj->size, "size", 0);
9312
9313 INDENT(-4);
9314 PRINT_SPACE
9315 if (commaNeeded)
9316 _OUT << "}," << std::endl;
9317 else
9318 _OUT << "}" << std::endl;
9319 }
9320
print_VkSpecializationInfo(VkSpecializationInfo obj,const std::string & s,bool commaNeeded=true)9321 static void print_VkSpecializationInfo(VkSpecializationInfo obj, const std::string& s, bool commaNeeded=true) {
9322 PRINT_SPACE
9323 _OUT << "{" << std::endl;
9324 INDENT(4);
9325
9326 print_uint32_t(obj.mapEntryCount, "mapEntryCount", 1);
9327
9328 PRINT_SPACE
9329 _OUT << "\"pMapEntries\": " << std::endl;
9330 if (obj.pMapEntries) {
9331 PRINT_SPACE
9332 _OUT << "[" << std::endl;
9333 for (unsigned int i = 0; i < obj.mapEntryCount; i++) {
9334 if (i+1 == obj.mapEntryCount)
9335 print_VkSpecializationMapEntry(obj.pMapEntries[i], "pMapEntries", 0);
9336 else
9337 print_VkSpecializationMapEntry(obj.pMapEntries[i], "pMapEntries", 1);
9338 }
9339 PRINT_SPACE
9340 _OUT << "]," << std::endl;
9341 }
9342 else
9343 {
9344 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
9345 }
9346
9347 print_size_t(obj.dataSize, "dataSize", 1);
9348
9349 print_void_data(obj.pData, int(obj.dataSize), "pData", 0);
9350
9351 INDENT(-4);
9352 PRINT_SPACE
9353 if (commaNeeded)
9354 _OUT << "}," << std::endl;
9355 else
9356 _OUT << "}" << std::endl;
9357 }
print_VkSpecializationInfo(const VkSpecializationInfo * obj,const std::string & s,bool commaNeeded=true)9358 static void print_VkSpecializationInfo(const VkSpecializationInfo * obj, const std::string& s, bool commaNeeded=true) {
9359 PRINT_SPACE
9360 _OUT << "{" << std::endl;
9361 INDENT(4);
9362
9363 print_uint32_t(obj->mapEntryCount, "mapEntryCount", 1);
9364
9365 PRINT_SPACE
9366 _OUT << "\"pMapEntries\": " << std::endl;
9367 if (obj->pMapEntries) {
9368 PRINT_SPACE
9369 _OUT << "[" << std::endl;
9370 for (unsigned int i = 0; i < obj->mapEntryCount; i++) {
9371 if (i+1 == obj->mapEntryCount)
9372 print_VkSpecializationMapEntry(obj->pMapEntries[i], "pMapEntries", 0);
9373 else
9374 print_VkSpecializationMapEntry(obj->pMapEntries[i], "pMapEntries", 1);
9375 }
9376 PRINT_SPACE
9377 _OUT << "]," << std::endl;
9378 }
9379 else
9380 {
9381 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
9382 }
9383
9384 print_size_t(obj->dataSize, "dataSize", 1);
9385
9386 print_void_data(obj->pData, int(obj->dataSize), "pData", 0);
9387
9388 INDENT(-4);
9389 PRINT_SPACE
9390 if (commaNeeded)
9391 _OUT << "}," << std::endl;
9392 else
9393 _OUT << "}" << std::endl;
9394 }
9395
print_VkPipelineShaderStageCreateInfo(VkPipelineShaderStageCreateInfo obj,const std::string & s,bool commaNeeded=true)9396 static void print_VkPipelineShaderStageCreateInfo(VkPipelineShaderStageCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9397 PRINT_SPACE
9398 _OUT << "{" << std::endl;
9399 INDENT(4);
9400
9401 print_VkStructureType(obj.sType, "sType", 1);
9402
9403 if (obj.pNext) {
9404 dumpPNextChain(obj.pNext);
9405 } else {
9406 PRINT_SPACE
9407 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9408 }
9409
9410 print_VkPipelineShaderStageCreateFlags(obj.flags, "flags", 1);
9411
9412 print_VkShaderStageFlagBits(obj.stage, "stage", 1);
9413
9414 // CTS : required value
9415 PRINT_SPACE _OUT << "\"" << "module" << "\"" << " : " << obj.module.getInternal() << "," << std::endl;
9416
9417 print_char(obj.pName, "pName", 1);
9418
9419 PRINT_SPACE
9420 _OUT << "\"pSpecializationInfo\": " << std::endl;
9421 if (obj.pSpecializationInfo) {
9422 print_VkSpecializationInfo(obj.pSpecializationInfo, "pSpecializationInfo", 0);
9423 }
9424 else
9425 {
9426 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
9427 }
9428
9429 INDENT(-4);
9430 PRINT_SPACE
9431 if (commaNeeded)
9432 _OUT << "}," << std::endl;
9433 else
9434 _OUT << "}" << std::endl;
9435 }
print_VkPipelineShaderStageCreateInfo(const VkPipelineShaderStageCreateInfo * obj,const std::string & s,bool commaNeeded=true)9436 static void print_VkPipelineShaderStageCreateInfo(const VkPipelineShaderStageCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9437 PRINT_SPACE
9438 _OUT << "{" << std::endl;
9439 INDENT(4);
9440
9441 print_VkStructureType(obj->sType, "sType", 1);
9442
9443 if (obj->pNext) {
9444 dumpPNextChain(obj->pNext);
9445 } else {
9446 PRINT_SPACE
9447 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9448 }
9449
9450 print_VkPipelineShaderStageCreateFlags(obj->flags, "flags", 1);
9451
9452 print_VkShaderStageFlagBits(obj->stage, "stage", 1);
9453
9454 // CTS : required value
9455 PRINT_SPACE _OUT << "\"" << "module" << "\"" << " : " << obj->module.getInternal() << "," << std::endl;
9456
9457 print_char(obj->pName, "pName", 1);
9458
9459 PRINT_SPACE
9460 _OUT << "\"pSpecializationInfo\": " << std::endl;
9461 if (obj->pSpecializationInfo) {
9462 print_VkSpecializationInfo(obj->pSpecializationInfo, "pSpecializationInfo", 0);
9463 }
9464 else
9465 {
9466 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
9467 }
9468
9469 INDENT(-4);
9470 PRINT_SPACE
9471 if (commaNeeded)
9472 _OUT << "}," << std::endl;
9473 else
9474 _OUT << "}" << std::endl;
9475 }
9476
print_VkComputePipelineCreateInfo(VkComputePipelineCreateInfo obj,const std::string & s,bool commaNeeded=true)9477 static void print_VkComputePipelineCreateInfo(VkComputePipelineCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9478 PRINT_SPACE
9479 _OUT << "{" << std::endl;
9480 INDENT(4);
9481
9482 print_VkStructureType(obj.sType, "sType", 1);
9483
9484 if (obj.pNext) {
9485 dumpPNextChain(obj.pNext);
9486 } else {
9487 PRINT_SPACE
9488 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9489 }
9490
9491 print_VkPipelineCreateFlags(obj.flags, "flags", 1);
9492
9493 PRINT_SPACE
9494 _OUT << "\"stage\": " << std::endl;
9495 {
9496 print_VkPipelineShaderStageCreateInfo(obj.stage, "stage", 1);
9497 }
9498
9499 // CTS : required value
9500 PRINT_SPACE _OUT << "\"" << "layout" << "\"" << " : " << obj.layout.getInternal() << "," << std::endl;
9501
9502 // CTS : required value
9503 PRINT_SPACE _OUT << "\"" << "basePipelineHandle" << "\"" << " : " << "\"" << "\"," << std::endl;
9504
9505 print_int32_t(obj.basePipelineIndex, "basePipelineIndex", 0);
9506
9507 INDENT(-4);
9508 PRINT_SPACE
9509 if (commaNeeded)
9510 _OUT << "}," << std::endl;
9511 else
9512 _OUT << "}" << std::endl;
9513 }
print_VkComputePipelineCreateInfo(const VkComputePipelineCreateInfo * obj,const std::string & s,bool commaNeeded=true)9514 static void print_VkComputePipelineCreateInfo(const VkComputePipelineCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9515 PRINT_SPACE
9516 _OUT << "{" << std::endl;
9517 INDENT(4);
9518
9519 print_VkStructureType(obj->sType, "sType", 1);
9520
9521 if (obj->pNext) {
9522 dumpPNextChain(obj->pNext);
9523 } else {
9524 PRINT_SPACE
9525 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9526 }
9527
9528 print_VkPipelineCreateFlags(obj->flags, "flags", 1);
9529
9530 PRINT_SPACE
9531 _OUT << "\"stage\": " << std::endl;
9532 {
9533 print_VkPipelineShaderStageCreateInfo(obj->stage, "stage", 1);
9534 }
9535
9536 // CTS : required value
9537 PRINT_SPACE _OUT << "\"" << "layout" << "\"" << " : " << obj->layout.getInternal() << "," << std::endl;
9538
9539 // CTS : required value
9540 PRINT_SPACE _OUT << "\"" << "basePipelineHandle" << "\"" << " : " << "\"" << "\"," << std::endl;
9541
9542 print_int32_t(obj->basePipelineIndex, "basePipelineIndex", 0);
9543
9544 INDENT(-4);
9545 PRINT_SPACE
9546 if (commaNeeded)
9547 _OUT << "}," << std::endl;
9548 else
9549 _OUT << "}" << std::endl;
9550 }
9551
print_VkVertexInputBindingDescription(VkVertexInputBindingDescription obj,const std::string & s,bool commaNeeded=true)9552 static void print_VkVertexInputBindingDescription(VkVertexInputBindingDescription obj, const std::string& s, bool commaNeeded=true) {
9553 PRINT_SPACE
9554 _OUT << "{" << std::endl;
9555 INDENT(4);
9556
9557 print_uint32_t(obj.binding, "binding", 1);
9558
9559 print_uint32_t(obj.stride, "stride", 1);
9560
9561 print_VkVertexInputRate(obj.inputRate, "inputRate", 0);
9562
9563 INDENT(-4);
9564 PRINT_SPACE
9565 if (commaNeeded)
9566 _OUT << "}," << std::endl;
9567 else
9568 _OUT << "}" << std::endl;
9569 }
print_VkVertexInputBindingDescription(const VkVertexInputBindingDescription * obj,const std::string & s,bool commaNeeded=true)9570 static void print_VkVertexInputBindingDescription(const VkVertexInputBindingDescription * obj, const std::string& s, bool commaNeeded=true) {
9571 PRINT_SPACE
9572 _OUT << "{" << std::endl;
9573 INDENT(4);
9574
9575 print_uint32_t(obj->binding, "binding", 1);
9576
9577 print_uint32_t(obj->stride, "stride", 1);
9578
9579 print_VkVertexInputRate(obj->inputRate, "inputRate", 0);
9580
9581 INDENT(-4);
9582 PRINT_SPACE
9583 if (commaNeeded)
9584 _OUT << "}," << std::endl;
9585 else
9586 _OUT << "}" << std::endl;
9587 }
9588
print_VkVertexInputAttributeDescription(VkVertexInputAttributeDescription obj,const std::string & s,bool commaNeeded=true)9589 static void print_VkVertexInputAttributeDescription(VkVertexInputAttributeDescription obj, const std::string& s, bool commaNeeded=true) {
9590 PRINT_SPACE
9591 _OUT << "{" << std::endl;
9592 INDENT(4);
9593
9594 print_uint32_t(obj.location, "location", 1);
9595
9596 print_uint32_t(obj.binding, "binding", 1);
9597
9598 print_VkFormat(obj.format, "format", 1);
9599
9600 print_uint32_t(obj.offset, "offset", 0);
9601
9602 INDENT(-4);
9603 PRINT_SPACE
9604 if (commaNeeded)
9605 _OUT << "}," << std::endl;
9606 else
9607 _OUT << "}" << std::endl;
9608 }
print_VkVertexInputAttributeDescription(const VkVertexInputAttributeDescription * obj,const std::string & s,bool commaNeeded=true)9609 static void print_VkVertexInputAttributeDescription(const VkVertexInputAttributeDescription * obj, const std::string& s, bool commaNeeded=true) {
9610 PRINT_SPACE
9611 _OUT << "{" << std::endl;
9612 INDENT(4);
9613
9614 print_uint32_t(obj->location, "location", 1);
9615
9616 print_uint32_t(obj->binding, "binding", 1);
9617
9618 print_VkFormat(obj->format, "format", 1);
9619
9620 print_uint32_t(obj->offset, "offset", 0);
9621
9622 INDENT(-4);
9623 PRINT_SPACE
9624 if (commaNeeded)
9625 _OUT << "}," << std::endl;
9626 else
9627 _OUT << "}" << std::endl;
9628 }
9629
print_VkPipelineVertexInputStateCreateInfo(VkPipelineVertexInputStateCreateInfo obj,const std::string & s,bool commaNeeded=true)9630 static void print_VkPipelineVertexInputStateCreateInfo(VkPipelineVertexInputStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9631 PRINT_SPACE
9632 _OUT << "{" << std::endl;
9633 INDENT(4);
9634
9635 print_VkStructureType(obj.sType, "sType", 1);
9636
9637 if (obj.pNext) {
9638 dumpPNextChain(obj.pNext);
9639 } else {
9640 PRINT_SPACE
9641 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9642 }
9643
9644 print_VkPipelineVertexInputStateCreateFlags(obj.flags, "flags", 1);
9645
9646 print_uint32_t(obj.vertexBindingDescriptionCount, "vertexBindingDescriptionCount", 1);
9647
9648 PRINT_SPACE
9649 _OUT << "\"pVertexBindingDescriptions\": " << std::endl;
9650 if (obj.pVertexBindingDescriptions) {
9651 PRINT_SPACE
9652 _OUT << "[" << std::endl;
9653 for (unsigned int i = 0; i < obj.vertexBindingDescriptionCount; i++) {
9654 if (i+1 == obj.vertexBindingDescriptionCount)
9655 print_VkVertexInputBindingDescription(obj.pVertexBindingDescriptions[i], "pVertexBindingDescriptions", 0);
9656 else
9657 print_VkVertexInputBindingDescription(obj.pVertexBindingDescriptions[i], "pVertexBindingDescriptions", 1);
9658 }
9659 PRINT_SPACE
9660 _OUT << "]," << std::endl;
9661 }
9662 else
9663 {
9664 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
9665 }
9666
9667 print_uint32_t(obj.vertexAttributeDescriptionCount, "vertexAttributeDescriptionCount", 1);
9668
9669 PRINT_SPACE
9670 _OUT << "\"pVertexAttributeDescriptions\": " << std::endl;
9671 if (obj.pVertexAttributeDescriptions) {
9672 PRINT_SPACE
9673 _OUT << "[" << std::endl;
9674 for (unsigned int i = 0; i < obj.vertexAttributeDescriptionCount; i++) {
9675 if (i+1 == obj.vertexAttributeDescriptionCount)
9676 print_VkVertexInputAttributeDescription(obj.pVertexAttributeDescriptions[i], "pVertexAttributeDescriptions", 0);
9677 else
9678 print_VkVertexInputAttributeDescription(obj.pVertexAttributeDescriptions[i], "pVertexAttributeDescriptions", 1);
9679 }
9680 PRINT_SPACE
9681 _OUT << "]" << std::endl;
9682 }
9683 else
9684 {
9685 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
9686 }
9687
9688 INDENT(-4);
9689 PRINT_SPACE
9690 if (commaNeeded)
9691 _OUT << "}," << std::endl;
9692 else
9693 _OUT << "}" << std::endl;
9694 }
print_VkPipelineVertexInputStateCreateInfo(const VkPipelineVertexInputStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)9695 static void print_VkPipelineVertexInputStateCreateInfo(const VkPipelineVertexInputStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9696 PRINT_SPACE
9697 _OUT << "{" << std::endl;
9698 INDENT(4);
9699
9700 print_VkStructureType(obj->sType, "sType", 1);
9701
9702 if (obj->pNext) {
9703 dumpPNextChain(obj->pNext);
9704 } else {
9705 PRINT_SPACE
9706 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9707 }
9708
9709 print_VkPipelineVertexInputStateCreateFlags(obj->flags, "flags", 1);
9710
9711 print_uint32_t(obj->vertexBindingDescriptionCount, "vertexBindingDescriptionCount", 1);
9712
9713 PRINT_SPACE
9714 _OUT << "\"pVertexBindingDescriptions\": " << std::endl;
9715 if (obj->pVertexBindingDescriptions) {
9716 PRINT_SPACE
9717 _OUT << "[" << std::endl;
9718 for (unsigned int i = 0; i < obj->vertexBindingDescriptionCount; i++) {
9719 if (i+1 == obj->vertexBindingDescriptionCount)
9720 print_VkVertexInputBindingDescription(obj->pVertexBindingDescriptions[i], "pVertexBindingDescriptions", 0);
9721 else
9722 print_VkVertexInputBindingDescription(obj->pVertexBindingDescriptions[i], "pVertexBindingDescriptions", 1);
9723 }
9724 PRINT_SPACE
9725 _OUT << "]," << std::endl;
9726 }
9727 else
9728 {
9729 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
9730 }
9731
9732 print_uint32_t(obj->vertexAttributeDescriptionCount, "vertexAttributeDescriptionCount", 1);
9733
9734 PRINT_SPACE
9735 _OUT << "\"pVertexAttributeDescriptions\": " << std::endl;
9736 if (obj->pVertexAttributeDescriptions) {
9737 PRINT_SPACE
9738 _OUT << "[" << std::endl;
9739 for (unsigned int i = 0; i < obj->vertexAttributeDescriptionCount; i++) {
9740 if (i+1 == obj->vertexAttributeDescriptionCount)
9741 print_VkVertexInputAttributeDescription(obj->pVertexAttributeDescriptions[i], "pVertexAttributeDescriptions", 0);
9742 else
9743 print_VkVertexInputAttributeDescription(obj->pVertexAttributeDescriptions[i], "pVertexAttributeDescriptions", 1);
9744 }
9745 PRINT_SPACE
9746 _OUT << "]" << std::endl;
9747 }
9748 else
9749 {
9750 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
9751 }
9752
9753 INDENT(-4);
9754 PRINT_SPACE
9755 if (commaNeeded)
9756 _OUT << "}," << std::endl;
9757 else
9758 _OUT << "}" << std::endl;
9759 }
9760
print_VkPipelineInputAssemblyStateCreateInfo(VkPipelineInputAssemblyStateCreateInfo obj,const std::string & s,bool commaNeeded=true)9761 static void print_VkPipelineInputAssemblyStateCreateInfo(VkPipelineInputAssemblyStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9762 PRINT_SPACE
9763 _OUT << "{" << std::endl;
9764 INDENT(4);
9765
9766 print_VkStructureType(obj.sType, "sType", 1);
9767
9768 if (obj.pNext) {
9769 dumpPNextChain(obj.pNext);
9770 } else {
9771 PRINT_SPACE
9772 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9773 }
9774
9775 print_VkPipelineInputAssemblyStateCreateFlags(obj.flags, "flags", 1);
9776
9777 print_VkPrimitiveTopology(obj.topology, "topology", 1);
9778
9779 print_VkBool32(obj.primitiveRestartEnable, "primitiveRestartEnable", 0);
9780
9781 INDENT(-4);
9782 PRINT_SPACE
9783 if (commaNeeded)
9784 _OUT << "}," << std::endl;
9785 else
9786 _OUT << "}" << std::endl;
9787 }
print_VkPipelineInputAssemblyStateCreateInfo(const VkPipelineInputAssemblyStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)9788 static void print_VkPipelineInputAssemblyStateCreateInfo(const VkPipelineInputAssemblyStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9789 PRINT_SPACE
9790 _OUT << "{" << std::endl;
9791 INDENT(4);
9792
9793 print_VkStructureType(obj->sType, "sType", 1);
9794
9795 if (obj->pNext) {
9796 dumpPNextChain(obj->pNext);
9797 } else {
9798 PRINT_SPACE
9799 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9800 }
9801
9802 print_VkPipelineInputAssemblyStateCreateFlags(obj->flags, "flags", 1);
9803
9804 print_VkPrimitiveTopology(obj->topology, "topology", 1);
9805
9806 print_VkBool32(obj->primitiveRestartEnable, "primitiveRestartEnable", 0);
9807
9808 INDENT(-4);
9809 PRINT_SPACE
9810 if (commaNeeded)
9811 _OUT << "}," << std::endl;
9812 else
9813 _OUT << "}" << std::endl;
9814 }
9815
print_VkPipelineTessellationStateCreateInfo(VkPipelineTessellationStateCreateInfo obj,const std::string & s,bool commaNeeded=true)9816 static void print_VkPipelineTessellationStateCreateInfo(VkPipelineTessellationStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9817 PRINT_SPACE
9818 _OUT << "{" << std::endl;
9819 INDENT(4);
9820
9821 print_VkStructureType(obj.sType, "sType", 1);
9822
9823 if (obj.pNext) {
9824 dumpPNextChain(obj.pNext);
9825 } else {
9826 PRINT_SPACE
9827 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9828 }
9829
9830 print_VkPipelineTessellationStateCreateFlags(obj.flags, "flags", 1);
9831
9832 print_uint32_t(obj.patchControlPoints, "patchControlPoints", 0);
9833
9834 INDENT(-4);
9835 PRINT_SPACE
9836 if (commaNeeded)
9837 _OUT << "}," << std::endl;
9838 else
9839 _OUT << "}" << std::endl;
9840 }
print_VkPipelineTessellationStateCreateInfo(const VkPipelineTessellationStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)9841 static void print_VkPipelineTessellationStateCreateInfo(const VkPipelineTessellationStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9842 PRINT_SPACE
9843 _OUT << "{" << std::endl;
9844 INDENT(4);
9845
9846 print_VkStructureType(obj->sType, "sType", 1);
9847
9848 if (obj->pNext) {
9849 dumpPNextChain(obj->pNext);
9850 } else {
9851 PRINT_SPACE
9852 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9853 }
9854
9855 print_VkPipelineTessellationStateCreateFlags(obj->flags, "flags", 1);
9856
9857 print_uint32_t(obj->patchControlPoints, "patchControlPoints", 0);
9858
9859 INDENT(-4);
9860 PRINT_SPACE
9861 if (commaNeeded)
9862 _OUT << "}," << std::endl;
9863 else
9864 _OUT << "}" << std::endl;
9865 }
9866
print_VkViewport(VkViewport obj,const std::string & s,bool commaNeeded=true)9867 static void print_VkViewport(VkViewport obj, const std::string& s, bool commaNeeded=true) {
9868 PRINT_SPACE
9869 _OUT << "{" << std::endl;
9870 INDENT(4);
9871
9872 print_float(obj.x, "x", 1);
9873
9874 print_float(obj.y, "y", 1);
9875
9876 print_float(obj.width, "width", 1);
9877
9878 print_float(obj.height, "height", 1);
9879
9880 print_float(obj.minDepth, "minDepth", 1);
9881
9882 print_float(obj.maxDepth, "maxDepth", 0);
9883
9884 INDENT(-4);
9885 PRINT_SPACE
9886 if (commaNeeded)
9887 _OUT << "}," << std::endl;
9888 else
9889 _OUT << "}" << std::endl;
9890 }
print_VkViewport(const VkViewport * obj,const std::string & s,bool commaNeeded=true)9891 static void print_VkViewport(const VkViewport * obj, const std::string& s, bool commaNeeded=true) {
9892 PRINT_SPACE
9893 _OUT << "{" << std::endl;
9894 INDENT(4);
9895
9896 print_float(obj->x, "x", 1);
9897
9898 print_float(obj->y, "y", 1);
9899
9900 print_float(obj->width, "width", 1);
9901
9902 print_float(obj->height, "height", 1);
9903
9904 print_float(obj->minDepth, "minDepth", 1);
9905
9906 print_float(obj->maxDepth, "maxDepth", 0);
9907
9908 INDENT(-4);
9909 PRINT_SPACE
9910 if (commaNeeded)
9911 _OUT << "}," << std::endl;
9912 else
9913 _OUT << "}" << std::endl;
9914 }
9915
print_VkPipelineViewportStateCreateInfo(VkPipelineViewportStateCreateInfo obj,const std::string & s,bool commaNeeded=true)9916 static void print_VkPipelineViewportStateCreateInfo(VkPipelineViewportStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
9917 PRINT_SPACE
9918 _OUT << "{" << std::endl;
9919 INDENT(4);
9920
9921 print_VkStructureType(obj.sType, "sType", 1);
9922
9923 if (obj.pNext) {
9924 dumpPNextChain(obj.pNext);
9925 } else {
9926 PRINT_SPACE
9927 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9928 }
9929
9930 print_VkPipelineViewportStateCreateFlags(obj.flags, "flags", 1);
9931
9932 print_uint32_t(obj.viewportCount, "viewportCount", 1);
9933
9934 PRINT_SPACE
9935 _OUT << "\"pViewports\": " << std::endl;
9936 if (obj.pViewports) {
9937 PRINT_SPACE
9938 _OUT << "[" << std::endl;
9939 for (unsigned int i = 0; i < obj.viewportCount; i++) {
9940 if (i+1 == obj.viewportCount)
9941 print_VkViewport(obj.pViewports[i], "pViewports", 0);
9942 else
9943 print_VkViewport(obj.pViewports[i], "pViewports", 1);
9944 }
9945 PRINT_SPACE
9946 _OUT << "]," << std::endl;
9947 }
9948 else
9949 {
9950 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
9951 }
9952
9953 print_uint32_t(obj.scissorCount, "scissorCount", 1);
9954
9955 PRINT_SPACE
9956 _OUT << "\"pScissors\": " << std::endl;
9957 if (obj.pScissors) {
9958 PRINT_SPACE
9959 _OUT << "[" << std::endl;
9960 for (unsigned int i = 0; i < obj.scissorCount; i++) {
9961 if (i+1 == obj.scissorCount)
9962 print_VkRect2D(obj.pScissors[i], "pScissors", 0);
9963 else
9964 print_VkRect2D(obj.pScissors[i], "pScissors", 1);
9965 }
9966 PRINT_SPACE
9967 _OUT << "]" << std::endl;
9968 }
9969 else
9970 {
9971 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
9972 }
9973
9974 INDENT(-4);
9975 PRINT_SPACE
9976 if (commaNeeded)
9977 _OUT << "}," << std::endl;
9978 else
9979 _OUT << "}" << std::endl;
9980 }
print_VkPipelineViewportStateCreateInfo(const VkPipelineViewportStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)9981 static void print_VkPipelineViewportStateCreateInfo(const VkPipelineViewportStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
9982 PRINT_SPACE
9983 _OUT << "{" << std::endl;
9984 INDENT(4);
9985
9986 print_VkStructureType(obj->sType, "sType", 1);
9987
9988 if (obj->pNext) {
9989 dumpPNextChain(obj->pNext);
9990 } else {
9991 PRINT_SPACE
9992 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
9993 }
9994
9995 print_VkPipelineViewportStateCreateFlags(obj->flags, "flags", 1);
9996
9997 print_uint32_t(obj->viewportCount, "viewportCount", 1);
9998
9999 PRINT_SPACE
10000 _OUT << "\"pViewports\": " << std::endl;
10001 if (obj->pViewports) {
10002 PRINT_SPACE
10003 _OUT << "[" << std::endl;
10004 for (unsigned int i = 0; i < obj->viewportCount; i++) {
10005 if (i+1 == obj->viewportCount)
10006 print_VkViewport(obj->pViewports[i], "pViewports", 0);
10007 else
10008 print_VkViewport(obj->pViewports[i], "pViewports", 1);
10009 }
10010 PRINT_SPACE
10011 _OUT << "]," << std::endl;
10012 }
10013 else
10014 {
10015 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10016 }
10017
10018 print_uint32_t(obj->scissorCount, "scissorCount", 1);
10019
10020 PRINT_SPACE
10021 _OUT << "\"pScissors\": " << std::endl;
10022 if (obj->pScissors) {
10023 PRINT_SPACE
10024 _OUT << "[" << std::endl;
10025 for (unsigned int i = 0; i < obj->scissorCount; i++) {
10026 if (i+1 == obj->scissorCount)
10027 print_VkRect2D(obj->pScissors[i], "pScissors", 0);
10028 else
10029 print_VkRect2D(obj->pScissors[i], "pScissors", 1);
10030 }
10031 PRINT_SPACE
10032 _OUT << "]" << std::endl;
10033 }
10034 else
10035 {
10036 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
10037 }
10038
10039 INDENT(-4);
10040 PRINT_SPACE
10041 if (commaNeeded)
10042 _OUT << "}," << std::endl;
10043 else
10044 _OUT << "}" << std::endl;
10045 }
10046
print_VkPipelineRasterizationStateCreateInfo(VkPipelineRasterizationStateCreateInfo obj,const std::string & s,bool commaNeeded=true)10047 static void print_VkPipelineRasterizationStateCreateInfo(VkPipelineRasterizationStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10048 PRINT_SPACE
10049 _OUT << "{" << std::endl;
10050 INDENT(4);
10051
10052 print_VkStructureType(obj.sType, "sType", 1);
10053
10054 if (obj.pNext) {
10055 dumpPNextChain(obj.pNext);
10056 } else {
10057 PRINT_SPACE
10058 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10059 }
10060
10061 print_VkPipelineRasterizationStateCreateFlags(obj.flags, "flags", 1);
10062
10063 print_VkBool32(obj.depthClampEnable, "depthClampEnable", 1);
10064
10065 print_VkBool32(obj.rasterizerDiscardEnable, "rasterizerDiscardEnable", 1);
10066
10067 print_VkPolygonMode(obj.polygonMode, "polygonMode", 1);
10068
10069 print_VkCullModeFlags(obj.cullMode, "cullMode", 1);
10070
10071 print_VkFrontFace(obj.frontFace, "frontFace", 1);
10072
10073 print_VkBool32(obj.depthBiasEnable, "depthBiasEnable", 1);
10074
10075 print_float(obj.depthBiasConstantFactor, "depthBiasConstantFactor", 1);
10076
10077 print_float(obj.depthBiasClamp, "depthBiasClamp", 1);
10078
10079 print_float(obj.depthBiasSlopeFactor, "depthBiasSlopeFactor", 1);
10080
10081 print_float(obj.lineWidth, "lineWidth", 0);
10082
10083 INDENT(-4);
10084 PRINT_SPACE
10085 if (commaNeeded)
10086 _OUT << "}," << std::endl;
10087 else
10088 _OUT << "}" << std::endl;
10089 }
print_VkPipelineRasterizationStateCreateInfo(const VkPipelineRasterizationStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)10090 static void print_VkPipelineRasterizationStateCreateInfo(const VkPipelineRasterizationStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
10091 PRINT_SPACE
10092 _OUT << "{" << std::endl;
10093 INDENT(4);
10094
10095 print_VkStructureType(obj->sType, "sType", 1);
10096
10097 if (obj->pNext) {
10098 dumpPNextChain(obj->pNext);
10099 } else {
10100 PRINT_SPACE
10101 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10102 }
10103
10104 print_VkPipelineRasterizationStateCreateFlags(obj->flags, "flags", 1);
10105
10106 print_VkBool32(obj->depthClampEnable, "depthClampEnable", 1);
10107
10108 print_VkBool32(obj->rasterizerDiscardEnable, "rasterizerDiscardEnable", 1);
10109
10110 print_VkPolygonMode(obj->polygonMode, "polygonMode", 1);
10111
10112 print_VkCullModeFlags(obj->cullMode, "cullMode", 1);
10113
10114 print_VkFrontFace(obj->frontFace, "frontFace", 1);
10115
10116 print_VkBool32(obj->depthBiasEnable, "depthBiasEnable", 1);
10117
10118 print_float(obj->depthBiasConstantFactor, "depthBiasConstantFactor", 1);
10119
10120 print_float(obj->depthBiasClamp, "depthBiasClamp", 1);
10121
10122 print_float(obj->depthBiasSlopeFactor, "depthBiasSlopeFactor", 1);
10123
10124 print_float(obj->lineWidth, "lineWidth", 0);
10125
10126 INDENT(-4);
10127 PRINT_SPACE
10128 if (commaNeeded)
10129 _OUT << "}," << std::endl;
10130 else
10131 _OUT << "}" << std::endl;
10132 }
10133
print_VkPipelineMultisampleStateCreateInfo(VkPipelineMultisampleStateCreateInfo obj,const std::string & s,bool commaNeeded=true)10134 static void print_VkPipelineMultisampleStateCreateInfo(VkPipelineMultisampleStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10135 PRINT_SPACE
10136 _OUT << "{" << std::endl;
10137 INDENT(4);
10138
10139 print_VkStructureType(obj.sType, "sType", 1);
10140
10141 if (obj.pNext) {
10142 dumpPNextChain(obj.pNext);
10143 } else {
10144 PRINT_SPACE
10145 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10146 }
10147
10148 print_VkPipelineMultisampleStateCreateFlags(obj.flags, "flags", 1);
10149
10150 print_VkSampleCountFlagBits(obj.rasterizationSamples, "rasterizationSamples", 1);
10151
10152 print_VkBool32(obj.sampleShadingEnable, "sampleShadingEnable", 1);
10153
10154 print_float(obj.minSampleShading, "minSampleShading", 1);
10155
10156 deUint32 sampleMaskSize = ((obj.rasterizationSamples + 31) / 32);
10157 PRINT_SPACE
10158 _OUT << "\"pSampleMask\":" << std::endl;
10159 PRINT_SPACE
10160 if (obj.pSampleMask) {
10161 _OUT << "[" << std::endl;
10162 for (unsigned int i = 0; i < sampleMaskSize; i++) {
10163 bool isCommaNeeded = (i+1) != sampleMaskSize;
10164 print_uint32_t(obj.pSampleMask[i], "", isCommaNeeded);
10165 }
10166 PRINT_SPACE
10167 _OUT << "]" << "," << std::endl;
10168 } else {
10169 _OUT << "\"NULL\"" << "," << std::endl;
10170 }
10171
10172 print_VkBool32(obj.alphaToCoverageEnable, "alphaToCoverageEnable", 1);
10173
10174 print_VkBool32(obj.alphaToOneEnable, "alphaToOneEnable", 0);
10175
10176 INDENT(-4);
10177 PRINT_SPACE
10178 if (commaNeeded)
10179 _OUT << "}," << std::endl;
10180 else
10181 _OUT << "}" << std::endl;
10182 }
print_VkPipelineMultisampleStateCreateInfo(const VkPipelineMultisampleStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)10183 static void print_VkPipelineMultisampleStateCreateInfo(const VkPipelineMultisampleStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
10184 PRINT_SPACE
10185 _OUT << "{" << std::endl;
10186 INDENT(4);
10187
10188 print_VkStructureType(obj->sType, "sType", 1);
10189
10190 if (obj->pNext) {
10191 dumpPNextChain(obj->pNext);
10192 } else {
10193 PRINT_SPACE
10194 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10195 }
10196
10197 print_VkPipelineMultisampleStateCreateFlags(obj->flags, "flags", 1);
10198
10199 print_VkSampleCountFlagBits(obj->rasterizationSamples, "rasterizationSamples", 1);
10200
10201 print_VkBool32(obj->sampleShadingEnable, "sampleShadingEnable", 1);
10202
10203 print_float(obj->minSampleShading, "minSampleShading", 1);
10204
10205 deUint32 sampleMaskSize = ((obj->rasterizationSamples + 31) / 32);
10206 PRINT_SPACE
10207 _OUT << "\"pSampleMask\":" << std::endl;
10208 PRINT_SPACE
10209 if (obj->pSampleMask) {
10210 _OUT << "[" << std::endl;
10211 for (unsigned int i = 0; i < sampleMaskSize; i++) {
10212 bool isCommaNeeded = (i+1) != sampleMaskSize;
10213 print_uint32_t(obj->pSampleMask[i], "", isCommaNeeded);
10214 }
10215 PRINT_SPACE
10216 _OUT << "]" << "," << std::endl;
10217 } else {
10218 _OUT << "\"NULL\"" << "," << std::endl;
10219 }
10220
10221 print_VkBool32(obj->alphaToCoverageEnable, "alphaToCoverageEnable", 1);
10222
10223 print_VkBool32(obj->alphaToOneEnable, "alphaToOneEnable", 0);
10224
10225 INDENT(-4);
10226 PRINT_SPACE
10227 if (commaNeeded)
10228 _OUT << "}," << std::endl;
10229 else
10230 _OUT << "}" << std::endl;
10231 }
10232
print_VkStencilOpState(VkStencilOpState obj,const std::string & s,bool commaNeeded=true)10233 static void print_VkStencilOpState(VkStencilOpState obj, const std::string& s, bool commaNeeded=true) {
10234 PRINT_SPACE
10235 _OUT << "{" << std::endl;
10236 INDENT(4);
10237
10238 print_VkStencilOp(obj.failOp, "failOp", 1);
10239
10240 print_VkStencilOp(obj.passOp, "passOp", 1);
10241
10242 print_VkStencilOp(obj.depthFailOp, "depthFailOp", 1);
10243
10244 print_VkCompareOp(obj.compareOp, "compareOp", 1);
10245
10246 print_uint32_t(obj.compareMask, "compareMask", 1);
10247
10248 print_uint32_t(obj.writeMask, "writeMask", 1);
10249
10250 print_uint32_t(obj.reference, "reference", 0);
10251
10252 INDENT(-4);
10253 PRINT_SPACE
10254 if (commaNeeded)
10255 _OUT << "}," << std::endl;
10256 else
10257 _OUT << "}" << std::endl;
10258 }
print_VkStencilOpState(const VkStencilOpState * obj,const std::string & s,bool commaNeeded=true)10259 static void print_VkStencilOpState(const VkStencilOpState * obj, const std::string& s, bool commaNeeded=true) {
10260 PRINT_SPACE
10261 _OUT << "{" << std::endl;
10262 INDENT(4);
10263
10264 print_VkStencilOp(obj->failOp, "failOp", 1);
10265
10266 print_VkStencilOp(obj->passOp, "passOp", 1);
10267
10268 print_VkStencilOp(obj->depthFailOp, "depthFailOp", 1);
10269
10270 print_VkCompareOp(obj->compareOp, "compareOp", 1);
10271
10272 print_uint32_t(obj->compareMask, "compareMask", 1);
10273
10274 print_uint32_t(obj->writeMask, "writeMask", 1);
10275
10276 print_uint32_t(obj->reference, "reference", 0);
10277
10278 INDENT(-4);
10279 PRINT_SPACE
10280 if (commaNeeded)
10281 _OUT << "}," << std::endl;
10282 else
10283 _OUT << "}" << std::endl;
10284 }
10285
print_VkPipelineDepthStencilStateCreateInfo(VkPipelineDepthStencilStateCreateInfo obj,const std::string & s,bool commaNeeded=true)10286 static void print_VkPipelineDepthStencilStateCreateInfo(VkPipelineDepthStencilStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10287 PRINT_SPACE
10288 _OUT << "{" << std::endl;
10289 INDENT(4);
10290
10291 print_VkStructureType(obj.sType, "sType", 1);
10292
10293 if (obj.pNext) {
10294 dumpPNextChain(obj.pNext);
10295 } else {
10296 PRINT_SPACE
10297 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10298 }
10299
10300 print_VkPipelineDepthStencilStateCreateFlags(obj.flags, "flags", 1);
10301
10302 print_VkBool32(obj.depthTestEnable, "depthTestEnable", 1);
10303
10304 print_VkBool32(obj.depthWriteEnable, "depthWriteEnable", 1);
10305
10306 print_VkCompareOp(obj.depthCompareOp, "depthCompareOp", 1);
10307
10308 print_VkBool32(obj.depthBoundsTestEnable, "depthBoundsTestEnable", 1);
10309
10310 print_VkBool32(obj.stencilTestEnable, "stencilTestEnable", 1);
10311
10312 PRINT_SPACE
10313 _OUT << "\"front\": " << std::endl;
10314 {
10315 print_VkStencilOpState(obj.front, "front", 1);
10316 }
10317
10318 PRINT_SPACE
10319 _OUT << "\"back\": " << std::endl;
10320 {
10321 print_VkStencilOpState(obj.back, "back", 1);
10322 }
10323
10324 print_float(obj.minDepthBounds, "minDepthBounds", 1);
10325
10326 print_float(obj.maxDepthBounds, "maxDepthBounds", 0);
10327
10328 INDENT(-4);
10329 PRINT_SPACE
10330 if (commaNeeded)
10331 _OUT << "}," << std::endl;
10332 else
10333 _OUT << "}" << std::endl;
10334 }
print_VkPipelineDepthStencilStateCreateInfo(const VkPipelineDepthStencilStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)10335 static void print_VkPipelineDepthStencilStateCreateInfo(const VkPipelineDepthStencilStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
10336 PRINT_SPACE
10337 _OUT << "{" << std::endl;
10338 INDENT(4);
10339
10340 print_VkStructureType(obj->sType, "sType", 1);
10341
10342 if (obj->pNext) {
10343 dumpPNextChain(obj->pNext);
10344 } else {
10345 PRINT_SPACE
10346 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10347 }
10348
10349 print_VkPipelineDepthStencilStateCreateFlags(obj->flags, "flags", 1);
10350
10351 print_VkBool32(obj->depthTestEnable, "depthTestEnable", 1);
10352
10353 print_VkBool32(obj->depthWriteEnable, "depthWriteEnable", 1);
10354
10355 print_VkCompareOp(obj->depthCompareOp, "depthCompareOp", 1);
10356
10357 print_VkBool32(obj->depthBoundsTestEnable, "depthBoundsTestEnable", 1);
10358
10359 print_VkBool32(obj->stencilTestEnable, "stencilTestEnable", 1);
10360
10361 PRINT_SPACE
10362 _OUT << "\"front\": " << std::endl;
10363 {
10364 print_VkStencilOpState(obj->front, "front", 1);
10365 }
10366
10367 PRINT_SPACE
10368 _OUT << "\"back\": " << std::endl;
10369 {
10370 print_VkStencilOpState(obj->back, "back", 1);
10371 }
10372
10373 print_float(obj->minDepthBounds, "minDepthBounds", 1);
10374
10375 print_float(obj->maxDepthBounds, "maxDepthBounds", 0);
10376
10377 INDENT(-4);
10378 PRINT_SPACE
10379 if (commaNeeded)
10380 _OUT << "}," << std::endl;
10381 else
10382 _OUT << "}" << std::endl;
10383 }
10384
print_VkPipelineColorBlendAttachmentState(VkPipelineColorBlendAttachmentState obj,const std::string & s,bool commaNeeded=true)10385 static void print_VkPipelineColorBlendAttachmentState(VkPipelineColorBlendAttachmentState obj, const std::string& s, bool commaNeeded=true) {
10386 PRINT_SPACE
10387 _OUT << "{" << std::endl;
10388 INDENT(4);
10389
10390 print_VkBool32(obj.blendEnable, "blendEnable", 1);
10391
10392 print_VkBlendFactor(obj.srcColorBlendFactor, "srcColorBlendFactor", 1);
10393
10394 print_VkBlendFactor(obj.dstColorBlendFactor, "dstColorBlendFactor", 1);
10395
10396 print_VkBlendOp(obj.colorBlendOp, "colorBlendOp", 1);
10397
10398 print_VkBlendFactor(obj.srcAlphaBlendFactor, "srcAlphaBlendFactor", 1);
10399
10400 print_VkBlendFactor(obj.dstAlphaBlendFactor, "dstAlphaBlendFactor", 1);
10401
10402 print_VkBlendOp(obj.alphaBlendOp, "alphaBlendOp", 1);
10403
10404 print_VkColorComponentFlags(obj.colorWriteMask, "colorWriteMask", 0);
10405
10406 INDENT(-4);
10407 PRINT_SPACE
10408 if (commaNeeded)
10409 _OUT << "}," << std::endl;
10410 else
10411 _OUT << "}" << std::endl;
10412 }
print_VkPipelineColorBlendAttachmentState(const VkPipelineColorBlendAttachmentState * obj,const std::string & s,bool commaNeeded=true)10413 static void print_VkPipelineColorBlendAttachmentState(const VkPipelineColorBlendAttachmentState * obj, const std::string& s, bool commaNeeded=true) {
10414 PRINT_SPACE
10415 _OUT << "{" << std::endl;
10416 INDENT(4);
10417
10418 print_VkBool32(obj->blendEnable, "blendEnable", 1);
10419
10420 print_VkBlendFactor(obj->srcColorBlendFactor, "srcColorBlendFactor", 1);
10421
10422 print_VkBlendFactor(obj->dstColorBlendFactor, "dstColorBlendFactor", 1);
10423
10424 print_VkBlendOp(obj->colorBlendOp, "colorBlendOp", 1);
10425
10426 print_VkBlendFactor(obj->srcAlphaBlendFactor, "srcAlphaBlendFactor", 1);
10427
10428 print_VkBlendFactor(obj->dstAlphaBlendFactor, "dstAlphaBlendFactor", 1);
10429
10430 print_VkBlendOp(obj->alphaBlendOp, "alphaBlendOp", 1);
10431
10432 print_VkColorComponentFlags(obj->colorWriteMask, "colorWriteMask", 0);
10433
10434 INDENT(-4);
10435 PRINT_SPACE
10436 if (commaNeeded)
10437 _OUT << "}," << std::endl;
10438 else
10439 _OUT << "}" << std::endl;
10440 }
10441
print_VkPipelineColorBlendStateCreateInfo(VkPipelineColorBlendStateCreateInfo obj,const std::string & s,bool commaNeeded=true)10442 static void print_VkPipelineColorBlendStateCreateInfo(VkPipelineColorBlendStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10443 PRINT_SPACE
10444 _OUT << "{" << std::endl;
10445 INDENT(4);
10446
10447 print_VkStructureType(obj.sType, "sType", 1);
10448
10449 if (obj.pNext) {
10450 dumpPNextChain(obj.pNext);
10451 } else {
10452 PRINT_SPACE
10453 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10454 }
10455
10456 print_VkPipelineColorBlendStateCreateFlags(obj.flags, "flags", 1);
10457
10458 print_VkBool32(obj.logicOpEnable, "logicOpEnable", 1);
10459
10460 print_VkLogicOp(obj.logicOp, "logicOp", 1);
10461
10462 print_uint32_t(obj.attachmentCount, "attachmentCount", 1);
10463
10464 PRINT_SPACE
10465 _OUT << "\"pAttachments\": " << std::endl;
10466 if (obj.pAttachments) {
10467 PRINT_SPACE
10468 _OUT << "[" << std::endl;
10469 for (unsigned int i = 0; i < obj.attachmentCount; i++) {
10470 if (i+1 == obj.attachmentCount)
10471 print_VkPipelineColorBlendAttachmentState(obj.pAttachments[i], "pAttachments", 0);
10472 else
10473 print_VkPipelineColorBlendAttachmentState(obj.pAttachments[i], "pAttachments", 1);
10474 }
10475 PRINT_SPACE
10476 _OUT << "]," << std::endl;
10477 }
10478 else
10479 {
10480 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10481 }
10482
10483 PRINT_SPACE
10484 _OUT << "\"blendConstants\":" << std::endl;
10485 PRINT_SPACE
10486 _OUT << "[" << std::endl;
10487 for (unsigned int i = 0; i < 4; i++) {
10488 bool isCommaNeeded = (i+1) != 4;
10489 print_float(obj.blendConstants[i], "", isCommaNeeded);
10490 }
10491 PRINT_SPACE
10492 _OUT << "]" << "" << std::endl;
10493
10494 INDENT(-4);
10495 PRINT_SPACE
10496 if (commaNeeded)
10497 _OUT << "}," << std::endl;
10498 else
10499 _OUT << "}" << std::endl;
10500 }
print_VkPipelineColorBlendStateCreateInfo(const VkPipelineColorBlendStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)10501 static void print_VkPipelineColorBlendStateCreateInfo(const VkPipelineColorBlendStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
10502 PRINT_SPACE
10503 _OUT << "{" << std::endl;
10504 INDENT(4);
10505
10506 print_VkStructureType(obj->sType, "sType", 1);
10507
10508 if (obj->pNext) {
10509 dumpPNextChain(obj->pNext);
10510 } else {
10511 PRINT_SPACE
10512 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10513 }
10514
10515 print_VkPipelineColorBlendStateCreateFlags(obj->flags, "flags", 1);
10516
10517 print_VkBool32(obj->logicOpEnable, "logicOpEnable", 1);
10518
10519 print_VkLogicOp(obj->logicOp, "logicOp", 1);
10520
10521 print_uint32_t(obj->attachmentCount, "attachmentCount", 1);
10522
10523 PRINT_SPACE
10524 _OUT << "\"pAttachments\": " << std::endl;
10525 if (obj->pAttachments) {
10526 PRINT_SPACE
10527 _OUT << "[" << std::endl;
10528 for (unsigned int i = 0; i < obj->attachmentCount; i++) {
10529 if (i+1 == obj->attachmentCount)
10530 print_VkPipelineColorBlendAttachmentState(obj->pAttachments[i], "pAttachments", 0);
10531 else
10532 print_VkPipelineColorBlendAttachmentState(obj->pAttachments[i], "pAttachments", 1);
10533 }
10534 PRINT_SPACE
10535 _OUT << "]," << std::endl;
10536 }
10537 else
10538 {
10539 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10540 }
10541
10542 PRINT_SPACE
10543 _OUT << "\"blendConstants\":" << std::endl;
10544 PRINT_SPACE
10545 _OUT << "[" << std::endl;
10546 for (unsigned int i = 0; i < 4; i++) {
10547 bool isCommaNeeded = (i+1) != 4;
10548 print_float(obj->blendConstants[i], "", isCommaNeeded);
10549 }
10550 PRINT_SPACE
10551 _OUT << "]" << "" << std::endl;
10552
10553 INDENT(-4);
10554 PRINT_SPACE
10555 if (commaNeeded)
10556 _OUT << "}," << std::endl;
10557 else
10558 _OUT << "}" << std::endl;
10559 }
10560
print_VkPipelineDynamicStateCreateInfo(VkPipelineDynamicStateCreateInfo obj,const std::string & s,bool commaNeeded=true)10561 static void print_VkPipelineDynamicStateCreateInfo(VkPipelineDynamicStateCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10562 PRINT_SPACE
10563 _OUT << "{" << std::endl;
10564 INDENT(4);
10565
10566 print_VkStructureType(obj.sType, "sType", 1);
10567
10568 if (obj.pNext) {
10569 dumpPNextChain(obj.pNext);
10570 } else {
10571 PRINT_SPACE
10572 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10573 }
10574
10575 print_VkPipelineDynamicStateCreateFlags(obj.flags, "flags", 1);
10576
10577 print_uint32_t(obj.dynamicStateCount, "dynamicStateCount", 1);
10578
10579 PRINT_SPACE
10580 _OUT << "\"pDynamicStates\":" << std::endl;
10581 PRINT_SPACE
10582 if (obj.pDynamicStates) {
10583 _OUT << "[" << std::endl;
10584 for (unsigned int i = 0; i < obj.dynamicStateCount; i++) {
10585 bool isCommaNeeded = (i+1) != obj.dynamicStateCount;
10586 print_VkDynamicState(obj.pDynamicStates[i], "", isCommaNeeded);
10587 }
10588 PRINT_SPACE
10589 _OUT << "]" << "" << std::endl;
10590 } else {
10591 _OUT << "\"NULL\"" << "" << std::endl;
10592 }
10593
10594 INDENT(-4);
10595 PRINT_SPACE
10596 if (commaNeeded)
10597 _OUT << "}," << std::endl;
10598 else
10599 _OUT << "}" << std::endl;
10600 }
print_VkPipelineDynamicStateCreateInfo(const VkPipelineDynamicStateCreateInfo * obj,const std::string & s,bool commaNeeded=true)10601 static void print_VkPipelineDynamicStateCreateInfo(const VkPipelineDynamicStateCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
10602 PRINT_SPACE
10603 _OUT << "{" << std::endl;
10604 INDENT(4);
10605
10606 print_VkStructureType(obj->sType, "sType", 1);
10607
10608 if (obj->pNext) {
10609 dumpPNextChain(obj->pNext);
10610 } else {
10611 PRINT_SPACE
10612 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10613 }
10614
10615 print_VkPipelineDynamicStateCreateFlags(obj->flags, "flags", 1);
10616
10617 print_uint32_t(obj->dynamicStateCount, "dynamicStateCount", 1);
10618
10619 PRINT_SPACE
10620 _OUT << "\"pDynamicStates\":" << std::endl;
10621 PRINT_SPACE
10622 if (obj->pDynamicStates) {
10623 _OUT << "[" << std::endl;
10624 for (unsigned int i = 0; i < obj->dynamicStateCount; i++) {
10625 bool isCommaNeeded = (i+1) != obj->dynamicStateCount;
10626 print_VkDynamicState(obj->pDynamicStates[i], "", isCommaNeeded);
10627 }
10628 PRINT_SPACE
10629 _OUT << "]" << "" << std::endl;
10630 } else {
10631 _OUT << "\"NULL\"" << "" << std::endl;
10632 }
10633
10634 INDENT(-4);
10635 PRINT_SPACE
10636 if (commaNeeded)
10637 _OUT << "}," << std::endl;
10638 else
10639 _OUT << "}" << std::endl;
10640 }
10641
print_VkGraphicsPipelineCreateInfo(VkGraphicsPipelineCreateInfo obj,const std::string & s,bool commaNeeded=true)10642 static void print_VkGraphicsPipelineCreateInfo(VkGraphicsPipelineCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10643 PRINT_SPACE
10644 _OUT << "{" << std::endl;
10645 INDENT(4);
10646
10647 print_VkStructureType(obj.sType, "sType", 1);
10648
10649 if (obj.pNext) {
10650 dumpPNextChain(obj.pNext);
10651 } else {
10652 PRINT_SPACE
10653 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10654 }
10655
10656 print_VkPipelineCreateFlags(obj.flags, "flags", 1);
10657
10658 print_uint32_t(obj.stageCount, "stageCount", 1);
10659
10660 PRINT_SPACE
10661 _OUT << "\"pStages\": " << std::endl;
10662 if (obj.pStages) {
10663 PRINT_SPACE
10664 _OUT << "[" << std::endl;
10665 for (unsigned int i = 0; i < obj.stageCount; i++) {
10666 if (i+1 == obj.stageCount)
10667 print_VkPipelineShaderStageCreateInfo(obj.pStages[i], "pStages", 0);
10668 else
10669 print_VkPipelineShaderStageCreateInfo(obj.pStages[i], "pStages", 1);
10670 }
10671 PRINT_SPACE
10672 _OUT << "]," << std::endl;
10673 }
10674 else
10675 {
10676 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10677 }
10678
10679 PRINT_SPACE
10680 _OUT << "\"pVertexInputState\": " << std::endl;
10681 if (obj.pVertexInputState) {
10682 print_VkPipelineVertexInputStateCreateInfo(obj.pVertexInputState, "pVertexInputState", 1);
10683 }
10684 else
10685 {
10686 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10687 }
10688
10689 PRINT_SPACE
10690 _OUT << "\"pInputAssemblyState\": " << std::endl;
10691 if (obj.pInputAssemblyState) {
10692 print_VkPipelineInputAssemblyStateCreateInfo(obj.pInputAssemblyState, "pInputAssemblyState", 1);
10693 }
10694 else
10695 {
10696 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10697 }
10698
10699 PRINT_SPACE
10700 _OUT << "\"pTessellationState\": " << std::endl;
10701 if (obj.pTessellationState) {
10702 print_VkPipelineTessellationStateCreateInfo(obj.pTessellationState, "pTessellationState", 1);
10703 }
10704 else
10705 {
10706 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10707 }
10708
10709 PRINT_SPACE
10710 _OUT << "\"pViewportState\": " << std::endl;
10711 if (obj.pViewportState) {
10712 print_VkPipelineViewportStateCreateInfo(obj.pViewportState, "pViewportState", 1);
10713 }
10714 else
10715 {
10716 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10717 }
10718
10719 PRINT_SPACE
10720 _OUT << "\"pRasterizationState\": " << std::endl;
10721 if (obj.pRasterizationState) {
10722 print_VkPipelineRasterizationStateCreateInfo(obj.pRasterizationState, "pRasterizationState", 1);
10723 }
10724 else
10725 {
10726 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10727 }
10728
10729 PRINT_SPACE
10730 _OUT << "\"pMultisampleState\": " << std::endl;
10731 if (obj.pMultisampleState) {
10732 print_VkPipelineMultisampleStateCreateInfo(obj.pMultisampleState, "pMultisampleState", 1);
10733 }
10734 else
10735 {
10736 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10737 }
10738
10739 PRINT_SPACE
10740 _OUT << "\"pDepthStencilState\": " << std::endl;
10741 if (obj.pDepthStencilState) {
10742 print_VkPipelineDepthStencilStateCreateInfo(obj.pDepthStencilState, "pDepthStencilState", 1);
10743 }
10744 else
10745 {
10746 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10747 }
10748
10749 PRINT_SPACE
10750 _OUT << "\"pColorBlendState\": " << std::endl;
10751 if (obj.pColorBlendState) {
10752 print_VkPipelineColorBlendStateCreateInfo(obj.pColorBlendState, "pColorBlendState", 1);
10753 }
10754 else
10755 {
10756 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10757 }
10758
10759 PRINT_SPACE
10760 _OUT << "\"pDynamicState\": " << std::endl;
10761 if (obj.pDynamicState) {
10762 print_VkPipelineDynamicStateCreateInfo(obj.pDynamicState, "pDynamicState", 1);
10763 }
10764 else
10765 {
10766 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10767 }
10768
10769 // CTS : required value
10770 PRINT_SPACE _OUT << "\"" << "layout" << "\"" << " : " << obj.layout.getInternal() << "," << std::endl;
10771
10772 // CTS : required value
10773 PRINT_SPACE _OUT << "\"" << "renderPass" << "\"" << " : " << obj.renderPass.getInternal() << "," << std::endl;
10774
10775 print_uint32_t(obj.subpass, "subpass", 1);
10776
10777 // CTS : required value
10778 PRINT_SPACE _OUT << "\"" << "basePipelineHandle" << "\"" << " : " << "\"" << "\"," << std::endl;
10779
10780 print_int32_t(obj.basePipelineIndex, "basePipelineIndex", 0);
10781
10782 INDENT(-4);
10783 PRINT_SPACE
10784 if (commaNeeded)
10785 _OUT << "}," << std::endl;
10786 else
10787 _OUT << "}" << std::endl;
10788 }
print_VkGraphicsPipelineCreateInfo(const VkGraphicsPipelineCreateInfo * obj,const std::string & s,bool commaNeeded=true)10789 static void print_VkGraphicsPipelineCreateInfo(const VkGraphicsPipelineCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
10790 PRINT_SPACE
10791 _OUT << "{" << std::endl;
10792 INDENT(4);
10793
10794 print_VkStructureType(obj->sType, "sType", 1);
10795
10796 if (obj->pNext) {
10797 dumpPNextChain(obj->pNext);
10798 } else {
10799 PRINT_SPACE
10800 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10801 }
10802
10803 print_VkPipelineCreateFlags(obj->flags, "flags", 1);
10804
10805 print_uint32_t(obj->stageCount, "stageCount", 1);
10806
10807 PRINT_SPACE
10808 _OUT << "\"pStages\": " << std::endl;
10809 if (obj->pStages) {
10810 PRINT_SPACE
10811 _OUT << "[" << std::endl;
10812 for (unsigned int i = 0; i < obj->stageCount; i++) {
10813 if (i+1 == obj->stageCount)
10814 print_VkPipelineShaderStageCreateInfo(obj->pStages[i], "pStages", 0);
10815 else
10816 print_VkPipelineShaderStageCreateInfo(obj->pStages[i], "pStages", 1);
10817 }
10818 PRINT_SPACE
10819 _OUT << "]," << std::endl;
10820 }
10821 else
10822 {
10823 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10824 }
10825
10826 PRINT_SPACE
10827 _OUT << "\"pVertexInputState\": " << std::endl;
10828 if (obj->pVertexInputState) {
10829 print_VkPipelineVertexInputStateCreateInfo(obj->pVertexInputState, "pVertexInputState", 1);
10830 }
10831 else
10832 {
10833 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10834 }
10835
10836 PRINT_SPACE
10837 _OUT << "\"pInputAssemblyState\": " << std::endl;
10838 if (obj->pInputAssemblyState) {
10839 print_VkPipelineInputAssemblyStateCreateInfo(obj->pInputAssemblyState, "pInputAssemblyState", 1);
10840 }
10841 else
10842 {
10843 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10844 }
10845
10846 PRINT_SPACE
10847 _OUT << "\"pTessellationState\": " << std::endl;
10848 if (obj->pTessellationState) {
10849 print_VkPipelineTessellationStateCreateInfo(obj->pTessellationState, "pTessellationState", 1);
10850 }
10851 else
10852 {
10853 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10854 }
10855
10856 PRINT_SPACE
10857 _OUT << "\"pViewportState\": " << std::endl;
10858 if (obj->pViewportState) {
10859 print_VkPipelineViewportStateCreateInfo(obj->pViewportState, "pViewportState", 1);
10860 }
10861 else
10862 {
10863 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10864 }
10865
10866 PRINT_SPACE
10867 _OUT << "\"pRasterizationState\": " << std::endl;
10868 if (obj->pRasterizationState) {
10869 print_VkPipelineRasterizationStateCreateInfo(obj->pRasterizationState, "pRasterizationState", 1);
10870 }
10871 else
10872 {
10873 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10874 }
10875
10876 PRINT_SPACE
10877 _OUT << "\"pMultisampleState\": " << std::endl;
10878 if (obj->pMultisampleState) {
10879 print_VkPipelineMultisampleStateCreateInfo(obj->pMultisampleState, "pMultisampleState", 1);
10880 }
10881 else
10882 {
10883 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10884 }
10885
10886 PRINT_SPACE
10887 _OUT << "\"pDepthStencilState\": " << std::endl;
10888 if (obj->pDepthStencilState) {
10889 print_VkPipelineDepthStencilStateCreateInfo(obj->pDepthStencilState, "pDepthStencilState", 1);
10890 }
10891 else
10892 {
10893 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10894 }
10895
10896 PRINT_SPACE
10897 _OUT << "\"pColorBlendState\": " << std::endl;
10898 if (obj->pColorBlendState) {
10899 print_VkPipelineColorBlendStateCreateInfo(obj->pColorBlendState, "pColorBlendState", 1);
10900 }
10901 else
10902 {
10903 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10904 }
10905
10906 PRINT_SPACE
10907 _OUT << "\"pDynamicState\": " << std::endl;
10908 if (obj->pDynamicState) {
10909 print_VkPipelineDynamicStateCreateInfo(obj->pDynamicState, "pDynamicState", 1);
10910 }
10911 else
10912 {
10913 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
10914 }
10915
10916 // CTS : required value
10917 PRINT_SPACE _OUT << "\"" << "layout" << "\"" << " : " << obj->layout.getInternal() << "," << std::endl;
10918
10919 // CTS : required value
10920 PRINT_SPACE _OUT << "\"" << "renderPass" << "\"" << " : " << obj->renderPass.getInternal() << "," << std::endl;
10921
10922 print_uint32_t(obj->subpass, "subpass", 1);
10923
10924 // CTS : required value
10925 PRINT_SPACE _OUT << "\"" << "basePipelineHandle" << "\"" << " : " << "\"" << "\"," << std::endl;
10926
10927 print_int32_t(obj->basePipelineIndex, "basePipelineIndex", 0);
10928
10929 INDENT(-4);
10930 PRINT_SPACE
10931 if (commaNeeded)
10932 _OUT << "}," << std::endl;
10933 else
10934 _OUT << "}" << std::endl;
10935 }
10936
print_VkPushConstantRange(VkPushConstantRange obj,const std::string & s,bool commaNeeded=true)10937 static void print_VkPushConstantRange(VkPushConstantRange obj, const std::string& s, bool commaNeeded=true) {
10938 PRINT_SPACE
10939 _OUT << "{" << std::endl;
10940 INDENT(4);
10941
10942 print_VkShaderStageFlags(obj.stageFlags, "stageFlags", 1);
10943
10944 print_uint32_t(obj.offset, "offset", 1);
10945
10946 print_uint32_t(obj.size, "size", 0);
10947
10948 INDENT(-4);
10949 PRINT_SPACE
10950 if (commaNeeded)
10951 _OUT << "}," << std::endl;
10952 else
10953 _OUT << "}" << std::endl;
10954 }
print_VkPushConstantRange(const VkPushConstantRange * obj,const std::string & s,bool commaNeeded=true)10955 static void print_VkPushConstantRange(const VkPushConstantRange * obj, const std::string& s, bool commaNeeded=true) {
10956 PRINT_SPACE
10957 _OUT << "{" << std::endl;
10958 INDENT(4);
10959
10960 print_VkShaderStageFlags(obj->stageFlags, "stageFlags", 1);
10961
10962 print_uint32_t(obj->offset, "offset", 1);
10963
10964 print_uint32_t(obj->size, "size", 0);
10965
10966 INDENT(-4);
10967 PRINT_SPACE
10968 if (commaNeeded)
10969 _OUT << "}," << std::endl;
10970 else
10971 _OUT << "}" << std::endl;
10972 }
10973
print_VkPipelineLayoutCreateInfo(VkPipelineLayoutCreateInfo obj,const std::string & s,bool commaNeeded=true)10974 static void print_VkPipelineLayoutCreateInfo(VkPipelineLayoutCreateInfo obj, const std::string& s, bool commaNeeded=true) {
10975 PRINT_SPACE
10976 _OUT << "{" << std::endl;
10977 INDENT(4);
10978
10979 print_VkStructureType(obj.sType, "sType", 1);
10980
10981 if (obj.pNext) {
10982 dumpPNextChain(obj.pNext);
10983 } else {
10984 PRINT_SPACE
10985 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
10986 }
10987
10988 print_VkPipelineLayoutCreateFlags(obj.flags, "flags", 1);
10989
10990 print_uint32_t(obj.setLayoutCount, "setLayoutCount", 1);
10991
10992 PRINT_SPACE
10993 _OUT << "\"pSetLayouts\":" << std::endl;
10994 PRINT_SPACE
10995 if (obj.pSetLayouts) {
10996 _OUT << "[" << std::endl;
10997 for (unsigned int i = 0; i < obj.setLayoutCount; i++) {
10998 bool isCommaNeeded = (i+1) != obj.setLayoutCount;
10999 if (isCommaNeeded)
11000 {
11001 PRINT_SPACE
11002 _OUT << obj.pSetLayouts[i].getInternal() << "," << std::endl;
11003 }
11004 else
11005 {
11006 PRINT_SPACE
11007 _OUT << obj.pSetLayouts[i].getInternal() << std::endl;
11008 }
11009 }
11010 PRINT_SPACE
11011 _OUT << "]" << "," << std::endl;
11012 } else {
11013 _OUT << "\"NULL\"" << "," << std::endl;
11014 }
11015
11016 print_uint32_t(obj.pushConstantRangeCount, "pushConstantRangeCount", 1);
11017
11018 PRINT_SPACE
11019 _OUT << "\"pPushConstantRanges\": " << std::endl;
11020 if (obj.pPushConstantRanges) {
11021 PRINT_SPACE
11022 _OUT << "[" << std::endl;
11023 for (unsigned int i = 0; i < obj.pushConstantRangeCount; i++) {
11024 if (i+1 == obj.pushConstantRangeCount)
11025 print_VkPushConstantRange(obj.pPushConstantRanges[i], "pPushConstantRanges", 0);
11026 else
11027 print_VkPushConstantRange(obj.pPushConstantRanges[i], "pPushConstantRanges", 1);
11028 }
11029 PRINT_SPACE
11030 _OUT << "]" << std::endl;
11031 }
11032 else
11033 {
11034 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
11035 }
11036
11037 INDENT(-4);
11038 PRINT_SPACE
11039 if (commaNeeded)
11040 _OUT << "}," << std::endl;
11041 else
11042 _OUT << "}" << std::endl;
11043 }
print_VkPipelineLayoutCreateInfo(const VkPipelineLayoutCreateInfo * obj,const std::string & s,bool commaNeeded=true)11044 static void print_VkPipelineLayoutCreateInfo(const VkPipelineLayoutCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
11045 PRINT_SPACE
11046 _OUT << "{" << std::endl;
11047 INDENT(4);
11048
11049 print_VkStructureType(obj->sType, "sType", 1);
11050
11051 if (obj->pNext) {
11052 dumpPNextChain(obj->pNext);
11053 } else {
11054 PRINT_SPACE
11055 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11056 }
11057
11058 print_VkPipelineLayoutCreateFlags(obj->flags, "flags", 1);
11059
11060 print_uint32_t(obj->setLayoutCount, "setLayoutCount", 1);
11061
11062 PRINT_SPACE
11063 _OUT << "\"pSetLayouts\":" << std::endl;
11064 PRINT_SPACE
11065 if (obj->pSetLayouts) {
11066 _OUT << "[" << std::endl;
11067 for (unsigned int i = 0; i < obj->setLayoutCount; i++) {
11068 bool isCommaNeeded = (i+1) != obj->setLayoutCount;
11069 if (isCommaNeeded)
11070 {
11071 PRINT_SPACE
11072 _OUT << obj->pSetLayouts[i].getInternal() << "," << std::endl;
11073 }
11074 else
11075 {
11076 PRINT_SPACE
11077 _OUT << obj->pSetLayouts[i].getInternal() << std::endl;
11078 }
11079 }
11080 PRINT_SPACE
11081 _OUT << "]" << "," << std::endl;
11082 } else {
11083 _OUT << "\"NULL\"" << "," << std::endl;
11084 }
11085
11086 print_uint32_t(obj->pushConstantRangeCount, "pushConstantRangeCount", 1);
11087
11088 PRINT_SPACE
11089 _OUT << "\"pPushConstantRanges\": " << std::endl;
11090 if (obj->pPushConstantRanges) {
11091 PRINT_SPACE
11092 _OUT << "[" << std::endl;
11093 for (unsigned int i = 0; i < obj->pushConstantRangeCount; i++) {
11094 if (i+1 == obj->pushConstantRangeCount)
11095 print_VkPushConstantRange(obj->pPushConstantRanges[i], "pPushConstantRanges", 0);
11096 else
11097 print_VkPushConstantRange(obj->pPushConstantRanges[i], "pPushConstantRanges", 1);
11098 }
11099 PRINT_SPACE
11100 _OUT << "]" << std::endl;
11101 }
11102 else
11103 {
11104 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
11105 }
11106
11107 INDENT(-4);
11108 PRINT_SPACE
11109 if (commaNeeded)
11110 _OUT << "}," << std::endl;
11111 else
11112 _OUT << "}" << std::endl;
11113 }
11114
print_VkSamplerCreateInfo(VkSamplerCreateInfo obj,const std::string & s,bool commaNeeded=true)11115 static void print_VkSamplerCreateInfo(VkSamplerCreateInfo obj, const std::string& s, bool commaNeeded=true) {
11116 PRINT_SPACE
11117 _OUT << "{" << std::endl;
11118 INDENT(4);
11119
11120 print_VkStructureType(obj.sType, "sType", 1);
11121
11122 if (obj.pNext) {
11123 dumpPNextChain(obj.pNext);
11124 } else {
11125 PRINT_SPACE
11126 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11127 }
11128
11129 print_VkSamplerCreateFlags(obj.flags, "flags", 1);
11130
11131 print_VkFilter(obj.magFilter, "magFilter", 1);
11132
11133 print_VkFilter(obj.minFilter, "minFilter", 1);
11134
11135 print_VkSamplerMipmapMode(obj.mipmapMode, "mipmapMode", 1);
11136
11137 print_VkSamplerAddressMode(obj.addressModeU, "addressModeU", 1);
11138
11139 print_VkSamplerAddressMode(obj.addressModeV, "addressModeV", 1);
11140
11141 print_VkSamplerAddressMode(obj.addressModeW, "addressModeW", 1);
11142
11143 print_float(obj.mipLodBias, "mipLodBias", 1);
11144
11145 print_VkBool32(obj.anisotropyEnable, "anisotropyEnable", 1);
11146
11147 print_float(obj.maxAnisotropy, "maxAnisotropy", 1);
11148
11149 print_VkBool32(obj.compareEnable, "compareEnable", 1);
11150
11151 print_VkCompareOp(obj.compareOp, "compareOp", 1);
11152
11153 print_float(obj.minLod, "minLod", 1);
11154
11155 print_float(obj.maxLod, "maxLod", 1);
11156
11157 print_VkBorderColor(obj.borderColor, "borderColor", 1);
11158
11159 print_VkBool32(obj.unnormalizedCoordinates, "unnormalizedCoordinates", 0);
11160
11161 INDENT(-4);
11162 PRINT_SPACE
11163 if (commaNeeded)
11164 _OUT << "}," << std::endl;
11165 else
11166 _OUT << "}" << std::endl;
11167 }
print_VkSamplerCreateInfo(const VkSamplerCreateInfo * obj,const std::string & s,bool commaNeeded=true)11168 static void print_VkSamplerCreateInfo(const VkSamplerCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
11169 PRINT_SPACE
11170 _OUT << "{" << std::endl;
11171 INDENT(4);
11172
11173 print_VkStructureType(obj->sType, "sType", 1);
11174
11175 if (obj->pNext) {
11176 dumpPNextChain(obj->pNext);
11177 } else {
11178 PRINT_SPACE
11179 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11180 }
11181
11182 print_VkSamplerCreateFlags(obj->flags, "flags", 1);
11183
11184 print_VkFilter(obj->magFilter, "magFilter", 1);
11185
11186 print_VkFilter(obj->minFilter, "minFilter", 1);
11187
11188 print_VkSamplerMipmapMode(obj->mipmapMode, "mipmapMode", 1);
11189
11190 print_VkSamplerAddressMode(obj->addressModeU, "addressModeU", 1);
11191
11192 print_VkSamplerAddressMode(obj->addressModeV, "addressModeV", 1);
11193
11194 print_VkSamplerAddressMode(obj->addressModeW, "addressModeW", 1);
11195
11196 print_float(obj->mipLodBias, "mipLodBias", 1);
11197
11198 print_VkBool32(obj->anisotropyEnable, "anisotropyEnable", 1);
11199
11200 print_float(obj->maxAnisotropy, "maxAnisotropy", 1);
11201
11202 print_VkBool32(obj->compareEnable, "compareEnable", 1);
11203
11204 print_VkCompareOp(obj->compareOp, "compareOp", 1);
11205
11206 print_float(obj->minLod, "minLod", 1);
11207
11208 print_float(obj->maxLod, "maxLod", 1);
11209
11210 print_VkBorderColor(obj->borderColor, "borderColor", 1);
11211
11212 print_VkBool32(obj->unnormalizedCoordinates, "unnormalizedCoordinates", 0);
11213
11214 INDENT(-4);
11215 PRINT_SPACE
11216 if (commaNeeded)
11217 _OUT << "}," << std::endl;
11218 else
11219 _OUT << "}" << std::endl;
11220 }
11221
print_VkCopyDescriptorSet(VkCopyDescriptorSet obj,const std::string & s,bool commaNeeded=true)11222 static void print_VkCopyDescriptorSet(VkCopyDescriptorSet obj, const std::string& s, bool commaNeeded=true) {
11223 PRINT_SPACE
11224 _OUT << "{" << std::endl;
11225 INDENT(4);
11226
11227 print_VkStructureType(obj.sType, "sType", 1);
11228
11229 if (obj.pNext) {
11230 dumpPNextChain(obj.pNext);
11231 } else {
11232 PRINT_SPACE
11233 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11234 }
11235
11236 // CTS : required value
11237 PRINT_SPACE _OUT << "\"" << "srcSet" << "\"" << " : " << "\"" << "\"," << std::endl;
11238
11239 print_uint32_t(obj.srcBinding, "srcBinding", 1);
11240
11241 print_uint32_t(obj.srcArrayElement, "srcArrayElement", 1);
11242
11243 // CTS : required value
11244 PRINT_SPACE _OUT << "\"" << "dstSet" << "\"" << " : " << "\"" << "\"," << std::endl;
11245
11246 print_uint32_t(obj.dstBinding, "dstBinding", 1);
11247
11248 print_uint32_t(obj.dstArrayElement, "dstArrayElement", 1);
11249
11250 print_uint32_t(obj.descriptorCount, "descriptorCount", 0);
11251
11252 INDENT(-4);
11253 PRINT_SPACE
11254 if (commaNeeded)
11255 _OUT << "}," << std::endl;
11256 else
11257 _OUT << "}" << std::endl;
11258 }
print_VkCopyDescriptorSet(const VkCopyDescriptorSet * obj,const std::string & s,bool commaNeeded=true)11259 static void print_VkCopyDescriptorSet(const VkCopyDescriptorSet * obj, const std::string& s, bool commaNeeded=true) {
11260 PRINT_SPACE
11261 _OUT << "{" << std::endl;
11262 INDENT(4);
11263
11264 print_VkStructureType(obj->sType, "sType", 1);
11265
11266 if (obj->pNext) {
11267 dumpPNextChain(obj->pNext);
11268 } else {
11269 PRINT_SPACE
11270 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11271 }
11272
11273 // CTS : required value
11274 PRINT_SPACE _OUT << "\"" << "srcSet" << "\"" << " : " << "\"" << "\"," << std::endl;
11275
11276 print_uint32_t(obj->srcBinding, "srcBinding", 1);
11277
11278 print_uint32_t(obj->srcArrayElement, "srcArrayElement", 1);
11279
11280 // CTS : required value
11281 PRINT_SPACE _OUT << "\"" << "dstSet" << "\"" << " : " << "\"" << "\"," << std::endl;
11282
11283 print_uint32_t(obj->dstBinding, "dstBinding", 1);
11284
11285 print_uint32_t(obj->dstArrayElement, "dstArrayElement", 1);
11286
11287 print_uint32_t(obj->descriptorCount, "descriptorCount", 0);
11288
11289 INDENT(-4);
11290 PRINT_SPACE
11291 if (commaNeeded)
11292 _OUT << "}," << std::endl;
11293 else
11294 _OUT << "}" << std::endl;
11295 }
11296
print_VkDescriptorBufferInfo(VkDescriptorBufferInfo obj,const std::string & s,bool commaNeeded=true)11297 static void print_VkDescriptorBufferInfo(VkDescriptorBufferInfo obj, const std::string& s, bool commaNeeded=true) {
11298 PRINT_SPACE
11299 _OUT << "{" << std::endl;
11300 INDENT(4);
11301
11302 // CTS : required value
11303 PRINT_SPACE _OUT << "\"" << "buffer" << "\"" << " : " << "\"" << "\"," << std::endl;
11304
11305 print_VkDeviceSize(obj.offset, "offset", 1);
11306
11307 print_VkDeviceSize(obj.range, "range", 0);
11308
11309 INDENT(-4);
11310 PRINT_SPACE
11311 if (commaNeeded)
11312 _OUT << "}," << std::endl;
11313 else
11314 _OUT << "}" << std::endl;
11315 }
print_VkDescriptorBufferInfo(const VkDescriptorBufferInfo * obj,const std::string & s,bool commaNeeded=true)11316 static void print_VkDescriptorBufferInfo(const VkDescriptorBufferInfo * obj, const std::string& s, bool commaNeeded=true) {
11317 PRINT_SPACE
11318 _OUT << "{" << std::endl;
11319 INDENT(4);
11320
11321 // CTS : required value
11322 PRINT_SPACE _OUT << "\"" << "buffer" << "\"" << " : " << "\"" << "\"," << std::endl;
11323
11324 print_VkDeviceSize(obj->offset, "offset", 1);
11325
11326 print_VkDeviceSize(obj->range, "range", 0);
11327
11328 INDENT(-4);
11329 PRINT_SPACE
11330 if (commaNeeded)
11331 _OUT << "}," << std::endl;
11332 else
11333 _OUT << "}" << std::endl;
11334 }
11335
print_VkDescriptorImageInfo(VkDescriptorImageInfo obj,const std::string & s,bool commaNeeded=true)11336 static void print_VkDescriptorImageInfo(VkDescriptorImageInfo obj, const std::string& s, bool commaNeeded=true) {
11337 PRINT_SPACE
11338 _OUT << "{" << std::endl;
11339 INDENT(4);
11340
11341 // CTS : required value
11342 PRINT_SPACE _OUT << "\"" << "sampler" << "\"" << " : " << "\"" << "\"," << std::endl;
11343
11344 // CTS : required value
11345 PRINT_SPACE _OUT << "\"" << "imageView" << "\"" << " : " << "\"" << "\"," << std::endl;
11346
11347 print_VkImageLayout(obj.imageLayout, "imageLayout", 0);
11348
11349 INDENT(-4);
11350 PRINT_SPACE
11351 if (commaNeeded)
11352 _OUT << "}," << std::endl;
11353 else
11354 _OUT << "}" << std::endl;
11355 }
print_VkDescriptorImageInfo(const VkDescriptorImageInfo * obj,const std::string & s,bool commaNeeded=true)11356 static void print_VkDescriptorImageInfo(const VkDescriptorImageInfo * obj, const std::string& s, bool commaNeeded=true) {
11357 PRINT_SPACE
11358 _OUT << "{" << std::endl;
11359 INDENT(4);
11360
11361 // CTS : required value
11362 PRINT_SPACE _OUT << "\"" << "sampler" << "\"" << " : " << "\"" << "\"," << std::endl;
11363
11364 // CTS : required value
11365 PRINT_SPACE _OUT << "\"" << "imageView" << "\"" << " : " << "\"" << "\"," << std::endl;
11366
11367 print_VkImageLayout(obj->imageLayout, "imageLayout", 0);
11368
11369 INDENT(-4);
11370 PRINT_SPACE
11371 if (commaNeeded)
11372 _OUT << "}," << std::endl;
11373 else
11374 _OUT << "}" << std::endl;
11375 }
11376
print_VkDescriptorPoolSize(VkDescriptorPoolSize obj,const std::string & s,bool commaNeeded=true)11377 static void print_VkDescriptorPoolSize(VkDescriptorPoolSize obj, const std::string& s, bool commaNeeded=true) {
11378 PRINT_SPACE
11379 _OUT << "{" << std::endl;
11380 INDENT(4);
11381
11382 print_VkDescriptorType(obj.type, "type", 1);
11383
11384 print_uint32_t(obj.descriptorCount, "descriptorCount", 0);
11385
11386 INDENT(-4);
11387 PRINT_SPACE
11388 if (commaNeeded)
11389 _OUT << "}," << std::endl;
11390 else
11391 _OUT << "}" << std::endl;
11392 }
print_VkDescriptorPoolSize(const VkDescriptorPoolSize * obj,const std::string & s,bool commaNeeded=true)11393 static void print_VkDescriptorPoolSize(const VkDescriptorPoolSize * obj, const std::string& s, bool commaNeeded=true) {
11394 PRINT_SPACE
11395 _OUT << "{" << std::endl;
11396 INDENT(4);
11397
11398 print_VkDescriptorType(obj->type, "type", 1);
11399
11400 print_uint32_t(obj->descriptorCount, "descriptorCount", 0);
11401
11402 INDENT(-4);
11403 PRINT_SPACE
11404 if (commaNeeded)
11405 _OUT << "}," << std::endl;
11406 else
11407 _OUT << "}" << std::endl;
11408 }
11409
print_VkDescriptorPoolCreateInfo(VkDescriptorPoolCreateInfo obj,const std::string & s,bool commaNeeded=true)11410 static void print_VkDescriptorPoolCreateInfo(VkDescriptorPoolCreateInfo obj, const std::string& s, bool commaNeeded=true) {
11411 PRINT_SPACE
11412 _OUT << "{" << std::endl;
11413 INDENT(4);
11414
11415 print_VkStructureType(obj.sType, "sType", 1);
11416
11417 if (obj.pNext) {
11418 dumpPNextChain(obj.pNext);
11419 } else {
11420 PRINT_SPACE
11421 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11422 }
11423
11424 print_VkDescriptorPoolCreateFlags(obj.flags, "flags", 1);
11425
11426 print_uint32_t(obj.maxSets, "maxSets", 1);
11427
11428 print_uint32_t(obj.poolSizeCount, "poolSizeCount", 1);
11429
11430 PRINT_SPACE
11431 _OUT << "\"pPoolSizes\": " << std::endl;
11432 if (obj.pPoolSizes) {
11433 PRINT_SPACE
11434 _OUT << "[" << std::endl;
11435 for (unsigned int i = 0; i < obj.poolSizeCount; i++) {
11436 if (i+1 == obj.poolSizeCount)
11437 print_VkDescriptorPoolSize(obj.pPoolSizes[i], "pPoolSizes", 0);
11438 else
11439 print_VkDescriptorPoolSize(obj.pPoolSizes[i], "pPoolSizes", 1);
11440 }
11441 PRINT_SPACE
11442 _OUT << "]" << std::endl;
11443 }
11444 else
11445 {
11446 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
11447 }
11448
11449 INDENT(-4);
11450 PRINT_SPACE
11451 if (commaNeeded)
11452 _OUT << "}," << std::endl;
11453 else
11454 _OUT << "}" << std::endl;
11455 }
print_VkDescriptorPoolCreateInfo(const VkDescriptorPoolCreateInfo * obj,const std::string & s,bool commaNeeded=true)11456 static void print_VkDescriptorPoolCreateInfo(const VkDescriptorPoolCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
11457 PRINT_SPACE
11458 _OUT << "{" << std::endl;
11459 INDENT(4);
11460
11461 print_VkStructureType(obj->sType, "sType", 1);
11462
11463 if (obj->pNext) {
11464 dumpPNextChain(obj->pNext);
11465 } else {
11466 PRINT_SPACE
11467 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11468 }
11469
11470 print_VkDescriptorPoolCreateFlags(obj->flags, "flags", 1);
11471
11472 print_uint32_t(obj->maxSets, "maxSets", 1);
11473
11474 print_uint32_t(obj->poolSizeCount, "poolSizeCount", 1);
11475
11476 PRINT_SPACE
11477 _OUT << "\"pPoolSizes\": " << std::endl;
11478 if (obj->pPoolSizes) {
11479 PRINT_SPACE
11480 _OUT << "[" << std::endl;
11481 for (unsigned int i = 0; i < obj->poolSizeCount; i++) {
11482 if (i+1 == obj->poolSizeCount)
11483 print_VkDescriptorPoolSize(obj->pPoolSizes[i], "pPoolSizes", 0);
11484 else
11485 print_VkDescriptorPoolSize(obj->pPoolSizes[i], "pPoolSizes", 1);
11486 }
11487 PRINT_SPACE
11488 _OUT << "]" << std::endl;
11489 }
11490 else
11491 {
11492 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
11493 }
11494
11495 INDENT(-4);
11496 PRINT_SPACE
11497 if (commaNeeded)
11498 _OUT << "}," << std::endl;
11499 else
11500 _OUT << "}" << std::endl;
11501 }
11502
print_VkDescriptorSetAllocateInfo(VkDescriptorSetAllocateInfo obj,const std::string & s,bool commaNeeded=true)11503 static void print_VkDescriptorSetAllocateInfo(VkDescriptorSetAllocateInfo obj, const std::string& s, bool commaNeeded=true) {
11504 PRINT_SPACE
11505 _OUT << "{" << std::endl;
11506 INDENT(4);
11507
11508 print_VkStructureType(obj.sType, "sType", 1);
11509
11510 if (obj.pNext) {
11511 dumpPNextChain(obj.pNext);
11512 } else {
11513 PRINT_SPACE
11514 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11515 }
11516
11517 // CTS : required value
11518 PRINT_SPACE _OUT << "\"" << "descriptorPool" << "\"" << " : " << "\"" << "\"," << std::endl;
11519
11520 print_uint32_t(obj.descriptorSetCount, "descriptorSetCount", 1);
11521
11522 PRINT_SPACE
11523 _OUT << "\"pSetLayouts\":" << std::endl;
11524 PRINT_SPACE
11525 if (obj.pSetLayouts) {
11526 _OUT << "[" << std::endl;
11527 for (unsigned int i = 0; i < obj.descriptorSetCount; i++) {
11528 std:: stringstream tmp;
11529 tmp << "pSetLayouts" << "_" << i;
11530 bool isCommaNeeded = (i+1) != obj.descriptorSetCount;
11531 print_VkDescriptorSetLayout(obj.pSetLayouts[i], tmp.str(), isCommaNeeded);
11532 }
11533 PRINT_SPACE
11534 _OUT << "]" << "" << std::endl;
11535 } else {
11536 _OUT << "\"NULL\"" << "" << std::endl;
11537 }
11538
11539 INDENT(-4);
11540 PRINT_SPACE
11541 if (commaNeeded)
11542 _OUT << "}," << std::endl;
11543 else
11544 _OUT << "}" << std::endl;
11545 }
print_VkDescriptorSetAllocateInfo(const VkDescriptorSetAllocateInfo * obj,const std::string & s,bool commaNeeded=true)11546 static void print_VkDescriptorSetAllocateInfo(const VkDescriptorSetAllocateInfo * obj, const std::string& s, bool commaNeeded=true) {
11547 PRINT_SPACE
11548 _OUT << "{" << std::endl;
11549 INDENT(4);
11550
11551 print_VkStructureType(obj->sType, "sType", 1);
11552
11553 if (obj->pNext) {
11554 dumpPNextChain(obj->pNext);
11555 } else {
11556 PRINT_SPACE
11557 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11558 }
11559
11560 // CTS : required value
11561 PRINT_SPACE _OUT << "\"" << "descriptorPool" << "\"" << " : " << "\"" << "\"," << std::endl;
11562
11563 print_uint32_t(obj->descriptorSetCount, "descriptorSetCount", 1);
11564
11565 PRINT_SPACE
11566 _OUT << "\"pSetLayouts\":" << std::endl;
11567 PRINT_SPACE
11568 if (obj->pSetLayouts) {
11569 _OUT << "[" << std::endl;
11570 for (unsigned int i = 0; i < obj->descriptorSetCount; i++) {
11571 std:: stringstream tmp;
11572 tmp << "pSetLayouts" << "_" << i;
11573 bool isCommaNeeded = (i+1) != obj->descriptorSetCount;
11574 print_VkDescriptorSetLayout(obj->pSetLayouts[i], tmp.str(), isCommaNeeded);
11575 }
11576 PRINT_SPACE
11577 _OUT << "]" << "" << std::endl;
11578 } else {
11579 _OUT << "\"NULL\"" << "" << std::endl;
11580 }
11581
11582 INDENT(-4);
11583 PRINT_SPACE
11584 if (commaNeeded)
11585 _OUT << "}," << std::endl;
11586 else
11587 _OUT << "}" << std::endl;
11588 }
11589
print_VkDescriptorSetLayoutBinding(VkDescriptorSetLayoutBinding obj,const std::string & s,bool commaNeeded=true)11590 static void print_VkDescriptorSetLayoutBinding(VkDescriptorSetLayoutBinding obj, const std::string& s, bool commaNeeded=true) {
11591 PRINT_SPACE
11592 _OUT << "{" << std::endl;
11593 INDENT(4);
11594
11595 print_uint32_t(obj.binding, "binding", 1);
11596
11597 print_VkDescriptorType(obj.descriptorType, "descriptorType", 1);
11598
11599 print_uint32_t(obj.descriptorCount, "descriptorCount", 1);
11600
11601 print_VkShaderStageFlags(obj.stageFlags, "stageFlags", 1);
11602
11603 PRINT_SPACE
11604 _OUT << "\"pImmutableSamplers\":" << std::endl;
11605 PRINT_SPACE
11606 if (obj.pImmutableSamplers) {
11607 _OUT << "[" << std::endl;
11608 for (unsigned int i = 0; i < obj.descriptorCount; i++) {
11609 bool isCommaNeeded = (i+1) != obj.descriptorCount;
11610 if (isCommaNeeded)
11611 {
11612 PRINT_SPACE
11613 _OUT << obj.pImmutableSamplers[i].getInternal() << "," << std::endl;
11614 }
11615 else
11616 {
11617 PRINT_SPACE
11618 _OUT << obj.pImmutableSamplers[i].getInternal() << std::endl;
11619 }
11620 }
11621 PRINT_SPACE
11622 _OUT << "]" << "" << std::endl;
11623 } else {
11624 _OUT << "\"NULL\"" << "" << std::endl;
11625 }
11626
11627 INDENT(-4);
11628 PRINT_SPACE
11629 if (commaNeeded)
11630 _OUT << "}," << std::endl;
11631 else
11632 _OUT << "}" << std::endl;
11633 }
print_VkDescriptorSetLayoutBinding(const VkDescriptorSetLayoutBinding * obj,const std::string & s,bool commaNeeded=true)11634 static void print_VkDescriptorSetLayoutBinding(const VkDescriptorSetLayoutBinding * obj, const std::string& s, bool commaNeeded=true) {
11635 PRINT_SPACE
11636 _OUT << "{" << std::endl;
11637 INDENT(4);
11638
11639 print_uint32_t(obj->binding, "binding", 1);
11640
11641 print_VkDescriptorType(obj->descriptorType, "descriptorType", 1);
11642
11643 print_uint32_t(obj->descriptorCount, "descriptorCount", 1);
11644
11645 print_VkShaderStageFlags(obj->stageFlags, "stageFlags", 1);
11646
11647 PRINT_SPACE
11648 _OUT << "\"pImmutableSamplers\":" << std::endl;
11649 PRINT_SPACE
11650 if (obj->pImmutableSamplers) {
11651 _OUT << "[" << std::endl;
11652 for (unsigned int i = 0; i < obj->descriptorCount; i++) {
11653 bool isCommaNeeded = (i+1) != obj->descriptorCount;
11654 if (isCommaNeeded)
11655 {
11656 PRINT_SPACE
11657 _OUT << obj->pImmutableSamplers[i].getInternal() << "," << std::endl;
11658 }
11659 else
11660 {
11661 PRINT_SPACE
11662 _OUT << obj->pImmutableSamplers[i].getInternal() << std::endl;
11663 }
11664 }
11665 PRINT_SPACE
11666 _OUT << "]" << "" << std::endl;
11667 } else {
11668 _OUT << "\"NULL\"" << "" << std::endl;
11669 }
11670
11671 INDENT(-4);
11672 PRINT_SPACE
11673 if (commaNeeded)
11674 _OUT << "}," << std::endl;
11675 else
11676 _OUT << "}" << std::endl;
11677 }
11678
print_VkDescriptorSetLayoutCreateInfo(VkDescriptorSetLayoutCreateInfo obj,const std::string & s,bool commaNeeded=true)11679 static void print_VkDescriptorSetLayoutCreateInfo(VkDescriptorSetLayoutCreateInfo obj, const std::string& s, bool commaNeeded=true) {
11680 PRINT_SPACE
11681 _OUT << "{" << std::endl;
11682 INDENT(4);
11683
11684 print_VkStructureType(obj.sType, "sType", 1);
11685
11686 if (obj.pNext) {
11687 dumpPNextChain(obj.pNext);
11688 } else {
11689 PRINT_SPACE
11690 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11691 }
11692
11693 print_VkDescriptorSetLayoutCreateFlags(obj.flags, "flags", 1);
11694
11695 print_uint32_t(obj.bindingCount, "bindingCount", 1);
11696
11697 PRINT_SPACE
11698 _OUT << "\"pBindings\": " << std::endl;
11699 if (obj.pBindings) {
11700 PRINT_SPACE
11701 _OUT << "[" << std::endl;
11702 for (unsigned int i = 0; i < obj.bindingCount; i++) {
11703 if (i+1 == obj.bindingCount)
11704 print_VkDescriptorSetLayoutBinding(obj.pBindings[i], "pBindings", 0);
11705 else
11706 print_VkDescriptorSetLayoutBinding(obj.pBindings[i], "pBindings", 1);
11707 }
11708 PRINT_SPACE
11709 _OUT << "]" << std::endl;
11710 }
11711 else
11712 {
11713 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
11714 }
11715
11716 INDENT(-4);
11717 PRINT_SPACE
11718 if (commaNeeded)
11719 _OUT << "}," << std::endl;
11720 else
11721 _OUT << "}" << std::endl;
11722 }
print_VkDescriptorSetLayoutCreateInfo(const VkDescriptorSetLayoutCreateInfo * obj,const std::string & s,bool commaNeeded=true)11723 static void print_VkDescriptorSetLayoutCreateInfo(const VkDescriptorSetLayoutCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
11724 PRINT_SPACE
11725 _OUT << "{" << std::endl;
11726 INDENT(4);
11727
11728 print_VkStructureType(obj->sType, "sType", 1);
11729
11730 if (obj->pNext) {
11731 dumpPNextChain(obj->pNext);
11732 } else {
11733 PRINT_SPACE
11734 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11735 }
11736
11737 print_VkDescriptorSetLayoutCreateFlags(obj->flags, "flags", 1);
11738
11739 print_uint32_t(obj->bindingCount, "bindingCount", 1);
11740
11741 PRINT_SPACE
11742 _OUT << "\"pBindings\": " << std::endl;
11743 if (obj->pBindings) {
11744 PRINT_SPACE
11745 _OUT << "[" << std::endl;
11746 for (unsigned int i = 0; i < obj->bindingCount; i++) {
11747 if (i+1 == obj->bindingCount)
11748 print_VkDescriptorSetLayoutBinding(obj->pBindings[i], "pBindings", 0);
11749 else
11750 print_VkDescriptorSetLayoutBinding(obj->pBindings[i], "pBindings", 1);
11751 }
11752 PRINT_SPACE
11753 _OUT << "]" << std::endl;
11754 }
11755 else
11756 {
11757 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
11758 }
11759
11760 INDENT(-4);
11761 PRINT_SPACE
11762 if (commaNeeded)
11763 _OUT << "}," << std::endl;
11764 else
11765 _OUT << "}" << std::endl;
11766 }
11767
print_VkWriteDescriptorSet(VkWriteDescriptorSet obj,const std::string & s,bool commaNeeded=true)11768 static void print_VkWriteDescriptorSet(VkWriteDescriptorSet obj, const std::string& s, bool commaNeeded=true) {
11769 PRINT_SPACE
11770 _OUT << "{" << std::endl;
11771 INDENT(4);
11772
11773 print_VkStructureType(obj.sType, "sType", 1);
11774
11775 if (obj.pNext) {
11776 dumpPNextChain(obj.pNext);
11777 } else {
11778 PRINT_SPACE
11779 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11780 }
11781
11782 // CTS : required value
11783 PRINT_SPACE _OUT << "\"" << "dstSet" << "\"" << " : " << "\"" << "\"," << std::endl;
11784
11785 print_uint32_t(obj.dstBinding, "dstBinding", 1);
11786
11787 print_uint32_t(obj.dstArrayElement, "dstArrayElement", 1);
11788
11789 print_uint32_t(obj.descriptorCount, "descriptorCount", 1);
11790
11791 print_VkDescriptorType(obj.descriptorType, "descriptorType", 1);
11792
11793 PRINT_SPACE
11794 _OUT << "\"pImageInfo\": " << std::endl;
11795 if (obj.pImageInfo) {
11796 PRINT_SPACE
11797 _OUT << "[" << std::endl;
11798 for (unsigned int i = 0; i < obj.descriptorCount; i++) {
11799 if (i+1 == obj.descriptorCount)
11800 print_VkDescriptorImageInfo(obj.pImageInfo[i], "pImageInfo", 0);
11801 else
11802 print_VkDescriptorImageInfo(obj.pImageInfo[i], "pImageInfo", 1);
11803 }
11804 PRINT_SPACE
11805 _OUT << "]," << std::endl;
11806 }
11807 else
11808 {
11809 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
11810 }
11811
11812 PRINT_SPACE
11813 _OUT << "\"pBufferInfo\": " << std::endl;
11814 if (obj.pBufferInfo) {
11815 PRINT_SPACE
11816 _OUT << "[" << std::endl;
11817 for (unsigned int i = 0; i < obj.descriptorCount; i++) {
11818 if (i+1 == obj.descriptorCount)
11819 print_VkDescriptorBufferInfo(obj.pBufferInfo[i], "pBufferInfo", 0);
11820 else
11821 print_VkDescriptorBufferInfo(obj.pBufferInfo[i], "pBufferInfo", 1);
11822 }
11823 PRINT_SPACE
11824 _OUT << "]," << std::endl;
11825 }
11826 else
11827 {
11828 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
11829 }
11830
11831 PRINT_SPACE
11832 _OUT << "\"pTexelBufferView\":" << std::endl;
11833 PRINT_SPACE
11834 if (obj.pTexelBufferView) {
11835 _OUT << "[" << std::endl;
11836 for (unsigned int i = 0; i < obj.descriptorCount; i++) {
11837 std:: stringstream tmp;
11838 tmp << "pTexelBufferView" << "_" << i;
11839 bool isCommaNeeded = (i+1) != obj.descriptorCount;
11840 print_VkBufferView(obj.pTexelBufferView[i], tmp.str(), isCommaNeeded);
11841 }
11842 PRINT_SPACE
11843 _OUT << "]" << "" << std::endl;
11844 } else {
11845 _OUT << "\"NULL\"" << "" << std::endl;
11846 }
11847
11848 INDENT(-4);
11849 PRINT_SPACE
11850 if (commaNeeded)
11851 _OUT << "}," << std::endl;
11852 else
11853 _OUT << "}" << std::endl;
11854 }
print_VkWriteDescriptorSet(const VkWriteDescriptorSet * obj,const std::string & s,bool commaNeeded=true)11855 static void print_VkWriteDescriptorSet(const VkWriteDescriptorSet * obj, const std::string& s, bool commaNeeded=true) {
11856 PRINT_SPACE
11857 _OUT << "{" << std::endl;
11858 INDENT(4);
11859
11860 print_VkStructureType(obj->sType, "sType", 1);
11861
11862 if (obj->pNext) {
11863 dumpPNextChain(obj->pNext);
11864 } else {
11865 PRINT_SPACE
11866 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
11867 }
11868
11869 // CTS : required value
11870 PRINT_SPACE _OUT << "\"" << "dstSet" << "\"" << " : " << "\"" << "\"," << std::endl;
11871
11872 print_uint32_t(obj->dstBinding, "dstBinding", 1);
11873
11874 print_uint32_t(obj->dstArrayElement, "dstArrayElement", 1);
11875
11876 print_uint32_t(obj->descriptorCount, "descriptorCount", 1);
11877
11878 print_VkDescriptorType(obj->descriptorType, "descriptorType", 1);
11879
11880 PRINT_SPACE
11881 _OUT << "\"pImageInfo\": " << std::endl;
11882 if (obj->pImageInfo) {
11883 PRINT_SPACE
11884 _OUT << "[" << std::endl;
11885 for (unsigned int i = 0; i < obj->descriptorCount; i++) {
11886 if (i+1 == obj->descriptorCount)
11887 print_VkDescriptorImageInfo(obj->pImageInfo[i], "pImageInfo", 0);
11888 else
11889 print_VkDescriptorImageInfo(obj->pImageInfo[i], "pImageInfo", 1);
11890 }
11891 PRINT_SPACE
11892 _OUT << "]," << std::endl;
11893 }
11894 else
11895 {
11896 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
11897 }
11898
11899 PRINT_SPACE
11900 _OUT << "\"pBufferInfo\": " << std::endl;
11901 if (obj->pBufferInfo) {
11902 PRINT_SPACE
11903 _OUT << "[" << std::endl;
11904 for (unsigned int i = 0; i < obj->descriptorCount; i++) {
11905 if (i+1 == obj->descriptorCount)
11906 print_VkDescriptorBufferInfo(obj->pBufferInfo[i], "pBufferInfo", 0);
11907 else
11908 print_VkDescriptorBufferInfo(obj->pBufferInfo[i], "pBufferInfo", 1);
11909 }
11910 PRINT_SPACE
11911 _OUT << "]," << std::endl;
11912 }
11913 else
11914 {
11915 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
11916 }
11917
11918 PRINT_SPACE
11919 _OUT << "\"pTexelBufferView\":" << std::endl;
11920 PRINT_SPACE
11921 if (obj->pTexelBufferView) {
11922 _OUT << "[" << std::endl;
11923 for (unsigned int i = 0; i < obj->descriptorCount; i++) {
11924 std:: stringstream tmp;
11925 tmp << "pTexelBufferView" << "_" << i;
11926 bool isCommaNeeded = (i+1) != obj->descriptorCount;
11927 print_VkBufferView(obj->pTexelBufferView[i], tmp.str(), isCommaNeeded);
11928 }
11929 PRINT_SPACE
11930 _OUT << "]" << "" << std::endl;
11931 } else {
11932 _OUT << "\"NULL\"" << "" << std::endl;
11933 }
11934
11935 INDENT(-4);
11936 PRINT_SPACE
11937 if (commaNeeded)
11938 _OUT << "}," << std::endl;
11939 else
11940 _OUT << "}" << std::endl;
11941 }
11942
print_VkAttachmentDescription(VkAttachmentDescription obj,const std::string & s,bool commaNeeded=true)11943 static void print_VkAttachmentDescription(VkAttachmentDescription obj, const std::string& s, bool commaNeeded=true) {
11944 PRINT_SPACE
11945 _OUT << "{" << std::endl;
11946 INDENT(4);
11947
11948 print_VkAttachmentDescriptionFlags(obj.flags, "flags", 1);
11949
11950 print_VkFormat(obj.format, "format", 1);
11951
11952 print_VkSampleCountFlagBits(obj.samples, "samples", 1);
11953
11954 print_VkAttachmentLoadOp(obj.loadOp, "loadOp", 1);
11955
11956 print_VkAttachmentStoreOp(obj.storeOp, "storeOp", 1);
11957
11958 print_VkAttachmentLoadOp(obj.stencilLoadOp, "stencilLoadOp", 1);
11959
11960 print_VkAttachmentStoreOp(obj.stencilStoreOp, "stencilStoreOp", 1);
11961
11962 print_VkImageLayout(obj.initialLayout, "initialLayout", 1);
11963
11964 print_VkImageLayout(obj.finalLayout, "finalLayout", 0);
11965
11966 INDENT(-4);
11967 PRINT_SPACE
11968 if (commaNeeded)
11969 _OUT << "}," << std::endl;
11970 else
11971 _OUT << "}" << std::endl;
11972 }
print_VkAttachmentDescription(const VkAttachmentDescription * obj,const std::string & s,bool commaNeeded=true)11973 static void print_VkAttachmentDescription(const VkAttachmentDescription * obj, const std::string& s, bool commaNeeded=true) {
11974 PRINT_SPACE
11975 _OUT << "{" << std::endl;
11976 INDENT(4);
11977
11978 print_VkAttachmentDescriptionFlags(obj->flags, "flags", 1);
11979
11980 print_VkFormat(obj->format, "format", 1);
11981
11982 print_VkSampleCountFlagBits(obj->samples, "samples", 1);
11983
11984 print_VkAttachmentLoadOp(obj->loadOp, "loadOp", 1);
11985
11986 print_VkAttachmentStoreOp(obj->storeOp, "storeOp", 1);
11987
11988 print_VkAttachmentLoadOp(obj->stencilLoadOp, "stencilLoadOp", 1);
11989
11990 print_VkAttachmentStoreOp(obj->stencilStoreOp, "stencilStoreOp", 1);
11991
11992 print_VkImageLayout(obj->initialLayout, "initialLayout", 1);
11993
11994 print_VkImageLayout(obj->finalLayout, "finalLayout", 0);
11995
11996 INDENT(-4);
11997 PRINT_SPACE
11998 if (commaNeeded)
11999 _OUT << "}," << std::endl;
12000 else
12001 _OUT << "}" << std::endl;
12002 }
12003
print_VkAttachmentReference(VkAttachmentReference obj,const std::string & s,bool commaNeeded=true)12004 static void print_VkAttachmentReference(VkAttachmentReference obj, const std::string& s, bool commaNeeded=true) {
12005 PRINT_SPACE
12006 _OUT << "{" << std::endl;
12007 INDENT(4);
12008
12009 print_uint32_t(obj.attachment, "attachment", 1);
12010
12011 print_VkImageLayout(obj.layout, "layout", 0);
12012
12013 INDENT(-4);
12014 PRINT_SPACE
12015 if (commaNeeded)
12016 _OUT << "}," << std::endl;
12017 else
12018 _OUT << "}" << std::endl;
12019 }
print_VkAttachmentReference(const VkAttachmentReference * obj,const std::string & s,bool commaNeeded=true)12020 static void print_VkAttachmentReference(const VkAttachmentReference * obj, const std::string& s, bool commaNeeded=true) {
12021 PRINT_SPACE
12022 _OUT << "{" << std::endl;
12023 INDENT(4);
12024
12025 print_uint32_t(obj->attachment, "attachment", 1);
12026
12027 print_VkImageLayout(obj->layout, "layout", 0);
12028
12029 INDENT(-4);
12030 PRINT_SPACE
12031 if (commaNeeded)
12032 _OUT << "}," << std::endl;
12033 else
12034 _OUT << "}" << std::endl;
12035 }
12036
print_VkFramebufferCreateInfo(VkFramebufferCreateInfo obj,const std::string & s,bool commaNeeded=true)12037 static void print_VkFramebufferCreateInfo(VkFramebufferCreateInfo obj, const std::string& s, bool commaNeeded=true) {
12038 PRINT_SPACE
12039 _OUT << "{" << std::endl;
12040 INDENT(4);
12041
12042 print_VkStructureType(obj.sType, "sType", 1);
12043
12044 if (obj.pNext) {
12045 dumpPNextChain(obj.pNext);
12046 } else {
12047 PRINT_SPACE
12048 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12049 }
12050
12051 print_VkFramebufferCreateFlags(obj.flags, "flags", 1);
12052
12053 // CTS : required value
12054 PRINT_SPACE _OUT << "\"" << "renderPass" << "\"" << " : " << obj.renderPass.getInternal() << "," << std::endl;
12055
12056 print_uint32_t(obj.attachmentCount, "attachmentCount", 1);
12057
12058 PRINT_SPACE
12059 _OUT << "\"pAttachments\":" << std::endl;
12060 PRINT_SPACE
12061 if (obj.pAttachments) {
12062 _OUT << "[" << std::endl;
12063 for (unsigned int i = 0; i < obj.attachmentCount; i++) {
12064 std:: stringstream tmp;
12065 tmp << "pAttachments" << "_" << i;
12066 bool isCommaNeeded = (i+1) != obj.attachmentCount;
12067 print_VkImageView(obj.pAttachments[i], tmp.str(), isCommaNeeded);
12068 }
12069 PRINT_SPACE
12070 _OUT << "]" << "," << std::endl;
12071 } else {
12072 _OUT << "\"NULL\"" << "," << std::endl;
12073 }
12074
12075 print_uint32_t(obj.width, "width", 1);
12076
12077 print_uint32_t(obj.height, "height", 1);
12078
12079 print_uint32_t(obj.layers, "layers", 0);
12080
12081 INDENT(-4);
12082 PRINT_SPACE
12083 if (commaNeeded)
12084 _OUT << "}," << std::endl;
12085 else
12086 _OUT << "}" << std::endl;
12087 }
print_VkFramebufferCreateInfo(const VkFramebufferCreateInfo * obj,const std::string & s,bool commaNeeded=true)12088 static void print_VkFramebufferCreateInfo(const VkFramebufferCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
12089 PRINT_SPACE
12090 _OUT << "{" << std::endl;
12091 INDENT(4);
12092
12093 print_VkStructureType(obj->sType, "sType", 1);
12094
12095 if (obj->pNext) {
12096 dumpPNextChain(obj->pNext);
12097 } else {
12098 PRINT_SPACE
12099 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12100 }
12101
12102 print_VkFramebufferCreateFlags(obj->flags, "flags", 1);
12103
12104 // CTS : required value
12105 PRINT_SPACE _OUT << "\"" << "renderPass" << "\"" << " : " << obj->renderPass.getInternal() << "," << std::endl;
12106
12107 print_uint32_t(obj->attachmentCount, "attachmentCount", 1);
12108
12109 PRINT_SPACE
12110 _OUT << "\"pAttachments\":" << std::endl;
12111 PRINT_SPACE
12112 if (obj->pAttachments) {
12113 _OUT << "[" << std::endl;
12114 for (unsigned int i = 0; i < obj->attachmentCount; i++) {
12115 std:: stringstream tmp;
12116 tmp << "pAttachments" << "_" << i;
12117 bool isCommaNeeded = (i+1) != obj->attachmentCount;
12118 print_VkImageView(obj->pAttachments[i], tmp.str(), isCommaNeeded);
12119 }
12120 PRINT_SPACE
12121 _OUT << "]" << "," << std::endl;
12122 } else {
12123 _OUT << "\"NULL\"" << "," << std::endl;
12124 }
12125
12126 print_uint32_t(obj->width, "width", 1);
12127
12128 print_uint32_t(obj->height, "height", 1);
12129
12130 print_uint32_t(obj->layers, "layers", 0);
12131
12132 INDENT(-4);
12133 PRINT_SPACE
12134 if (commaNeeded)
12135 _OUT << "}," << std::endl;
12136 else
12137 _OUT << "}" << std::endl;
12138 }
12139
print_VkSubpassDescription(VkSubpassDescription obj,const std::string & s,bool commaNeeded=true)12140 static void print_VkSubpassDescription(VkSubpassDescription obj, const std::string& s, bool commaNeeded=true) {
12141 PRINT_SPACE
12142 _OUT << "{" << std::endl;
12143 INDENT(4);
12144
12145 print_VkSubpassDescriptionFlags(obj.flags, "flags", 1);
12146
12147 print_VkPipelineBindPoint(obj.pipelineBindPoint, "pipelineBindPoint", 1);
12148
12149 print_uint32_t(obj.inputAttachmentCount, "inputAttachmentCount", 1);
12150
12151 PRINT_SPACE
12152 _OUT << "\"pInputAttachments\": " << std::endl;
12153 if (obj.pInputAttachments) {
12154 PRINT_SPACE
12155 _OUT << "[" << std::endl;
12156 for (unsigned int i = 0; i < obj.inputAttachmentCount; i++) {
12157 if (i+1 == obj.inputAttachmentCount)
12158 print_VkAttachmentReference(obj.pInputAttachments[i], "pInputAttachments", 0);
12159 else
12160 print_VkAttachmentReference(obj.pInputAttachments[i], "pInputAttachments", 1);
12161 }
12162 PRINT_SPACE
12163 _OUT << "]," << std::endl;
12164 }
12165 else
12166 {
12167 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12168 }
12169
12170 print_uint32_t(obj.colorAttachmentCount, "colorAttachmentCount", 1);
12171
12172 PRINT_SPACE
12173 _OUT << "\"pColorAttachments\": " << std::endl;
12174 if (obj.pColorAttachments) {
12175 PRINT_SPACE
12176 _OUT << "[" << std::endl;
12177 for (unsigned int i = 0; i < obj.colorAttachmentCount; i++) {
12178 if (i+1 == obj.colorAttachmentCount)
12179 print_VkAttachmentReference(obj.pColorAttachments[i], "pColorAttachments", 0);
12180 else
12181 print_VkAttachmentReference(obj.pColorAttachments[i], "pColorAttachments", 1);
12182 }
12183 PRINT_SPACE
12184 _OUT << "]," << std::endl;
12185 }
12186 else
12187 {
12188 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12189 }
12190
12191 PRINT_SPACE
12192 _OUT << "\"pResolveAttachments\": " << std::endl;
12193 if (obj.pResolveAttachments) {
12194 PRINT_SPACE
12195 _OUT << "[" << std::endl;
12196 for (unsigned int i = 0; i < obj.colorAttachmentCount; i++) {
12197 if (i+1 == obj.colorAttachmentCount)
12198 print_VkAttachmentReference(obj.pResolveAttachments[i], "pResolveAttachments", 0);
12199 else
12200 print_VkAttachmentReference(obj.pResolveAttachments[i], "pResolveAttachments", 1);
12201 }
12202 PRINT_SPACE
12203 _OUT << "]," << std::endl;
12204 }
12205 else
12206 {
12207 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12208 }
12209
12210 PRINT_SPACE
12211 _OUT << "\"pDepthStencilAttachment\": " << std::endl;
12212 if (obj.pDepthStencilAttachment) {
12213 print_VkAttachmentReference(obj.pDepthStencilAttachment, "pDepthStencilAttachment", 1);
12214 }
12215 else
12216 {
12217 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12218 }
12219
12220 print_uint32_t(obj.preserveAttachmentCount, "preserveAttachmentCount", 1);
12221
12222 PRINT_SPACE
12223 _OUT << "\"pPreserveAttachments\":" << std::endl;
12224 PRINT_SPACE
12225 if (obj.pPreserveAttachments) {
12226 _OUT << "[" << std::endl;
12227 for (unsigned int i = 0; i < obj.preserveAttachmentCount; i++) {
12228 bool isCommaNeeded = (i+1) != obj.preserveAttachmentCount;
12229 print_uint32_t(obj.pPreserveAttachments[i], "", isCommaNeeded);
12230 }
12231 PRINT_SPACE
12232 _OUT << "]" << "" << std::endl;
12233 } else {
12234 _OUT << "\"NULL\"" << "" << std::endl;
12235 }
12236
12237 INDENT(-4);
12238 PRINT_SPACE
12239 if (commaNeeded)
12240 _OUT << "}," << std::endl;
12241 else
12242 _OUT << "}" << std::endl;
12243 }
print_VkSubpassDescription(const VkSubpassDescription * obj,const std::string & s,bool commaNeeded=true)12244 static void print_VkSubpassDescription(const VkSubpassDescription * obj, const std::string& s, bool commaNeeded=true) {
12245 PRINT_SPACE
12246 _OUT << "{" << std::endl;
12247 INDENT(4);
12248
12249 print_VkSubpassDescriptionFlags(obj->flags, "flags", 1);
12250
12251 print_VkPipelineBindPoint(obj->pipelineBindPoint, "pipelineBindPoint", 1);
12252
12253 print_uint32_t(obj->inputAttachmentCount, "inputAttachmentCount", 1);
12254
12255 PRINT_SPACE
12256 _OUT << "\"pInputAttachments\": " << std::endl;
12257 if (obj->pInputAttachments) {
12258 PRINT_SPACE
12259 _OUT << "[" << std::endl;
12260 for (unsigned int i = 0; i < obj->inputAttachmentCount; i++) {
12261 if (i+1 == obj->inputAttachmentCount)
12262 print_VkAttachmentReference(obj->pInputAttachments[i], "pInputAttachments", 0);
12263 else
12264 print_VkAttachmentReference(obj->pInputAttachments[i], "pInputAttachments", 1);
12265 }
12266 PRINT_SPACE
12267 _OUT << "]," << std::endl;
12268 }
12269 else
12270 {
12271 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12272 }
12273
12274 print_uint32_t(obj->colorAttachmentCount, "colorAttachmentCount", 1);
12275
12276 PRINT_SPACE
12277 _OUT << "\"pColorAttachments\": " << std::endl;
12278 if (obj->pColorAttachments) {
12279 PRINT_SPACE
12280 _OUT << "[" << std::endl;
12281 for (unsigned int i = 0; i < obj->colorAttachmentCount; i++) {
12282 if (i+1 == obj->colorAttachmentCount)
12283 print_VkAttachmentReference(obj->pColorAttachments[i], "pColorAttachments", 0);
12284 else
12285 print_VkAttachmentReference(obj->pColorAttachments[i], "pColorAttachments", 1);
12286 }
12287 PRINT_SPACE
12288 _OUT << "]," << std::endl;
12289 }
12290 else
12291 {
12292 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12293 }
12294
12295 PRINT_SPACE
12296 _OUT << "\"pResolveAttachments\": " << std::endl;
12297 if (obj->pResolveAttachments) {
12298 PRINT_SPACE
12299 _OUT << "[" << std::endl;
12300 for (unsigned int i = 0; i < obj->colorAttachmentCount; i++) {
12301 if (i+1 == obj->colorAttachmentCount)
12302 print_VkAttachmentReference(obj->pResolveAttachments[i], "pResolveAttachments", 0);
12303 else
12304 print_VkAttachmentReference(obj->pResolveAttachments[i], "pResolveAttachments", 1);
12305 }
12306 PRINT_SPACE
12307 _OUT << "]," << std::endl;
12308 }
12309 else
12310 {
12311 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12312 }
12313
12314 PRINT_SPACE
12315 _OUT << "\"pDepthStencilAttachment\": " << std::endl;
12316 if (obj->pDepthStencilAttachment) {
12317 print_VkAttachmentReference(obj->pDepthStencilAttachment, "pDepthStencilAttachment", 1);
12318 }
12319 else
12320 {
12321 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12322 }
12323
12324 print_uint32_t(obj->preserveAttachmentCount, "preserveAttachmentCount", 1);
12325
12326 PRINT_SPACE
12327 _OUT << "\"pPreserveAttachments\":" << std::endl;
12328 PRINT_SPACE
12329 if (obj->pPreserveAttachments) {
12330 _OUT << "[" << std::endl;
12331 for (unsigned int i = 0; i < obj->preserveAttachmentCount; i++) {
12332 bool isCommaNeeded = (i+1) != obj->preserveAttachmentCount;
12333 print_uint32_t(obj->pPreserveAttachments[i], "", isCommaNeeded);
12334 }
12335 PRINT_SPACE
12336 _OUT << "]" << "" << std::endl;
12337 } else {
12338 _OUT << "\"NULL\"" << "" << std::endl;
12339 }
12340
12341 INDENT(-4);
12342 PRINT_SPACE
12343 if (commaNeeded)
12344 _OUT << "}," << std::endl;
12345 else
12346 _OUT << "}" << std::endl;
12347 }
12348
print_VkSubpassDependency(VkSubpassDependency obj,const std::string & s,bool commaNeeded=true)12349 static void print_VkSubpassDependency(VkSubpassDependency obj, const std::string& s, bool commaNeeded=true) {
12350 PRINT_SPACE
12351 _OUT << "{" << std::endl;
12352 INDENT(4);
12353
12354 print_uint32_t(obj.srcSubpass, "srcSubpass", 1);
12355
12356 print_uint32_t(obj.dstSubpass, "dstSubpass", 1);
12357
12358 print_VkPipelineStageFlags(obj.srcStageMask, "srcStageMask", 1);
12359
12360 print_VkPipelineStageFlags(obj.dstStageMask, "dstStageMask", 1);
12361
12362 print_VkAccessFlags(obj.srcAccessMask, "srcAccessMask", 1);
12363
12364 print_VkAccessFlags(obj.dstAccessMask, "dstAccessMask", 1);
12365
12366 print_VkDependencyFlags(obj.dependencyFlags, "dependencyFlags", 0);
12367
12368 INDENT(-4);
12369 PRINT_SPACE
12370 if (commaNeeded)
12371 _OUT << "}," << std::endl;
12372 else
12373 _OUT << "}" << std::endl;
12374 }
print_VkSubpassDependency(const VkSubpassDependency * obj,const std::string & s,bool commaNeeded=true)12375 static void print_VkSubpassDependency(const VkSubpassDependency * obj, const std::string& s, bool commaNeeded=true) {
12376 PRINT_SPACE
12377 _OUT << "{" << std::endl;
12378 INDENT(4);
12379
12380 print_uint32_t(obj->srcSubpass, "srcSubpass", 1);
12381
12382 print_uint32_t(obj->dstSubpass, "dstSubpass", 1);
12383
12384 print_VkPipelineStageFlags(obj->srcStageMask, "srcStageMask", 1);
12385
12386 print_VkPipelineStageFlags(obj->dstStageMask, "dstStageMask", 1);
12387
12388 print_VkAccessFlags(obj->srcAccessMask, "srcAccessMask", 1);
12389
12390 print_VkAccessFlags(obj->dstAccessMask, "dstAccessMask", 1);
12391
12392 print_VkDependencyFlags(obj->dependencyFlags, "dependencyFlags", 0);
12393
12394 INDENT(-4);
12395 PRINT_SPACE
12396 if (commaNeeded)
12397 _OUT << "}," << std::endl;
12398 else
12399 _OUT << "}" << std::endl;
12400 }
12401
print_VkRenderPassCreateInfo(VkRenderPassCreateInfo obj,const std::string & s,bool commaNeeded=true)12402 static void print_VkRenderPassCreateInfo(VkRenderPassCreateInfo obj, const std::string& s, bool commaNeeded=true) {
12403 PRINT_SPACE
12404 _OUT << "{" << std::endl;
12405 INDENT(4);
12406
12407 print_VkStructureType(obj.sType, "sType", 1);
12408
12409 if (obj.pNext) {
12410 dumpPNextChain(obj.pNext);
12411 } else {
12412 PRINT_SPACE
12413 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12414 }
12415
12416 print_VkRenderPassCreateFlags(obj.flags, "flags", 1);
12417
12418 print_uint32_t(obj.attachmentCount, "attachmentCount", 1);
12419
12420 PRINT_SPACE
12421 _OUT << "\"pAttachments\": " << std::endl;
12422 if (obj.pAttachments) {
12423 PRINT_SPACE
12424 _OUT << "[" << std::endl;
12425 for (unsigned int i = 0; i < obj.attachmentCount; i++) {
12426 if (i+1 == obj.attachmentCount)
12427 print_VkAttachmentDescription(obj.pAttachments[i], "pAttachments", 0);
12428 else
12429 print_VkAttachmentDescription(obj.pAttachments[i], "pAttachments", 1);
12430 }
12431 PRINT_SPACE
12432 _OUT << "]," << std::endl;
12433 }
12434 else
12435 {
12436 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12437 }
12438
12439 print_uint32_t(obj.subpassCount, "subpassCount", 1);
12440
12441 PRINT_SPACE
12442 _OUT << "\"pSubpasses\": " << std::endl;
12443 if (obj.pSubpasses) {
12444 PRINT_SPACE
12445 _OUT << "[" << std::endl;
12446 for (unsigned int i = 0; i < obj.subpassCount; i++) {
12447 if (i+1 == obj.subpassCount)
12448 print_VkSubpassDescription(obj.pSubpasses[i], "pSubpasses", 0);
12449 else
12450 print_VkSubpassDescription(obj.pSubpasses[i], "pSubpasses", 1);
12451 }
12452 PRINT_SPACE
12453 _OUT << "]," << std::endl;
12454 }
12455 else
12456 {
12457 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12458 }
12459
12460 print_uint32_t(obj.dependencyCount, "dependencyCount", 1);
12461
12462 PRINT_SPACE
12463 _OUT << "\"pDependencies\": " << std::endl;
12464 if (obj.pDependencies) {
12465 PRINT_SPACE
12466 _OUT << "[" << std::endl;
12467 for (unsigned int i = 0; i < obj.dependencyCount; i++) {
12468 if (i+1 == obj.dependencyCount)
12469 print_VkSubpassDependency(obj.pDependencies[i], "pDependencies", 0);
12470 else
12471 print_VkSubpassDependency(obj.pDependencies[i], "pDependencies", 1);
12472 }
12473 PRINT_SPACE
12474 _OUT << "]" << std::endl;
12475 }
12476 else
12477 {
12478 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
12479 }
12480
12481 INDENT(-4);
12482 PRINT_SPACE
12483 if (commaNeeded)
12484 _OUT << "}," << std::endl;
12485 else
12486 _OUT << "}" << std::endl;
12487 }
print_VkRenderPassCreateInfo(const VkRenderPassCreateInfo * obj,const std::string & s,bool commaNeeded=true)12488 static void print_VkRenderPassCreateInfo(const VkRenderPassCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
12489 PRINT_SPACE
12490 _OUT << "{" << std::endl;
12491 INDENT(4);
12492
12493 print_VkStructureType(obj->sType, "sType", 1);
12494
12495 if (obj->pNext) {
12496 dumpPNextChain(obj->pNext);
12497 } else {
12498 PRINT_SPACE
12499 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12500 }
12501
12502 print_VkRenderPassCreateFlags(obj->flags, "flags", 1);
12503
12504 print_uint32_t(obj->attachmentCount, "attachmentCount", 1);
12505
12506 PRINT_SPACE
12507 _OUT << "\"pAttachments\": " << std::endl;
12508 if (obj->pAttachments) {
12509 PRINT_SPACE
12510 _OUT << "[" << std::endl;
12511 for (unsigned int i = 0; i < obj->attachmentCount; i++) {
12512 if (i+1 == obj->attachmentCount)
12513 print_VkAttachmentDescription(obj->pAttachments[i], "pAttachments", 0);
12514 else
12515 print_VkAttachmentDescription(obj->pAttachments[i], "pAttachments", 1);
12516 }
12517 PRINT_SPACE
12518 _OUT << "]," << std::endl;
12519 }
12520 else
12521 {
12522 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12523 }
12524
12525 print_uint32_t(obj->subpassCount, "subpassCount", 1);
12526
12527 PRINT_SPACE
12528 _OUT << "\"pSubpasses\": " << std::endl;
12529 if (obj->pSubpasses) {
12530 PRINT_SPACE
12531 _OUT << "[" << std::endl;
12532 for (unsigned int i = 0; i < obj->subpassCount; i++) {
12533 if (i+1 == obj->subpassCount)
12534 print_VkSubpassDescription(obj->pSubpasses[i], "pSubpasses", 0);
12535 else
12536 print_VkSubpassDescription(obj->pSubpasses[i], "pSubpasses", 1);
12537 }
12538 PRINT_SPACE
12539 _OUT << "]," << std::endl;
12540 }
12541 else
12542 {
12543 PRINT_SPACE _OUT << "\"NULL\""<< ","<< std::endl;
12544 }
12545
12546 print_uint32_t(obj->dependencyCount, "dependencyCount", 1);
12547
12548 PRINT_SPACE
12549 _OUT << "\"pDependencies\": " << std::endl;
12550 if (obj->pDependencies) {
12551 PRINT_SPACE
12552 _OUT << "[" << std::endl;
12553 for (unsigned int i = 0; i < obj->dependencyCount; i++) {
12554 if (i+1 == obj->dependencyCount)
12555 print_VkSubpassDependency(obj->pDependencies[i], "pDependencies", 0);
12556 else
12557 print_VkSubpassDependency(obj->pDependencies[i], "pDependencies", 1);
12558 }
12559 PRINT_SPACE
12560 _OUT << "]" << std::endl;
12561 }
12562 else
12563 {
12564 PRINT_SPACE _OUT << "\"NULL\""<< ""<< std::endl;
12565 }
12566
12567 INDENT(-4);
12568 PRINT_SPACE
12569 if (commaNeeded)
12570 _OUT << "}," << std::endl;
12571 else
12572 _OUT << "}" << std::endl;
12573 }
12574
print_VkCommandPoolCreateInfo(VkCommandPoolCreateInfo obj,const std::string & s,bool commaNeeded=true)12575 static void print_VkCommandPoolCreateInfo(VkCommandPoolCreateInfo obj, const std::string& s, bool commaNeeded=true) {
12576 PRINT_SPACE
12577 _OUT << "{" << std::endl;
12578 INDENT(4);
12579
12580 print_VkStructureType(obj.sType, "sType", 1);
12581
12582 if (obj.pNext) {
12583 dumpPNextChain(obj.pNext);
12584 } else {
12585 PRINT_SPACE
12586 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12587 }
12588
12589 print_VkCommandPoolCreateFlags(obj.flags, "flags", 1);
12590
12591 print_uint32_t(obj.queueFamilyIndex, "queueFamilyIndex", 0);
12592
12593 INDENT(-4);
12594 PRINT_SPACE
12595 if (commaNeeded)
12596 _OUT << "}," << std::endl;
12597 else
12598 _OUT << "}" << std::endl;
12599 }
print_VkCommandPoolCreateInfo(const VkCommandPoolCreateInfo * obj,const std::string & s,bool commaNeeded=true)12600 static void print_VkCommandPoolCreateInfo(const VkCommandPoolCreateInfo * obj, const std::string& s, bool commaNeeded=true) {
12601 PRINT_SPACE
12602 _OUT << "{" << std::endl;
12603 INDENT(4);
12604
12605 print_VkStructureType(obj->sType, "sType", 1);
12606
12607 if (obj->pNext) {
12608 dumpPNextChain(obj->pNext);
12609 } else {
12610 PRINT_SPACE
12611 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12612 }
12613
12614 print_VkCommandPoolCreateFlags(obj->flags, "flags", 1);
12615
12616 print_uint32_t(obj->queueFamilyIndex, "queueFamilyIndex", 0);
12617
12618 INDENT(-4);
12619 PRINT_SPACE
12620 if (commaNeeded)
12621 _OUT << "}," << std::endl;
12622 else
12623 _OUT << "}" << std::endl;
12624 }
12625
print_VkCommandBufferAllocateInfo(VkCommandBufferAllocateInfo obj,const std::string & s,bool commaNeeded=true)12626 static void print_VkCommandBufferAllocateInfo(VkCommandBufferAllocateInfo obj, const std::string& s, bool commaNeeded=true) {
12627 PRINT_SPACE
12628 _OUT << "{" << std::endl;
12629 INDENT(4);
12630
12631 print_VkStructureType(obj.sType, "sType", 1);
12632
12633 if (obj.pNext) {
12634 dumpPNextChain(obj.pNext);
12635 } else {
12636 PRINT_SPACE
12637 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12638 }
12639
12640 // CTS : required value
12641 PRINT_SPACE _OUT << "\"" << "commandPool" << "\"" << " : " << "\"" << "\"," << std::endl;
12642
12643 print_VkCommandBufferLevel(obj.level, "level", 1);
12644
12645 print_uint32_t(obj.commandBufferCount, "commandBufferCount", 0);
12646
12647 INDENT(-4);
12648 PRINT_SPACE
12649 if (commaNeeded)
12650 _OUT << "}," << std::endl;
12651 else
12652 _OUT << "}" << std::endl;
12653 }
print_VkCommandBufferAllocateInfo(const VkCommandBufferAllocateInfo * obj,const std::string & s,bool commaNeeded=true)12654 static void print_VkCommandBufferAllocateInfo(const VkCommandBufferAllocateInfo * obj, const std::string& s, bool commaNeeded=true) {
12655 PRINT_SPACE
12656 _OUT << "{" << std::endl;
12657 INDENT(4);
12658
12659 print_VkStructureType(obj->sType, "sType", 1);
12660
12661 if (obj->pNext) {
12662 dumpPNextChain(obj->pNext);
12663 } else {
12664 PRINT_SPACE
12665 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12666 }
12667
12668 // CTS : required value
12669 PRINT_SPACE _OUT << "\"" << "commandPool" << "\"" << " : " << "\"" << "\"," << std::endl;
12670
12671 print_VkCommandBufferLevel(obj->level, "level", 1);
12672
12673 print_uint32_t(obj->commandBufferCount, "commandBufferCount", 0);
12674
12675 INDENT(-4);
12676 PRINT_SPACE
12677 if (commaNeeded)
12678 _OUT << "}," << std::endl;
12679 else
12680 _OUT << "}" << std::endl;
12681 }
12682
print_VkCommandBufferInheritanceInfo(VkCommandBufferInheritanceInfo obj,const std::string & s,bool commaNeeded=true)12683 static void print_VkCommandBufferInheritanceInfo(VkCommandBufferInheritanceInfo obj, const std::string& s, bool commaNeeded=true) {
12684 PRINT_SPACE
12685 _OUT << "{" << std::endl;
12686 INDENT(4);
12687
12688 print_VkStructureType(obj.sType, "sType", 1);
12689
12690 if (obj.pNext) {
12691 dumpPNextChain(obj.pNext);
12692 } else {
12693 PRINT_SPACE
12694 _OUT << "\"pNext\":" << "\"NULL\""<< ","<< std::endl;
12695 }
12696
12697 // CTS : required value
12698 PRINT_SPACE _OUT << "\"" << "renderPass" << "\"" << " : " << obj.renderPass.getInternal() << "," << std::endl;
12699
12700 print_uint32_t(obj.subpass, "subpass", 1);
12701
12702 // CTS : required value
12703 PRINT_SPACE _OUT << "\"" << "framebuffer" << "\"" << " : " << "\"" << "\"," << std::endl;
12704
12705 print_VkBool32(obj.occlusionQueryEnable, "occlusionQueryEnable", 1);
12706
12707 print_VkQueryControlFlags(obj.queryFlags, "queryFlags", 1);
12708
12709 print_VkQueryPipelineStatisticFlags(obj.pipelineStatistics, "pipelineStatistics", 0);
12710
12711 INDENT(-4);
12712 PRINT_SPACE
12713 if (commaNeeded)
12714 _OUT << "}," << std::endl;
12715 else
12716 _OUT << "}" << std::endl;
12717 }
print_VkCommandBufferInheritanceInfo(const VkCommandBufferInheritanceInfo * obj,const std::string & s,bool commaNeeded=true)12718