a0b35b3f1525d68baff3ba4c5f537c5b5847f3b0
[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     FunctionControlMax = 0x7fffffff,
726 };
727
728 enum FunctionControlMask {
729     FunctionControlMaskNone = 0,
730     FunctionControlInlineMask = 0x00000001,
731     FunctionControlDontInlineMask = 0x00000002,
732     FunctionControlPureMask = 0x00000004,
733     FunctionControlConstMask = 0x00000008,
734 };
735
736 enum MemorySemanticsShift {
737     MemorySemanticsAcquireShift = 1,
738     MemorySemanticsReleaseShift = 2,
739     MemorySemanticsAcquireReleaseShift = 3,
740     MemorySemanticsSequentiallyConsistentShift = 4,
741     MemorySemanticsUniformMemoryShift = 6,
742     MemorySemanticsSubgroupMemoryShift = 7,
743     MemorySemanticsWorkgroupMemoryShift = 8,
744     MemorySemanticsCrossWorkgroupMemoryShift = 9,
745     MemorySemanticsAtomicCounterMemoryShift = 10,
746     MemorySemanticsImageMemoryShift = 11,
747     MemorySemanticsOutputMemoryShift = 12,
748     MemorySemanticsOutputMemoryKHRShift = 12,
749     MemorySemanticsMakeAvailableShift = 13,
750     MemorySemanticsMakeAvailableKHRShift = 13,
751     MemorySemanticsMakeVisibleShift = 14,
752     MemorySemanticsMakeVisibleKHRShift = 14,
753     MemorySemanticsVolatileShift = 15,
754     MemorySemanticsMax = 0x7fffffff,
755 };
756
757 enum MemorySemanticsMask {
758     MemorySemanticsMaskNone = 0,
759     MemorySemanticsAcquireMask = 0x00000002,
760     MemorySemanticsReleaseMask = 0x00000004,
761     MemorySemanticsAcquireReleaseMask = 0x00000008,
762     MemorySemanticsSequentiallyConsistentMask = 0x00000010,
763     MemorySemanticsUniformMemoryMask = 0x00000040,
764     MemorySemanticsSubgroupMemoryMask = 0x00000080,
765     MemorySemanticsWorkgroupMemoryMask = 0x00000100,
766     MemorySemanticsCrossWorkgroupMemoryMask = 0x00000200,
767     MemorySemanticsAtomicCounterMemoryMask = 0x00000400,
768     MemorySemanticsImageMemoryMask = 0x00000800,
769     MemorySemanticsOutputMemoryMask = 0x00001000,
770     MemorySemanticsOutputMemoryKHRMask = 0x00001000,
771     MemorySemanticsMakeAvailableMask = 0x00002000,
772     MemorySemanticsMakeAvailableKHRMask = 0x00002000,
773     MemorySemanticsMakeVisibleMask = 0x00004000,
774     MemorySemanticsMakeVisibleKHRMask = 0x00004000,
775     MemorySemanticsVolatileMask = 0x00008000,
776 };
777
778 enum MemoryAccessShift {
779     MemoryAccessVolatileShift = 0,
780     MemoryAccessAlignedShift = 1,
781     MemoryAccessNontemporalShift = 2,
782     MemoryAccessMakePointerAvailableShift = 3,
783     MemoryAccessMakePointerAvailableKHRShift = 3,
784     MemoryAccessMakePointerVisibleShift = 4,
785     MemoryAccessMakePointerVisibleKHRShift = 4,
786     MemoryAccessNonPrivatePointerShift = 5,
787     MemoryAccessNonPrivatePointerKHRShift = 5,
788     MemoryAccessMax = 0x7fffffff,
789 };
790
791 enum MemoryAccessMask {
792     MemoryAccessMaskNone = 0,
793     MemoryAccessVolatileMask = 0x00000001,
794     MemoryAccessAlignedMask = 0x00000002,
795     MemoryAccessNontemporalMask = 0x00000004,
796     MemoryAccessMakePointerAvailableMask = 0x00000008,
797     MemoryAccessMakePointerAvailableKHRMask = 0x00000008,
798     MemoryAccessMakePointerVisibleMask = 0x00000010,
799     MemoryAccessMakePointerVisibleKHRMask = 0x00000010,
800     MemoryAccessNonPrivatePointerMask = 0x00000020,
801     MemoryAccessNonPrivatePointerKHRMask = 0x00000020,
802 };
803
804 enum Scope {
805     ScopeCrossDevice = 0,
806     ScopeDevice = 1,
807     ScopeWorkgroup = 2,
808     ScopeSubgroup = 3,
809     ScopeInvocation = 4,
810     ScopeQueueFamily = 5,
811     ScopeQueueFamilyKHR = 5,
812     ScopeShaderCallKHR = 6,
813     ScopeMax = 0x7fffffff,
814 };
815
816 enum GroupOperation {
817     GroupOperationReduce = 0,
818     GroupOperationInclusiveScan = 1,
819     GroupOperationExclusiveScan = 2,
820     GroupOperationClusteredReduce = 3,
821     GroupOperationPartitionedReduceNV = 6,
822     GroupOperationPartitionedInclusiveScanNV = 7,
823     GroupOperationPartitionedExclusiveScanNV = 8,
824     GroupOperationMax = 0x7fffffff,
825 };
826
827 enum KernelEnqueueFlags {
828     KernelEnqueueFlagsNoWait = 0,
829     KernelEnqueueFlagsWaitKernel = 1,
830     KernelEnqueueFlagsWaitWorkGroup = 2,
831     KernelEnqueueFlagsMax = 0x7fffffff,
832 };
833
834 enum KernelProfilingInfoShift {
835     KernelProfilingInfoCmdExecTimeShift = 0,
836     KernelProfilingInfoMax = 0x7fffffff,
837 };
838
839 enum KernelProfilingInfoMask {
840     KernelProfilingInfoMaskNone = 0,
841     KernelProfilingInfoCmdExecTimeMask = 0x00000001,
842 };
843
844 enum Capability {
845     CapabilityMatrix = 0,
846     CapabilityShader = 1,
847     CapabilityGeometry = 2,
848     CapabilityTessellation = 3,
849     CapabilityAddresses = 4,
850     CapabilityLinkage = 5,
851     CapabilityKernel = 6,
852     CapabilityVector16 = 7,
853     CapabilityFloat16Buffer = 8,
854     CapabilityFloat16 = 9,
855     CapabilityFloat64 = 10,
856     CapabilityInt64 = 11,
857     CapabilityInt64Atomics = 12,
858     CapabilityImageBasic = 13,
859     CapabilityImageReadWrite = 14,
860     CapabilityImageMipmap = 15,
861     CapabilityPipes = 17,
862     CapabilityGroups = 18,
863     CapabilityDeviceEnqueue = 19,
864     CapabilityLiteralSampler = 20,
865     CapabilityAtomicStorage = 21,
866     CapabilityInt16 = 22,
867     CapabilityTessellationPointSize = 23,
868     CapabilityGeometryPointSize = 24,
869     CapabilityImageGatherExtended = 25,
870     CapabilityStorageImageMultisample = 27,
871     CapabilityUniformBufferArrayDynamicIndexing = 28,
872     CapabilitySampledImageArrayDynamicIndexing = 29,
873     CapabilityStorageBufferArrayDynamicIndexing = 30,
874     CapabilityStorageImageArrayDynamicIndexing = 31,
875     CapabilityClipDistance = 32,
876     CapabilityCullDistance = 33,
877     CapabilityImageCubeArray = 34,
878     CapabilitySampleRateShading = 35,
879     CapabilityImageRect = 36,
880     CapabilitySampledRect = 37,
881     CapabilityGenericPointer = 38,
882     CapabilityInt8 = 39,
883     CapabilityInputAttachment = 40,
884     CapabilitySparseResidency = 41,
885     CapabilityMinLod = 42,
886     CapabilitySampled1D = 43,
887     CapabilityImage1D = 44,
888     CapabilitySampledCubeArray = 45,
889     CapabilitySampledBuffer = 46,
890     CapabilityImageBuffer = 47,
891     CapabilityImageMSArray = 48,
892     CapabilityStorageImageExtendedFormats = 49,
893     CapabilityImageQuery = 50,
894     CapabilityDerivativeControl = 51,
895     CapabilityInterpolationFunction = 52,
896     CapabilityTransformFeedback = 53,
897     CapabilityGeometryStreams = 54,
898     CapabilityStorageImageReadWithoutFormat = 55,
899     CapabilityStorageImageWriteWithoutFormat = 56,
900     CapabilityMultiViewport = 57,
901     CapabilitySubgroupDispatch = 58,
902     CapabilityNamedBarrier = 59,
903     CapabilityPipeStorage = 60,
904     CapabilityGroupNonUniform = 61,
905     CapabilityGroupNonUniformVote = 62,
906     CapabilityGroupNonUniformArithmetic = 63,
907     CapabilityGroupNonUniformBallot = 64,
908     CapabilityGroupNonUniformShuffle = 65,
909     CapabilityGroupNonUniformShuffleRelative = 66,
910     CapabilityGroupNonUniformClustered = 67,
911     CapabilityGroupNonUniformQuad = 68,
912     CapabilityShaderLayer = 69,
913     CapabilityShaderViewportIndex = 70,
914     CapabilityFragmentShadingRateKHR = 4422,
915     CapabilitySubgroupBallotKHR = 4423,
916     CapabilityDrawParameters = 4427,
917     CapabilityWorkgroupMemoryExplicitLayoutKHR = 4428,
918     CapabilityWorkgroupMemoryExplicitLayout8BitAccessKHR = 4429,
919     CapabilityWorkgroupMemoryExplicitLayout16BitAccessKHR = 4430,
920     CapabilitySubgroupVoteKHR = 4431,
921     CapabilityStorageBuffer16BitAccess = 4433,
922     CapabilityStorageUniformBufferBlock16 = 4433,
923     CapabilityStorageUniform16 = 4434,
924     CapabilityUniformAndStorageBuffer16BitAccess = 4434,
925     CapabilityStoragePushConstant16 = 4435,
926     CapabilityStorageInputOutput16 = 4436,
927     CapabilityDeviceGroup = 4437,
928     CapabilityMultiView = 4439,
929     CapabilityVariablePointersStorageBuffer = 4441,
930     CapabilityVariablePointers = 4442,
931     CapabilityAtomicStorageOps = 4445,
932     CapabilitySampleMaskPostDepthCoverage = 4447,
933     CapabilityStorageBuffer8BitAccess = 4448,
934     CapabilityUniformAndStorageBuffer8BitAccess = 4449,
935     CapabilityStoragePushConstant8 = 4450,
936     CapabilityDenormPreserve = 4464,
937     CapabilityDenormFlushToZero = 4465,
938     CapabilitySignedZeroInfNanPreserve = 4466,
939     CapabilityRoundingModeRTE = 4467,
940     CapabilityRoundingModeRTZ = 4468,
941     CapabilityRayQueryProvisionalKHR = 4471,
942     CapabilityRayQueryKHR = 4472,
943     CapabilityRayTraversalPrimitiveCullingKHR = 4478,
944     CapabilityRayTracingKHR = 4479,
945     CapabilityFloat16ImageAMD = 5008,
946     CapabilityImageGatherBiasLodAMD = 5009,
947     CapabilityFragmentMaskAMD = 5010,
948     CapabilityStencilExportEXT = 5013,
949     CapabilityImageReadWriteLodAMD = 5015,
950     CapabilityInt64ImageEXT = 5016,
951     CapabilityShaderClockKHR = 5055,
952     CapabilitySampleMaskOverrideCoverageNV = 5249,
953     CapabilityGeometryShaderPassthroughNV = 5251,
954     CapabilityShaderViewportIndexLayerEXT = 5254,
955     CapabilityShaderViewportIndexLayerNV = 5254,
956     CapabilityShaderViewportMaskNV = 5255,
957     CapabilityShaderStereoViewNV = 5259,
958     CapabilityPerViewAttributesNV = 5260,
959     CapabilityFragmentFullyCoveredEXT = 5265,
960     CapabilityMeshShadingNV = 5266,
961     CapabilityImageFootprintNV = 5282,
962     CapabilityFragmentBarycentricNV = 5284,
963     CapabilityComputeDerivativeGroupQuadsNV = 5288,
964     CapabilityFragmentDensityEXT = 5291,
965     CapabilityShadingRateNV = 5291,
966     CapabilityGroupNonUniformPartitionedNV = 5297,
967     CapabilityShaderNonUniform = 5301,
968     CapabilityShaderNonUniformEXT = 5301,
969     CapabilityRuntimeDescriptorArray = 5302,
970     CapabilityRuntimeDescriptorArrayEXT = 5302,
971     CapabilityInputAttachmentArrayDynamicIndexing = 5303,
972     CapabilityInputAttachmentArrayDynamicIndexingEXT = 5303,
973     CapabilityUniformTexelBufferArrayDynamicIndexing = 5304,
974     CapabilityUniformTexelBufferArrayDynamicIndexingEXT = 5304,
975     CapabilityStorageTexelBufferArrayDynamicIndexing = 5305,
976     CapabilityStorageTexelBufferArrayDynamicIndexingEXT = 5305,
977     CapabilityUniformBufferArrayNonUniformIndexing = 5306,
978     CapabilityUniformBufferArrayNonUniformIndexingEXT = 5306,
979     CapabilitySampledImageArrayNonUniformIndexing = 5307,
980     CapabilitySampledImageArrayNonUniformIndexingEXT = 5307,
981     CapabilityStorageBufferArrayNonUniformIndexing = 5308,
982     CapabilityStorageBufferArrayNonUniformIndexingEXT = 5308,
983     CapabilityStorageImageArrayNonUniformIndexing = 5309,
984     CapabilityStorageImageArrayNonUniformIndexingEXT = 5309,
985     CapabilityInputAttachmentArrayNonUniformIndexing = 5310,
986     CapabilityInputAttachmentArrayNonUniformIndexingEXT = 5310,
987     CapabilityUniformTexelBufferArrayNonUniformIndexing = 5311,
988     CapabilityUniformTexelBufferArrayNonUniformIndexingEXT = 5311,
989     CapabilityStorageTexelBufferArrayNonUniformIndexing = 5312,
990     CapabilityStorageTexelBufferArrayNonUniformIndexingEXT = 5312,
991     CapabilityRayTracingNV = 5340,
992     CapabilityVulkanMemoryModel = 5345,
993     CapabilityVulkanMemoryModelKHR = 5345,
994     CapabilityVulkanMemoryModelDeviceScope = 5346,
995     CapabilityVulkanMemoryModelDeviceScopeKHR = 5346,
996     CapabilityPhysicalStorageBufferAddresses = 5347,
997     CapabilityPhysicalStorageBufferAddressesEXT = 5347,
998     CapabilityComputeDerivativeGroupLinearNV = 5350,
999     CapabilityRayTracingProvisionalKHR = 5353,
1000     CapabilityCooperativeMatrixNV = 5357,
1001     CapabilityFragmentShaderSampleInterlockEXT = 5363,
1002     CapabilityFragmentShaderShadingRateInterlockEXT = 5372,
1003     CapabilityShaderSMBuiltinsNV = 5373,
1004     CapabilityFragmentShaderPixelInterlockEXT = 5378,
1005     CapabilityDemoteToHelperInvocationEXT = 5379,
1006     CapabilitySubgroupShuffleINTEL = 5568,
1007     CapabilitySubgroupBufferBlockIOINTEL = 5569,
1008     CapabilitySubgroupImageBlockIOINTEL = 5570,
1009     CapabilitySubgroupImageMediaBlockIOINTEL = 5579,
1010     CapabilityRoundToInfinityINTEL = 5582,
1011     CapabilityFloatingPointModeINTEL = 5583,
1012     CapabilityIntegerFunctions2INTEL = 5584,
1013     CapabilityFunctionPointersINTEL = 5603,
1014     CapabilityIndirectReferencesINTEL = 5604,
1015     CapabilityAsmINTEL = 5606,
1016     CapabilityAtomicFloat32MinMaxEXT = 5612,
1017     CapabilityAtomicFloat64MinMaxEXT = 5613,
1018     CapabilityAtomicFloat16MinMaxEXT = 5616,
1019     CapabilityVectorComputeINTEL = 5617,
1020     CapabilityVectorAnyINTEL = 5619,
1021     CapabilityExpectAssumeKHR = 5629,
1022     CapabilitySubgroupAvcMotionEstimationINTEL = 5696,
1023     CapabilitySubgroupAvcMotionEstimationIntraINTEL = 5697,
1024     CapabilitySubgroupAvcMotionEstimationChromaINTEL = 5698,
1025     CapabilityVariableLengthArrayINTEL = 5817,
1026     CapabilityFunctionFloatControlINTEL = 5821,
1027     CapabilityFPGAMemoryAttributesINTEL = 5824,
1028     CapabilityFPFastMathModeINTEL = 5837,
1029     CapabilityArbitraryPrecisionIntegersINTEL = 5844,
1030     CapabilityArbitraryPrecisionFloatingPointINTEL = 5845,
1031     CapabilityUnstructuredLoopControlsINTEL = 5886,
1032     CapabilityFPGALoopControlsINTEL = 5888,
1033     CapabilityKernelAttributesINTEL = 5892,
1034     CapabilityFPGAKernelAttributesINTEL = 5897,
1035     CapabilityFPGAMemoryAccessesINTEL = 5898,
1036     CapabilityFPGAClusterAttributesINTEL = 5904,
1037     CapabilityLoopFuseINTEL = 5906,
1038     CapabilityFPGABufferLocationINTEL = 5920,
1039     CapabilityArbitraryPrecisionFixedPointINTEL = 5922,
1040     CapabilityUSMStorageClassesINTEL = 5935,
1041     CapabilityIOPipesINTEL = 5943,
1042     CapabilityBlockingPipesINTEL = 5945,
1043     CapabilityFPGARegINTEL = 5948,
1044     CapabilityDotProductInputAllKHR = 6016,
1045     CapabilityDotProductInput4x8BitKHR = 6017,
1046     CapabilityDotProductInput4x8BitPackedKHR = 6018,
1047     CapabilityDotProductKHR = 6019,
1048     CapabilityBitInstructions = 6025,
1049     CapabilityAtomicFloat32AddEXT = 6033,
1050     CapabilityAtomicFloat64AddEXT = 6034,
1051     CapabilityLongConstantCompositeINTEL = 6089,
1052     CapabilityAtomicFloat16AddEXT = 6095,
1053     CapabilityDebugInfoModuleINTEL = 6114,
1054     CapabilityMax = 0x7fffffff,
1055 };
1056
1057 enum RayFlagsShift {
1058     RayFlagsOpaqueKHRShift = 0,
1059     RayFlagsNoOpaqueKHRShift = 1,
1060     RayFlagsTerminateOnFirstHitKHRShift = 2,
1061     RayFlagsSkipClosestHitShaderKHRShift = 3,
1062     RayFlagsCullBackFacingTrianglesKHRShift = 4,
1063     RayFlagsCullFrontFacingTrianglesKHRShift = 5,
1064     RayFlagsCullOpaqueKHRShift = 6,
1065     RayFlagsCullNoOpaqueKHRShift = 7,
1066     RayFlagsSkipTrianglesKHRShift = 8,
1067     RayFlagsSkipAABBsKHRShift = 9,
1068     RayFlagsMax = 0x7fffffff,
1069 };
1070
1071 enum RayFlagsMask {
1072     RayFlagsMaskNone = 0,
1073     RayFlagsOpaqueKHRMask = 0x00000001,
1074     RayFlagsNoOpaqueKHRMask = 0x00000002,
1075     RayFlagsTerminateOnFirstHitKHRMask = 0x00000004,
1076     RayFlagsSkipClosestHitShaderKHRMask = 0x00000008,
1077     RayFlagsCullBackFacingTrianglesKHRMask = 0x00000010,
1078     RayFlagsCullFrontFacingTrianglesKHRMask = 0x00000020,
1079     RayFlagsCullOpaqueKHRMask = 0x00000040,
1080     RayFlagsCullNoOpaqueKHRMask = 0x00000080,
1081     RayFlagsSkipTrianglesKHRMask = 0x00000100,
1082     RayFlagsSkipAABBsKHRMask = 0x00000200,
1083 };
1084
1085 enum RayQueryIntersection {
1086     RayQueryIntersectionRayQueryCandidateIntersectionKHR = 0,
1087     RayQueryIntersectionRayQueryCommittedIntersectionKHR = 1,
1088     RayQueryIntersectionMax = 0x7fffffff,
1089 };
1090
1091 enum RayQueryCommittedIntersectionType {
1092     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR = 0,
1093     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR = 1,
1094     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR = 2,
1095     RayQueryCommittedIntersectionTypeMax = 0x7fffffff,
1096 };
1097
1098 enum RayQueryCandidateIntersectionType {
1099     RayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR = 0,
1100     RayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR = 1,
1101     RayQueryCandidateIntersectionTypeMax = 0x7fffffff,
1102 };
1103
1104 enum FragmentShadingRateShift {
1105     FragmentShadingRateVertical2PixelsShift = 0,
1106     FragmentShadingRateVertical4PixelsShift = 1,
1107     FragmentShadingRateHorizontal2PixelsShift = 2,
1108     FragmentShadingRateHorizontal4PixelsShift = 3,
1109     FragmentShadingRateMax = 0x7fffffff,
1110 };
1111
1112 enum FragmentShadingRateMask {
1113     FragmentShadingRateMaskNone = 0,
1114     FragmentShadingRateVertical2PixelsMask = 0x00000001,
1115     FragmentShadingRateVertical4PixelsMask = 0x00000002,
1116     FragmentShadingRateHorizontal2PixelsMask = 0x00000004,
1117     FragmentShadingRateHorizontal4PixelsMask = 0x00000008,
1118 };
1119
1120 enum FPDenormMode {
1121     FPDenormModePreserve = 0,
1122     FPDenormModeFlushToZero = 1,
1123     FPDenormModeMax = 0x7fffffff,
1124 };
1125
1126 enum FPOperationMode {
1127     FPOperationModeIEEE = 0,
1128     FPOperationModeALT = 1,
1129     FPOperationModeMax = 0x7fffffff,
1130 };
1131
1132 enum QuantizationModes {
1133     QuantizationModesTRN = 0,
1134     QuantizationModesTRN_ZERO = 1,
1135     QuantizationModesRND = 2,
1136     QuantizationModesRND_ZERO = 3,
1137     QuantizationModesRND_INF = 4,
1138     QuantizationModesRND_MIN_INF = 5,
1139     QuantizationModesRND_CONV = 6,
1140     QuantizationModesRND_CONV_ODD = 7,
1141     QuantizationModesMax = 0x7fffffff,
1142 };
1143
1144 enum OverflowModes {
1145     OverflowModesWRAP = 0,
1146     OverflowModesSAT = 1,
1147     OverflowModesSAT_ZERO = 2,
1148     OverflowModesSAT_SYM = 3,
1149     OverflowModesMax = 0x7fffffff,
1150 };
1151
1152 enum PackedVectorFormat {
1153     PackedVectorFormatPackedVectorFormat4x8BitKHR = 0,
1154     PackedVectorFormatMax = 0x7fffffff,
1155 };
1156
1157 enum Op {
1158     OpNop = 0,
1159     OpUndef = 1,
1160     OpSourceContinued = 2,
1161     OpSource = 3,
1162     OpSourceExtension = 4,
1163     OpName = 5,
1164     OpMemberName = 6,
1165     OpString = 7,
1166     OpLine = 8,
1167     OpExtension = 10,
1168     OpExtInstImport = 11,
1169     OpExtInst = 12,
1170     OpMemoryModel = 14,
1171     OpEntryPoint = 15,
1172     OpExecutionMode = 16,
1173     OpCapability = 17,
1174     OpTypeVoid = 19,
1175     OpTypeBool = 20,
1176     OpTypeInt = 21,
1177     OpTypeFloat = 22,
1178     OpTypeVector = 23,
1179     OpTypeMatrix = 24,
1180     OpTypeImage = 25,
1181     OpTypeSampler = 26,
1182     OpTypeSampledImage = 27,
1183     OpTypeArray = 28,
1184     OpTypeRuntimeArray = 29,
1185     OpTypeStruct = 30,
1186     OpTypeOpaque = 31,
1187     OpTypePointer = 32,
1188     OpTypeFunction = 33,
1189     OpTypeEvent = 34,
1190     OpTypeDeviceEvent = 35,
1191     OpTypeReserveId = 36,
1192     OpTypeQueue = 37,
1193     OpTypePipe = 38,
1194     OpTypeForwardPointer = 39,
1195     OpConstantTrue = 41,
1196     OpConstantFalse = 42,
1197     OpConstant = 43,
1198     OpConstantComposite = 44,
1199     OpConstantSampler = 45,
1200     OpConstantNull = 46,
1201     OpSpecConstantTrue = 48,
1202     OpSpecConstantFalse = 49,
1203     OpSpecConstant = 50,
1204     OpSpecConstantComposite = 51,
1205     OpSpecConstantOp = 52,
1206     OpFunction = 54,
1207     OpFunctionParameter = 55,
1208     OpFunctionEnd = 56,
1209     OpFunctionCall = 57,
1210     OpVariable = 59,
1211     OpImageTexelPointer = 60,
1212     OpLoad = 61,
1213     OpStore = 62,
1214     OpCopyMemory = 63,
1215     OpCopyMemorySized = 64,
1216     OpAccessChain = 65,
1217     OpInBoundsAccessChain = 66,
1218     OpPtrAccessChain = 67,
1219     OpArrayLength = 68,
1220     OpGenericPtrMemSemantics = 69,
1221     OpInBoundsPtrAccessChain = 70,
1222     OpDecorate = 71,
1223     OpMemberDecorate = 72,
1224     OpDecorationGroup = 73,
1225     OpGroupDecorate = 74,
1226     OpGroupMemberDecorate = 75,
1227     OpVectorExtractDynamic = 77,
1228     OpVectorInsertDynamic = 78,
1229     OpVectorShuffle = 79,
1230     OpCompositeConstruct = 80,
1231     OpCompositeExtract = 81,
1232     OpCompositeInsert = 82,
1233     OpCopyObject = 83,
1234     OpTranspose = 84,
1235     OpSampledImage = 86,
1236     OpImageSampleImplicitLod = 87,
1237     OpImageSampleExplicitLod = 88,
1238     OpImageSampleDrefImplicitLod = 89,
1239     OpImageSampleDrefExplicitLod = 90,
1240     OpImageSampleProjImplicitLod = 91,
1241     OpImageSampleProjExplicitLod = 92,
1242     OpImageSampleProjDrefImplicitLod = 93,
1243     OpImageSampleProjDrefExplicitLod = 94,
1244     OpImageFetch = 95,
1245     OpImageGather = 96,
1246     OpImageDrefGather = 97,
1247     OpImageRead = 98,
1248     OpImageWrite = 99,
1249     OpImage = 100,
1250     OpImageQueryFormat = 101,
1251     OpImageQueryOrder = 102,
1252     OpImageQuerySizeLod = 103,
1253     OpImageQuerySize = 104,
1254     OpImageQueryLod = 105,
1255     OpImageQueryLevels = 106,
1256     OpImageQuerySamples = 107,
1257     OpConvertFToU = 109,
1258     OpConvertFToS = 110,
1259     OpConvertSToF = 111,
1260     OpConvertUToF = 112,
1261     OpUConvert = 113,
1262     OpSConvert = 114,
1263     OpFConvert = 115,
1264     OpQuantizeToF16 = 116,
1265     OpConvertPtrToU = 117,
1266     OpSatConvertSToU = 118,
1267     OpSatConvertUToS = 119,
1268     OpConvertUToPtr = 120,
1269     OpPtrCastToGeneric = 121,
1270     OpGenericCastToPtr = 122,
1271     OpGenericCastToPtrExplicit = 123,
1272     OpBitcast = 124,
1273     OpSNegate = 126,
1274     OpFNegate = 127,
1275     OpIAdd = 128,
1276     OpFAdd = 129,
1277     OpISub = 130,
1278     OpFSub = 131,
1279     OpIMul = 132,
1280     OpFMul = 133,
1281     OpUDiv = 134,
1282     OpSDiv = 135,
1283     OpFDiv = 136,
1284     OpUMod = 137,
1285     OpSRem = 138,
1286     OpSMod = 139,
1287     OpFRem = 140,
1288     OpFMod = 141,
1289     OpVectorTimesScalar = 142,
1290     OpMatrixTimesScalar = 143,
1291     OpVectorTimesMatrix = 144,
1292     OpMatrixTimesVector = 145,
1293     OpMatrixTimesMatrix = 146,
1294     OpOuterProduct = 147,
1295     OpDot = 148,
1296     OpIAddCarry = 149,
1297     OpISubBorrow = 150,
1298     OpUMulExtended = 151,
1299     OpSMulExtended = 152,
1300     OpAny = 154,
1301     OpAll = 155,
1302     OpIsNan = 156,
1303     OpIsInf = 157,
1304     OpIsFinite = 158,
1305     OpIsNormal = 159,
1306     OpSignBitSet = 160,
1307     OpLessOrGreater = 161,
1308     OpOrdered = 162,
1309     OpUnordered = 163,
1310     OpLogicalEqual = 164,
1311     OpLogicalNotEqual = 165,
1312     OpLogicalOr = 166,
1313     OpLogicalAnd = 167,
1314     OpLogicalNot = 168,
1315     OpSelect = 169,
1316     OpIEqual = 170,
1317     OpINotEqual = 171,
1318     OpUGreaterThan = 172,
1319     OpSGreaterThan = 173,
1320     OpUGreaterThanEqual = 174,
1321     OpSGreaterThanEqual = 175,
1322     OpULessThan = 176,
1323     OpSLessThan = 177,
1324     OpULessThanEqual = 178,
1325     OpSLessThanEqual = 179,
1326     OpFOrdEqual = 180,
1327     OpFUnordEqual = 181,
1328     OpFOrdNotEqual = 182,
1329     OpFUnordNotEqual = 183,
1330     OpFOrdLessThan = 184,
1331     OpFUnordLessThan = 185,
1332     OpFOrdGreaterThan = 186,
1333     OpFUnordGreaterThan = 187,
1334     OpFOrdLessThanEqual = 188,
1335     OpFUnordLessThanEqual = 189,
1336     OpFOrdGreaterThanEqual = 190,
1337     OpFUnordGreaterThanEqual = 191,
1338     OpShiftRightLogical = 194,
1339     OpShiftRightArithmetic = 195,
1340     OpShiftLeftLogical = 196,
1341     OpBitwiseOr = 197,
1342     OpBitwiseXor = 198,
1343     OpBitwiseAnd = 199,
1344     OpNot = 200,
1345     OpBitFieldInsert = 201,
1346     OpBitFieldSExtract = 202,
1347     OpBitFieldUExtract = 203,
1348     OpBitReverse = 204,
1349     OpBitCount = 205,
1350     OpDPdx = 207,
1351     OpDPdy = 208,
1352     OpFwidth = 209,
1353     OpDPdxFine = 210,
1354     OpDPdyFine = 211,
1355     OpFwidthFine = 212,
1356     OpDPdxCoarse = 213,
1357     OpDPdyCoarse = 214,
1358     OpFwidthCoarse = 215,
1359     OpEmitVertex = 218,
1360     OpEndPrimitive = 219,
1361     OpEmitStreamVertex = 220,
1362     OpEndStreamPrimitive = 221,
1363     OpControlBarrier = 224,
1364     OpMemoryBarrier = 225,
1365     OpAtomicLoad = 227,
1366     OpAtomicStore = 228,
1367     OpAtomicExchange = 229,
1368     OpAtomicCompareExchange = 230,
1369     OpAtomicCompareExchangeWeak = 231,
1370     OpAtomicIIncrement = 232,
1371     OpAtomicIDecrement = 233,
1372     OpAtomicIAdd = 234,
1373     OpAtomicISub = 235,
1374     OpAtomicSMin = 236,
1375     OpAtomicUMin = 237,
1376     OpAtomicSMax = 238,
1377     OpAtomicUMax = 239,
1378     OpAtomicAnd = 240,
1379     OpAtomicOr = 241,
1380     OpAtomicXor = 242,
1381     OpPhi = 245,
1382     OpLoopMerge = 246,
1383     OpSelectionMerge = 247,
1384     OpLabel = 248,
1385     OpBranch = 249,
1386     OpBranchConditional = 250,
1387     OpSwitch = 251,
1388     OpKill = 252,
1389     OpReturn = 253,
1390     OpReturnValue = 254,
1391     OpUnreachable = 255,
1392     OpLifetimeStart = 256,
1393     OpLifetimeStop = 257,
1394     OpGroupAsyncCopy = 259,
1395     OpGroupWaitEvents = 260,
1396     OpGroupAll = 261,
1397     OpGroupAny = 262,
1398     OpGroupBroadcast = 263,
1399     OpGroupIAdd = 264,
1400     OpGroupFAdd = 265,
1401     OpGroupFMin = 266,
1402     OpGroupUMin = 267,
1403     OpGroupSMin = 268,
1404     OpGroupFMax = 269,
1405     OpGroupUMax = 270,
1406     OpGroupSMax = 271,
1407     OpReadPipe = 274,
1408     OpWritePipe = 275,
1409     OpReservedReadPipe = 276,
1410     OpReservedWritePipe = 277,
1411     OpReserveReadPipePackets = 278,
1412     OpReserveWritePipePackets = 279,
1413     OpCommitReadPipe = 280,
1414     OpCommitWritePipe = 281,
1415     OpIsValidReserveId = 282,
1416     OpGetNumPipePackets = 283,
1417     OpGetMaxPipePackets = 284,
1418     OpGroupReserveReadPipePackets = 285,
1419     OpGroupReserveWritePipePackets = 286,
1420     OpGroupCommitReadPipe = 287,
1421     OpGroupCommitWritePipe = 288,
1422     OpEnqueueMarker = 291,
1423     OpEnqueueKernel = 292,
1424     OpGetKernelNDrangeSubGroupCount = 293,
1425     OpGetKernelNDrangeMaxSubGroupSize = 294,
1426     OpGetKernelWorkGroupSize = 295,
1427     OpGetKernelPreferredWorkGroupSizeMultiple = 296,
1428     OpRetainEvent = 297,
1429     OpReleaseEvent = 298,
1430     OpCreateUserEvent = 299,
1431     OpIsValidEvent = 300,
1432     OpSetUserEventStatus = 301,
1433     OpCaptureEventProfilingInfo = 302,
1434     OpGetDefaultQueue = 303,
1435     OpBuildNDRange = 304,
1436     OpImageSparseSampleImplicitLod = 305,
1437     OpImageSparseSampleExplicitLod = 306,
1438     OpImageSparseSampleDrefImplicitLod = 307,
1439     OpImageSparseSampleDrefExplicitLod = 308,
1440     OpImageSparseSampleProjImplicitLod = 309,
1441     OpImageSparseSampleProjExplicitLod = 310,
1442     OpImageSparseSampleProjDrefImplicitLod = 311,
1443     OpImageSparseSampleProjDrefExplicitLod = 312,
1444     OpImageSparseFetch = 313,
1445     OpImageSparseGather = 314,
1446     OpImageSparseDrefGather = 315,
1447     OpImageSparseTexelsResident = 316,
1448     OpNoLine = 317,
1449     OpAtomicFlagTestAndSet = 318,
1450     OpAtomicFlagClear = 319,
1451     OpImageSparseRead = 320,
1452     OpSizeOf = 321,
1453     OpTypePipeStorage = 322,
1454     OpConstantPipeStorage = 323,
1455     OpCreatePipeFromPipeStorage = 324,
1456     OpGetKernelLocalSizeForSubgroupCount = 325,
1457     OpGetKernelMaxNumSubgroups = 326,
1458     OpTypeNamedBarrier = 327,
1459     OpNamedBarrierInitialize = 328,
1460     OpMemoryNamedBarrier = 329,
1461     OpModuleProcessed = 330,
1462     OpExecutionModeId = 331,
1463     OpDecorateId = 332,
1464     OpGroupNonUniformElect = 333,
1465     OpGroupNonUniformAll = 334,
1466     OpGroupNonUniformAny = 335,
1467     OpGroupNonUniformAllEqual = 336,
1468     OpGroupNonUniformBroadcast = 337,
1469     OpGroupNonUniformBroadcastFirst = 338,
1470     OpGroupNonUniformBallot = 339,
1471     OpGroupNonUniformInverseBallot = 340,
1472     OpGroupNonUniformBallotBitExtract = 341,
1473     OpGroupNonUniformBallotBitCount = 342,
1474     OpGroupNonUniformBallotFindLSB = 343,
1475     OpGroupNonUniformBallotFindMSB = 344,
1476     OpGroupNonUniformShuffle = 345,
1477     OpGroupNonUniformShuffleXor = 346,
1478     OpGroupNonUniformShuffleUp = 347,
1479     OpGroupNonUniformShuffleDown = 348,
1480     OpGroupNonUniformIAdd = 349,
1481     OpGroupNonUniformFAdd = 350,
1482     OpGroupNonUniformIMul = 351,
1483     OpGroupNonUniformFMul = 352,
1484     OpGroupNonUniformSMin = 353,
1485     OpGroupNonUniformUMin = 354,
1486     OpGroupNonUniformFMin = 355,
1487     OpGroupNonUniformSMax = 356,
1488     OpGroupNonUniformUMax = 357,
1489     OpGroupNonUniformFMax = 358,
1490     OpGroupNonUniformBitwiseAnd = 359,
1491     OpGroupNonUniformBitwiseOr = 360,
1492     OpGroupNonUniformBitwiseXor = 361,
1493     OpGroupNonUniformLogicalAnd = 362,
1494     OpGroupNonUniformLogicalOr = 363,
1495     OpGroupNonUniformLogicalXor = 364,
1496     OpGroupNonUniformQuadBroadcast = 365,
1497     OpGroupNonUniformQuadSwap = 366,
1498     OpCopyLogical = 400,
1499     OpPtrEqual = 401,
1500     OpPtrNotEqual = 402,
1501     OpPtrDiff = 403,
1502     OpTerminateInvocation = 4416,
1503     OpSubgroupBallotKHR = 4421,
1504     OpSubgroupFirstInvocationKHR = 4422,
1505     OpSubgroupAllKHR = 4428,
1506     OpSubgroupAnyKHR = 4429,
1507     OpSubgroupAllEqualKHR = 4430,
1508     OpSubgroupReadInvocationKHR = 4432,
1509     OpTraceRayKHR = 4445,
1510     OpExecuteCallableKHR = 4446,
1511     OpConvertUToAccelerationStructureKHR = 4447,
1512     OpIgnoreIntersectionKHR = 4448,
1513     OpTerminateRayKHR = 4449,
1514     OpSDotKHR = 4450,
1515     OpUDotKHR = 4451,
1516     OpSUDotKHR = 4452,
1517     OpSDotAccSatKHR = 4453,
1518     OpUDotAccSatKHR = 4454,
1519     OpSUDotAccSatKHR = 4455,
1520     OpTypeRayQueryKHR = 4472,
1521     OpRayQueryInitializeKHR = 4473,
1522     OpRayQueryTerminateKHR = 4474,
1523     OpRayQueryGenerateIntersectionKHR = 4475,
1524     OpRayQueryConfirmIntersectionKHR = 4476,
1525     OpRayQueryProceedKHR = 4477,
1526     OpRayQueryGetIntersectionTypeKHR = 4479,
1527     OpGroupIAddNonUniformAMD = 5000,
1528     OpGroupFAddNonUniformAMD = 5001,
1529     OpGroupFMinNonUniformAMD = 5002,
1530     OpGroupUMinNonUniformAMD = 5003,
1531     OpGroupSMinNonUniformAMD = 5004,
1532     OpGroupFMaxNonUniformAMD = 5005,
1533     OpGroupUMaxNonUniformAMD = 5006,
1534     OpGroupSMaxNonUniformAMD = 5007,
1535     OpFragmentMaskFetchAMD = 5011,
1536     OpFragmentFetchAMD = 5012,
1537     OpReadClockKHR = 5056,
1538     OpImageSampleFootprintNV = 5283,
1539     OpGroupNonUniformPartitionNV = 5296,
1540     OpWritePackedPrimitiveIndices4x8NV = 5299,
1541     OpReportIntersectionKHR = 5334,
1542     OpReportIntersectionNV = 5334,
1543     OpIgnoreIntersectionNV = 5335,
1544     OpTerminateRayNV = 5336,
1545     OpTraceNV = 5337,
1546     OpTypeAccelerationStructureKHR = 5341,
1547     OpTypeAccelerationStructureNV = 5341,
1548     OpExecuteCallableNV = 5344,
1549     OpTypeCooperativeMatrixNV = 5358,
1550     OpCooperativeMatrixLoadNV = 5359,
1551     OpCooperativeMatrixStoreNV = 5360,
1552     OpCooperativeMatrixMulAddNV = 5361,
1553     OpCooperativeMatrixLengthNV = 5362,
1554     OpBeginInvocationInterlockEXT = 5364,
1555     OpEndInvocationInterlockEXT = 5365,
1556     OpDemoteToHelperInvocationEXT = 5380,
1557     OpIsHelperInvocationEXT = 5381,
1558     OpSubgroupShuffleINTEL = 5571,
1559     OpSubgroupShuffleDownINTEL = 5572,
1560     OpSubgroupShuffleUpINTEL = 5573,
1561     OpSubgroupShuffleXorINTEL = 5574,
1562     OpSubgroupBlockReadINTEL = 5575,
1563     OpSubgroupBlockWriteINTEL = 5576,
1564     OpSubgroupImageBlockReadINTEL = 5577,
1565     OpSubgroupImageBlockWriteINTEL = 5578,
1566     OpSubgroupImageMediaBlockReadINTEL = 5580,
1567     OpSubgroupImageMediaBlockWriteINTEL = 5581,
1568     OpUCountLeadingZerosINTEL = 5585,
1569     OpUCountTrailingZerosINTEL = 5586,
1570     OpAbsISubINTEL = 5587,
1571     OpAbsUSubINTEL = 5588,
1572     OpIAddSatINTEL = 5589,
1573     OpUAddSatINTEL = 5590,
1574     OpIAverageINTEL = 5591,
1575     OpUAverageINTEL = 5592,
1576     OpIAverageRoundedINTEL = 5593,
1577     OpUAverageRoundedINTEL = 5594,
1578     OpISubSatINTEL = 5595,
1579     OpUSubSatINTEL = 5596,
1580     OpIMul32x16INTEL = 5597,
1581     OpUMul32x16INTEL = 5598,
1582     OpConstFunctionPointerINTEL = 5600,
1583     OpFunctionPointerCallINTEL = 5601,
1584     OpAsmTargetINTEL = 5609,
1585     OpAsmINTEL = 5610,
1586     OpAsmCallINTEL = 5611,
1587     OpAtomicFMinEXT = 5614,
1588     OpAtomicFMaxEXT = 5615,
1589     OpAssumeTrueKHR = 5630,
1590     OpExpectKHR = 5631,
1591     OpDecorateString = 5632,
1592     OpDecorateStringGOOGLE = 5632,
1593     OpMemberDecorateString = 5633,
1594     OpMemberDecorateStringGOOGLE = 5633,
1595     OpVmeImageINTEL = 5699,
1596     OpTypeVmeImageINTEL = 5700,
1597     OpTypeAvcImePayloadINTEL = 5701,
1598     OpTypeAvcRefPayloadINTEL = 5702,
1599     OpTypeAvcSicPayloadINTEL = 5703,
1600     OpTypeAvcMcePayloadINTEL = 5704,
1601     OpTypeAvcMceResultINTEL = 5705,
1602     OpTypeAvcImeResultINTEL = 5706,
1603     OpTypeAvcImeResultSingleReferenceStreamoutINTEL = 5707,
1604     OpTypeAvcImeResultDualReferenceStreamoutINTEL = 5708,
1605     OpTypeAvcImeSingleReferenceStreaminINTEL = 5709,
1606     OpTypeAvcImeDualReferenceStreaminINTEL = 5710,
1607     OpTypeAvcRefResultINTEL = 5711,
1608     OpTypeAvcSicResultINTEL = 5712,
1609     OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL = 5713,
1610     OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL = 5714,
1611     OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL = 5715,
1612     OpSubgroupAvcMceSetInterShapePenaltyINTEL = 5716,
1613     OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL = 5717,
1614     OpSubgroupAvcMceSetInterDirectionPenaltyINTEL = 5718,
1615     OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL = 5719,
1616     OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL = 5720,
1617     OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL = 5721,
1618     OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL = 5722,
1619     OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL = 5723,
1620     OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL = 5724,
1621     OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL = 5725,
1622     OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL = 5726,
1623     OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL = 5727,
1624     OpSubgroupAvcMceSetAcOnlyHaarINTEL = 5728,
1625     OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL = 5729,
1626     OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL = 5730,
1627     OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL = 5731,
1628     OpSubgroupAvcMceConvertToImePayloadINTEL = 5732,
1629     OpSubgroupAvcMceConvertToImeResultINTEL = 5733,
1630     OpSubgroupAvcMceConvertToRefPayloadINTEL = 5734,
1631     OpSubgroupAvcMceConvertToRefResultINTEL = 5735,
1632     OpSubgroupAvcMceConvertToSicPayloadINTEL = 5736,
1633     OpSubgroupAvcMceConvertToSicResultINTEL = 5737,
1634     OpSubgroupAvcMceGetMotionVectorsINTEL = 5738,
1635     OpSubgroupAvcMceGetInterDistortionsINTEL = 5739,
1636     OpSubgroupAvcMceGetBestInterDistortionsINTEL = 5740,
1637     OpSubgroupAvcMceGetInterMajorShapeINTEL = 5741,
1638     OpSubgroupAvcMceGetInterMinorShapeINTEL = 5742,
1639     OpSubgroupAvcMceGetInterDirectionsINTEL = 5743,
1640     OpSubgroupAvcMceGetInterMotionVectorCountINTEL = 5744,
1641     OpSubgroupAvcMceGetInterReferenceIdsINTEL = 5745,
1642     OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL = 5746,
1643     OpSubgroupAvcImeInitializeINTEL = 5747,
1644     OpSubgroupAvcImeSetSingleReferenceINTEL = 5748,
1645     OpSubgroupAvcImeSetDualReferenceINTEL = 5749,
1646     OpSubgroupAvcImeRefWindowSizeINTEL = 5750,
1647     OpSubgroupAvcImeAdjustRefOffsetINTEL = 5751,
1648     OpSubgroupAvcImeConvertToMcePayloadINTEL = 5752,
1649     OpSubgroupAvcImeSetMaxMotionVectorCountINTEL = 5753,
1650     OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL = 5754,
1651     OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL = 5755,
1652     OpSubgroupAvcImeSetWeightedSadINTEL = 5756,
1653     OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL = 5757,
1654     OpSubgroupAvcImeEvaluateWithDualReferenceINTEL = 5758,
1655     OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL = 5759,
1656     OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL = 5760,
1657     OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL = 5761,
1658     OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL = 5762,
1659     OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL = 5763,
1660     OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL = 5764,
1661     OpSubgroupAvcImeConvertToMceResultINTEL = 5765,
1662     OpSubgroupAvcImeGetSingleReferenceStreaminINTEL = 5766,
1663     OpSubgroupAvcImeGetDualReferenceStreaminINTEL = 5767,
1664     OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL = 5768,
1665     OpSubgroupAvcImeStripDualReferenceStreamoutINTEL = 5769,
1666     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL = 5770,
1667     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL = 5771,
1668     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL = 5772,
1669     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL = 5773,
1670     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL = 5774,
1671     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL = 5775,
1672     OpSubgroupAvcImeGetBorderReachedINTEL = 5776,
1673     OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL = 5777,
1674     OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL = 5778,
1675     OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL = 5779,
1676     OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL = 5780,
1677     OpSubgroupAvcFmeInitializeINTEL = 5781,
1678     OpSubgroupAvcBmeInitializeINTEL = 5782,
1679     OpSubgroupAvcRefConvertToMcePayloadINTEL = 5783,
1680     OpSubgroupAvcRefSetBidirectionalMixDisableINTEL = 5784,
1681     OpSubgroupAvcRefSetBilinearFilterEnableINTEL = 5785,
1682     OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL = 5786,
1683     OpSubgroupAvcRefEvaluateWithDualReferenceINTEL = 5787,
1684     OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL = 5788,
1685     OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL = 5789,
1686     OpSubgroupAvcRefConvertToMceResultINTEL = 5790,
1687     OpSubgroupAvcSicInitializeINTEL = 5791,
1688     OpSubgroupAvcSicConfigureSkcINTEL = 5792,
1689     OpSubgroupAvcSicConfigureIpeLumaINTEL = 5793,
1690     OpSubgroupAvcSicConfigureIpeLumaChromaINTEL = 5794,
1691     OpSubgroupAvcSicGetMotionVectorMaskINTEL = 5795,
1692     OpSubgroupAvcSicConvertToMcePayloadINTEL = 5796,
1693     OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL = 5797,
1694     OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL = 5798,
1695     OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL = 5799,
1696     OpSubgroupAvcSicSetBilinearFilterEnableINTEL = 5800,
1697     OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL = 5801,
1698     OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL = 5802,
1699     OpSubgroupAvcSicEvaluateIpeINTEL = 5803,
1700     OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL = 5804,
1701     OpSubgroupAvcSicEvaluateWithDualReferenceINTEL = 5805,
1702     OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL = 5806,
1703     OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL = 5807,
1704     OpSubgroupAvcSicConvertToMceResultINTEL = 5808,
1705     OpSubgroupAvcSicGetIpeLumaShapeINTEL = 5809,
1706     OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL = 5810,
1707     OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL = 5811,
1708     OpSubgroupAvcSicGetPackedIpeLumaModesINTEL = 5812,
1709     OpSubgroupAvcSicGetIpeChromaModeINTEL = 5813,
1710     OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL = 5814,
1711     OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL = 5815,
1712     OpSubgroupAvcSicGetInterRawSadsINTEL = 5816,
1713     OpVariableLengthArrayINTEL = 5818,
1714     OpSaveMemoryINTEL = 5819,
1715     OpRestoreMemoryINTEL = 5820,
1716     OpArbitraryFloatSinCosPiINTEL = 5840,
1717     OpArbitraryFloatCastINTEL = 5841,
1718     OpArbitraryFloatCastFromIntINTEL = 5842,
1719     OpArbitraryFloatCastToIntINTEL = 5843,
1720     OpArbitraryFloatAddINTEL = 5846,
1721     OpArbitraryFloatSubINTEL = 5847,
1722     OpArbitraryFloatMulINTEL = 5848,
1723     OpArbitraryFloatDivINTEL = 5849,
1724     OpArbitraryFloatGTINTEL = 5850,
1725     OpArbitraryFloatGEINTEL = 5851,
1726     OpArbitraryFloatLTINTEL = 5852,
1727     OpArbitraryFloatLEINTEL = 5853,
1728     OpArbitraryFloatEQINTEL = 5854,
1729     OpArbitraryFloatRecipINTEL = 5855,
1730     OpArbitraryFloatRSqrtINTEL = 5856,
1731     OpArbitraryFloatCbrtINTEL = 5857,
1732     OpArbitraryFloatHypotINTEL = 5858,
1733     OpArbitraryFloatSqrtINTEL = 5859,
1734     OpArbitraryFloatLogINTEL = 5860,
1735     OpArbitraryFloatLog2INTEL = 5861,
1736     OpArbitraryFloatLog10INTEL = 5862,
1737     OpArbitraryFloatLog1pINTEL = 5863,
1738     OpArbitraryFloatExpINTEL = 5864,
1739     OpArbitraryFloatExp2INTEL = 5865,
1740     OpArbitraryFloatExp10INTEL = 5866,
1741     OpArbitraryFloatExpm1INTEL = 5867,
1742     OpArbitraryFloatSinINTEL = 5868,
1743     OpArbitraryFloatCosINTEL = 5869,
1744     OpArbitraryFloatSinCosINTEL = 5870,
1745     OpArbitraryFloatSinPiINTEL = 5871,
1746     OpArbitraryFloatCosPiINTEL = 5872,
1747     OpArbitraryFloatASinINTEL = 5873,
1748     OpArbitraryFloatASinPiINTEL = 5874,
1749     OpArbitraryFloatACosINTEL = 5875,
1750     OpArbitraryFloatACosPiINTEL = 5876,
1751     OpArbitraryFloatATanINTEL = 5877,
1752     OpArbitraryFloatATanPiINTEL = 5878,
1753     OpArbitraryFloatATan2INTEL = 5879,
1754     OpArbitraryFloatPowINTEL = 5880,
1755     OpArbitraryFloatPowRINTEL = 5881,
1756     OpArbitraryFloatPowNINTEL = 5882,
1757     OpLoopControlINTEL = 5887,
1758     OpFixedSqrtINTEL = 5923,
1759     OpFixedRecipINTEL = 5924,
1760     OpFixedRsqrtINTEL = 5925,
1761     OpFixedSinINTEL = 5926,
1762     OpFixedCosINTEL = 5927,
1763     OpFixedSinCosINTEL = 5928,
1764     OpFixedSinPiINTEL = 5929,
1765     OpFixedCosPiINTEL = 5930,
1766     OpFixedSinCosPiINTEL = 5931,
1767     OpFixedLogINTEL = 5932,
1768     OpFixedExpINTEL = 5933,
1769     OpPtrCastToCrossWorkgroupINTEL = 5934,
1770     OpCrossWorkgroupCastToPtrINTEL = 5938,
1771     OpReadPipeBlockingINTEL = 5946,
1772     OpWritePipeBlockingINTEL = 5947,
1773     OpFPGARegINTEL = 5949,
1774     OpRayQueryGetRayTMinKHR = 6016,
1775     OpRayQueryGetRayFlagsKHR = 6017,
1776     OpRayQueryGetIntersectionTKHR = 6018,
1777     OpRayQueryGetIntersectionInstanceCustomIndexKHR = 6019,
1778     OpRayQueryGetIntersectionInstanceIdKHR = 6020,
1779     OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR = 6021,
1780     OpRayQueryGetIntersectionGeometryIndexKHR = 6022,
1781     OpRayQueryGetIntersectionPrimitiveIndexKHR = 6023,
1782     OpRayQueryGetIntersectionBarycentricsKHR = 6024,
1783     OpRayQueryGetIntersectionFrontFaceKHR = 6025,
1784     OpRayQueryGetIntersectionCandidateAABBOpaqueKHR = 6026,
1785     OpRayQueryGetIntersectionObjectRayDirectionKHR = 6027,
1786     OpRayQueryGetIntersectionObjectRayOriginKHR = 6028,
1787     OpRayQueryGetWorldRayDirectionKHR = 6029,
1788     OpRayQueryGetWorldRayOriginKHR = 6030,
1789     OpRayQueryGetIntersectionObjectToWorldKHR = 6031,
1790     OpRayQueryGetIntersectionWorldToObjectKHR = 6032,
1791     OpAtomicFAddEXT = 6035,
1792     OpTypeBufferSurfaceINTEL = 6086,
1793     OpTypeStructContinuedINTEL = 6090,
1794     OpConstantCompositeContinuedINTEL = 6091,
1795     OpSpecConstantCompositeContinuedINTEL = 6092,
1796     OpMax = 0x7fffffff,
1797 };
1798
1799 #ifdef SPV_ENABLE_UTILITY_CODE
1800 inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
1801     *hasResult = *hasResultType = false;
1802     switch (opcode) {
1803     default: /* unknown opcode */ break;
1804     case OpNop: *hasResult = false; *hasResultType = false; break;
1805     case OpUndef: *hasResult = true; *hasResultType = true; break;
1806     case OpSourceContinued: *hasResult = false; *hasResultType = false; break;
1807     case OpSource: *hasResult = false; *hasResultType = false; break;
1808     case OpSourceExtension: *hasResult = false; *hasResultType = false; break;
1809     case OpName: *hasResult = false; *hasResultType = false; break;
1810     case OpMemberName: *hasResult = false; *hasResultType = false; break;
1811     case OpString: *hasResult = true; *hasResultType = false; break;
1812     case OpLine: *hasResult = false; *hasResultType = false; break;
1813     case OpExtension: *hasResult = false; *hasResultType = false; break;
1814     case OpExtInstImport: *hasResult = true; *hasResultType = false; break;
1815     case OpExtInst: *hasResult = true; *hasResultType = true; break;
1816     case OpMemoryModel: *hasResult = false; *hasResultType = false; break;
1817     case OpEntryPoint: *hasResult = false; *hasResultType = false; break;
1818     case OpExecutionMode: *hasResult = false; *hasResultType = false; break;
1819     case OpCapability: *hasResult = false; *hasResultType = false; break;
1820     case OpTypeVoid: *hasResult = true; *hasResultType = false; break;
1821     case OpTypeBool: *hasResult = true; *hasResultType = false; break;
1822     case OpTypeInt: *hasResult = true; *hasResultType = false; break;
1823     case OpTypeFloat: *hasResult = true; *hasResultType = false; break;
1824     case OpTypeVector: *hasResult = true; *hasResultType = false; break;
1825     case OpTypeMatrix: *hasResult = true; *hasResultType = false; break;
1826     case OpTypeImage: *hasResult = true; *hasResultType = false; break;
1827     case OpTypeSampler: *hasResult = true; *hasResultType = false; break;
1828     case OpTypeSampledImage: *hasResult = true; *hasResultType = false; break;
1829     case OpTypeArray: *hasResult = true; *hasResultType = false; break;
1830     case OpTypeRuntimeArray: *hasResult = true; *hasResultType = false; break;
1831     case OpTypeStruct: *hasResult = true; *hasResultType = false; break;
1832     case OpTypeOpaque: *hasResult = true; *hasResultType = false; break;
1833     case OpTypePointer: *hasResult = true; *hasResultType = false; break;
1834     case OpTypeFunction: *hasResult = true; *hasResultType = false; break;
1835     case OpTypeEvent: *hasResult = true; *hasResultType = false; break;
1836     case OpTypeDeviceEvent: *hasResult = true; *hasResultType = false; break;
1837     case OpTypeReserveId: *hasResult = true; *hasResultType = false; break;
1838     case OpTypeQueue: *hasResult = true; *hasResultType = false; break;
1839     case OpTypePipe: *hasResult = true; *hasResultType = false; break;
1840     case OpTypeForwardPointer: *hasResult = false; *hasResultType = false; break;
1841     case OpConstantTrue: *hasResult = true; *hasResultType = true; break;
1842     case OpConstantFalse: *hasResult = true; *hasResultType = true; break;
1843     case OpConstant: *hasResult = true; *hasResultType = true; break;
1844     case OpConstantComposite: *hasResult = true; *hasResultType = true; break;
1845     case OpConstantSampler: *hasResult = true; *hasResultType = true; break;
1846     case OpConstantNull: *hasResult = true; *hasResultType = true; break;
1847     case OpSpecConstantTrue: *hasResult = true; *hasResultType = true; break;
1848     case OpSpecConstantFalse: *hasResult = true; *hasResultType = true; break;
1849     case OpSpecConstant: *hasResult = true; *hasResultType = true; break;
1850     case OpSpecConstantComposite: *hasResult = true; *hasResultType = true; break;
1851     case OpSpecConstantOp: *hasResult = true; *hasResultType = true; break;
1852     case OpFunction: *hasResult = true; *hasResultType = true; break;
1853     case OpFunctionParameter: *hasResult = true; *hasResultType = true; break;
1854     case OpFunctionEnd: *hasResult = false; *hasResultType = false; break;
1855     case OpFunctionCall: *hasResult = true; *hasResultType = true; break;
1856     case OpVariable: *hasResult = true; *hasResultType = true; break;
1857     case OpImageTexelPointer: *hasResult = true; *hasResultType = true; break;
1858     case OpLoad: *hasResult = true; *hasResultType = true; break;
1859     case OpStore: *hasResult = false; *hasResultType = false; break;
1860     case OpCopyMemory: *hasResult = false; *hasResultType = false; break;
1861     case OpCopyMemorySized: *hasResult = false; *hasResultType = false; break;
1862     case OpAccessChain: *hasResult = true; *hasResultType = true; break;
1863     case OpInBoundsAccessChain: *hasResult = true; *hasResultType = true; break;
1864     case OpPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1865     case OpArrayLength: *hasResult = true; *hasResultType = true; break;
1866     case OpGenericPtrMemSemantics: *hasResult = true; *hasResultType = true; break;
1867     case OpInBoundsPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1868     case OpDecorate: *hasResult = false; *hasResultType = false; break;
1869     case OpMemberDecorate: *hasResult = false; *hasResultType = false; break;
1870     case OpDecorationGroup: *hasResult = true; *hasResultType = false; break;
1871     case OpGroupDecorate: *hasResult = false; *hasResultType = false; break;
1872     case OpGroupMemberDecorate: *hasResult = false; *hasResultType = false; break;
1873     case OpVectorExtractDynamic: *hasResult = true; *hasResultType = true; break;
1874     case OpVectorInsertDynamic: *hasResult = true; *hasResultType = true; break;
1875     case OpVectorShuffle: *hasResult = true; *hasResultType = true; break;
1876     case OpCompositeConstruct: *hasResult = true; *hasResultType = true; break;
1877     case OpCompositeExtract: *hasResult = true; *hasResultType = true; break;
1878     case OpCompositeInsert: *hasResult = true; *hasResultType = true; break;
1879     case OpCopyObject: *hasResult = true; *hasResultType = true; break;
1880     case OpTranspose: *hasResult = true; *hasResultType = true; break;
1881     case OpSampledImage: *hasResult = true; *hasResultType = true; break;
1882     case OpImageSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
1883     case OpImageSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
1884     case OpImageSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1885     case OpImageSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1886     case OpImageSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
1887     case OpImageSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
1888     case OpImageSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1889     case OpImageSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1890     case OpImageFetch: *hasResult = true; *hasResultType = true; break;
1891     case OpImageGather: *hasResult = true; *hasResultType = true; break;
1892     case OpImageDrefGather: *hasResult = true; *hasResultType = true; break;
1893     case OpImageRead: *hasResult = true; *hasResultType = true; break;
1894     case OpImageWrite: *hasResult = false; *hasResultType = false; break;
1895     case OpImage: *hasResult = true; *hasResultType = true; break;
1896     case OpImageQueryFormat: *hasResult = true; *hasResultType = true; break;
1897     case OpImageQueryOrder: *hasResult = true; *hasResultType = true; break;
1898     case OpImageQuerySizeLod: *hasResult = true; *hasResultType = true; break;
1899     case OpImageQuerySize: *hasResult = true; *hasResultType = true; break;
1900     case OpImageQueryLod: *hasResult = true; *hasResultType = true; break;
1901     case OpImageQueryLevels: *hasResult = true; *hasResultType = true; break;
1902     case OpImageQuerySamples: *hasResult = true; *hasResultType = true; break;
1903     case OpConvertFToU: *hasResult = true; *hasResultType = true; break;
1904     case OpConvertFToS: *hasResult = true; *hasResultType = true; break;
1905     case OpConvertSToF: *hasResult = true; *hasResultType = true; break;
1906     case OpConvertUToF: *hasResult = true; *hasResultType = true; break;
1907     case OpUConvert: *hasResult = true; *hasResultType = true; break;
1908     case OpSConvert: *hasResult = true; *hasResultType = true; break;
1909     case OpFConvert: *hasResult = true; *hasResultType = true; break;
1910     case OpQuantizeToF16: *hasResult = true; *hasResultType = true; break;
1911     case OpConvertPtrToU: *hasResult = true; *hasResultType = true; break;
1912     case OpSatConvertSToU: *hasResult = true; *hasResultType = true; break;
1913     case OpSatConvertUToS: *hasResult = true; *hasResultType = true; break;
1914     case OpConvertUToPtr: *hasResult = true; *hasResultType = true; break;
1915     case OpPtrCastToGeneric: *hasResult = true; *hasResultType = true; break;
1916     case OpGenericCastToPtr: *hasResult = true; *hasResultType = true; break;
1917     case OpGenericCastToPtrExplicit: *hasResult = true; *hasResultType = true; break;
1918     case OpBitcast: *hasResult = true; *hasResultType = true; break;
1919     case OpSNegate: *hasResult = true; *hasResultType = true; break;
1920     case OpFNegate: *hasResult = true; *hasResultType = true; break;
1921     case OpIAdd: *hasResult = true; *hasResultType = true; break;
1922     case OpFAdd: *hasResult = true; *hasResultType = true; break;
1923     case OpISub: *hasResult = true; *hasResultType = true; break;
1924     case OpFSub: *hasResult = true; *hasResultType = true; break;
1925     case OpIMul: *hasResult = true; *hasResultType = true; break;
1926     case OpFMul: *hasResult = true; *hasResultType = true; break;
1927     case OpUDiv: *hasResult = true; *hasResultType = true; break;
1928     case OpSDiv: *hasResult = true; *hasResultType = true; break;
1929     case OpFDiv: *hasResult = true; *hasResultType = true; break;
1930     case OpUMod: *hasResult = true; *hasResultType = true; break;
1931     case OpSRem: *hasResult = true; *hasResultType = true; break;
1932     case OpSMod: *hasResult = true; *hasResultType = true; break;
1933     case OpFRem: *hasResult = true; *hasResultType = true; break;
1934     case OpFMod: *hasResult = true; *hasResultType = true; break;
1935     case OpVectorTimesScalar: *hasResult = true; *hasResultType = true; break;
1936     case OpMatrixTimesScalar: *hasResult = true; *hasResultType = true; break;
1937     case OpVectorTimesMatrix: *hasResult = true; *hasResultType = true; break;
1938     case OpMatrixTimesVector: *hasResult = true; *hasResultType = true; break;
1939     case OpMatrixTimesMatrix: *hasResult = true; *hasResultType = true; break;
1940     case OpOuterProduct: *hasResult = true; *hasResultType = true; break;
1941     case OpDot: *hasResult = true; *hasResultType = true; break;
1942     case OpIAddCarry: *hasResult = true; *hasResultType = true; break;
1943     case OpISubBorrow: *hasResult = true; *hasResultType = true; break;
1944     case OpUMulExtended: *hasResult = true; *hasResultType = true; break;
1945     case OpSMulExtended: *hasResult = true; *hasResultType = true; break;
1946     case OpAny: *hasResult = true; *hasResultType = true; break;
1947     case OpAll: *hasResult = true; *hasResultType = true; break;
1948     case OpIsNan: *hasResult = true; *hasResultType = true; break;
1949     case OpIsInf: *hasResult = true; *hasResultType = true; break;
1950     case OpIsFinite: *hasResult = true; *hasResultType = true; break;
1951     case OpIsNormal: *hasResult = true; *hasResultType = true; break;
1952     case OpSignBitSet: *hasResult = true; *hasResultType = true; break;
1953     case OpLessOrGreater: *hasResult = true; *hasResultType = true; break;
1954     case OpOrdered: *hasResult = true; *hasResultType = true; break;
1955     case OpUnordered: *hasResult = true; *hasResultType = true; break;
1956     case OpLogicalEqual: *hasResult = true; *hasResultType = true; break;
1957     case OpLogicalNotEqual: *hasResult = true; *hasResultType = true; break;
1958     case OpLogicalOr: *hasResult = true; *hasResultType = true; break;
1959     case OpLogicalAnd: *hasResult = true; *hasResultType = true; break;
1960     case OpLogicalNot: *hasResult = true; *hasResultType = true; break;
1961     case OpSelect: *hasResult = true; *hasResultType = true; break;
1962     case OpIEqual: *hasResult = true; *hasResultType = true; break;
1963     case OpINotEqual: *hasResult = true; *hasResultType = true; break;
1964     case OpUGreaterThan: *hasResult = true; *hasResultType = true; break;
1965     case OpSGreaterThan: *hasResult = true; *hasResultType = true; break;
1966     case OpUGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1967     case OpSGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1968     case OpULessThan: *hasResult = true; *hasResultType = true; break;
1969     case OpSLessThan: *hasResult = true; *hasResultType = true; break;
1970     case OpULessThanEqual: *hasResult = true; *hasResultType = true; break;
1971     case OpSLessThanEqual: *hasResult = true; *hasResultType = true; break;
1972     case OpFOrdEqual: *hasResult = true; *hasResultType = true; break;
1973     case OpFUnordEqual: *hasResult = true; *hasResultType = true; break;
1974     case OpFOrdNotEqual: *hasResult = true; *hasResultType = true; break;
1975     case OpFUnordNotEqual: *hasResult = true; *hasResultType = true; break;
1976     case OpFOrdLessThan: *hasResult = true; *hasResultType = true; break;
1977     case OpFUnordLessThan: *hasResult = true; *hasResultType = true; break;
1978     case OpFOrdGreaterThan: *hasResult = true; *hasResultType = true; break;
1979     case OpFUnordGreaterThan: *hasResult = true; *hasResultType = true; break;
1980     case OpFOrdLessThanEqual: *hasResult = true; *hasResultType = true; break;
1981     case OpFUnordLessThanEqual: *hasResult = true; *hasResultType = true; break;
1982     case OpFOrdGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1983     case OpFUnordGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1984     case OpShiftRightLogical: *hasResult = true; *hasResultType = true; break;
1985     case OpShiftRightArithmetic: *hasResult = true; *hasResultType = true; break;
1986     case OpShiftLeftLogical: *hasResult = true; *hasResultType = true; break;
1987     case OpBitwiseOr: *hasResult = true; *hasResultType = true; break;
1988     case OpBitwiseXor: *hasResult = true; *hasResultType = true; break;
1989     case OpBitwiseAnd: *hasResult = true; *hasResultType = true; break;
1990     case OpNot: *hasResult = true; *hasResultType = true; break;
1991     case OpBitFieldInsert: *hasResult = true; *hasResultType = true; break;
1992     case OpBitFieldSExtract: *hasResult = true; *hasResultType = true; break;
1993     case OpBitFieldUExtract: *hasResult = true; *hasResultType = true; break;
1994     case OpBitReverse: *hasResult = true; *hasResultType = true; break;
1995     case OpBitCount: *hasResult = true; *hasResultType = true; break;
1996     case OpDPdx: *hasResult = true; *hasResultType = true; break;
1997     case OpDPdy: *hasResult = true; *hasResultType = true; break;
1998     case OpFwidth: *hasResult = true; *hasResultType = true; break;
1999     case OpDPdxFine: *hasResult = true; *hasResultType = true; break;
2000     case OpDPdyFine: *hasResult = true; *hasResultType = true; break;
2001     case OpFwidthFine: *hasResult = true; *hasResultType = true; break;
2002     case OpDPdxCoarse: *hasResult = true; *hasResultType = true; break;
2003     case OpDPdyCoarse: *hasResult = true; *hasResultType = true; break;
2004     case OpFwidthCoarse: *hasResult = true; *hasResultType = true; break;
2005     case OpEmitVertex: *hasResult = false; *hasResultType = false; break;
2006     case OpEndPrimitive: *hasResult = false; *hasResultType = false; break;
2007     case OpEmitStreamVertex: *hasResult = false; *hasResultType = false; break;
2008     case OpEndStreamPrimitive: *hasResult = false; *hasResultType = false; break;
2009     case OpControlBarrier: *hasResult = false; *hasResultType = false; break;
2010     case OpMemoryBarrier: *hasResult = false; *hasResultType = false; break;
2011     case OpAtomicLoad: *hasResult = true; *hasResultType = true; break;
2012     case OpAtomicStore: *hasResult = false; *hasResultType = false; break;
2013     case OpAtomicExchange: *hasResult = true; *hasResultType = true; break;
2014     case OpAtomicCompareExchange: *hasResult = true; *hasResultType = true; break;
2015     case OpAtomicCompareExchangeWeak: *hasResult = true; *hasResultType = true; break;
2016     case OpAtomicIIncrement: *hasResult = true; *hasResultType = true; break;
2017     case OpAtomicIDecrement: *hasResult = true; *hasResultType = true; break;
2018     case OpAtomicIAdd: *hasResult = true; *hasResultType = true; break;
2019     case OpAtomicISub: *hasResult = true; *hasResultType = true; break;
2020     case OpAtomicSMin: *hasResult = true; *hasResultType = true; break;
2021     case OpAtomicUMin: *hasResult = true; *hasResultType = true; break;
2022     case OpAtomicSMax: *hasResult = true; *hasResultType = true; break;
2023     case OpAtomicUMax: *hasResult = true; *hasResultType = true; break;
2024     case OpAtomicAnd: *hasResult = true; *hasResultType = true; break;
2025     case OpAtomicOr: *hasResult = true; *hasResultType = true; break;
2026     case OpAtomicXor: *hasResult = true; *hasResultType = true; break;
2027     case OpPhi: *hasResult = true; *hasResultType = true; break;
2028     case OpLoopMerge: *hasResult = false; *hasResultType = false; break;
2029     case OpSelectionMerge: *hasResult = false; *hasResultType = false; break;
2030     case OpLabel: *hasResult = true; *hasResultType = false; break;
2031     case OpBranch: *hasResult = false; *hasResultType = false; break;
2032     case OpBranchConditional: *hasResult = false; *hasResultType = false; break;
2033     case OpSwitch: *hasResult = false; *hasResultType = false; break;
2034     case OpKill: *hasResult = false; *hasResultType = false; break;
2035     case OpReturn: *hasResult = false; *hasResultType = false; break;
2036     case OpReturnValue: *hasResult = false; *hasResultType = false; break;
2037     case OpUnreachable: *hasResult = false; *hasResultType = false; break;
2038     case OpLifetimeStart: *hasResult = false; *hasResultType = false; break;
2039     case OpLifetimeStop: *hasResult = false; *hasResultType = false; break;
2040     case OpGroupAsyncCopy: *hasResult = true; *hasResultType = true; break;
2041     case OpGroupWaitEvents: *hasResult = false; *hasResultType = false; break;
2042     case OpGroupAll: *hasResult = true; *hasResultType = true; break;
2043     case OpGroupAny: *hasResult = true; *hasResultType = true; break;
2044     case OpGroupBroadcast: *hasResult = true; *hasResultType = true; break;
2045     case OpGroupIAdd: *hasResult = true; *hasResultType = true; break;
2046     case OpGroupFAdd: *hasResult = true; *hasResultType = true; break;
2047     case OpGroupFMin: *hasResult = true; *hasResultType = true; break;
2048     case OpGroupUMin: *hasResult = true; *hasResultType = true; break;
2049     case OpGroupSMin: *hasResult = true; *hasResultType = true; break;
2050     case OpGroupFMax: *hasResult = true; *hasResultType = true; break;
2051     case OpGroupUMax: *hasResult = true; *hasResultType = true; break;
2052     case OpGroupSMax: *hasResult = true; *hasResultType = true; break;
2053     case OpReadPipe: *hasResult = true; *hasResultType = true; break;
2054     case OpWritePipe: *hasResult = true; *hasResultType = true; break;
2055     case OpReservedReadPipe: *hasResult = true; *hasResultType = true; break;
2056     case OpReservedWritePipe: *hasResult = true; *hasResultType = true; break;
2057     case OpReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
2058     case OpReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
2059     case OpCommitReadPipe: *hasResult = false; *hasResultType = false; break;
2060     case OpCommitWritePipe: *hasResult = false; *hasResultType = false; break;
2061     case OpIsValidReserveId: *hasResult = true; *hasResultType = true; break;
2062     case OpGetNumPipePackets: *hasResult = true; *hasResultType = true; break;
2063     case OpGetMaxPipePackets: *hasResult = true; *hasResultType = true; break;
2064     case OpGroupReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
2065     case OpGroupReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
2066     case OpGroupCommitReadPipe: *hasResult = false; *hasResultType = false; break;
2067     case OpGroupCommitWritePipe: *hasResult = false; *hasResultType = false; break;
2068     case OpEnqueueMarker: *hasResult = true; *hasResultType = true; break;
2069     case OpEnqueueKernel: *hasResult = true; *hasResultType = true; break;
2070     case OpGetKernelNDrangeSubGroupCount: *hasResult = true; *hasResultType = true; break;
2071     case OpGetKernelNDrangeMaxSubGroupSize: *hasResult = true; *hasResultType = true; break;
2072     case OpGetKernelWorkGroupSize: *hasResult = true; *hasResultType = true; break;
2073     case OpGetKernelPreferredWorkGroupSizeMultiple: *hasResult = true; *hasResultType = true; break;
2074     case OpRetainEvent: *hasResult = false; *hasResultType = false; break;
2075     case OpReleaseEvent: *hasResult = false; *hasResultType = false; break;
2076     case OpCreateUserEvent: *hasResult = true; *hasResultType = true; break;
2077     case OpIsValidEvent: *hasResult = true; *hasResultType = true; break;
2078     case OpSetUserEventStatus: *hasResult = false; *hasResultType = false; break;
2079     case OpCaptureEventProfilingInfo: *hasResult = false; *hasResultType = false; break;
2080     case OpGetDefaultQueue: *hasResult = true; *hasResultType = true; break;
2081     case OpBuildNDRange: *hasResult = true; *hasResultType = true; break;
2082     case OpImageSparseSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
2083     case OpImageSparseSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
2084     case OpImageSparseSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2085     case OpImageSparseSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2086     case OpImageSparseSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
2087     case OpImageSparseSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
2088     case OpImageSparseSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2089     case OpImageSparseSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2090     case OpImageSparseFetch: *hasResult = true; *hasResultType = true; break;
2091     case OpImageSparseGather: *hasResult = true; *hasResultType = true; break;
2092     case OpImageSparseDrefGather: *hasResult = true; *hasResultType = true; break;
2093     case OpImageSparseTexelsResident: *hasResult = true; *hasResultType = true; break;
2094     case OpNoLine: *hasResult = false; *hasResultType = false; break;
2095     case OpAtomicFlagTestAndSet: *hasResult = true; *hasResultType = true; break;
2096     case OpAtomicFlagClear: *hasResult = false; *hasResultType = false; break;
2097     case OpImageSparseRead: *hasResult = true; *hasResultType = true; break;
2098     case OpSizeOf: *hasResult = true; *hasResultType = true; break;
2099     case OpTypePipeStorage: *hasResult = true; *hasResultType = false; break;
2100     case OpConstantPipeStorage: *hasResult = true; *hasResultType = true; break;
2101     case OpCreatePipeFromPipeStorage: *hasResult = true; *hasResultType = true; break;
2102     case OpGetKernelLocalSizeForSubgroupCount: *hasResult = true; *hasResultType = true; break;
2103     case OpGetKernelMaxNumSubgroups: *hasResult = true; *hasResultType = true; break;
2104     case OpTypeNamedBarrier: *hasResult = true; *hasResultType = false; break;
2105     case OpNamedBarrierInitialize: *hasResult = true; *hasResultType = true; break;
2106     case OpMemoryNamedBarrier: *hasResult = false; *hasResultType = false; break;
2107     case OpModuleProcessed: *hasResult = false; *hasResultType = false; break;
2108     case OpExecutionModeId: *hasResult = false; *hasResultType = false; break;
2109     case OpDecorateId: *hasResult = false; *hasResultType = false; break;
2110     case OpGroupNonUniformElect: *hasResult = true; *hasResultType = true; break;
2111     case OpGroupNonUniformAll: *hasResult = true; *hasResultType = true; break;
2112     case OpGroupNonUniformAny: *hasResult = true; *hasResultType = true; break;
2113     case OpGroupNonUniformAllEqual: *hasResult = true; *hasResultType = true; break;
2114     case OpGroupNonUniformBroadcast: *hasResult = true; *hasResultType = true; break;
2115     case OpGroupNonUniformBroadcastFirst: *hasResult = true; *hasResultType = true; break;
2116     case OpGroupNonUniformBallot: *hasResult = true; *hasResultType = true; break;
2117     case OpGroupNonUniformInverseBallot: *hasResult = true; *hasResultType = true; break;
2118     case OpGroupNonUniformBallotBitExtract: *hasResult = true; *hasResultType = true; break;
2119     case OpGroupNonUniformBallotBitCount: *hasResult = true; *hasResultType = true; break;
2120     case OpGroupNonUniformBallotFindLSB: *hasResult = true; *hasResultType = true; break;
2121     case OpGroupNonUniformBallotFindMSB: *hasResult = true; *hasResultType = true; break;
2122     case OpGroupNonUniformShuffle: *hasResult = true; *hasResultType = true; break;
2123     case OpGroupNonUniformShuffleXor: *hasResult = true; *hasResultType = true; break;
2124     case OpGroupNonUniformShuffleUp: *hasResult = true; *hasResultType = true; break;
2125     case OpGroupNonUniformShuffleDown: *hasResult = true; *hasResultType = true; break;
2126     case OpGroupNonUniformIAdd: *hasResult = true; *hasResultType = true; break;
2127     case OpGroupNonUniformFAdd: *hasResult = true; *hasResultType = true; break;
2128     case OpGroupNonUniformIMul: *hasResult = true; *hasResultType = true; break;
2129     case OpGroupNonUniformFMul: *hasResult = true; *hasResultType = true; break;
2130     case OpGroupNonUniformSMin: *hasResult = true; *hasResultType = true; break;
2131     case OpGroupNonUniformUMin: *hasResult = true; *hasResultType = true; break;
2132     case OpGroupNonUniformFMin: *hasResult = true; *hasResultType = true; break;
2133     case OpGroupNonUniformSMax: *hasResult = true; *hasResultType = true; break;
2134     case OpGroupNonUniformUMax: *hasResult = true; *hasResultType = true; break;
2135     case OpGroupNonUniformFMax: *hasResult = true; *hasResultType = true; break;
2136     case OpGroupNonUniformBitwiseAnd: *hasResult = true; *hasResultType = true; break;
2137     case OpGroupNonUniformBitwiseOr: *hasResult = true; *hasResultType = true; break;
2138     case OpGroupNonUniformBitwiseXor: *hasResult = true; *hasResultType = true; break;
2139     case OpGroupNonUniformLogicalAnd: *hasResult = true; *hasResultType = true; break;
2140     case OpGroupNonUniformLogicalOr: *hasResult = true; *hasResultType = true; break;
2141     case OpGroupNonUniformLogicalXor: *hasResult = true; *hasResultType = true; break;
2142     case OpGroupNonUniformQuadBroadcast: *hasResult = true; *hasResultType = true; break;
2143     case OpGroupNonUniformQuadSwap: *hasResult = true; *hasResultType = true; break;
2144     case OpCopyLogical: *hasResult = true; *hasResultType = true; break;
2145     case OpPtrEqual: *hasResult = true; *hasResultType = true; break;
2146     case OpPtrNotEqual: *hasResult = true; *hasResultType = true; break;
2147     case OpPtrDiff: *hasResult = true; *hasResultType = true; break;
2148     case OpTerminateInvocation: *hasResult = false; *hasResultType = false; break;
2149     case OpSubgroupBallotKHR: *hasResult = true; *hasResultType = true; break;
2150     case OpSubgroupFirstInvocationKHR: *hasResult = true; *hasResultType = true; break;
2151     case OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
2152     case OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
2153     case OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
2154     case OpSubgroupReadInvocationKHR: *hasResult = true; *hasResultType = true; break;
2155     case OpTraceRayKHR: *hasResult = false; *hasResultType = false; break;
2156     case OpExecuteCallableKHR: *hasResult = false; *hasResultType = false; break;
2157     case OpConvertUToAccelerationStructureKHR: *hasResult = true; *hasResultType = true; break;
2158     case OpIgnoreIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2159     case OpTerminateRayKHR: *hasResult = false; *hasResultType = false; break;
2160     case OpSDotKHR: *hasResult = true; *hasResultType = true; break;
2161     case OpUDotKHR: *hasResult = true; *hasResultType = true; break;
2162     case OpSUDotKHR: *hasResult = true; *hasResultType = true; break;
2163     case OpSDotAccSatKHR: *hasResult = true; *hasResultType = true; break;
2164     case OpUDotAccSatKHR: *hasResult = true; *hasResultType = true; break;
2165     case OpSUDotAccSatKHR: *hasResult = true; *hasResultType = true; break;
2166     case OpTypeRayQueryKHR: *hasResult = true; *hasResultType = false; break;
2167     case OpRayQueryInitializeKHR: *hasResult = false; *hasResultType = false; break;
2168     case OpRayQueryTerminateKHR: *hasResult = false; *hasResultType = false; break;
2169     case OpRayQueryGenerateIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2170     case OpRayQueryConfirmIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2171     case OpRayQueryProceedKHR: *hasResult = true; *hasResultType = true; break;
2172     case OpRayQueryGetIntersectionTypeKHR: *hasResult = true; *hasResultType = true; break;
2173     case OpGroupIAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2174     case OpGroupFAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2175     case OpGroupFMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2176     case OpGroupUMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2177     case OpGroupSMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2178     case OpGroupFMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2179     case OpGroupUMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2180     case OpGroupSMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2181     case OpFragmentMaskFetchAMD: *hasResult = true; *hasResultType = true; break;
2182     case OpFragmentFetchAMD: *hasResult = true; *hasResultType = true; break;
2183     case OpReadClockKHR: *hasResult = true; *hasResultType = true; break;
2184     case OpImageSampleFootprintNV: *hasResult = true; *hasResultType = true; break;
2185     case OpGroupNonUniformPartitionNV: *hasResult = true; *hasResultType = true; break;
2186     case OpWritePackedPrimitiveIndices4x8NV: *hasResult = false; *hasResultType = false; break;
2187     case OpReportIntersectionNV: *hasResult = true; *hasResultType = true; break;
2188     case OpIgnoreIntersectionNV: *hasResult = false; *hasResultType = false; break;
2189     case OpTerminateRayNV: *hasResult = false; *hasResultType = false; break;
2190     case OpTraceNV: *hasResult = false; *hasResultType = false; break;
2191     case OpTypeAccelerationStructureNV: *hasResult = true; *hasResultType = false; break;
2192     case OpExecuteCallableNV: *hasResult = false; *hasResultType = false; break;
2193     case OpTypeCooperativeMatrixNV: *hasResult = true; *hasResultType = false; break;
2194     case OpCooperativeMatrixLoadNV: *hasResult = true; *hasResultType = true; break;
2195     case OpCooperativeMatrixStoreNV: *hasResult = false; *hasResultType = false; break;
2196     case OpCooperativeMatrixMulAddNV: *hasResult = true; *hasResultType = true; break;
2197     case OpCooperativeMatrixLengthNV: *hasResult = true; *hasResultType = true; break;
2198     case OpBeginInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2199     case OpEndInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2200     case OpDemoteToHelperInvocationEXT: *hasResult = false; *hasResultType = false; break;
2201     case OpIsHelperInvocationEXT: *hasResult = true; *hasResultType = true; break;
2202     case OpSubgroupShuffleINTEL: *hasResult = true; *hasResultType = true; break;
2203     case OpSubgroupShuffleDownINTEL: *hasResult = true; *hasResultType = true; break;
2204     case OpSubgroupShuffleUpINTEL: *hasResult = true; *hasResultType = true; break;
2205     case OpSubgroupShuffleXorINTEL: *hasResult = true; *hasResultType = true; break;
2206     case OpSubgroupBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2207     case OpSubgroupBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2208     case OpSubgroupImageBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2209     case OpSubgroupImageBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2210     case OpSubgroupImageMediaBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2211     case OpSubgroupImageMediaBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2212     case OpUCountLeadingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2213     case OpUCountTrailingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2214     case OpAbsISubINTEL: *hasResult = true; *hasResultType = true; break;
2215     case OpAbsUSubINTEL: *hasResult = true; *hasResultType = true; break;
2216     case OpIAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2217     case OpUAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2218     case OpIAverageINTEL: *hasResult = true; *hasResultType = true; break;
2219     case OpUAverageINTEL: *hasResult = true; *hasResultType = true; break;
2220     case OpIAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2221     case OpUAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2222     case OpISubSatINTEL: *hasResult = true; *hasResultType = true; break;
2223     case OpUSubSatINTEL: *hasResult = true; *hasResultType = true; break;
2224     case OpIMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2225     case OpUMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2226     case OpConstFunctionPointerINTEL: *hasResult = true; *hasResultType = true; break;
2227     case OpFunctionPointerCallINTEL: *hasResult = true; *hasResultType = true; break;
2228     case OpAsmTargetINTEL: *hasResult = true; *hasResultType = true; break;
2229     case OpAsmINTEL: *hasResult = true; *hasResultType = true; break;
2230     case OpAsmCallINTEL: *hasResult = true; *hasResultType = true; break;
2231     case OpAtomicFMinEXT: *hasResult = true; *hasResultType = true; break;
2232     case OpAtomicFMaxEXT: *hasResult = true; *hasResultType = true; break;
2233     case OpAssumeTrueKHR: *hasResult = false; *hasResultType = false; break;
2234     case OpExpectKHR: *hasResult = true; *hasResultType = true; break;
2235     case OpDecorateString: *hasResult = false; *hasResultType = false; break;
2236     case OpMemberDecorateString: *hasResult = false; *hasResultType = false; break;
2237     case OpVmeImageINTEL: *hasResult = true; *hasResultType = true; break;
2238     case OpTypeVmeImageINTEL: *hasResult = true; *hasResultType = false; break;
2239     case OpTypeAvcImePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2240     case OpTypeAvcRefPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2241     case OpTypeAvcSicPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2242     case OpTypeAvcMcePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2243     case OpTypeAvcMceResultINTEL: *hasResult = true; *hasResultType = false; break;
2244     case OpTypeAvcImeResultINTEL: *hasResult = true; *hasResultType = false; break;
2245     case OpTypeAvcImeResultSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2246     case OpTypeAvcImeResultDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2247     case OpTypeAvcImeSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2248     case OpTypeAvcImeDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2249     case OpTypeAvcRefResultINTEL: *hasResult = true; *hasResultType = false; break;
2250     case OpTypeAvcSicResultINTEL: *hasResult = true; *hasResultType = false; break;
2251     case OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2252     case OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2253     case OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2254     case OpSubgroupAvcMceSetInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2255     case OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2256     case OpSubgroupAvcMceSetInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2257     case OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2258     case OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2259     case OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2260     case OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2261     case OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2262     case OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2263     case OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2264     case OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2265     case OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2266     case OpSubgroupAvcMceSetAcOnlyHaarINTEL: *hasResult = true; *hasResultType = true; break;
2267     case OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2268     case OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2269     case OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2270     case OpSubgroupAvcMceConvertToImePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2271     case OpSubgroupAvcMceConvertToImeResultINTEL: *hasResult = true; *hasResultType = true; break;
2272     case OpSubgroupAvcMceConvertToRefPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2273     case OpSubgroupAvcMceConvertToRefResultINTEL: *hasResult = true; *hasResultType = true; break;
2274     case OpSubgroupAvcMceConvertToSicPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2275     case OpSubgroupAvcMceConvertToSicResultINTEL: *hasResult = true; *hasResultType = true; break;
2276     case OpSubgroupAvcMceGetMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2277     case OpSubgroupAvcMceGetInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2278     case OpSubgroupAvcMceGetBestInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2279     case OpSubgroupAvcMceGetInterMajorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2280     case OpSubgroupAvcMceGetInterMinorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2281     case OpSubgroupAvcMceGetInterDirectionsINTEL: *hasResult = true; *hasResultType = true; break;
2282     case OpSubgroupAvcMceGetInterMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2283     case OpSubgroupAvcMceGetInterReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2284     case OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2285     case OpSubgroupAvcImeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2286     case OpSubgroupAvcImeSetSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2287     case OpSubgroupAvcImeSetDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2288     case OpSubgroupAvcImeRefWindowSizeINTEL: *hasResult = true; *hasResultType = true; break;
2289     case OpSubgroupAvcImeAdjustRefOffsetINTEL: *hasResult = true; *hasResultType = true; break;
2290     case OpSubgroupAvcImeConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2291     case OpSubgroupAvcImeSetMaxMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2292     case OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2293     case OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2294     case OpSubgroupAvcImeSetWeightedSadINTEL: *hasResult = true; *hasResultType = true; break;
2295     case OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2296     case OpSubgroupAvcImeEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2297     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2298     case OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2299     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2300     case OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2301     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2302     case OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2303     case OpSubgroupAvcImeConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2304     case OpSubgroupAvcImeGetSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2305     case OpSubgroupAvcImeGetDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2306     case OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2307     case OpSubgroupAvcImeStripDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2308     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2309     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2310     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2311     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2312     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2313     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2314     case OpSubgroupAvcImeGetBorderReachedINTEL: *hasResult = true; *hasResultType = true; break;
2315     case OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL: *hasResult = true; *hasResultType = true; break;
2316     case OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL: *hasResult = true; *hasResultType = true; break;
2317     case OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL: *hasResult = true; *hasResultType = true; break;
2318     case OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2319     case OpSubgroupAvcFmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2320     case OpSubgroupAvcBmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2321     case OpSubgroupAvcRefConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2322     case OpSubgroupAvcRefSetBidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2323     case OpSubgroupAvcRefSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2324     case OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2325     case OpSubgroupAvcRefEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2326     case OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2327     case OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2328     case OpSubgroupAvcRefConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2329     case OpSubgroupAvcSicInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2330     case OpSubgroupAvcSicConfigureSkcINTEL: *hasResult = true; *hasResultType = true; break;
2331     case OpSubgroupAvcSicConfigureIpeLumaINTEL: *hasResult = true; *hasResultType = true; break;
2332     case OpSubgroupAvcSicConfigureIpeLumaChromaINTEL: *hasResult = true; *hasResultType = true; break;
2333     case OpSubgroupAvcSicGetMotionVectorMaskINTEL: *hasResult = true; *hasResultType = true; break;
2334     case OpSubgroupAvcSicConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2335     case OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2336     case OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2337     case OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2338     case OpSubgroupAvcSicSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2339     case OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL: *hasResult = true; *hasResultType = true; break;
2340     case OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL: *hasResult = true; *hasResultType = true; break;
2341     case OpSubgroupAvcSicEvaluateIpeINTEL: *hasResult = true; *hasResultType = true; break;
2342     case OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2343     case OpSubgroupAvcSicEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2344     case OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2345     case OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2346     case OpSubgroupAvcSicConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2347     case OpSubgroupAvcSicGetIpeLumaShapeINTEL: *hasResult = true; *hasResultType = true; break;
2348     case OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2349     case OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2350     case OpSubgroupAvcSicGetPackedIpeLumaModesINTEL: *hasResult = true; *hasResultType = true; break;
2351     case OpSubgroupAvcSicGetIpeChromaModeINTEL: *hasResult = true; *hasResultType = true; break;
2352     case OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2353     case OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2354     case OpSubgroupAvcSicGetInterRawSadsINTEL: *hasResult = true; *hasResultType = true; break;
2355     case OpVariableLengthArrayINTEL: *hasResult = true; *hasResultType = true; break;
2356     case OpSaveMemoryINTEL: *hasResult = true; *hasResultType = true; break;
2357     case OpRestoreMemoryINTEL: *hasResult = false; *hasResultType = false; break;
2358     case OpArbitraryFloatSinCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2359     case OpArbitraryFloatCastINTEL: *hasResult = true; *hasResultType = true; break;
2360     case OpArbitraryFloatCastFromIntINTEL: *hasResult = true; *hasResultType = true; break;
2361     case OpArbitraryFloatCastToIntINTEL: *hasResult = true; *hasResultType = true; break;
2362     case OpArbitraryFloatAddINTEL: *hasResult = true; *hasResultType = true; break;
2363     case OpArbitraryFloatSubINTEL: *hasResult = true; *hasResultType = true; break;
2364     case OpArbitraryFloatMulINTEL: *hasResult = true; *hasResultType = true; break;
2365     case OpArbitraryFloatDivINTEL: *hasResult = true; *hasResultType = true; break;
2366     case OpArbitraryFloatGTINTEL: *hasResult = true; *hasResultType = true; break;
2367     case OpArbitraryFloatGEINTEL: *hasResult = true; *hasResultType = true; break;
2368     case OpArbitraryFloatLTINTEL: *hasResult = true; *hasResultType = true; break;
2369     case OpArbitraryFloatLEINTEL: *hasResult = true; *hasResultType = true; break;
2370     case OpArbitraryFloatEQINTEL: *hasResult = true; *hasResultType = true; break;
2371     case OpArbitraryFloatRecipINTEL: *hasResult = true; *hasResultType = true; break;
2372     case OpArbitraryFloatRSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2373     case OpArbitraryFloatCbrtINTEL: *hasResult = true; *hasResultType = true; break;
2374     case OpArbitraryFloatHypotINTEL: *hasResult = true; *hasResultType = true; break;
2375     case OpArbitraryFloatSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2376     case OpArbitraryFloatLogINTEL: *hasResult = true; *hasResultType = true; break;
2377     case OpArbitraryFloatLog2INTEL: *hasResult = true; *hasResultType = true; break;
2378     case OpArbitraryFloatLog10INTEL: *hasResult = true; *hasResultType = true; break;
2379     case OpArbitraryFloatLog1pINTEL: *hasResult = true; *hasResultType = true; break;
2380     case OpArbitraryFloatExpINTEL: *hasResult = true; *hasResultType = true; break;
2381     case OpArbitraryFloatExp2INTEL: *hasResult = true; *hasResultType = true; break;
2382     case OpArbitraryFloatExp10INTEL: *hasResult = true; *hasResultType = true; break;
2383     case OpArbitraryFloatExpm1INTEL: *hasResult = true; *hasResultType = true; break;
2384     case OpArbitraryFloatSinINTEL: *hasResult = true; *hasResultType = true; break;
2385     case OpArbitraryFloatCosINTEL: *hasResult = true; *hasResultType = true; break;
2386     case OpArbitraryFloatSinCosINTEL: *hasResult = true; *hasResultType = true; break;
2387     case OpArbitraryFloatSinPiINTEL: *hasResult = true; *hasResultType = true; break;
2388     case OpArbitraryFloatCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2389     case OpArbitraryFloatASinINTEL: *hasResult = true; *hasResultType = true; break;
2390     case OpArbitraryFloatASinPiINTEL: *hasResult = true; *hasResultType = true; break;
2391     case OpArbitraryFloatACosINTEL: *hasResult = true; *hasResultType = true; break;
2392     case OpArbitraryFloatACosPiINTEL: *hasResult = true; *hasResultType = true; break;
2393     case OpArbitraryFloatATanINTEL: *hasResult = true; *hasResultType = true; break;
2394     case OpArbitraryFloatATanPiINTEL: *hasResult = true; *hasResultType = true; break;
2395     case OpArbitraryFloatATan2INTEL: *hasResult = true; *hasResultType = true; break;
2396     case OpArbitraryFloatPowINTEL: *hasResult = true; *hasResultType = true; break;
2397     case OpArbitraryFloatPowRINTEL: *hasResult = true; *hasResultType = true; break;
2398     case OpArbitraryFloatPowNINTEL: *hasResult = true; *hasResultType = true; break;
2399     case OpLoopControlINTEL: *hasResult = false; *hasResultType = false; break;
2400     case OpFixedSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2401     case OpFixedRecipINTEL: *hasResult = true; *hasResultType = true; break;
2402     case OpFixedRsqrtINTEL: *hasResult = true; *hasResultType = true; break;
2403     case OpFixedSinINTEL: *hasResult = true; *hasResultType = true; break;
2404     case OpFixedCosINTEL: *hasResult = true; *hasResultType = true; break;
2405     case OpFixedSinCosINTEL: *hasResult = true; *hasResultType = true; break;
2406     case OpFixedSinPiINTEL: *hasResult = true; *hasResultType = true; break;
2407     case OpFixedCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2408     case OpFixedSinCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2409     case OpFixedLogINTEL: *hasResult = true; *hasResultType = true; break;
2410     case OpFixedExpINTEL: *hasResult = true; *hasResultType = true; break;
2411     case OpPtrCastToCrossWorkgroupINTEL: *hasResult = true; *hasResultType = true; break;
2412     case OpCrossWorkgroupCastToPtrINTEL: *hasResult = true; *hasResultType = true; break;
2413     case OpReadPipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2414     case OpWritePipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2415     case OpFPGARegINTEL: *hasResult = true; *hasResultType = true; break;
2416     case OpRayQueryGetRayTMinKHR: *hasResult = true; *hasResultType = true; break;
2417     case OpRayQueryGetRayFlagsKHR: *hasResult = true; *hasResultType = true; break;
2418     case OpRayQueryGetIntersectionTKHR: *hasResult = true; *hasResultType = true; break;
2419     case OpRayQueryGetIntersectionInstanceCustomIndexKHR: *hasResult = true; *hasResultType = true; break;
2420     case OpRayQueryGetIntersectionInstanceIdKHR: *hasResult = true; *hasResultType = true; break;
2421     case OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: *hasResult = true; *hasResultType = true; break;
2422     case OpRayQueryGetIntersectionGeometryIndexKHR: *hasResult = true; *hasResultType = true; break;
2423     case OpRayQueryGetIntersectionPrimitiveIndexKHR: *hasResult = true; *hasResultType = true; break;
2424     case OpRayQueryGetIntersectionBarycentricsKHR: *hasResult = true; *hasResultType = true; break;
2425     case OpRayQueryGetIntersectionFrontFaceKHR: *hasResult = true; *hasResultType = true; break;
2426     case OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: *hasResult = true; *hasResultType = true; break;
2427     case OpRayQueryGetIntersectionObjectRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2428     case OpRayQueryGetIntersectionObjectRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2429     case OpRayQueryGetWorldRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2430     case OpRayQueryGetWorldRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2431     case OpRayQueryGetIntersectionObjectToWorldKHR: *hasResult = true; *hasResultType = true; break;
2432     case OpRayQueryGetIntersectionWorldToObjectKHR: *hasResult = true; *hasResultType = true; break;
2433     case OpAtomicFAddEXT: *hasResult = true; *hasResultType = true; break;
2434     case OpTypeBufferSurfaceINTEL: *hasResult = true; *hasResultType = false; break;
2435     case OpTypeStructContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2436     case OpConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2437     case OpSpecConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2438     }
2439 }
2440 #endif /* SPV_ENABLE_UTILITY_CODE */
2441
2442 // Overload operator| for mask bit combining
2443
2444 inline ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
2445 inline FPFastMathModeMask operator|(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) | unsigned(b)); }
2446 inline SelectionControlMask operator|(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) | unsigned(b)); }
2447 inline LoopControlMask operator|(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) | unsigned(b)); }
2448 inline FunctionControlMask operator|(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) | unsigned(b)); }
2449 inline MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }
2450 inline MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
2451 inline KernelProfilingInfoMask operator|(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) | unsigned(b)); }
2452 inline RayFlagsMask operator|(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) | unsigned(b)); }
2453 inline FragmentShadingRateMask operator|(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) | unsigned(b)); }
2454
2455 }  // end namespace spv
2456
2457 #endif  // #ifndef spirv_HPP
2458