Merge pull request #2685 from kevin-mccullough/FixIsIoResizeArrayTesselationStageHandling
[platform/upstream/glslang.git] / SPIRV / spirv.hpp
1 // Copyright (c) 2014-2020 The Khronos Group Inc.
2 // 
3 // Permission is hereby granted, free of charge, to any person obtaining a copy
4 // of this software and/or associated documentation files (the "Materials"),
5 // to deal in the Materials without restriction, including without limitation
6 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 // and/or sell copies of the Materials, and to permit persons to whom the
8 // Materials are furnished to do so, subject to the following conditions:
9 // 
10 // The above copyright notice and this permission notice shall be included in
11 // all copies or substantial portions of the Materials.
12 // 
13 // MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
14 // STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
15 // HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/ 
16 // 
17 // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 // FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
23 // IN THE MATERIALS.
24
25 // This header is automatically generated by the same tool that creates
26 // the Binary Section of the SPIR-V specification.
27
28 // Enumeration tokens for SPIR-V, in various styles:
29 //   C, C++, C++11, JSON, Lua, Python, C#, D
30 // 
31 // - C will have tokens with a "Spv" prefix, e.g.: SpvSourceLanguageGLSL
32 // - C++ will have tokens in the "spv" name space, e.g.: spv::SourceLanguageGLSL
33 // - C++11 will use enum classes in the spv namespace, e.g.: spv::SourceLanguage::GLSL
34 // - Lua will use tables, e.g.: spv.SourceLanguage.GLSL
35 // - Python will use dictionaries, e.g.: spv['SourceLanguage']['GLSL']
36 // - C# will use enum classes in the Specification class located in the "Spv" namespace,
37 //     e.g.: Spv.Specification.SourceLanguage.GLSL
38 // - D will have tokens under the "spv" module, e.g: spv.SourceLanguage.GLSL
39 // 
40 // Some tokens act like mask values, which can be OR'd together,
41 // while others are mutually exclusive.  The mask-like ones have
42 // "Mask" in their name, and a parallel enum that has the shift
43 // amount (1 << x) for each corresponding enumerant.
44
45 #ifndef spirv_HPP
46 #define spirv_HPP
47
48 namespace spv {
49
50 typedef unsigned int Id;
51
52 #define SPV_VERSION 0x10500
53 #define SPV_REVISION 4
54
55 static const unsigned int MagicNumber = 0x07230203;
56 static const unsigned int Version = 0x00010500;
57 static const unsigned int Revision = 4;
58 static const unsigned int OpCodeMask = 0xffff;
59 static const unsigned int WordCountShift = 16;
60
61 enum SourceLanguage {
62     SourceLanguageUnknown = 0,
63     SourceLanguageESSL = 1,
64     SourceLanguageGLSL = 2,
65     SourceLanguageOpenCL_C = 3,
66     SourceLanguageOpenCL_CPP = 4,
67     SourceLanguageHLSL = 5,
68     SourceLanguageMax = 0x7fffffff,
69 };
70
71 enum ExecutionModel {
72     ExecutionModelVertex = 0,
73     ExecutionModelTessellationControl = 1,
74     ExecutionModelTessellationEvaluation = 2,
75     ExecutionModelGeometry = 3,
76     ExecutionModelFragment = 4,
77     ExecutionModelGLCompute = 5,
78     ExecutionModelKernel = 6,
79     ExecutionModelTaskNV = 5267,
80     ExecutionModelMeshNV = 5268,
81     ExecutionModelRayGenerationKHR = 5313,
82     ExecutionModelRayGenerationNV = 5313,
83     ExecutionModelIntersectionKHR = 5314,
84     ExecutionModelIntersectionNV = 5314,
85     ExecutionModelAnyHitKHR = 5315,
86     ExecutionModelAnyHitNV = 5315,
87     ExecutionModelClosestHitKHR = 5316,
88     ExecutionModelClosestHitNV = 5316,
89     ExecutionModelMissKHR = 5317,
90     ExecutionModelMissNV = 5317,
91     ExecutionModelCallableKHR = 5318,
92     ExecutionModelCallableNV = 5318,
93     ExecutionModelMax = 0x7fffffff,
94 };
95
96 enum AddressingModel {
97     AddressingModelLogical = 0,
98     AddressingModelPhysical32 = 1,
99     AddressingModelPhysical64 = 2,
100     AddressingModelPhysicalStorageBuffer64 = 5348,
101     AddressingModelPhysicalStorageBuffer64EXT = 5348,
102     AddressingModelMax = 0x7fffffff,
103 };
104
105 enum MemoryModel {
106     MemoryModelSimple = 0,
107     MemoryModelGLSL450 = 1,
108     MemoryModelOpenCL = 2,
109     MemoryModelVulkan = 3,
110     MemoryModelVulkanKHR = 3,
111     MemoryModelMax = 0x7fffffff,
112 };
113
114 enum ExecutionMode {
115     ExecutionModeInvocations = 0,
116     ExecutionModeSpacingEqual = 1,
117     ExecutionModeSpacingFractionalEven = 2,
118     ExecutionModeSpacingFractionalOdd = 3,
119     ExecutionModeVertexOrderCw = 4,
120     ExecutionModeVertexOrderCcw = 5,
121     ExecutionModePixelCenterInteger = 6,
122     ExecutionModeOriginUpperLeft = 7,
123     ExecutionModeOriginLowerLeft = 8,
124     ExecutionModeEarlyFragmentTests = 9,
125     ExecutionModePointMode = 10,
126     ExecutionModeXfb = 11,
127     ExecutionModeDepthReplacing = 12,
128     ExecutionModeDepthGreater = 14,
129     ExecutionModeDepthLess = 15,
130     ExecutionModeDepthUnchanged = 16,
131     ExecutionModeLocalSize = 17,
132     ExecutionModeLocalSizeHint = 18,
133     ExecutionModeInputPoints = 19,
134     ExecutionModeInputLines = 20,
135     ExecutionModeInputLinesAdjacency = 21,
136     ExecutionModeTriangles = 22,
137     ExecutionModeInputTrianglesAdjacency = 23,
138     ExecutionModeQuads = 24,
139     ExecutionModeIsolines = 25,
140     ExecutionModeOutputVertices = 26,
141     ExecutionModeOutputPoints = 27,
142     ExecutionModeOutputLineStrip = 28,
143     ExecutionModeOutputTriangleStrip = 29,
144     ExecutionModeVecTypeHint = 30,
145     ExecutionModeContractionOff = 31,
146     ExecutionModeInitializer = 33,
147     ExecutionModeFinalizer = 34,
148     ExecutionModeSubgroupSize = 35,
149     ExecutionModeSubgroupsPerWorkgroup = 36,
150     ExecutionModeSubgroupsPerWorkgroupId = 37,
151     ExecutionModeLocalSizeId = 38,
152     ExecutionModeLocalSizeHintId = 39,
153     ExecutionModeSubgroupUniformControlFlowKHR = 4421,
154     ExecutionModePostDepthCoverage = 4446,
155     ExecutionModeDenormPreserve = 4459,
156     ExecutionModeDenormFlushToZero = 4460,
157     ExecutionModeSignedZeroInfNanPreserve = 4461,
158     ExecutionModeRoundingModeRTE = 4462,
159     ExecutionModeRoundingModeRTZ = 4463,
160     ExecutionModeStencilRefReplacingEXT = 5027,
161     ExecutionModeOutputLinesNV = 5269,
162     ExecutionModeOutputPrimitivesNV = 5270,
163     ExecutionModeDerivativeGroupQuadsNV = 5289,
164     ExecutionModeDerivativeGroupLinearNV = 5290,
165     ExecutionModeOutputTrianglesNV = 5298,
166     ExecutionModePixelInterlockOrderedEXT = 5366,
167     ExecutionModePixelInterlockUnorderedEXT = 5367,
168     ExecutionModeSampleInterlockOrderedEXT = 5368,
169     ExecutionModeSampleInterlockUnorderedEXT = 5369,
170     ExecutionModeShadingRateInterlockOrderedEXT = 5370,
171     ExecutionModeShadingRateInterlockUnorderedEXT = 5371,
172     ExecutionModeSharedLocalMemorySizeINTEL = 5618,
173     ExecutionModeRoundingModeRTPINTEL = 5620,
174     ExecutionModeRoundingModeRTNINTEL = 5621,
175     ExecutionModeFloatingPointModeALTINTEL = 5622,
176     ExecutionModeFloatingPointModeIEEEINTEL = 5623,
177     ExecutionModeMaxWorkgroupSizeINTEL = 5893,
178     ExecutionModeMaxWorkDimINTEL = 5894,
179     ExecutionModeNoGlobalOffsetINTEL = 5895,
180     ExecutionModeNumSIMDWorkitemsINTEL = 5896,
181     ExecutionModeSchedulerTargetFmaxMhzINTEL = 5903,
182     ExecutionModeMax = 0x7fffffff,
183 };
184
185 enum StorageClass {
186     StorageClassUniformConstant = 0,
187     StorageClassInput = 1,
188     StorageClassUniform = 2,
189     StorageClassOutput = 3,
190     StorageClassWorkgroup = 4,
191     StorageClassCrossWorkgroup = 5,
192     StorageClassPrivate = 6,
193     StorageClassFunction = 7,
194     StorageClassGeneric = 8,
195     StorageClassPushConstant = 9,
196     StorageClassAtomicCounter = 10,
197     StorageClassImage = 11,
198     StorageClassStorageBuffer = 12,
199     StorageClassCallableDataKHR = 5328,
200     StorageClassCallableDataNV = 5328,
201     StorageClassIncomingCallableDataKHR = 5329,
202     StorageClassIncomingCallableDataNV = 5329,
203     StorageClassRayPayloadKHR = 5338,
204     StorageClassRayPayloadNV = 5338,
205     StorageClassHitAttributeKHR = 5339,
206     StorageClassHitAttributeNV = 5339,
207     StorageClassIncomingRayPayloadKHR = 5342,
208     StorageClassIncomingRayPayloadNV = 5342,
209     StorageClassShaderRecordBufferKHR = 5343,
210     StorageClassShaderRecordBufferNV = 5343,
211     StorageClassPhysicalStorageBuffer = 5349,
212     StorageClassPhysicalStorageBufferEXT = 5349,
213     StorageClassCodeSectionINTEL = 5605,
214     StorageClassDeviceOnlyINTEL = 5936,
215     StorageClassHostOnlyINTEL = 5937,
216     StorageClassMax = 0x7fffffff,
217 };
218
219 enum Dim {
220     Dim1D = 0,
221     Dim2D = 1,
222     Dim3D = 2,
223     DimCube = 3,
224     DimRect = 4,
225     DimBuffer = 5,
226     DimSubpassData = 6,
227     DimMax = 0x7fffffff,
228 };
229
230 enum SamplerAddressingMode {
231     SamplerAddressingModeNone = 0,
232     SamplerAddressingModeClampToEdge = 1,
233     SamplerAddressingModeClamp = 2,
234     SamplerAddressingModeRepeat = 3,
235     SamplerAddressingModeRepeatMirrored = 4,
236     SamplerAddressingModeMax = 0x7fffffff,
237 };
238
239 enum SamplerFilterMode {
240     SamplerFilterModeNearest = 0,
241     SamplerFilterModeLinear = 1,
242     SamplerFilterModeMax = 0x7fffffff,
243 };
244
245 enum ImageFormat {
246     ImageFormatUnknown = 0,
247     ImageFormatRgba32f = 1,
248     ImageFormatRgba16f = 2,
249     ImageFormatR32f = 3,
250     ImageFormatRgba8 = 4,
251     ImageFormatRgba8Snorm = 5,
252     ImageFormatRg32f = 6,
253     ImageFormatRg16f = 7,
254     ImageFormatR11fG11fB10f = 8,
255     ImageFormatR16f = 9,
256     ImageFormatRgba16 = 10,
257     ImageFormatRgb10A2 = 11,
258     ImageFormatRg16 = 12,
259     ImageFormatRg8 = 13,
260     ImageFormatR16 = 14,
261     ImageFormatR8 = 15,
262     ImageFormatRgba16Snorm = 16,
263     ImageFormatRg16Snorm = 17,
264     ImageFormatRg8Snorm = 18,
265     ImageFormatR16Snorm = 19,
266     ImageFormatR8Snorm = 20,
267     ImageFormatRgba32i = 21,
268     ImageFormatRgba16i = 22,
269     ImageFormatRgba8i = 23,
270     ImageFormatR32i = 24,
271     ImageFormatRg32i = 25,
272     ImageFormatRg16i = 26,
273     ImageFormatRg8i = 27,
274     ImageFormatR16i = 28,
275     ImageFormatR8i = 29,
276     ImageFormatRgba32ui = 30,
277     ImageFormatRgba16ui = 31,
278     ImageFormatRgba8ui = 32,
279     ImageFormatR32ui = 33,
280     ImageFormatRgb10a2ui = 34,
281     ImageFormatRg32ui = 35,
282     ImageFormatRg16ui = 36,
283     ImageFormatRg8ui = 37,
284     ImageFormatR16ui = 38,
285     ImageFormatR8ui = 39,
286     ImageFormatR64ui = 40,
287     ImageFormatR64i = 41,
288     ImageFormatMax = 0x7fffffff,
289 };
290
291 enum ImageChannelOrder {
292     ImageChannelOrderR = 0,
293     ImageChannelOrderA = 1,
294     ImageChannelOrderRG = 2,
295     ImageChannelOrderRA = 3,
296     ImageChannelOrderRGB = 4,
297     ImageChannelOrderRGBA = 5,
298     ImageChannelOrderBGRA = 6,
299     ImageChannelOrderARGB = 7,
300     ImageChannelOrderIntensity = 8,
301     ImageChannelOrderLuminance = 9,
302     ImageChannelOrderRx = 10,
303     ImageChannelOrderRGx = 11,
304     ImageChannelOrderRGBx = 12,
305     ImageChannelOrderDepth = 13,
306     ImageChannelOrderDepthStencil = 14,
307     ImageChannelOrdersRGB = 15,
308     ImageChannelOrdersRGBx = 16,
309     ImageChannelOrdersRGBA = 17,
310     ImageChannelOrdersBGRA = 18,
311     ImageChannelOrderABGR = 19,
312     ImageChannelOrderMax = 0x7fffffff,
313 };
314
315 enum ImageChannelDataType {
316     ImageChannelDataTypeSnormInt8 = 0,
317     ImageChannelDataTypeSnormInt16 = 1,
318     ImageChannelDataTypeUnormInt8 = 2,
319     ImageChannelDataTypeUnormInt16 = 3,
320     ImageChannelDataTypeUnormShort565 = 4,
321     ImageChannelDataTypeUnormShort555 = 5,
322     ImageChannelDataTypeUnormInt101010 = 6,
323     ImageChannelDataTypeSignedInt8 = 7,
324     ImageChannelDataTypeSignedInt16 = 8,
325     ImageChannelDataTypeSignedInt32 = 9,
326     ImageChannelDataTypeUnsignedInt8 = 10,
327     ImageChannelDataTypeUnsignedInt16 = 11,
328     ImageChannelDataTypeUnsignedInt32 = 12,
329     ImageChannelDataTypeHalfFloat = 13,
330     ImageChannelDataTypeFloat = 14,
331     ImageChannelDataTypeUnormInt24 = 15,
332     ImageChannelDataTypeUnormInt101010_2 = 16,
333     ImageChannelDataTypeMax = 0x7fffffff,
334 };
335
336 enum ImageOperandsShift {
337     ImageOperandsBiasShift = 0,
338     ImageOperandsLodShift = 1,
339     ImageOperandsGradShift = 2,
340     ImageOperandsConstOffsetShift = 3,
341     ImageOperandsOffsetShift = 4,
342     ImageOperandsConstOffsetsShift = 5,
343     ImageOperandsSampleShift = 6,
344     ImageOperandsMinLodShift = 7,
345     ImageOperandsMakeTexelAvailableShift = 8,
346     ImageOperandsMakeTexelAvailableKHRShift = 8,
347     ImageOperandsMakeTexelVisibleShift = 9,
348     ImageOperandsMakeTexelVisibleKHRShift = 9,
349     ImageOperandsNonPrivateTexelShift = 10,
350     ImageOperandsNonPrivateTexelKHRShift = 10,
351     ImageOperandsVolatileTexelShift = 11,
352     ImageOperandsVolatileTexelKHRShift = 11,
353     ImageOperandsSignExtendShift = 12,
354     ImageOperandsZeroExtendShift = 13,
355     ImageOperandsMax = 0x7fffffff,
356 };
357
358 enum ImageOperandsMask {
359     ImageOperandsMaskNone = 0,
360     ImageOperandsBiasMask = 0x00000001,
361     ImageOperandsLodMask = 0x00000002,
362     ImageOperandsGradMask = 0x00000004,
363     ImageOperandsConstOffsetMask = 0x00000008,
364     ImageOperandsOffsetMask = 0x00000010,
365     ImageOperandsConstOffsetsMask = 0x00000020,
366     ImageOperandsSampleMask = 0x00000040,
367     ImageOperandsMinLodMask = 0x00000080,
368     ImageOperandsMakeTexelAvailableMask = 0x00000100,
369     ImageOperandsMakeTexelAvailableKHRMask = 0x00000100,
370     ImageOperandsMakeTexelVisibleMask = 0x00000200,
371     ImageOperandsMakeTexelVisibleKHRMask = 0x00000200,
372     ImageOperandsNonPrivateTexelMask = 0x00000400,
373     ImageOperandsNonPrivateTexelKHRMask = 0x00000400,
374     ImageOperandsVolatileTexelMask = 0x00000800,
375     ImageOperandsVolatileTexelKHRMask = 0x00000800,
376     ImageOperandsSignExtendMask = 0x00001000,
377     ImageOperandsZeroExtendMask = 0x00002000,
378 };
379
380 enum FPFastMathModeShift {
381     FPFastMathModeNotNaNShift = 0,
382     FPFastMathModeNotInfShift = 1,
383     FPFastMathModeNSZShift = 2,
384     FPFastMathModeAllowRecipShift = 3,
385     FPFastMathModeFastShift = 4,
386     FPFastMathModeAllowContractFastINTELShift = 16,
387     FPFastMathModeAllowReassocINTELShift = 17,
388     FPFastMathModeMax = 0x7fffffff,
389 };
390
391 enum FPFastMathModeMask {
392     FPFastMathModeMaskNone = 0,
393     FPFastMathModeNotNaNMask = 0x00000001,
394     FPFastMathModeNotInfMask = 0x00000002,
395     FPFastMathModeNSZMask = 0x00000004,
396     FPFastMathModeAllowRecipMask = 0x00000008,
397     FPFastMathModeFastMask = 0x00000010,
398     FPFastMathModeAllowContractFastINTELMask = 0x00010000,
399     FPFastMathModeAllowReassocINTELMask = 0x00020000,
400 };
401
402 enum FPRoundingMode {
403     FPRoundingModeRTE = 0,
404     FPRoundingModeRTZ = 1,
405     FPRoundingModeRTP = 2,
406     FPRoundingModeRTN = 3,
407     FPRoundingModeMax = 0x7fffffff,
408 };
409
410 enum LinkageType {
411     LinkageTypeExport = 0,
412     LinkageTypeImport = 1,
413     LinkageTypeLinkOnceODR = 2,
414     LinkageTypeMax = 0x7fffffff,
415 };
416
417 enum AccessQualifier {
418     AccessQualifierReadOnly = 0,
419     AccessQualifierWriteOnly = 1,
420     AccessQualifierReadWrite = 2,
421     AccessQualifierMax = 0x7fffffff,
422 };
423
424 enum FunctionParameterAttribute {
425     FunctionParameterAttributeZext = 0,
426     FunctionParameterAttributeSext = 1,
427     FunctionParameterAttributeByVal = 2,
428     FunctionParameterAttributeSret = 3,
429     FunctionParameterAttributeNoAlias = 4,
430     FunctionParameterAttributeNoCapture = 5,
431     FunctionParameterAttributeNoWrite = 6,
432     FunctionParameterAttributeNoReadWrite = 7,
433     FunctionParameterAttributeMax = 0x7fffffff,
434 };
435
436 enum Decoration {
437     DecorationRelaxedPrecision = 0,
438     DecorationSpecId = 1,
439     DecorationBlock = 2,
440     DecorationBufferBlock = 3,
441     DecorationRowMajor = 4,
442     DecorationColMajor = 5,
443     DecorationArrayStride = 6,
444     DecorationMatrixStride = 7,
445     DecorationGLSLShared = 8,
446     DecorationGLSLPacked = 9,
447     DecorationCPacked = 10,
448     DecorationBuiltIn = 11,
449     DecorationNoPerspective = 13,
450     DecorationFlat = 14,
451     DecorationPatch = 15,
452     DecorationCentroid = 16,
453     DecorationSample = 17,
454     DecorationInvariant = 18,
455     DecorationRestrict = 19,
456     DecorationAliased = 20,
457     DecorationVolatile = 21,
458     DecorationConstant = 22,
459     DecorationCoherent = 23,
460     DecorationNonWritable = 24,
461     DecorationNonReadable = 25,
462     DecorationUniform = 26,
463     DecorationUniformId = 27,
464     DecorationSaturatedConversion = 28,
465     DecorationStream = 29,
466     DecorationLocation = 30,
467     DecorationComponent = 31,
468     DecorationIndex = 32,
469     DecorationBinding = 33,
470     DecorationDescriptorSet = 34,
471     DecorationOffset = 35,
472     DecorationXfbBuffer = 36,
473     DecorationXfbStride = 37,
474     DecorationFuncParamAttr = 38,
475     DecorationFPRoundingMode = 39,
476     DecorationFPFastMathMode = 40,
477     DecorationLinkageAttributes = 41,
478     DecorationNoContraction = 42,
479     DecorationInputAttachmentIndex = 43,
480     DecorationAlignment = 44,
481     DecorationMaxByteOffset = 45,
482     DecorationAlignmentId = 46,
483     DecorationMaxByteOffsetId = 47,
484     DecorationNoSignedWrap = 4469,
485     DecorationNoUnsignedWrap = 4470,
486     DecorationExplicitInterpAMD = 4999,
487     DecorationOverrideCoverageNV = 5248,
488     DecorationPassthroughNV = 5250,
489     DecorationViewportRelativeNV = 5252,
490     DecorationSecondaryViewportRelativeNV = 5256,
491     DecorationPerPrimitiveNV = 5271,
492     DecorationPerViewNV = 5272,
493     DecorationPerTaskNV = 5273,
494     DecorationPerVertexNV = 5285,
495     DecorationNonUniform = 5300,
496     DecorationNonUniformEXT = 5300,
497     DecorationRestrictPointer = 5355,
498     DecorationRestrictPointerEXT = 5355,
499     DecorationAliasedPointer = 5356,
500     DecorationAliasedPointerEXT = 5356,
501     DecorationSIMTCallINTEL = 5599,
502     DecorationReferencedIndirectlyINTEL = 5602,
503     DecorationClobberINTEL = 5607,
504     DecorationSideEffectsINTEL = 5608,
505     DecorationVectorComputeVariableINTEL = 5624,
506     DecorationFuncParamIOKindINTEL = 5625,
507     DecorationVectorComputeFunctionINTEL = 5626,
508     DecorationStackCallINTEL = 5627,
509     DecorationGlobalVariableOffsetINTEL = 5628,
510     DecorationCounterBuffer = 5634,
511     DecorationHlslCounterBufferGOOGLE = 5634,
512     DecorationHlslSemanticGOOGLE = 5635,
513     DecorationUserSemantic = 5635,
514     DecorationUserTypeGOOGLE = 5636,
515     DecorationFunctionRoundingModeINTEL = 5822,
516     DecorationFunctionDenormModeINTEL = 5823,
517     DecorationRegisterINTEL = 5825,
518     DecorationMemoryINTEL = 5826,
519     DecorationNumbanksINTEL = 5827,
520     DecorationBankwidthINTEL = 5828,
521     DecorationMaxPrivateCopiesINTEL = 5829,
522     DecorationSinglepumpINTEL = 5830,
523     DecorationDoublepumpINTEL = 5831,
524     DecorationMaxReplicatesINTEL = 5832,
525     DecorationSimpleDualPortINTEL = 5833,
526     DecorationMergeINTEL = 5834,
527     DecorationBankBitsINTEL = 5835,
528     DecorationForcePow2DepthINTEL = 5836,
529     DecorationBurstCoalesceINTEL = 5899,
530     DecorationCacheSizeINTEL = 5900,
531     DecorationDontStaticallyCoalesceINTEL = 5901,
532     DecorationPrefetchINTEL = 5902,
533     DecorationStallEnableINTEL = 5905,
534     DecorationFuseLoopsInFunctionINTEL = 5907,
535     DecorationBufferLocationINTEL = 5921,
536     DecorationIOPipeStorageINTEL = 5944,
537     DecorationFunctionFloatingPointModeINTEL = 6080,
538     DecorationSingleElementVectorINTEL = 6085,
539     DecorationVectorComputeCallableFunctionINTEL = 6087,
540     DecorationMax = 0x7fffffff,
541 };
542
543 enum BuiltIn {
544     BuiltInPosition = 0,
545     BuiltInPointSize = 1,
546     BuiltInClipDistance = 3,
547     BuiltInCullDistance = 4,
548     BuiltInVertexId = 5,
549     BuiltInInstanceId = 6,
550     BuiltInPrimitiveId = 7,
551     BuiltInInvocationId = 8,
552     BuiltInLayer = 9,
553     BuiltInViewportIndex = 10,
554     BuiltInTessLevelOuter = 11,
555     BuiltInTessLevelInner = 12,
556     BuiltInTessCoord = 13,
557     BuiltInPatchVertices = 14,
558     BuiltInFragCoord = 15,
559     BuiltInPointCoord = 16,
560     BuiltInFrontFacing = 17,
561     BuiltInSampleId = 18,
562     BuiltInSamplePosition = 19,
563     BuiltInSampleMask = 20,
564     BuiltInFragDepth = 22,
565     BuiltInHelperInvocation = 23,
566     BuiltInNumWorkgroups = 24,
567     BuiltInWorkgroupSize = 25,
568     BuiltInWorkgroupId = 26,
569     BuiltInLocalInvocationId = 27,
570     BuiltInGlobalInvocationId = 28,
571     BuiltInLocalInvocationIndex = 29,
572     BuiltInWorkDim = 30,
573     BuiltInGlobalSize = 31,
574     BuiltInEnqueuedWorkgroupSize = 32,
575     BuiltInGlobalOffset = 33,
576     BuiltInGlobalLinearId = 34,
577     BuiltInSubgroupSize = 36,
578     BuiltInSubgroupMaxSize = 37,
579     BuiltInNumSubgroups = 38,
580     BuiltInNumEnqueuedSubgroups = 39,
581     BuiltInSubgroupId = 40,
582     BuiltInSubgroupLocalInvocationId = 41,
583     BuiltInVertexIndex = 42,
584     BuiltInInstanceIndex = 43,
585     BuiltInSubgroupEqMask = 4416,
586     BuiltInSubgroupEqMaskKHR = 4416,
587     BuiltInSubgroupGeMask = 4417,
588     BuiltInSubgroupGeMaskKHR = 4417,
589     BuiltInSubgroupGtMask = 4418,
590     BuiltInSubgroupGtMaskKHR = 4418,
591     BuiltInSubgroupLeMask = 4419,
592     BuiltInSubgroupLeMaskKHR = 4419,
593     BuiltInSubgroupLtMask = 4420,
594     BuiltInSubgroupLtMaskKHR = 4420,
595     BuiltInBaseVertex = 4424,
596     BuiltInBaseInstance = 4425,
597     BuiltInDrawIndex = 4426,
598     BuiltInPrimitiveShadingRateKHR = 4432,
599     BuiltInDeviceIndex = 4438,
600     BuiltInViewIndex = 4440,
601     BuiltInShadingRateKHR = 4444,
602     BuiltInBaryCoordNoPerspAMD = 4992,
603     BuiltInBaryCoordNoPerspCentroidAMD = 4993,
604     BuiltInBaryCoordNoPerspSampleAMD = 4994,
605     BuiltInBaryCoordSmoothAMD = 4995,
606     BuiltInBaryCoordSmoothCentroidAMD = 4996,
607     BuiltInBaryCoordSmoothSampleAMD = 4997,
608     BuiltInBaryCoordPullModelAMD = 4998,
609     BuiltInFragStencilRefEXT = 5014,
610     BuiltInViewportMaskNV = 5253,
611     BuiltInSecondaryPositionNV = 5257,
612     BuiltInSecondaryViewportMaskNV = 5258,
613     BuiltInPositionPerViewNV = 5261,
614     BuiltInViewportMaskPerViewNV = 5262,
615     BuiltInFullyCoveredEXT = 5264,
616     BuiltInTaskCountNV = 5274,
617     BuiltInPrimitiveCountNV = 5275,
618     BuiltInPrimitiveIndicesNV = 5276,
619     BuiltInClipDistancePerViewNV = 5277,
620     BuiltInCullDistancePerViewNV = 5278,
621     BuiltInLayerPerViewNV = 5279,
622     BuiltInMeshViewCountNV = 5280,
623     BuiltInMeshViewIndicesNV = 5281,
624     BuiltInBaryCoordNV = 5286,
625     BuiltInBaryCoordNoPerspNV = 5287,
626     BuiltInFragSizeEXT = 5292,
627     BuiltInFragmentSizeNV = 5292,
628     BuiltInFragInvocationCountEXT = 5293,
629     BuiltInInvocationsPerPixelNV = 5293,
630     BuiltInLaunchIdKHR = 5319,
631     BuiltInLaunchIdNV = 5319,
632     BuiltInLaunchSizeKHR = 5320,
633     BuiltInLaunchSizeNV = 5320,
634     BuiltInWorldRayOriginKHR = 5321,
635     BuiltInWorldRayOriginNV = 5321,
636     BuiltInWorldRayDirectionKHR = 5322,
637     BuiltInWorldRayDirectionNV = 5322,
638     BuiltInObjectRayOriginKHR = 5323,
639     BuiltInObjectRayOriginNV = 5323,
640     BuiltInObjectRayDirectionKHR = 5324,
641     BuiltInObjectRayDirectionNV = 5324,
642     BuiltInRayTminKHR = 5325,
643     BuiltInRayTminNV = 5325,
644     BuiltInRayTmaxKHR = 5326,
645     BuiltInRayTmaxNV = 5326,
646     BuiltInInstanceCustomIndexKHR = 5327,
647     BuiltInInstanceCustomIndexNV = 5327,
648     BuiltInObjectToWorldKHR = 5330,
649     BuiltInObjectToWorldNV = 5330,
650     BuiltInWorldToObjectKHR = 5331,
651     BuiltInWorldToObjectNV = 5331,
652     BuiltInHitTNV = 5332,
653     BuiltInHitKindKHR = 5333,
654     BuiltInHitKindNV = 5333,
655     BuiltInCurrentRayTimeNV = 5334,
656     BuiltInIncomingRayFlagsKHR = 5351,
657     BuiltInIncomingRayFlagsNV = 5351,
658     BuiltInRayGeometryIndexKHR = 5352,
659     BuiltInWarpsPerSMNV = 5374,
660     BuiltInSMCountNV = 5375,
661     BuiltInWarpIDNV = 5376,
662     BuiltInSMIDNV = 5377,
663     BuiltInMax = 0x7fffffff,
664 };
665
666 enum SelectionControlShift {
667     SelectionControlFlattenShift = 0,
668     SelectionControlDontFlattenShift = 1,
669     SelectionControlMax = 0x7fffffff,
670 };
671
672 enum SelectionControlMask {
673     SelectionControlMaskNone = 0,
674     SelectionControlFlattenMask = 0x00000001,
675     SelectionControlDontFlattenMask = 0x00000002,
676 };
677
678 enum LoopControlShift {
679     LoopControlUnrollShift = 0,
680     LoopControlDontUnrollShift = 1,
681     LoopControlDependencyInfiniteShift = 2,
682     LoopControlDependencyLengthShift = 3,
683     LoopControlMinIterationsShift = 4,
684     LoopControlMaxIterationsShift = 5,
685     LoopControlIterationMultipleShift = 6,
686     LoopControlPeelCountShift = 7,
687     LoopControlPartialCountShift = 8,
688     LoopControlInitiationIntervalINTELShift = 16,
689     LoopControlMaxConcurrencyINTELShift = 17,
690     LoopControlDependencyArrayINTELShift = 18,
691     LoopControlPipelineEnableINTELShift = 19,
692     LoopControlLoopCoalesceINTELShift = 20,
693     LoopControlMaxInterleavingINTELShift = 21,
694     LoopControlSpeculatedIterationsINTELShift = 22,
695     LoopControlNoFusionINTELShift = 23,
696     LoopControlMax = 0x7fffffff,
697 };
698
699 enum LoopControlMask {
700     LoopControlMaskNone = 0,
701     LoopControlUnrollMask = 0x00000001,
702     LoopControlDontUnrollMask = 0x00000002,
703     LoopControlDependencyInfiniteMask = 0x00000004,
704     LoopControlDependencyLengthMask = 0x00000008,
705     LoopControlMinIterationsMask = 0x00000010,
706     LoopControlMaxIterationsMask = 0x00000020,
707     LoopControlIterationMultipleMask = 0x00000040,
708     LoopControlPeelCountMask = 0x00000080,
709     LoopControlPartialCountMask = 0x00000100,
710     LoopControlInitiationIntervalINTELMask = 0x00010000,
711     LoopControlMaxConcurrencyINTELMask = 0x00020000,
712     LoopControlDependencyArrayINTELMask = 0x00040000,
713     LoopControlPipelineEnableINTELMask = 0x00080000,
714     LoopControlLoopCoalesceINTELMask = 0x00100000,
715     LoopControlMaxInterleavingINTELMask = 0x00200000,
716     LoopControlSpeculatedIterationsINTELMask = 0x00400000,
717     LoopControlNoFusionINTELMask = 0x00800000,
718 };
719
720 enum FunctionControlShift {
721     FunctionControlInlineShift = 0,
722     FunctionControlDontInlineShift = 1,
723     FunctionControlPureShift = 2,
724     FunctionControlConstShift = 3,
725     FunctionControlMax = 0x7fffffff,
726 };
727
728 enum FunctionControlMask {
729     FunctionControlMaskNone = 0,
730     FunctionControlInlineMask = 0x00000001,
731     FunctionControlDontInlineMask = 0x00000002,
732     FunctionControlPureMask = 0x00000004,
733     FunctionControlConstMask = 0x00000008,
734 };
735
736 enum MemorySemanticsShift {
737     MemorySemanticsAcquireShift = 1,
738     MemorySemanticsReleaseShift = 2,
739     MemorySemanticsAcquireReleaseShift = 3,
740     MemorySemanticsSequentiallyConsistentShift = 4,
741     MemorySemanticsUniformMemoryShift = 6,
742     MemorySemanticsSubgroupMemoryShift = 7,
743     MemorySemanticsWorkgroupMemoryShift = 8,
744     MemorySemanticsCrossWorkgroupMemoryShift = 9,
745     MemorySemanticsAtomicCounterMemoryShift = 10,
746     MemorySemanticsImageMemoryShift = 11,
747     MemorySemanticsOutputMemoryShift = 12,
748     MemorySemanticsOutputMemoryKHRShift = 12,
749     MemorySemanticsMakeAvailableShift = 13,
750     MemorySemanticsMakeAvailableKHRShift = 13,
751     MemorySemanticsMakeVisibleShift = 14,
752     MemorySemanticsMakeVisibleKHRShift = 14,
753     MemorySemanticsVolatileShift = 15,
754     MemorySemanticsMax = 0x7fffffff,
755 };
756
757 enum MemorySemanticsMask {
758     MemorySemanticsMaskNone = 0,
759     MemorySemanticsAcquireMask = 0x00000002,
760     MemorySemanticsReleaseMask = 0x00000004,
761     MemorySemanticsAcquireReleaseMask = 0x00000008,
762     MemorySemanticsSequentiallyConsistentMask = 0x00000010,
763     MemorySemanticsUniformMemoryMask = 0x00000040,
764     MemorySemanticsSubgroupMemoryMask = 0x00000080,
765     MemorySemanticsWorkgroupMemoryMask = 0x00000100,
766     MemorySemanticsCrossWorkgroupMemoryMask = 0x00000200,
767     MemorySemanticsAtomicCounterMemoryMask = 0x00000400,
768     MemorySemanticsImageMemoryMask = 0x00000800,
769     MemorySemanticsOutputMemoryMask = 0x00001000,
770     MemorySemanticsOutputMemoryKHRMask = 0x00001000,
771     MemorySemanticsMakeAvailableMask = 0x00002000,
772     MemorySemanticsMakeAvailableKHRMask = 0x00002000,
773     MemorySemanticsMakeVisibleMask = 0x00004000,
774     MemorySemanticsMakeVisibleKHRMask = 0x00004000,
775     MemorySemanticsVolatileMask = 0x00008000,
776 };
777
778 enum MemoryAccessShift {
779     MemoryAccessVolatileShift = 0,
780     MemoryAccessAlignedShift = 1,
781     MemoryAccessNontemporalShift = 2,
782     MemoryAccessMakePointerAvailableShift = 3,
783     MemoryAccessMakePointerAvailableKHRShift = 3,
784     MemoryAccessMakePointerVisibleShift = 4,
785     MemoryAccessMakePointerVisibleKHRShift = 4,
786     MemoryAccessNonPrivatePointerShift = 5,
787     MemoryAccessNonPrivatePointerKHRShift = 5,
788     MemoryAccessMax = 0x7fffffff,
789 };
790
791 enum MemoryAccessMask {
792     MemoryAccessMaskNone = 0,
793     MemoryAccessVolatileMask = 0x00000001,
794     MemoryAccessAlignedMask = 0x00000002,
795     MemoryAccessNontemporalMask = 0x00000004,
796     MemoryAccessMakePointerAvailableMask = 0x00000008,
797     MemoryAccessMakePointerAvailableKHRMask = 0x00000008,
798     MemoryAccessMakePointerVisibleMask = 0x00000010,
799     MemoryAccessMakePointerVisibleKHRMask = 0x00000010,
800     MemoryAccessNonPrivatePointerMask = 0x00000020,
801     MemoryAccessNonPrivatePointerKHRMask = 0x00000020,
802 };
803
804 enum Scope {
805     ScopeCrossDevice = 0,
806     ScopeDevice = 1,
807     ScopeWorkgroup = 2,
808     ScopeSubgroup = 3,
809     ScopeInvocation = 4,
810     ScopeQueueFamily = 5,
811     ScopeQueueFamilyKHR = 5,
812     ScopeShaderCallKHR = 6,
813     ScopeMax = 0x7fffffff,
814 };
815
816 enum GroupOperation {
817     GroupOperationReduce = 0,
818     GroupOperationInclusiveScan = 1,
819     GroupOperationExclusiveScan = 2,
820     GroupOperationClusteredReduce = 3,
821     GroupOperationPartitionedReduceNV = 6,
822     GroupOperationPartitionedInclusiveScanNV = 7,
823     GroupOperationPartitionedExclusiveScanNV = 8,
824     GroupOperationMax = 0x7fffffff,
825 };
826
827 enum KernelEnqueueFlags {
828     KernelEnqueueFlagsNoWait = 0,
829     KernelEnqueueFlagsWaitKernel = 1,
830     KernelEnqueueFlagsWaitWorkGroup = 2,
831     KernelEnqueueFlagsMax = 0x7fffffff,
832 };
833
834 enum KernelProfilingInfoShift {
835     KernelProfilingInfoCmdExecTimeShift = 0,
836     KernelProfilingInfoMax = 0x7fffffff,
837 };
838
839 enum KernelProfilingInfoMask {
840     KernelProfilingInfoMaskNone = 0,
841     KernelProfilingInfoCmdExecTimeMask = 0x00000001,
842 };
843
844 enum Capability {
845     CapabilityMatrix = 0,
846     CapabilityShader = 1,
847     CapabilityGeometry = 2,
848     CapabilityTessellation = 3,
849     CapabilityAddresses = 4,
850     CapabilityLinkage = 5,
851     CapabilityKernel = 6,
852     CapabilityVector16 = 7,
853     CapabilityFloat16Buffer = 8,
854     CapabilityFloat16 = 9,
855     CapabilityFloat64 = 10,
856     CapabilityInt64 = 11,
857     CapabilityInt64Atomics = 12,
858     CapabilityImageBasic = 13,
859     CapabilityImageReadWrite = 14,
860     CapabilityImageMipmap = 15,
861     CapabilityPipes = 17,
862     CapabilityGroups = 18,
863     CapabilityDeviceEnqueue = 19,
864     CapabilityLiteralSampler = 20,
865     CapabilityAtomicStorage = 21,
866     CapabilityInt16 = 22,
867     CapabilityTessellationPointSize = 23,
868     CapabilityGeometryPointSize = 24,
869     CapabilityImageGatherExtended = 25,
870     CapabilityStorageImageMultisample = 27,
871     CapabilityUniformBufferArrayDynamicIndexing = 28,
872     CapabilitySampledImageArrayDynamicIndexing = 29,
873     CapabilityStorageBufferArrayDynamicIndexing = 30,
874     CapabilityStorageImageArrayDynamicIndexing = 31,
875     CapabilityClipDistance = 32,
876     CapabilityCullDistance = 33,
877     CapabilityImageCubeArray = 34,
878     CapabilitySampleRateShading = 35,
879     CapabilityImageRect = 36,
880     CapabilitySampledRect = 37,
881     CapabilityGenericPointer = 38,
882     CapabilityInt8 = 39,
883     CapabilityInputAttachment = 40,
884     CapabilitySparseResidency = 41,
885     CapabilityMinLod = 42,
886     CapabilitySampled1D = 43,
887     CapabilityImage1D = 44,
888     CapabilitySampledCubeArray = 45,
889     CapabilitySampledBuffer = 46,
890     CapabilityImageBuffer = 47,
891     CapabilityImageMSArray = 48,
892     CapabilityStorageImageExtendedFormats = 49,
893     CapabilityImageQuery = 50,
894     CapabilityDerivativeControl = 51,
895     CapabilityInterpolationFunction = 52,
896     CapabilityTransformFeedback = 53,
897     CapabilityGeometryStreams = 54,
898     CapabilityStorageImageReadWithoutFormat = 55,
899     CapabilityStorageImageWriteWithoutFormat = 56,
900     CapabilityMultiViewport = 57,
901     CapabilitySubgroupDispatch = 58,
902     CapabilityNamedBarrier = 59,
903     CapabilityPipeStorage = 60,
904     CapabilityGroupNonUniform = 61,
905     CapabilityGroupNonUniformVote = 62,
906     CapabilityGroupNonUniformArithmetic = 63,
907     CapabilityGroupNonUniformBallot = 64,
908     CapabilityGroupNonUniformShuffle = 65,
909     CapabilityGroupNonUniformShuffleRelative = 66,
910     CapabilityGroupNonUniformClustered = 67,
911     CapabilityGroupNonUniformQuad = 68,
912     CapabilityShaderLayer = 69,
913     CapabilityShaderViewportIndex = 70,
914     CapabilityFragmentShadingRateKHR = 4422,
915     CapabilitySubgroupBallotKHR = 4423,
916     CapabilityDrawParameters = 4427,
917     CapabilityWorkgroupMemoryExplicitLayoutKHR = 4428,
918     CapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR = 4429,
919     CapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR = 4430,
920     CapabilitySubgroupVoteKHR = 4431,
921     CapabilityStorageBuffer16BitAccess = 4433,
922     CapabilityStorageUniformBufferBlock16 = 4433,
923     CapabilityStorageUniform16 = 4434,
924     CapabilityUniformAndStorageBuffer16BitAccess = 4434,
925     CapabilityStoragePushConstant16 = 4435,
926     CapabilityStorageInputOutput16 = 4436,
927     CapabilityDeviceGroup = 4437,
928     CapabilityMultiView = 4439,
929     CapabilityVariablePointersStorageBuffer = 4441,
930     CapabilityVariablePointers = 4442,
931     CapabilityAtomicStorageOps = 4445,
932     CapabilitySampleMaskPostDepthCoverage = 4447,
933     CapabilityStorageBuffer8BitAccess = 4448,
934     CapabilityUniformAndStorageBuffer8BitAccess = 4449,
935     CapabilityStoragePushConstant8 = 4450,
936     CapabilityDenormPreserve = 4464,
937     CapabilityDenormFlushToZero = 4465,
938     CapabilitySignedZeroInfNanPreserve = 4466,
939     CapabilityRoundingModeRTE = 4467,
940     CapabilityRoundingModeRTZ = 4468,
941     CapabilityRayQueryProvisionalKHR = 4471,
942     CapabilityRayQueryKHR = 4472,
943     CapabilityRayTraversalPrimitiveCullingKHR = 4478,
944     CapabilityRayTracingKHR = 4479,
945     CapabilityFloat16ImageAMD = 5008,
946     CapabilityImageGatherBiasLodAMD = 5009,
947     CapabilityFragmentMaskAMD = 5010,
948     CapabilityStencilExportEXT = 5013,
949     CapabilityImageReadWriteLodAMD = 5015,
950     CapabilityInt64ImageEXT = 5016,
951     CapabilityShaderClockKHR = 5055,
952     CapabilitySampleMaskOverrideCoverageNV = 5249,
953     CapabilityGeometryShaderPassthroughNV = 5251,
954     CapabilityShaderViewportIndexLayerEXT = 5254,
955     CapabilityShaderViewportIndexLayerNV = 5254,
956     CapabilityShaderViewportMaskNV = 5255,
957     CapabilityShaderStereoViewNV = 5259,
958     CapabilityPerViewAttributesNV = 5260,
959     CapabilityFragmentFullyCoveredEXT = 5265,
960     CapabilityMeshShadingNV = 5266,
961     CapabilityImageFootprintNV = 5282,
962     CapabilityFragmentBarycentricNV = 5284,
963     CapabilityComputeDerivativeGroupQuadsNV = 5288,
964     CapabilityFragmentDensityEXT = 5291,
965     CapabilityShadingRateNV = 5291,
966     CapabilityGroupNonUniformPartitionedNV = 5297,
967     CapabilityShaderNonUniform = 5301,
968     CapabilityShaderNonUniformEXT = 5301,
969     CapabilityRuntimeDescriptorArray = 5302,
970     CapabilityRuntimeDescriptorArrayEXT = 5302,
971     CapabilityInputAttachmentArrayDynamicIndexing = 5303,
972     CapabilityInputAttachmentArrayDynamicIndexingEXT = 5303,
973     CapabilityUniformTexelBufferArrayDynamicIndexing = 5304,
974     CapabilityUniformTexelBufferArrayDynamicIndexingEXT = 5304,
975     CapabilityStorageTexelBufferArrayDynamicIndexing = 5305,
976     CapabilityStorageTexelBufferArrayDynamicIndexingEXT = 5305,
977     CapabilityUniformBufferArrayNonUniformIndexing = 5306,
978     CapabilityUniformBufferArrayNonUniformIndexingEXT = 5306,
979     CapabilitySampledImageArrayNonUniformIndexing = 5307,
980     CapabilitySampledImageArrayNonUniformIndexingEXT = 5307,
981     CapabilityStorageBufferArrayNonUniformIndexing = 5308,
982     CapabilityStorageBufferArrayNonUniformIndexingEXT = 5308,
983     CapabilityStorageImageArrayNonUniformIndexing = 5309,
984     CapabilityStorageImageArrayNonUniformIndexingEXT = 5309,
985     CapabilityInputAttachmentArrayNonUniformIndexing = 5310,
986     CapabilityInputAttachmentArrayNonUniformIndexingEXT = 5310,
987     CapabilityUniformTexelBufferArrayNonUniformIndexing = 5311,
988     CapabilityUniformTexelBufferArrayNonUniformIndexingEXT = 5311,
989     CapabilityStorageTexelBufferArrayNonUniformIndexing = 5312,
990     CapabilityStorageTexelBufferArrayNonUniformIndexingEXT = 5312,
991     CapabilityRayTracingNV = 5340,
992     CapabilityRayTracingMotionBlurNV = 5341,
993     CapabilityVulkanMemoryModel = 5345,
994     CapabilityVulkanMemoryModelKHR = 5345,
995     CapabilityVulkanMemoryModelDeviceScope = 5346,
996     CapabilityVulkanMemoryModelDeviceScopeKHR = 5346,
997     CapabilityPhysicalStorageBufferAddresses = 5347,
998     CapabilityPhysicalStorageBufferAddressesEXT = 5347,
999     CapabilityComputeDerivativeGroupLinearNV = 5350,
1000     CapabilityRayTracingProvisionalKHR = 5353,
1001     CapabilityCooperativeMatrixNV = 5357,
1002     CapabilityFragmentShaderSampleInterlockEXT = 5363,
1003     CapabilityFragmentShaderShadingRateInterlockEXT = 5372,
1004     CapabilityShaderSMBuiltinsNV = 5373,
1005     CapabilityFragmentShaderPixelInterlockEXT = 5378,
1006     CapabilityDemoteToHelperInvocationEXT = 5379,
1007     CapabilitySubgroupShuffleINTEL = 5568,
1008     CapabilitySubgroupBufferBlockIOINTEL = 5569,
1009     CapabilitySubgroupImageBlockIOINTEL = 5570,
1010     CapabilitySubgroupImageMediaBlockIOINTEL = 5579,
1011     CapabilityRoundToInfinityINTEL = 5582,
1012     CapabilityFloatingPointModeINTEL = 5583,
1013     CapabilityIntegerFunctions2INTEL = 5584,
1014     CapabilityFunctionPointersINTEL = 5603,
1015     CapabilityIndirectReferencesINTEL = 5604,
1016     CapabilityAsmINTEL = 5606,
1017     CapabilityAtomicFloat32MinMaxEXT = 5612,
1018     CapabilityAtomicFloat64MinMaxEXT = 5613,
1019     CapabilityAtomicFloat16MinMaxEXT = 5616,
1020     CapabilityVectorComputeINTEL = 5617,
1021     CapabilityVectorAnyINTEL = 5619,
1022     CapabilityExpectAssumeKHR = 5629,
1023     CapabilitySubgroupAvcMotionEstimationINTEL = 5696,
1024     CapabilitySubgroupAvcMotionEstimationIntraINTEL = 5697,
1025     CapabilitySubgroupAvcMotionEstimationChromaINTEL = 5698,
1026     CapabilityVariableLengthArrayINTEL = 5817,
1027     CapabilityFunctionFloatControlINTEL = 5821,
1028     CapabilityFPGAMemoryAttributesINTEL = 5824,
1029     CapabilityFPFastMathModeINTEL = 5837,
1030     CapabilityArbitraryPrecisionIntegersINTEL = 5844,
1031     CapabilityUnstructuredLoopControlsINTEL = 5886,
1032     CapabilityFPGALoopControlsINTEL = 5888,
1033     CapabilityKernelAttributesINTEL = 5892,
1034     CapabilityFPGAKernelAttributesINTEL = 5897,
1035     CapabilityFPGAMemoryAccessesINTEL = 5898,
1036     CapabilityFPGAClusterAttributesINTEL = 5904,
1037     CapabilityLoopFuseINTEL = 5906,
1038     CapabilityFPGABufferLocationINTEL = 5920,
1039     CapabilityUSMStorageClassesINTEL = 5935,
1040     CapabilityIOPipesINTEL = 5943,
1041     CapabilityBlockingPipesINTEL = 5945,
1042     CapabilityFPGARegINTEL = 5948,
1043     CapabilityAtomicFloat32AddEXT = 6033,
1044     CapabilityAtomicFloat64AddEXT = 6034,
1045     CapabilityLongConstantCompositeINTEL = 6089,
1046     CapabilityAtomicFloat16AddEXT = 6095,
1047     CapabilityMax = 0x7fffffff,
1048 };
1049
1050 enum RayFlagsShift {
1051     RayFlagsOpaqueKHRShift = 0,
1052     RayFlagsNoOpaqueKHRShift = 1,
1053     RayFlagsTerminateOnFirstHitKHRShift = 2,
1054     RayFlagsSkipClosestHitShaderKHRShift = 3,
1055     RayFlagsCullBackFacingTrianglesKHRShift = 4,
1056     RayFlagsCullFrontFacingTrianglesKHRShift = 5,
1057     RayFlagsCullOpaqueKHRShift = 6,
1058     RayFlagsCullNoOpaqueKHRShift = 7,
1059     RayFlagsSkipTrianglesKHRShift = 8,
1060     RayFlagsSkipAABBsKHRShift = 9,
1061     RayFlagsMax = 0x7fffffff,
1062 };
1063
1064 enum RayFlagsMask {
1065     RayFlagsMaskNone = 0,
1066     RayFlagsOpaqueKHRMask = 0x00000001,
1067     RayFlagsNoOpaqueKHRMask = 0x00000002,
1068     RayFlagsTerminateOnFirstHitKHRMask = 0x00000004,
1069     RayFlagsSkipClosestHitShaderKHRMask = 0x00000008,
1070     RayFlagsCullBackFacingTrianglesKHRMask = 0x00000010,
1071     RayFlagsCullFrontFacingTrianglesKHRMask = 0x00000020,
1072     RayFlagsCullOpaqueKHRMask = 0x00000040,
1073     RayFlagsCullNoOpaqueKHRMask = 0x00000080,
1074     RayFlagsSkipTrianglesKHRMask = 0x00000100,
1075     RayFlagsSkipAABBsKHRMask = 0x00000200,
1076 };
1077
1078 enum RayQueryIntersection {
1079     RayQueryIntersectionRayQueryCandidateIntersectionKHR = 0,
1080     RayQueryIntersectionRayQueryCommittedIntersectionKHR = 1,
1081     RayQueryIntersectionMax = 0x7fffffff,
1082 };
1083
1084 enum RayQueryCommittedIntersectionType {
1085     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR = 0,
1086     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR = 1,
1087     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR = 2,
1088     RayQueryCommittedIntersectionTypeMax = 0x7fffffff,
1089 };
1090
1091 enum RayQueryCandidateIntersectionType {
1092     RayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR = 0,
1093     RayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR = 1,
1094     RayQueryCandidateIntersectionTypeMax = 0x7fffffff,
1095 };
1096
1097 enum FragmentShadingRateShift {
1098     FragmentShadingRateVertical2PixelsShift = 0,
1099     FragmentShadingRateVertical4PixelsShift = 1,
1100     FragmentShadingRateHorizontal2PixelsShift = 2,
1101     FragmentShadingRateHorizontal4PixelsShift = 3,
1102     FragmentShadingRateMax = 0x7fffffff,
1103 };
1104
1105 enum FragmentShadingRateMask {
1106     FragmentShadingRateMaskNone = 0,
1107     FragmentShadingRateVertical2PixelsMask = 0x00000001,
1108     FragmentShadingRateVertical4PixelsMask = 0x00000002,
1109     FragmentShadingRateHorizontal2PixelsMask = 0x00000004,
1110     FragmentShadingRateHorizontal4PixelsMask = 0x00000008,
1111 };
1112
1113 enum FPDenormMode {
1114     FPDenormModePreserve = 0,
1115     FPDenormModeFlushToZero = 1,
1116     FPDenormModeMax = 0x7fffffff,
1117 };
1118
1119 enum FPOperationMode {
1120     FPOperationModeIEEE = 0,
1121     FPOperationModeALT = 1,
1122     FPOperationModeMax = 0x7fffffff,
1123 };
1124
1125 enum Op {
1126     OpNop = 0,
1127     OpUndef = 1,
1128     OpSourceContinued = 2,
1129     OpSource = 3,
1130     OpSourceExtension = 4,
1131     OpName = 5,
1132     OpMemberName = 6,
1133     OpString = 7,
1134     OpLine = 8,
1135     OpExtension = 10,
1136     OpExtInstImport = 11,
1137     OpExtInst = 12,
1138     OpMemoryModel = 14,
1139     OpEntryPoint = 15,
1140     OpExecutionMode = 16,
1141     OpCapability = 17,
1142     OpTypeVoid = 19,
1143     OpTypeBool = 20,
1144     OpTypeInt = 21,
1145     OpTypeFloat = 22,
1146     OpTypeVector = 23,
1147     OpTypeMatrix = 24,
1148     OpTypeImage = 25,
1149     OpTypeSampler = 26,
1150     OpTypeSampledImage = 27,
1151     OpTypeArray = 28,
1152     OpTypeRuntimeArray = 29,
1153     OpTypeStruct = 30,
1154     OpTypeOpaque = 31,
1155     OpTypePointer = 32,
1156     OpTypeFunction = 33,
1157     OpTypeEvent = 34,
1158     OpTypeDeviceEvent = 35,
1159     OpTypeReserveId = 36,
1160     OpTypeQueue = 37,
1161     OpTypePipe = 38,
1162     OpTypeForwardPointer = 39,
1163     OpConstantTrue = 41,
1164     OpConstantFalse = 42,
1165     OpConstant = 43,
1166     OpConstantComposite = 44,
1167     OpConstantSampler = 45,
1168     OpConstantNull = 46,
1169     OpSpecConstantTrue = 48,
1170     OpSpecConstantFalse = 49,
1171     OpSpecConstant = 50,
1172     OpSpecConstantComposite = 51,
1173     OpSpecConstantOp = 52,
1174     OpFunction = 54,
1175     OpFunctionParameter = 55,
1176     OpFunctionEnd = 56,
1177     OpFunctionCall = 57,
1178     OpVariable = 59,
1179     OpImageTexelPointer = 60,
1180     OpLoad = 61,
1181     OpStore = 62,
1182     OpCopyMemory = 63,
1183     OpCopyMemorySized = 64,
1184     OpAccessChain = 65,
1185     OpInBoundsAccessChain = 66,
1186     OpPtrAccessChain = 67,
1187     OpArrayLength = 68,
1188     OpGenericPtrMemSemantics = 69,
1189     OpInBoundsPtrAccessChain = 70,
1190     OpDecorate = 71,
1191     OpMemberDecorate = 72,
1192     OpDecorationGroup = 73,
1193     OpGroupDecorate = 74,
1194     OpGroupMemberDecorate = 75,
1195     OpVectorExtractDynamic = 77,
1196     OpVectorInsertDynamic = 78,
1197     OpVectorShuffle = 79,
1198     OpCompositeConstruct = 80,
1199     OpCompositeExtract = 81,
1200     OpCompositeInsert = 82,
1201     OpCopyObject = 83,
1202     OpTranspose = 84,
1203     OpSampledImage = 86,
1204     OpImageSampleImplicitLod = 87,
1205     OpImageSampleExplicitLod = 88,
1206     OpImageSampleDrefImplicitLod = 89,
1207     OpImageSampleDrefExplicitLod = 90,
1208     OpImageSampleProjImplicitLod = 91,
1209     OpImageSampleProjExplicitLod = 92,
1210     OpImageSampleProjDrefImplicitLod = 93,
1211     OpImageSampleProjDrefExplicitLod = 94,
1212     OpImageFetch = 95,
1213     OpImageGather = 96,
1214     OpImageDrefGather = 97,
1215     OpImageRead = 98,
1216     OpImageWrite = 99,
1217     OpImage = 100,
1218     OpImageQueryFormat = 101,
1219     OpImageQueryOrder = 102,
1220     OpImageQuerySizeLod = 103,
1221     OpImageQuerySize = 104,
1222     OpImageQueryLod = 105,
1223     OpImageQueryLevels = 106,
1224     OpImageQuerySamples = 107,
1225     OpConvertFToU = 109,
1226     OpConvertFToS = 110,
1227     OpConvertSToF = 111,
1228     OpConvertUToF = 112,
1229     OpUConvert = 113,
1230     OpSConvert = 114,
1231     OpFConvert = 115,
1232     OpQuantizeToF16 = 116,
1233     OpConvertPtrToU = 117,
1234     OpSatConvertSToU = 118,
1235     OpSatConvertUToS = 119,
1236     OpConvertUToPtr = 120,
1237     OpPtrCastToGeneric = 121,
1238     OpGenericCastToPtr = 122,
1239     OpGenericCastToPtrExplicit = 123,
1240     OpBitcast = 124,
1241     OpSNegate = 126,
1242     OpFNegate = 127,
1243     OpIAdd = 128,
1244     OpFAdd = 129,
1245     OpISub = 130,
1246     OpFSub = 131,
1247     OpIMul = 132,
1248     OpFMul = 133,
1249     OpUDiv = 134,
1250     OpSDiv = 135,
1251     OpFDiv = 136,
1252     OpUMod = 137,
1253     OpSRem = 138,
1254     OpSMod = 139,
1255     OpFRem = 140,
1256     OpFMod = 141,
1257     OpVectorTimesScalar = 142,
1258     OpMatrixTimesScalar = 143,
1259     OpVectorTimesMatrix = 144,
1260     OpMatrixTimesVector = 145,
1261     OpMatrixTimesMatrix = 146,
1262     OpOuterProduct = 147,
1263     OpDot = 148,
1264     OpIAddCarry = 149,
1265     OpISubBorrow = 150,
1266     OpUMulExtended = 151,
1267     OpSMulExtended = 152,
1268     OpAny = 154,
1269     OpAll = 155,
1270     OpIsNan = 156,
1271     OpIsInf = 157,
1272     OpIsFinite = 158,
1273     OpIsNormal = 159,
1274     OpSignBitSet = 160,
1275     OpLessOrGreater = 161,
1276     OpOrdered = 162,
1277     OpUnordered = 163,
1278     OpLogicalEqual = 164,
1279     OpLogicalNotEqual = 165,
1280     OpLogicalOr = 166,
1281     OpLogicalAnd = 167,
1282     OpLogicalNot = 168,
1283     OpSelect = 169,
1284     OpIEqual = 170,
1285     OpINotEqual = 171,
1286     OpUGreaterThan = 172,
1287     OpSGreaterThan = 173,
1288     OpUGreaterThanEqual = 174,
1289     OpSGreaterThanEqual = 175,
1290     OpULessThan = 176,
1291     OpSLessThan = 177,
1292     OpULessThanEqual = 178,
1293     OpSLessThanEqual = 179,
1294     OpFOrdEqual = 180,
1295     OpFUnordEqual = 181,
1296     OpFOrdNotEqual = 182,
1297     OpFUnordNotEqual = 183,
1298     OpFOrdLessThan = 184,
1299     OpFUnordLessThan = 185,
1300     OpFOrdGreaterThan = 186,
1301     OpFUnordGreaterThan = 187,
1302     OpFOrdLessThanEqual = 188,
1303     OpFUnordLessThanEqual = 189,
1304     OpFOrdGreaterThanEqual = 190,
1305     OpFUnordGreaterThanEqual = 191,
1306     OpShiftRightLogical = 194,
1307     OpShiftRightArithmetic = 195,
1308     OpShiftLeftLogical = 196,
1309     OpBitwiseOr = 197,
1310     OpBitwiseXor = 198,
1311     OpBitwiseAnd = 199,
1312     OpNot = 200,
1313     OpBitFieldInsert = 201,
1314     OpBitFieldSExtract = 202,
1315     OpBitFieldUExtract = 203,
1316     OpBitReverse = 204,
1317     OpBitCount = 205,
1318     OpDPdx = 207,
1319     OpDPdy = 208,
1320     OpFwidth = 209,
1321     OpDPdxFine = 210,
1322     OpDPdyFine = 211,
1323     OpFwidthFine = 212,
1324     OpDPdxCoarse = 213,
1325     OpDPdyCoarse = 214,
1326     OpFwidthCoarse = 215,
1327     OpEmitVertex = 218,
1328     OpEndPrimitive = 219,
1329     OpEmitStreamVertex = 220,
1330     OpEndStreamPrimitive = 221,
1331     OpControlBarrier = 224,
1332     OpMemoryBarrier = 225,
1333     OpAtomicLoad = 227,
1334     OpAtomicStore = 228,
1335     OpAtomicExchange = 229,
1336     OpAtomicCompareExchange = 230,
1337     OpAtomicCompareExchangeWeak = 231,
1338     OpAtomicIIncrement = 232,
1339     OpAtomicIDecrement = 233,
1340     OpAtomicIAdd = 234,
1341     OpAtomicISub = 235,
1342     OpAtomicSMin = 236,
1343     OpAtomicUMin = 237,
1344     OpAtomicSMax = 238,
1345     OpAtomicUMax = 239,
1346     OpAtomicAnd = 240,
1347     OpAtomicOr = 241,
1348     OpAtomicXor = 242,
1349     OpPhi = 245,
1350     OpLoopMerge = 246,
1351     OpSelectionMerge = 247,
1352     OpLabel = 248,
1353     OpBranch = 249,
1354     OpBranchConditional = 250,
1355     OpSwitch = 251,
1356     OpKill = 252,
1357     OpReturn = 253,
1358     OpReturnValue = 254,
1359     OpUnreachable = 255,
1360     OpLifetimeStart = 256,
1361     OpLifetimeStop = 257,
1362     OpGroupAsyncCopy = 259,
1363     OpGroupWaitEvents = 260,
1364     OpGroupAll = 261,
1365     OpGroupAny = 262,
1366     OpGroupBroadcast = 263,
1367     OpGroupIAdd = 264,
1368     OpGroupFAdd = 265,
1369     OpGroupFMin = 266,
1370     OpGroupUMin = 267,
1371     OpGroupSMin = 268,
1372     OpGroupFMax = 269,
1373     OpGroupUMax = 270,
1374     OpGroupSMax = 271,
1375     OpReadPipe = 274,
1376     OpWritePipe = 275,
1377     OpReservedReadPipe = 276,
1378     OpReservedWritePipe = 277,
1379     OpReserveReadPipePackets = 278,
1380     OpReserveWritePipePackets = 279,
1381     OpCommitReadPipe = 280,
1382     OpCommitWritePipe = 281,
1383     OpIsValidReserveId = 282,
1384     OpGetNumPipePackets = 283,
1385     OpGetMaxPipePackets = 284,
1386     OpGroupReserveReadPipePackets = 285,
1387     OpGroupReserveWritePipePackets = 286,
1388     OpGroupCommitReadPipe = 287,
1389     OpGroupCommitWritePipe = 288,
1390     OpEnqueueMarker = 291,
1391     OpEnqueueKernel = 292,
1392     OpGetKernelNDrangeSubGroupCount = 293,
1393     OpGetKernelNDrangeMaxSubGroupSize = 294,
1394     OpGetKernelWorkGroupSize = 295,
1395     OpGetKernelPreferredWorkGroupSizeMultiple = 296,
1396     OpRetainEvent = 297,
1397     OpReleaseEvent = 298,
1398     OpCreateUserEvent = 299,
1399     OpIsValidEvent = 300,
1400     OpSetUserEventStatus = 301,
1401     OpCaptureEventProfilingInfo = 302,
1402     OpGetDefaultQueue = 303,
1403     OpBuildNDRange = 304,
1404     OpImageSparseSampleImplicitLod = 305,
1405     OpImageSparseSampleExplicitLod = 306,
1406     OpImageSparseSampleDrefImplicitLod = 307,
1407     OpImageSparseSampleDrefExplicitLod = 308,
1408     OpImageSparseSampleProjImplicitLod = 309,
1409     OpImageSparseSampleProjExplicitLod = 310,
1410     OpImageSparseSampleProjDrefImplicitLod = 311,
1411     OpImageSparseSampleProjDrefExplicitLod = 312,
1412     OpImageSparseFetch = 313,
1413     OpImageSparseGather = 314,
1414     OpImageSparseDrefGather = 315,
1415     OpImageSparseTexelsResident = 316,
1416     OpNoLine = 317,
1417     OpAtomicFlagTestAndSet = 318,
1418     OpAtomicFlagClear = 319,
1419     OpImageSparseRead = 320,
1420     OpSizeOf = 321,
1421     OpTypePipeStorage = 322,
1422     OpConstantPipeStorage = 323,
1423     OpCreatePipeFromPipeStorage = 324,
1424     OpGetKernelLocalSizeForSubgroupCount = 325,
1425     OpGetKernelMaxNumSubgroups = 326,
1426     OpTypeNamedBarrier = 327,
1427     OpNamedBarrierInitialize = 328,
1428     OpMemoryNamedBarrier = 329,
1429     OpModuleProcessed = 330,
1430     OpExecutionModeId = 331,
1431     OpDecorateId = 332,
1432     OpGroupNonUniformElect = 333,
1433     OpGroupNonUniformAll = 334,
1434     OpGroupNonUniformAny = 335,
1435     OpGroupNonUniformAllEqual = 336,
1436     OpGroupNonUniformBroadcast = 337,
1437     OpGroupNonUniformBroadcastFirst = 338,
1438     OpGroupNonUniformBallot = 339,
1439     OpGroupNonUniformInverseBallot = 340,
1440     OpGroupNonUniformBallotBitExtract = 341,
1441     OpGroupNonUniformBallotBitCount = 342,
1442     OpGroupNonUniformBallotFindLSB = 343,
1443     OpGroupNonUniformBallotFindMSB = 344,
1444     OpGroupNonUniformShuffle = 345,
1445     OpGroupNonUniformShuffleXor = 346,
1446     OpGroupNonUniformShuffleUp = 347,
1447     OpGroupNonUniformShuffleDown = 348,
1448     OpGroupNonUniformIAdd = 349,
1449     OpGroupNonUniformFAdd = 350,
1450     OpGroupNonUniformIMul = 351,
1451     OpGroupNonUniformFMul = 352,
1452     OpGroupNonUniformSMin = 353,
1453     OpGroupNonUniformUMin = 354,
1454     OpGroupNonUniformFMin = 355,
1455     OpGroupNonUniformSMax = 356,
1456     OpGroupNonUniformUMax = 357,
1457     OpGroupNonUniformFMax = 358,
1458     OpGroupNonUniformBitwiseAnd = 359,
1459     OpGroupNonUniformBitwiseOr = 360,
1460     OpGroupNonUniformBitwiseXor = 361,
1461     OpGroupNonUniformLogicalAnd = 362,
1462     OpGroupNonUniformLogicalOr = 363,
1463     OpGroupNonUniformLogicalXor = 364,
1464     OpGroupNonUniformQuadBroadcast = 365,
1465     OpGroupNonUniformQuadSwap = 366,
1466     OpCopyLogical = 400,
1467     OpPtrEqual = 401,
1468     OpPtrNotEqual = 402,
1469     OpPtrDiff = 403,
1470     OpTerminateInvocation = 4416,
1471     OpSubgroupBallotKHR = 4421,
1472     OpSubgroupFirstInvocationKHR = 4422,
1473     OpSubgroupAllKHR = 4428,
1474     OpSubgroupAnyKHR = 4429,
1475     OpSubgroupAllEqualKHR = 4430,
1476     OpSubgroupReadInvocationKHR = 4432,
1477     OpTraceRayKHR = 4445,
1478     OpExecuteCallableKHR = 4446,
1479     OpConvertUToAccelerationStructureKHR = 4447,
1480     OpIgnoreIntersectionKHR = 4448,
1481     OpTerminateRayKHR = 4449,
1482     OpTypeRayQueryKHR = 4472,
1483     OpRayQueryInitializeKHR = 4473,
1484     OpRayQueryTerminateKHR = 4474,
1485     OpRayQueryGenerateIntersectionKHR = 4475,
1486     OpRayQueryConfirmIntersectionKHR = 4476,
1487     OpRayQueryProceedKHR = 4477,
1488     OpRayQueryGetIntersectionTypeKHR = 4479,
1489     OpGroupIAddNonUniformAMD = 5000,
1490     OpGroupFAddNonUniformAMD = 5001,
1491     OpGroupFMinNonUniformAMD = 5002,
1492     OpGroupUMinNonUniformAMD = 5003,
1493     OpGroupSMinNonUniformAMD = 5004,
1494     OpGroupFMaxNonUniformAMD = 5005,
1495     OpGroupUMaxNonUniformAMD = 5006,
1496     OpGroupSMaxNonUniformAMD = 5007,
1497     OpFragmentMaskFetchAMD = 5011,
1498     OpFragmentFetchAMD = 5012,
1499     OpReadClockKHR = 5056,
1500     OpImageSampleFootprintNV = 5283,
1501     OpGroupNonUniformPartitionNV = 5296,
1502     OpWritePackedPrimitiveIndices4x8NV = 5299,
1503     OpReportIntersectionKHR = 5334,
1504     OpReportIntersectionNV = 5334,
1505     OpIgnoreIntersectionNV = 5335,
1506     OpTerminateRayNV = 5336,
1507     OpTraceNV = 5337,
1508     OpTraceMotionNV = 5338,
1509     OpTraceRayMotionNV = 5339,
1510     OpTypeAccelerationStructureKHR = 5341,
1511     OpTypeAccelerationStructureNV = 5341,
1512     OpExecuteCallableNV = 5344,
1513     OpTypeCooperativeMatrixNV = 5358,
1514     OpCooperativeMatrixLoadNV = 5359,
1515     OpCooperativeMatrixStoreNV = 5360,
1516     OpCooperativeMatrixMulAddNV = 5361,
1517     OpCooperativeMatrixLengthNV = 5362,
1518     OpBeginInvocationInterlockEXT = 5364,
1519     OpEndInvocationInterlockEXT = 5365,
1520     OpDemoteToHelperInvocationEXT = 5380,
1521     OpIsHelperInvocationEXT = 5381,
1522     OpSubgroupShuffleINTEL = 5571,
1523     OpSubgroupShuffleDownINTEL = 5572,
1524     OpSubgroupShuffleUpINTEL = 5573,
1525     OpSubgroupShuffleXorINTEL = 5574,
1526     OpSubgroupBlockReadINTEL = 5575,
1527     OpSubgroupBlockWriteINTEL = 5576,
1528     OpSubgroupImageBlockReadINTEL = 5577,
1529     OpSubgroupImageBlockWriteINTEL = 5578,
1530     OpSubgroupImageMediaBlockReadINTEL = 5580,
1531     OpSubgroupImageMediaBlockWriteINTEL = 5581,
1532     OpUCountLeadingZerosINTEL = 5585,
1533     OpUCountTrailingZerosINTEL = 5586,
1534     OpAbsISubINTEL = 5587,
1535     OpAbsUSubINTEL = 5588,
1536     OpIAddSatINTEL = 5589,
1537     OpUAddSatINTEL = 5590,
1538     OpIAverageINTEL = 5591,
1539     OpUAverageINTEL = 5592,
1540     OpIAverageRoundedINTEL = 5593,
1541     OpUAverageRoundedINTEL = 5594,
1542     OpISubSatINTEL = 5595,
1543     OpUSubSatINTEL = 5596,
1544     OpIMul32x16INTEL = 5597,
1545     OpUMul32x16INTEL = 5598,
1546     OpConstFunctionPointerINTEL = 5600,
1547     OpFunctionPointerCallINTEL = 5601,
1548     OpAsmTargetINTEL = 5609,
1549     OpAsmINTEL = 5610,
1550     OpAsmCallINTEL = 5611,
1551     OpAtomicFMinEXT = 5614,
1552     OpAtomicFMaxEXT = 5615,
1553     OpAssumeTrueKHR = 5630,
1554     OpExpectKHR = 5631,
1555     OpDecorateString = 5632,
1556     OpDecorateStringGOOGLE = 5632,
1557     OpMemberDecorateString = 5633,
1558     OpMemberDecorateStringGOOGLE = 5633,
1559     OpVmeImageINTEL = 5699,
1560     OpTypeVmeImageINTEL = 5700,
1561     OpTypeAvcImePayloadINTEL = 5701,
1562     OpTypeAvcRefPayloadINTEL = 5702,
1563     OpTypeAvcSicPayloadINTEL = 5703,
1564     OpTypeAvcMcePayloadINTEL = 5704,
1565     OpTypeAvcMceResultINTEL = 5705,
1566     OpTypeAvcImeResultINTEL = 5706,
1567     OpTypeAvcImeResultSingleReferenceStreamoutINTEL = 5707,
1568     OpTypeAvcImeResultDualReferenceStreamoutINTEL = 5708,
1569     OpTypeAvcImeSingleReferenceStreaminINTEL = 5709,
1570     OpTypeAvcImeDualReferenceStreaminINTEL = 5710,
1571     OpTypeAvcRefResultINTEL = 5711,
1572     OpTypeAvcSicResultINTEL = 5712,
1573     OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL = 5713,
1574     OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL = 5714,
1575     OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL = 5715,
1576     OpSubgroupAvcMceSetInterShapePenaltyINTEL = 5716,
1577     OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL = 5717,
1578     OpSubgroupAvcMceSetInterDirectionPenaltyINTEL = 5718,
1579     OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL = 5719,
1580     OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL = 5720,
1581     OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL = 5721,
1582     OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL = 5722,
1583     OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL = 5723,
1584     OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL = 5724,
1585     OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL = 5725,
1586     OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL = 5726,
1587     OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL = 5727,
1588     OpSubgroupAvcMceSetAcOnlyHaarINTEL = 5728,
1589     OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL = 5729,
1590     OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL = 5730,
1591     OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL = 5731,
1592     OpSubgroupAvcMceConvertToImePayloadINTEL = 5732,
1593     OpSubgroupAvcMceConvertToImeResultINTEL = 5733,
1594     OpSubgroupAvcMceConvertToRefPayloadINTEL = 5734,
1595     OpSubgroupAvcMceConvertToRefResultINTEL = 5735,
1596     OpSubgroupAvcMceConvertToSicPayloadINTEL = 5736,
1597     OpSubgroupAvcMceConvertToSicResultINTEL = 5737,
1598     OpSubgroupAvcMceGetMotionVectorsINTEL = 5738,
1599     OpSubgroupAvcMceGetInterDistortionsINTEL = 5739,
1600     OpSubgroupAvcMceGetBestInterDistortionsINTEL = 5740,
1601     OpSubgroupAvcMceGetInterMajorShapeINTEL = 5741,
1602     OpSubgroupAvcMceGetInterMinorShapeINTEL = 5742,
1603     OpSubgroupAvcMceGetInterDirectionsINTEL = 5743,
1604     OpSubgroupAvcMceGetInterMotionVectorCountINTEL = 5744,
1605     OpSubgroupAvcMceGetInterReferenceIdsINTEL = 5745,
1606     OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL = 5746,
1607     OpSubgroupAvcImeInitializeINTEL = 5747,
1608     OpSubgroupAvcImeSetSingleReferenceINTEL = 5748,
1609     OpSubgroupAvcImeSetDualReferenceINTEL = 5749,
1610     OpSubgroupAvcImeRefWindowSizeINTEL = 5750,
1611     OpSubgroupAvcImeAdjustRefOffsetINTEL = 5751,
1612     OpSubgroupAvcImeConvertToMcePayloadINTEL = 5752,
1613     OpSubgroupAvcImeSetMaxMotionVectorCountINTEL = 5753,
1614     OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL = 5754,
1615     OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL = 5755,
1616     OpSubgroupAvcImeSetWeightedSadINTEL = 5756,
1617     OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL = 5757,
1618     OpSubgroupAvcImeEvaluateWithDualReferenceINTEL = 5758,
1619     OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL = 5759,
1620     OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL = 5760,
1621     OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL = 5761,
1622     OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL = 5762,
1623     OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL = 5763,
1624     OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL = 5764,
1625     OpSubgroupAvcImeConvertToMceResultINTEL = 5765,
1626     OpSubgroupAvcImeGetSingleReferenceStreaminINTEL = 5766,
1627     OpSubgroupAvcImeGetDualReferenceStreaminINTEL = 5767,
1628     OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL = 5768,
1629     OpSubgroupAvcImeStripDualReferenceStreamoutINTEL = 5769,
1630     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL = 5770,
1631     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL = 5771,
1632     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL = 5772,
1633     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL = 5773,
1634     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL = 5774,
1635     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL = 5775,
1636     OpSubgroupAvcImeGetBorderReachedINTEL = 5776,
1637     OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL = 5777,
1638     OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL = 5778,
1639     OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL = 5779,
1640     OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL = 5780,
1641     OpSubgroupAvcFmeInitializeINTEL = 5781,
1642     OpSubgroupAvcBmeInitializeINTEL = 5782,
1643     OpSubgroupAvcRefConvertToMcePayloadINTEL = 5783,
1644     OpSubgroupAvcRefSetBidirectionalMixDisableINTEL = 5784,
1645     OpSubgroupAvcRefSetBilinearFilterEnableINTEL = 5785,
1646     OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL = 5786,
1647     OpSubgroupAvcRefEvaluateWithDualReferenceINTEL = 5787,
1648     OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL = 5788,
1649     OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL = 5789,
1650     OpSubgroupAvcRefConvertToMceResultINTEL = 5790,
1651     OpSubgroupAvcSicInitializeINTEL = 5791,
1652     OpSubgroupAvcSicConfigureSkcINTEL = 5792,
1653     OpSubgroupAvcSicConfigureIpeLumaINTEL = 5793,
1654     OpSubgroupAvcSicConfigureIpeLumaChromaINTEL = 5794,
1655     OpSubgroupAvcSicGetMotionVectorMaskINTEL = 5795,
1656     OpSubgroupAvcSicConvertToMcePayloadINTEL = 5796,
1657     OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL = 5797,
1658     OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL = 5798,
1659     OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL = 5799,
1660     OpSubgroupAvcSicSetBilinearFilterEnableINTEL = 5800,
1661     OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL = 5801,
1662     OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL = 5802,
1663     OpSubgroupAvcSicEvaluateIpeINTEL = 5803,
1664     OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL = 5804,
1665     OpSubgroupAvcSicEvaluateWithDualReferenceINTEL = 5805,
1666     OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL = 5806,
1667     OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL = 5807,
1668     OpSubgroupAvcSicConvertToMceResultINTEL = 5808,
1669     OpSubgroupAvcSicGetIpeLumaShapeINTEL = 5809,
1670     OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL = 5810,
1671     OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL = 5811,
1672     OpSubgroupAvcSicGetPackedIpeLumaModesINTEL = 5812,
1673     OpSubgroupAvcSicGetIpeChromaModeINTEL = 5813,
1674     OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL = 5814,
1675     OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL = 5815,
1676     OpSubgroupAvcSicGetInterRawSadsINTEL = 5816,
1677     OpVariableLengthArrayINTEL = 5818,
1678     OpSaveMemoryINTEL = 5819,
1679     OpRestoreMemoryINTEL = 5820,
1680     OpLoopControlINTEL = 5887,
1681     OpPtrCastToCrossWorkgroupINTEL = 5934,
1682     OpCrossWorkgroupCastToPtrINTEL = 5938,
1683     OpReadPipeBlockingINTEL = 5946,
1684     OpWritePipeBlockingINTEL = 5947,
1685     OpFPGARegINTEL = 5949,
1686     OpRayQueryGetRayTMinKHR = 6016,
1687     OpRayQueryGetRayFlagsKHR = 6017,
1688     OpRayQueryGetIntersectionTKHR = 6018,
1689     OpRayQueryGetIntersectionInstanceCustomIndexKHR = 6019,
1690     OpRayQueryGetIntersectionInstanceIdKHR = 6020,
1691     OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR = 6021,
1692     OpRayQueryGetIntersectionGeometryIndexKHR = 6022,
1693     OpRayQueryGetIntersectionPrimitiveIndexKHR = 6023,
1694     OpRayQueryGetIntersectionBarycentricsKHR = 6024,
1695     OpRayQueryGetIntersectionFrontFaceKHR = 6025,
1696     OpRayQueryGetIntersectionCandidateAABBOpaqueKHR = 6026,
1697     OpRayQueryGetIntersectionObjectRayDirectionKHR = 6027,
1698     OpRayQueryGetIntersectionObjectRayOriginKHR = 6028,
1699     OpRayQueryGetWorldRayDirectionKHR = 6029,
1700     OpRayQueryGetWorldRayOriginKHR = 6030,
1701     OpRayQueryGetIntersectionObjectToWorldKHR = 6031,
1702     OpRayQueryGetIntersectionWorldToObjectKHR = 6032,
1703     OpAtomicFAddEXT = 6035,
1704     OpTypeBufferSurfaceINTEL = 6086,
1705     OpTypeStructContinuedINTEL = 6090,
1706     OpConstantCompositeContinuedINTEL = 6091,
1707     OpSpecConstantCompositeContinuedINTEL = 6092,
1708     OpMax = 0x7fffffff,
1709 };
1710
1711 #ifdef SPV_ENABLE_UTILITY_CODE
1712 inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
1713     *hasResult = *hasResultType = false;
1714     switch (opcode) {
1715     default: /* unknown opcode */ break;
1716     case OpNop: *hasResult = false; *hasResultType = false; break;
1717     case OpUndef: *hasResult = true; *hasResultType = true; break;
1718     case OpSourceContinued: *hasResult = false; *hasResultType = false; break;
1719     case OpSource: *hasResult = false; *hasResultType = false; break;
1720     case OpSourceExtension: *hasResult = false; *hasResultType = false; break;
1721     case OpName: *hasResult = false; *hasResultType = false; break;
1722     case OpMemberName: *hasResult = false; *hasResultType = false; break;
1723     case OpString: *hasResult = true; *hasResultType = false; break;
1724     case OpLine: *hasResult = false; *hasResultType = false; break;
1725     case OpExtension: *hasResult = false; *hasResultType = false; break;
1726     case OpExtInstImport: *hasResult = true; *hasResultType = false; break;
1727     case OpExtInst: *hasResult = true; *hasResultType = true; break;
1728     case OpMemoryModel: *hasResult = false; *hasResultType = false; break;
1729     case OpEntryPoint: *hasResult = false; *hasResultType = false; break;
1730     case OpExecutionMode: *hasResult = false; *hasResultType = false; break;
1731     case OpCapability: *hasResult = false; *hasResultType = false; break;
1732     case OpTypeVoid: *hasResult = true; *hasResultType = false; break;
1733     case OpTypeBool: *hasResult = true; *hasResultType = false; break;
1734     case OpTypeInt: *hasResult = true; *hasResultType = false; break;
1735     case OpTypeFloat: *hasResult = true; *hasResultType = false; break;
1736     case OpTypeVector: *hasResult = true; *hasResultType = false; break;
1737     case OpTypeMatrix: *hasResult = true; *hasResultType = false; break;
1738     case OpTypeImage: *hasResult = true; *hasResultType = false; break;
1739     case OpTypeSampler: *hasResult = true; *hasResultType = false; break;
1740     case OpTypeSampledImage: *hasResult = true; *hasResultType = false; break;
1741     case OpTypeArray: *hasResult = true; *hasResultType = false; break;
1742     case OpTypeRuntimeArray: *hasResult = true; *hasResultType = false; break;
1743     case OpTypeStruct: *hasResult = true; *hasResultType = false; break;
1744     case OpTypeOpaque: *hasResult = true; *hasResultType = false; break;
1745     case OpTypePointer: *hasResult = true; *hasResultType = false; break;
1746     case OpTypeFunction: *hasResult = true; *hasResultType = false; break;
1747     case OpTypeEvent: *hasResult = true; *hasResultType = false; break;
1748     case OpTypeDeviceEvent: *hasResult = true; *hasResultType = false; break;
1749     case OpTypeReserveId: *hasResult = true; *hasResultType = false; break;
1750     case OpTypeQueue: *hasResult = true; *hasResultType = false; break;
1751     case OpTypePipe: *hasResult = true; *hasResultType = false; break;
1752     case OpTypeForwardPointer: *hasResult = false; *hasResultType = false; break;
1753     case OpConstantTrue: *hasResult = true; *hasResultType = true; break;
1754     case OpConstantFalse: *hasResult = true; *hasResultType = true; break;
1755     case OpConstant: *hasResult = true; *hasResultType = true; break;
1756     case OpConstantComposite: *hasResult = true; *hasResultType = true; break;
1757     case OpConstantSampler: *hasResult = true; *hasResultType = true; break;
1758     case OpConstantNull: *hasResult = true; *hasResultType = true; break;
1759     case OpSpecConstantTrue: *hasResult = true; *hasResultType = true; break;
1760     case OpSpecConstantFalse: *hasResult = true; *hasResultType = true; break;
1761     case OpSpecConstant: *hasResult = true; *hasResultType = true; break;
1762     case OpSpecConstantComposite: *hasResult = true; *hasResultType = true; break;
1763     case OpSpecConstantOp: *hasResult = true; *hasResultType = true; break;
1764     case OpFunction: *hasResult = true; *hasResultType = true; break;
1765     case OpFunctionParameter: *hasResult = true; *hasResultType = true; break;
1766     case OpFunctionEnd: *hasResult = false; *hasResultType = false; break;
1767     case OpFunctionCall: *hasResult = true; *hasResultType = true; break;
1768     case OpVariable: *hasResult = true; *hasResultType = true; break;
1769     case OpImageTexelPointer: *hasResult = true; *hasResultType = true; break;
1770     case OpLoad: *hasResult = true; *hasResultType = true; break;
1771     case OpStore: *hasResult = false; *hasResultType = false; break;
1772     case OpCopyMemory: *hasResult = false; *hasResultType = false; break;
1773     case OpCopyMemorySized: *hasResult = false; *hasResultType = false; break;
1774     case OpAccessChain: *hasResult = true; *hasResultType = true; break;
1775     case OpInBoundsAccessChain: *hasResult = true; *hasResultType = true; break;
1776     case OpPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1777     case OpArrayLength: *hasResult = true; *hasResultType = true; break;
1778     case OpGenericPtrMemSemantics: *hasResult = true; *hasResultType = true; break;
1779     case OpInBoundsPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1780     case OpDecorate: *hasResult = false; *hasResultType = false; break;
1781     case OpMemberDecorate: *hasResult = false; *hasResultType = false; break;
1782     case OpDecorationGroup: *hasResult = true; *hasResultType = false; break;
1783     case OpGroupDecorate: *hasResult = false; *hasResultType = false; break;
1784     case OpGroupMemberDecorate: *hasResult = false; *hasResultType = false; break;
1785     case OpVectorExtractDynamic: *hasResult = true; *hasResultType = true; break;
1786     case OpVectorInsertDynamic: *hasResult = true; *hasResultType = true; break;
1787     case OpVectorShuffle: *hasResult = true; *hasResultType = true; break;
1788     case OpCompositeConstruct: *hasResult = true; *hasResultType = true; break;
1789     case OpCompositeExtract: *hasResult = true; *hasResultType = true; break;
1790     case OpCompositeInsert: *hasResult = true; *hasResultType = true; break;
1791     case OpCopyObject: *hasResult = true; *hasResultType = true; break;
1792     case OpTranspose: *hasResult = true; *hasResultType = true; break;
1793     case OpSampledImage: *hasResult = true; *hasResultType = true; break;
1794     case OpImageSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
1795     case OpImageSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
1796     case OpImageSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1797     case OpImageSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1798     case OpImageSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
1799     case OpImageSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
1800     case OpImageSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1801     case OpImageSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1802     case OpImageFetch: *hasResult = true; *hasResultType = true; break;
1803     case OpImageGather: *hasResult = true; *hasResultType = true; break;
1804     case OpImageDrefGather: *hasResult = true; *hasResultType = true; break;
1805     case OpImageRead: *hasResult = true; *hasResultType = true; break;
1806     case OpImageWrite: *hasResult = false; *hasResultType = false; break;
1807     case OpImage: *hasResult = true; *hasResultType = true; break;
1808     case OpImageQueryFormat: *hasResult = true; *hasResultType = true; break;
1809     case OpImageQueryOrder: *hasResult = true; *hasResultType = true; break;
1810     case OpImageQuerySizeLod: *hasResult = true; *hasResultType = true; break;
1811     case OpImageQuerySize: *hasResult = true; *hasResultType = true; break;
1812     case OpImageQueryLod: *hasResult = true; *hasResultType = true; break;
1813     case OpImageQueryLevels: *hasResult = true; *hasResultType = true; break;
1814     case OpImageQuerySamples: *hasResult = true; *hasResultType = true; break;
1815     case OpConvertFToU: *hasResult = true; *hasResultType = true; break;
1816     case OpConvertFToS: *hasResult = true; *hasResultType = true; break;
1817     case OpConvertSToF: *hasResult = true; *hasResultType = true; break;
1818     case OpConvertUToF: *hasResult = true; *hasResultType = true; break;
1819     case OpUConvert: *hasResult = true; *hasResultType = true; break;
1820     case OpSConvert: *hasResult = true; *hasResultType = true; break;
1821     case OpFConvert: *hasResult = true; *hasResultType = true; break;
1822     case OpQuantizeToF16: *hasResult = true; *hasResultType = true; break;
1823     case OpConvertPtrToU: *hasResult = true; *hasResultType = true; break;
1824     case OpSatConvertSToU: *hasResult = true; *hasResultType = true; break;
1825     case OpSatConvertUToS: *hasResult = true; *hasResultType = true; break;
1826     case OpConvertUToPtr: *hasResult = true; *hasResultType = true; break;
1827     case OpPtrCastToGeneric: *hasResult = true; *hasResultType = true; break;
1828     case OpGenericCastToPtr: *hasResult = true; *hasResultType = true; break;
1829     case OpGenericCastToPtrExplicit: *hasResult = true; *hasResultType = true; break;
1830     case OpBitcast: *hasResult = true; *hasResultType = true; break;
1831     case OpSNegate: *hasResult = true; *hasResultType = true; break;
1832     case OpFNegate: *hasResult = true; *hasResultType = true; break;
1833     case OpIAdd: *hasResult = true; *hasResultType = true; break;
1834     case OpFAdd: *hasResult = true; *hasResultType = true; break;
1835     case OpISub: *hasResult = true; *hasResultType = true; break;
1836     case OpFSub: *hasResult = true; *hasResultType = true; break;
1837     case OpIMul: *hasResult = true; *hasResultType = true; break;
1838     case OpFMul: *hasResult = true; *hasResultType = true; break;
1839     case OpUDiv: *hasResult = true; *hasResultType = true; break;
1840     case OpSDiv: *hasResult = true; *hasResultType = true; break;
1841     case OpFDiv: *hasResult = true; *hasResultType = true; break;
1842     case OpUMod: *hasResult = true; *hasResultType = true; break;
1843     case OpSRem: *hasResult = true; *hasResultType = true; break;
1844     case OpSMod: *hasResult = true; *hasResultType = true; break;
1845     case OpFRem: *hasResult = true; *hasResultType = true; break;
1846     case OpFMod: *hasResult = true; *hasResultType = true; break;
1847     case OpVectorTimesScalar: *hasResult = true; *hasResultType = true; break;
1848     case OpMatrixTimesScalar: *hasResult = true; *hasResultType = true; break;
1849     case OpVectorTimesMatrix: *hasResult = true; *hasResultType = true; break;
1850     case OpMatrixTimesVector: *hasResult = true; *hasResultType = true; break;
1851     case OpMatrixTimesMatrix: *hasResult = true; *hasResultType = true; break;
1852     case OpOuterProduct: *hasResult = true; *hasResultType = true; break;
1853     case OpDot: *hasResult = true; *hasResultType = true; break;
1854     case OpIAddCarry: *hasResult = true; *hasResultType = true; break;
1855     case OpISubBorrow: *hasResult = true; *hasResultType = true; break;
1856     case OpUMulExtended: *hasResult = true; *hasResultType = true; break;
1857     case OpSMulExtended: *hasResult = true; *hasResultType = true; break;
1858     case OpAny: *hasResult = true; *hasResultType = true; break;
1859     case OpAll: *hasResult = true; *hasResultType = true; break;
1860     case OpIsNan: *hasResult = true; *hasResultType = true; break;
1861     case OpIsInf: *hasResult = true; *hasResultType = true; break;
1862     case OpIsFinite: *hasResult = true; *hasResultType = true; break;
1863     case OpIsNormal: *hasResult = true; *hasResultType = true; break;
1864     case OpSignBitSet: *hasResult = true; *hasResultType = true; break;
1865     case OpLessOrGreater: *hasResult = true; *hasResultType = true; break;
1866     case OpOrdered: *hasResult = true; *hasResultType = true; break;
1867     case OpUnordered: *hasResult = true; *hasResultType = true; break;
1868     case OpLogicalEqual: *hasResult = true; *hasResultType = true; break;
1869     case OpLogicalNotEqual: *hasResult = true; *hasResultType = true; break;
1870     case OpLogicalOr: *hasResult = true; *hasResultType = true; break;
1871     case OpLogicalAnd: *hasResult = true; *hasResultType = true; break;
1872     case OpLogicalNot: *hasResult = true; *hasResultType = true; break;
1873     case OpSelect: *hasResult = true; *hasResultType = true; break;
1874     case OpIEqual: *hasResult = true; *hasResultType = true; break;
1875     case OpINotEqual: *hasResult = true; *hasResultType = true; break;
1876     case OpUGreaterThan: *hasResult = true; *hasResultType = true; break;
1877     case OpSGreaterThan: *hasResult = true; *hasResultType = true; break;
1878     case OpUGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1879     case OpSGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1880     case OpULessThan: *hasResult = true; *hasResultType = true; break;
1881     case OpSLessThan: *hasResult = true; *hasResultType = true; break;
1882     case OpULessThanEqual: *hasResult = true; *hasResultType = true; break;
1883     case OpSLessThanEqual: *hasResult = true; *hasResultType = true; break;
1884     case OpFOrdEqual: *hasResult = true; *hasResultType = true; break;
1885     case OpFUnordEqual: *hasResult = true; *hasResultType = true; break;
1886     case OpFOrdNotEqual: *hasResult = true; *hasResultType = true; break;
1887     case OpFUnordNotEqual: *hasResult = true; *hasResultType = true; break;
1888     case OpFOrdLessThan: *hasResult = true; *hasResultType = true; break;
1889     case OpFUnordLessThan: *hasResult = true; *hasResultType = true; break;
1890     case OpFOrdGreaterThan: *hasResult = true; *hasResultType = true; break;
1891     case OpFUnordGreaterThan: *hasResult = true; *hasResultType = true; break;
1892     case OpFOrdLessThanEqual: *hasResult = true; *hasResultType = true; break;
1893     case OpFUnordLessThanEqual: *hasResult = true; *hasResultType = true; break;
1894     case OpFOrdGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1895     case OpFUnordGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1896     case OpShiftRightLogical: *hasResult = true; *hasResultType = true; break;
1897     case OpShiftRightArithmetic: *hasResult = true; *hasResultType = true; break;
1898     case OpShiftLeftLogical: *hasResult = true; *hasResultType = true; break;
1899     case OpBitwiseOr: *hasResult = true; *hasResultType = true; break;
1900     case OpBitwiseXor: *hasResult = true; *hasResultType = true; break;
1901     case OpBitwiseAnd: *hasResult = true; *hasResultType = true; break;
1902     case OpNot: *hasResult = true; *hasResultType = true; break;
1903     case OpBitFieldInsert: *hasResult = true; *hasResultType = true; break;
1904     case OpBitFieldSExtract: *hasResult = true; *hasResultType = true; break;
1905     case OpBitFieldUExtract: *hasResult = true; *hasResultType = true; break;
1906     case OpBitReverse: *hasResult = true; *hasResultType = true; break;
1907     case OpBitCount: *hasResult = true; *hasResultType = true; break;
1908     case OpDPdx: *hasResult = true; *hasResultType = true; break;
1909     case OpDPdy: *hasResult = true; *hasResultType = true; break;
1910     case OpFwidth: *hasResult = true; *hasResultType = true; break;
1911     case OpDPdxFine: *hasResult = true; *hasResultType = true; break;
1912     case OpDPdyFine: *hasResult = true; *hasResultType = true; break;
1913     case OpFwidthFine: *hasResult = true; *hasResultType = true; break;
1914     case OpDPdxCoarse: *hasResult = true; *hasResultType = true; break;
1915     case OpDPdyCoarse: *hasResult = true; *hasResultType = true; break;
1916     case OpFwidthCoarse: *hasResult = true; *hasResultType = true; break;
1917     case OpEmitVertex: *hasResult = false; *hasResultType = false; break;
1918     case OpEndPrimitive: *hasResult = false; *hasResultType = false; break;
1919     case OpEmitStreamVertex: *hasResult = false; *hasResultType = false; break;
1920     case OpEndStreamPrimitive: *hasResult = false; *hasResultType = false; break;
1921     case OpControlBarrier: *hasResult = false; *hasResultType = false; break;
1922     case OpMemoryBarrier: *hasResult = false; *hasResultType = false; break;
1923     case OpAtomicLoad: *hasResult = true; *hasResultType = true; break;
1924     case OpAtomicStore: *hasResult = false; *hasResultType = false; break;
1925     case OpAtomicExchange: *hasResult = true; *hasResultType = true; break;
1926     case OpAtomicCompareExchange: *hasResult = true; *hasResultType = true; break;
1927     case OpAtomicCompareExchangeWeak: *hasResult = true; *hasResultType = true; break;
1928     case OpAtomicIIncrement: *hasResult = true; *hasResultType = true; break;
1929     case OpAtomicIDecrement: *hasResult = true; *hasResultType = true; break;
1930     case OpAtomicIAdd: *hasResult = true; *hasResultType = true; break;
1931     case OpAtomicISub: *hasResult = true; *hasResultType = true; break;
1932     case OpAtomicSMin: *hasResult = true; *hasResultType = true; break;
1933     case OpAtomicUMin: *hasResult = true; *hasResultType = true; break;
1934     case OpAtomicSMax: *hasResult = true; *hasResultType = true; break;
1935     case OpAtomicUMax: *hasResult = true; *hasResultType = true; break;
1936     case OpAtomicAnd: *hasResult = true; *hasResultType = true; break;
1937     case OpAtomicOr: *hasResult = true; *hasResultType = true; break;
1938     case OpAtomicXor: *hasResult = true; *hasResultType = true; break;
1939     case OpPhi: *hasResult = true; *hasResultType = true; break;
1940     case OpLoopMerge: *hasResult = false; *hasResultType = false; break;
1941     case OpSelectionMerge: *hasResult = false; *hasResultType = false; break;
1942     case OpLabel: *hasResult = true; *hasResultType = false; break;
1943     case OpBranch: *hasResult = false; *hasResultType = false; break;
1944     case OpBranchConditional: *hasResult = false; *hasResultType = false; break;
1945     case OpSwitch: *hasResult = false; *hasResultType = false; break;
1946     case OpKill: *hasResult = false; *hasResultType = false; break;
1947     case OpReturn: *hasResult = false; *hasResultType = false; break;
1948     case OpReturnValue: *hasResult = false; *hasResultType = false; break;
1949     case OpUnreachable: *hasResult = false; *hasResultType = false; break;
1950     case OpLifetimeStart: *hasResult = false; *hasResultType = false; break;
1951     case OpLifetimeStop: *hasResult = false; *hasResultType = false; break;
1952     case OpGroupAsyncCopy: *hasResult = true; *hasResultType = true; break;
1953     case OpGroupWaitEvents: *hasResult = false; *hasResultType = false; break;
1954     case OpGroupAll: *hasResult = true; *hasResultType = true; break;
1955     case OpGroupAny: *hasResult = true; *hasResultType = true; break;
1956     case OpGroupBroadcast: *hasResult = true; *hasResultType = true; break;
1957     case OpGroupIAdd: *hasResult = true; *hasResultType = true; break;
1958     case OpGroupFAdd: *hasResult = true; *hasResultType = true; break;
1959     case OpGroupFMin: *hasResult = true; *hasResultType = true; break;
1960     case OpGroupUMin: *hasResult = true; *hasResultType = true; break;
1961     case OpGroupSMin: *hasResult = true; *hasResultType = true; break;
1962     case OpGroupFMax: *hasResult = true; *hasResultType = true; break;
1963     case OpGroupUMax: *hasResult = true; *hasResultType = true; break;
1964     case OpGroupSMax: *hasResult = true; *hasResultType = true; break;
1965     case OpReadPipe: *hasResult = true; *hasResultType = true; break;
1966     case OpWritePipe: *hasResult = true; *hasResultType = true; break;
1967     case OpReservedReadPipe: *hasResult = true; *hasResultType = true; break;
1968     case OpReservedWritePipe: *hasResult = true; *hasResultType = true; break;
1969     case OpReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
1970     case OpReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
1971     case OpCommitReadPipe: *hasResult = false; *hasResultType = false; break;
1972     case OpCommitWritePipe: *hasResult = false; *hasResultType = false; break;
1973     case OpIsValidReserveId: *hasResult = true; *hasResultType = true; break;
1974     case OpGetNumPipePackets: *hasResult = true; *hasResultType = true; break;
1975     case OpGetMaxPipePackets: *hasResult = true; *hasResultType = true; break;
1976     case OpGroupReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
1977     case OpGroupReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
1978     case OpGroupCommitReadPipe: *hasResult = false; *hasResultType = false; break;
1979     case OpGroupCommitWritePipe: *hasResult = false; *hasResultType = false; break;
1980     case OpEnqueueMarker: *hasResult = true; *hasResultType = true; break;
1981     case OpEnqueueKernel: *hasResult = true; *hasResultType = true; break;
1982     case OpGetKernelNDrangeSubGroupCount: *hasResult = true; *hasResultType = true; break;
1983     case OpGetKernelNDrangeMaxSubGroupSize: *hasResult = true; *hasResultType = true; break;
1984     case OpGetKernelWorkGroupSize: *hasResult = true; *hasResultType = true; break;
1985     case OpGetKernelPreferredWorkGroupSizeMultiple: *hasResult = true; *hasResultType = true; break;
1986     case OpRetainEvent: *hasResult = false; *hasResultType = false; break;
1987     case OpReleaseEvent: *hasResult = false; *hasResultType = false; break;
1988     case OpCreateUserEvent: *hasResult = true; *hasResultType = true; break;
1989     case OpIsValidEvent: *hasResult = true; *hasResultType = true; break;
1990     case OpSetUserEventStatus: *hasResult = false; *hasResultType = false; break;
1991     case OpCaptureEventProfilingInfo: *hasResult = false; *hasResultType = false; break;
1992     case OpGetDefaultQueue: *hasResult = true; *hasResultType = true; break;
1993     case OpBuildNDRange: *hasResult = true; *hasResultType = true; break;
1994     case OpImageSparseSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
1995     case OpImageSparseSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
1996     case OpImageSparseSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1997     case OpImageSparseSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1998     case OpImageSparseSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
1999     case OpImageSparseSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
2000     case OpImageSparseSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2001     case OpImageSparseSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2002     case OpImageSparseFetch: *hasResult = true; *hasResultType = true; break;
2003     case OpImageSparseGather: *hasResult = true; *hasResultType = true; break;
2004     case OpImageSparseDrefGather: *hasResult = true; *hasResultType = true; break;
2005     case OpImageSparseTexelsResident: *hasResult = true; *hasResultType = true; break;
2006     case OpNoLine: *hasResult = false; *hasResultType = false; break;
2007     case OpAtomicFlagTestAndSet: *hasResult = true; *hasResultType = true; break;
2008     case OpAtomicFlagClear: *hasResult = false; *hasResultType = false; break;
2009     case OpImageSparseRead: *hasResult = true; *hasResultType = true; break;
2010     case OpSizeOf: *hasResult = true; *hasResultType = true; break;
2011     case OpTypePipeStorage: *hasResult = true; *hasResultType = false; break;
2012     case OpConstantPipeStorage: *hasResult = true; *hasResultType = true; break;
2013     case OpCreatePipeFromPipeStorage: *hasResult = true; *hasResultType = true; break;
2014     case OpGetKernelLocalSizeForSubgroupCount: *hasResult = true; *hasResultType = true; break;
2015     case OpGetKernelMaxNumSubgroups: *hasResult = true; *hasResultType = true; break;
2016     case OpTypeNamedBarrier: *hasResult = true; *hasResultType = false; break;
2017     case OpNamedBarrierInitialize: *hasResult = true; *hasResultType = true; break;
2018     case OpMemoryNamedBarrier: *hasResult = false; *hasResultType = false; break;
2019     case OpModuleProcessed: *hasResult = false; *hasResultType = false; break;
2020     case OpExecutionModeId: *hasResult = false; *hasResultType = false; break;
2021     case OpDecorateId: *hasResult = false; *hasResultType = false; break;
2022     case OpGroupNonUniformElect: *hasResult = true; *hasResultType = true; break;
2023     case OpGroupNonUniformAll: *hasResult = true; *hasResultType = true; break;
2024     case OpGroupNonUniformAny: *hasResult = true; *hasResultType = true; break;
2025     case OpGroupNonUniformAllEqual: *hasResult = true; *hasResultType = true; break;
2026     case OpGroupNonUniformBroadcast: *hasResult = true; *hasResultType = true; break;
2027     case OpGroupNonUniformBroadcastFirst: *hasResult = true; *hasResultType = true; break;
2028     case OpGroupNonUniformBallot: *hasResult = true; *hasResultType = true; break;
2029     case OpGroupNonUniformInverseBallot: *hasResult = true; *hasResultType = true; break;
2030     case OpGroupNonUniformBallotBitExtract: *hasResult = true; *hasResultType = true; break;
2031     case OpGroupNonUniformBallotBitCount: *hasResult = true; *hasResultType = true; break;
2032     case OpGroupNonUniformBallotFindLSB: *hasResult = true; *hasResultType = true; break;
2033     case OpGroupNonUniformBallotFindMSB: *hasResult = true; *hasResultType = true; break;
2034     case OpGroupNonUniformShuffle: *hasResult = true; *hasResultType = true; break;
2035     case OpGroupNonUniformShuffleXor: *hasResult = true; *hasResultType = true; break;
2036     case OpGroupNonUniformShuffleUp: *hasResult = true; *hasResultType = true; break;
2037     case OpGroupNonUniformShuffleDown: *hasResult = true; *hasResultType = true; break;
2038     case OpGroupNonUniformIAdd: *hasResult = true; *hasResultType = true; break;
2039     case OpGroupNonUniformFAdd: *hasResult = true; *hasResultType = true; break;
2040     case OpGroupNonUniformIMul: *hasResult = true; *hasResultType = true; break;
2041     case OpGroupNonUniformFMul: *hasResult = true; *hasResultType = true; break;
2042     case OpGroupNonUniformSMin: *hasResult = true; *hasResultType = true; break;
2043     case OpGroupNonUniformUMin: *hasResult = true; *hasResultType = true; break;
2044     case OpGroupNonUniformFMin: *hasResult = true; *hasResultType = true; break;
2045     case OpGroupNonUniformSMax: *hasResult = true; *hasResultType = true; break;
2046     case OpGroupNonUniformUMax: *hasResult = true; *hasResultType = true; break;
2047     case OpGroupNonUniformFMax: *hasResult = true; *hasResultType = true; break;
2048     case OpGroupNonUniformBitwiseAnd: *hasResult = true; *hasResultType = true; break;
2049     case OpGroupNonUniformBitwiseOr: *hasResult = true; *hasResultType = true; break;
2050     case OpGroupNonUniformBitwiseXor: *hasResult = true; *hasResultType = true; break;
2051     case OpGroupNonUniformLogicalAnd: *hasResult = true; *hasResultType = true; break;
2052     case OpGroupNonUniformLogicalOr: *hasResult = true; *hasResultType = true; break;
2053     case OpGroupNonUniformLogicalXor: *hasResult = true; *hasResultType = true; break;
2054     case OpGroupNonUniformQuadBroadcast: *hasResult = true; *hasResultType = true; break;
2055     case OpGroupNonUniformQuadSwap: *hasResult = true; *hasResultType = true; break;
2056     case OpCopyLogical: *hasResult = true; *hasResultType = true; break;
2057     case OpPtrEqual: *hasResult = true; *hasResultType = true; break;
2058     case OpPtrNotEqual: *hasResult = true; *hasResultType = true; break;
2059     case OpPtrDiff: *hasResult = true; *hasResultType = true; break;
2060     case OpTerminateInvocation: *hasResult = false; *hasResultType = false; break;
2061     case OpSubgroupBallotKHR: *hasResult = true; *hasResultType = true; break;
2062     case OpSubgroupFirstInvocationKHR: *hasResult = true; *hasResultType = true; break;
2063     case OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
2064     case OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
2065     case OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
2066     case OpSubgroupReadInvocationKHR: *hasResult = true; *hasResultType = true; break;
2067     case OpTraceRayKHR: *hasResult = false; *hasResultType = false; break;
2068     case OpExecuteCallableKHR: *hasResult = false; *hasResultType = false; break;
2069     case OpConvertUToAccelerationStructureKHR: *hasResult = true; *hasResultType = true; break;
2070     case OpIgnoreIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2071     case OpTerminateRayKHR: *hasResult = false; *hasResultType = false; break;
2072     case OpTypeRayQueryKHR: *hasResult = true; *hasResultType = false; break;
2073     case OpRayQueryInitializeKHR: *hasResult = false; *hasResultType = false; break;
2074     case OpRayQueryTerminateKHR: *hasResult = false; *hasResultType = false; break;
2075     case OpRayQueryGenerateIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2076     case OpRayQueryConfirmIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2077     case OpRayQueryProceedKHR: *hasResult = true; *hasResultType = true; break;
2078     case OpRayQueryGetIntersectionTypeKHR: *hasResult = true; *hasResultType = true; break;
2079     case OpGroupIAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2080     case OpGroupFAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2081     case OpGroupFMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2082     case OpGroupUMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2083     case OpGroupSMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2084     case OpGroupFMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2085     case OpGroupUMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2086     case OpGroupSMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2087     case OpFragmentMaskFetchAMD: *hasResult = true; *hasResultType = true; break;
2088     case OpFragmentFetchAMD: *hasResult = true; *hasResultType = true; break;
2089     case OpReadClockKHR: *hasResult = true; *hasResultType = true; break;
2090     case OpImageSampleFootprintNV: *hasResult = true; *hasResultType = true; break;
2091     case OpGroupNonUniformPartitionNV: *hasResult = true; *hasResultType = true; break;
2092     case OpWritePackedPrimitiveIndices4x8NV: *hasResult = false; *hasResultType = false; break;
2093     case OpReportIntersectionNV: *hasResult = true; *hasResultType = true; break;
2094     case OpIgnoreIntersectionNV: *hasResult = false; *hasResultType = false; break;
2095     case OpTerminateRayNV: *hasResult = false; *hasResultType = false; break;
2096     case OpTraceNV: *hasResult = false; *hasResultType = false; break;
2097     case OpTraceMotionNV: *hasResult = false; *hasResultType = false; break;
2098     case OpTraceRayMotionNV: *hasResult = false; *hasResultType = false; break;
2099     case OpTypeAccelerationStructureNV: *hasResult = true; *hasResultType = false; break;
2100     case OpExecuteCallableNV: *hasResult = false; *hasResultType = false; break;
2101     case OpTypeCooperativeMatrixNV: *hasResult = true; *hasResultType = false; break;
2102     case OpCooperativeMatrixLoadNV: *hasResult = true; *hasResultType = true; break;
2103     case OpCooperativeMatrixStoreNV: *hasResult = false; *hasResultType = false; break;
2104     case OpCooperativeMatrixMulAddNV: *hasResult = true; *hasResultType = true; break;
2105     case OpCooperativeMatrixLengthNV: *hasResult = true; *hasResultType = true; break;
2106     case OpBeginInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2107     case OpEndInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2108     case OpDemoteToHelperInvocationEXT: *hasResult = false; *hasResultType = false; break;
2109     case OpIsHelperInvocationEXT: *hasResult = true; *hasResultType = true; break;
2110     case OpSubgroupShuffleINTEL: *hasResult = true; *hasResultType = true; break;
2111     case OpSubgroupShuffleDownINTEL: *hasResult = true; *hasResultType = true; break;
2112     case OpSubgroupShuffleUpINTEL: *hasResult = true; *hasResultType = true; break;
2113     case OpSubgroupShuffleXorINTEL: *hasResult = true; *hasResultType = true; break;
2114     case OpSubgroupBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2115     case OpSubgroupBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2116     case OpSubgroupImageBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2117     case OpSubgroupImageBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2118     case OpSubgroupImageMediaBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2119     case OpSubgroupImageMediaBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2120     case OpUCountLeadingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2121     case OpUCountTrailingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2122     case OpAbsISubINTEL: *hasResult = true; *hasResultType = true; break;
2123     case OpAbsUSubINTEL: *hasResult = true; *hasResultType = true; break;
2124     case OpIAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2125     case OpUAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2126     case OpIAverageINTEL: *hasResult = true; *hasResultType = true; break;
2127     case OpUAverageINTEL: *hasResult = true; *hasResultType = true; break;
2128     case OpIAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2129     case OpUAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2130     case OpISubSatINTEL: *hasResult = true; *hasResultType = true; break;
2131     case OpUSubSatINTEL: *hasResult = true; *hasResultType = true; break;
2132     case OpIMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2133     case OpUMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2134     case OpConstFunctionPointerINTEL: *hasResult = true; *hasResultType = true; break;
2135     case OpFunctionPointerCallINTEL: *hasResult = true; *hasResultType = true; break;
2136     case OpAsmTargetINTEL: *hasResult = true; *hasResultType = true; break;
2137     case OpAsmINTEL: *hasResult = true; *hasResultType = true; break;
2138     case OpAsmCallINTEL: *hasResult = true; *hasResultType = true; break;
2139     case OpAtomicFMinEXT: *hasResult = true; *hasResultType = true; break;
2140     case OpAtomicFMaxEXT: *hasResult = true; *hasResultType = true; break;
2141     case OpAssumeTrueKHR: *hasResult = false; *hasResultType = false; break;
2142     case OpExpectKHR: *hasResult = true; *hasResultType = true; break;
2143     case OpDecorateString: *hasResult = false; *hasResultType = false; break;
2144     case OpMemberDecorateString: *hasResult = false; *hasResultType = false; break;
2145     case OpVmeImageINTEL: *hasResult = true; *hasResultType = true; break;
2146     case OpTypeVmeImageINTEL: *hasResult = true; *hasResultType = false; break;
2147     case OpTypeAvcImePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2148     case OpTypeAvcRefPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2149     case OpTypeAvcSicPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2150     case OpTypeAvcMcePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2151     case OpTypeAvcMceResultINTEL: *hasResult = true; *hasResultType = false; break;
2152     case OpTypeAvcImeResultINTEL: *hasResult = true; *hasResultType = false; break;
2153     case OpTypeAvcImeResultSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2154     case OpTypeAvcImeResultDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2155     case OpTypeAvcImeSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2156     case OpTypeAvcImeDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2157     case OpTypeAvcRefResultINTEL: *hasResult = true; *hasResultType = false; break;
2158     case OpTypeAvcSicResultINTEL: *hasResult = true; *hasResultType = false; break;
2159     case OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2160     case OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2161     case OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2162     case OpSubgroupAvcMceSetInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2163     case OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2164     case OpSubgroupAvcMceSetInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2165     case OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2166     case OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2167     case OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2168     case OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2169     case OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2170     case OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2171     case OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2172     case OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2173     case OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2174     case OpSubgroupAvcMceSetAcOnlyHaarINTEL: *hasResult = true; *hasResultType = true; break;
2175     case OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2176     case OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2177     case OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2178     case OpSubgroupAvcMceConvertToImePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2179     case OpSubgroupAvcMceConvertToImeResultINTEL: *hasResult = true; *hasResultType = true; break;
2180     case OpSubgroupAvcMceConvertToRefPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2181     case OpSubgroupAvcMceConvertToRefResultINTEL: *hasResult = true; *hasResultType = true; break;
2182     case OpSubgroupAvcMceConvertToSicPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2183     case OpSubgroupAvcMceConvertToSicResultINTEL: *hasResult = true; *hasResultType = true; break;
2184     case OpSubgroupAvcMceGetMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2185     case OpSubgroupAvcMceGetInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2186     case OpSubgroupAvcMceGetBestInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2187     case OpSubgroupAvcMceGetInterMajorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2188     case OpSubgroupAvcMceGetInterMinorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2189     case OpSubgroupAvcMceGetInterDirectionsINTEL: *hasResult = true; *hasResultType = true; break;
2190     case OpSubgroupAvcMceGetInterMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2191     case OpSubgroupAvcMceGetInterReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2192     case OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2193     case OpSubgroupAvcImeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2194     case OpSubgroupAvcImeSetSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2195     case OpSubgroupAvcImeSetDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2196     case OpSubgroupAvcImeRefWindowSizeINTEL: *hasResult = true; *hasResultType = true; break;
2197     case OpSubgroupAvcImeAdjustRefOffsetINTEL: *hasResult = true; *hasResultType = true; break;
2198     case OpSubgroupAvcImeConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2199     case OpSubgroupAvcImeSetMaxMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2200     case OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2201     case OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2202     case OpSubgroupAvcImeSetWeightedSadINTEL: *hasResult = true; *hasResultType = true; break;
2203     case OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2204     case OpSubgroupAvcImeEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2205     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2206     case OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2207     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2208     case OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2209     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2210     case OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2211     case OpSubgroupAvcImeConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2212     case OpSubgroupAvcImeGetSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2213     case OpSubgroupAvcImeGetDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2214     case OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2215     case OpSubgroupAvcImeStripDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2216     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2217     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2218     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2219     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2220     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2221     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2222     case OpSubgroupAvcImeGetBorderReachedINTEL: *hasResult = true; *hasResultType = true; break;
2223     case OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL: *hasResult = true; *hasResultType = true; break;
2224     case OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL: *hasResult = true; *hasResultType = true; break;
2225     case OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL: *hasResult = true; *hasResultType = true; break;
2226     case OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2227     case OpSubgroupAvcFmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2228     case OpSubgroupAvcBmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2229     case OpSubgroupAvcRefConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2230     case OpSubgroupAvcRefSetBidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2231     case OpSubgroupAvcRefSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2232     case OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2233     case OpSubgroupAvcRefEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2234     case OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2235     case OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2236     case OpSubgroupAvcRefConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2237     case OpSubgroupAvcSicInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2238     case OpSubgroupAvcSicConfigureSkcINTEL: *hasResult = true; *hasResultType = true; break;
2239     case OpSubgroupAvcSicConfigureIpeLumaINTEL: *hasResult = true; *hasResultType = true; break;
2240     case OpSubgroupAvcSicConfigureIpeLumaChromaINTEL: *hasResult = true; *hasResultType = true; break;
2241     case OpSubgroupAvcSicGetMotionVectorMaskINTEL: *hasResult = true; *hasResultType = true; break;
2242     case OpSubgroupAvcSicConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2243     case OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2244     case OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2245     case OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2246     case OpSubgroupAvcSicSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2247     case OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL: *hasResult = true; *hasResultType = true; break;
2248     case OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL: *hasResult = true; *hasResultType = true; break;
2249     case OpSubgroupAvcSicEvaluateIpeINTEL: *hasResult = true; *hasResultType = true; break;
2250     case OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2251     case OpSubgroupAvcSicEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2252     case OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2253     case OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2254     case OpSubgroupAvcSicConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2255     case OpSubgroupAvcSicGetIpeLumaShapeINTEL: *hasResult = true; *hasResultType = true; break;
2256     case OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2257     case OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2258     case OpSubgroupAvcSicGetPackedIpeLumaModesINTEL: *hasResult = true; *hasResultType = true; break;
2259     case OpSubgroupAvcSicGetIpeChromaModeINTEL: *hasResult = true; *hasResultType = true; break;
2260     case OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2261     case OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2262     case OpSubgroupAvcSicGetInterRawSadsINTEL: *hasResult = true; *hasResultType = true; break;
2263     case OpVariableLengthArrayINTEL: *hasResult = true; *hasResultType = true; break;
2264     case OpSaveMemoryINTEL: *hasResult = true; *hasResultType = true; break;
2265     case OpRestoreMemoryINTEL: *hasResult = false; *hasResultType = false; break;
2266     case OpLoopControlINTEL: *hasResult = false; *hasResultType = false; break;
2267     case OpPtrCastToCrossWorkgroupINTEL: *hasResult = true; *hasResultType = true; break;
2268     case OpCrossWorkgroupCastToPtrINTEL: *hasResult = true; *hasResultType = true; break;
2269     case OpReadPipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2270     case OpWritePipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2271     case OpFPGARegINTEL: *hasResult = true; *hasResultType = true; break;
2272     case OpRayQueryGetRayTMinKHR: *hasResult = true; *hasResultType = true; break;
2273     case OpRayQueryGetRayFlagsKHR: *hasResult = true; *hasResultType = true; break;
2274     case OpRayQueryGetIntersectionTKHR: *hasResult = true; *hasResultType = true; break;
2275     case OpRayQueryGetIntersectionInstanceCustomIndexKHR: *hasResult = true; *hasResultType = true; break;
2276     case OpRayQueryGetIntersectionInstanceIdKHR: *hasResult = true; *hasResultType = true; break;
2277     case OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: *hasResult = true; *hasResultType = true; break;
2278     case OpRayQueryGetIntersectionGeometryIndexKHR: *hasResult = true; *hasResultType = true; break;
2279     case OpRayQueryGetIntersectionPrimitiveIndexKHR: *hasResult = true; *hasResultType = true; break;
2280     case OpRayQueryGetIntersectionBarycentricsKHR: *hasResult = true; *hasResultType = true; break;
2281     case OpRayQueryGetIntersectionFrontFaceKHR: *hasResult = true; *hasResultType = true; break;
2282     case OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: *hasResult = true; *hasResultType = true; break;
2283     case OpRayQueryGetIntersectionObjectRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2284     case OpRayQueryGetIntersectionObjectRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2285     case OpRayQueryGetWorldRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2286     case OpRayQueryGetWorldRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2287     case OpRayQueryGetIntersectionObjectToWorldKHR: *hasResult = true; *hasResultType = true; break;
2288     case OpRayQueryGetIntersectionWorldToObjectKHR: *hasResult = true; *hasResultType = true; break;
2289     case OpAtomicFAddEXT: *hasResult = true; *hasResultType = true; break;
2290     case OpTypeBufferSurfaceINTEL: *hasResult = true; *hasResultType = false; break;
2291     case OpTypeStructContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2292     case OpConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2293     case OpSpecConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2294     }
2295 }
2296 #endif /* SPV_ENABLE_UTILITY_CODE */
2297
2298 // Overload operator| for mask bit combining
2299
2300 inline ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
2301 inline FPFastMathModeMask operator|(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) | unsigned(b)); }
2302 inline SelectionControlMask operator|(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) | unsigned(b)); }
2303 inline LoopControlMask operator|(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) | unsigned(b)); }
2304 inline FunctionControlMask operator|(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) | unsigned(b)); }
2305 inline MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }
2306 inline MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
2307 inline KernelProfilingInfoMask operator|(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) | unsigned(b)); }
2308 inline RayFlagsMask operator|(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) | unsigned(b)); }
2309 inline FragmentShadingRateMask operator|(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) | unsigned(b)); }
2310
2311 }  // end namespace spv
2312
2313 #endif  // #ifndef spirv_HPP
2314