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