add support for SPV_KHR_bit_instructions
[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     CapabilityMax = 0x7fffffff,
1054 };
1055
1056 enum RayFlagsShift {
1057     RayFlagsOpaqueKHRShift = 0,
1058     RayFlagsNoOpaqueKHRShift = 1,
1059     RayFlagsTerminateOnFirstHitKHRShift = 2,
1060     RayFlagsSkipClosestHitShaderKHRShift = 3,
1061     RayFlagsCullBackFacingTrianglesKHRShift = 4,
1062     RayFlagsCullFrontFacingTrianglesKHRShift = 5,
1063     RayFlagsCullOpaqueKHRShift = 6,
1064     RayFlagsCullNoOpaqueKHRShift = 7,
1065     RayFlagsSkipTrianglesKHRShift = 8,
1066     RayFlagsSkipAABBsKHRShift = 9,
1067     RayFlagsMax = 0x7fffffff,
1068 };
1069
1070 enum RayFlagsMask {
1071     RayFlagsMaskNone = 0,
1072     RayFlagsOpaqueKHRMask = 0x00000001,
1073     RayFlagsNoOpaqueKHRMask = 0x00000002,
1074     RayFlagsTerminateOnFirstHitKHRMask = 0x00000004,
1075     RayFlagsSkipClosestHitShaderKHRMask = 0x00000008,
1076     RayFlagsCullBackFacingTrianglesKHRMask = 0x00000010,
1077     RayFlagsCullFrontFacingTrianglesKHRMask = 0x00000020,
1078     RayFlagsCullOpaqueKHRMask = 0x00000040,
1079     RayFlagsCullNoOpaqueKHRMask = 0x00000080,
1080     RayFlagsSkipTrianglesKHRMask = 0x00000100,
1081     RayFlagsSkipAABBsKHRMask = 0x00000200,
1082 };
1083
1084 enum RayQueryIntersection {
1085     RayQueryIntersectionRayQueryCandidateIntersectionKHR = 0,
1086     RayQueryIntersectionRayQueryCommittedIntersectionKHR = 1,
1087     RayQueryIntersectionMax = 0x7fffffff,
1088 };
1089
1090 enum RayQueryCommittedIntersectionType {
1091     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionNoneKHR = 0,
1092     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionTriangleKHR = 1,
1093     RayQueryCommittedIntersectionTypeRayQueryCommittedIntersectionGeneratedKHR = 2,
1094     RayQueryCommittedIntersectionTypeMax = 0x7fffffff,
1095 };
1096
1097 enum RayQueryCandidateIntersectionType {
1098     RayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionTriangleKHR = 0,
1099     RayQueryCandidateIntersectionTypeRayQueryCandidateIntersectionAABBKHR = 1,
1100     RayQueryCandidateIntersectionTypeMax = 0x7fffffff,
1101 };
1102
1103 enum FragmentShadingRateShift {
1104     FragmentShadingRateVertical2PixelsShift = 0,
1105     FragmentShadingRateVertical4PixelsShift = 1,
1106     FragmentShadingRateHorizontal2PixelsShift = 2,
1107     FragmentShadingRateHorizontal4PixelsShift = 3,
1108     FragmentShadingRateMax = 0x7fffffff,
1109 };
1110
1111 enum FragmentShadingRateMask {
1112     FragmentShadingRateMaskNone = 0,
1113     FragmentShadingRateVertical2PixelsMask = 0x00000001,
1114     FragmentShadingRateVertical4PixelsMask = 0x00000002,
1115     FragmentShadingRateHorizontal2PixelsMask = 0x00000004,
1116     FragmentShadingRateHorizontal4PixelsMask = 0x00000008,
1117 };
1118
1119 enum FPDenormMode {
1120     FPDenormModePreserve = 0,
1121     FPDenormModeFlushToZero = 1,
1122     FPDenormModeMax = 0x7fffffff,
1123 };
1124
1125 enum FPOperationMode {
1126     FPOperationModeIEEE = 0,
1127     FPOperationModeALT = 1,
1128     FPOperationModeMax = 0x7fffffff,
1129 };
1130
1131 enum QuantizationModes {
1132     QuantizationModesTRN = 0,
1133     QuantizationModesTRN_ZERO = 1,
1134     QuantizationModesRND = 2,
1135     QuantizationModesRND_ZERO = 3,
1136     QuantizationModesRND_INF = 4,
1137     QuantizationModesRND_MIN_INF = 5,
1138     QuantizationModesRND_CONV = 6,
1139     QuantizationModesRND_CONV_ODD = 7,
1140     QuantizationModesMax = 0x7fffffff,
1141 };
1142
1143 enum OverflowModes {
1144     OverflowModesWRAP = 0,
1145     OverflowModesSAT = 1,
1146     OverflowModesSAT_ZERO = 2,
1147     OverflowModesSAT_SYM = 3,
1148     OverflowModesMax = 0x7fffffff,
1149 };
1150
1151 enum PackedVectorFormat {
1152     PackedVectorFormatPackedVectorFormat4x8BitKHR = 0,
1153     PackedVectorFormatMax = 0x7fffffff,
1154 };
1155
1156 enum Op {
1157     OpNop = 0,
1158     OpUndef = 1,
1159     OpSourceContinued = 2,
1160     OpSource = 3,
1161     OpSourceExtension = 4,
1162     OpName = 5,
1163     OpMemberName = 6,
1164     OpString = 7,
1165     OpLine = 8,
1166     OpExtension = 10,
1167     OpExtInstImport = 11,
1168     OpExtInst = 12,
1169     OpMemoryModel = 14,
1170     OpEntryPoint = 15,
1171     OpExecutionMode = 16,
1172     OpCapability = 17,
1173     OpTypeVoid = 19,
1174     OpTypeBool = 20,
1175     OpTypeInt = 21,
1176     OpTypeFloat = 22,
1177     OpTypeVector = 23,
1178     OpTypeMatrix = 24,
1179     OpTypeImage = 25,
1180     OpTypeSampler = 26,
1181     OpTypeSampledImage = 27,
1182     OpTypeArray = 28,
1183     OpTypeRuntimeArray = 29,
1184     OpTypeStruct = 30,
1185     OpTypeOpaque = 31,
1186     OpTypePointer = 32,
1187     OpTypeFunction = 33,
1188     OpTypeEvent = 34,
1189     OpTypeDeviceEvent = 35,
1190     OpTypeReserveId = 36,
1191     OpTypeQueue = 37,
1192     OpTypePipe = 38,
1193     OpTypeForwardPointer = 39,
1194     OpConstantTrue = 41,
1195     OpConstantFalse = 42,
1196     OpConstant = 43,
1197     OpConstantComposite = 44,
1198     OpConstantSampler = 45,
1199     OpConstantNull = 46,
1200     OpSpecConstantTrue = 48,
1201     OpSpecConstantFalse = 49,
1202     OpSpecConstant = 50,
1203     OpSpecConstantComposite = 51,
1204     OpSpecConstantOp = 52,
1205     OpFunction = 54,
1206     OpFunctionParameter = 55,
1207     OpFunctionEnd = 56,
1208     OpFunctionCall = 57,
1209     OpVariable = 59,
1210     OpImageTexelPointer = 60,
1211     OpLoad = 61,
1212     OpStore = 62,
1213     OpCopyMemory = 63,
1214     OpCopyMemorySized = 64,
1215     OpAccessChain = 65,
1216     OpInBoundsAccessChain = 66,
1217     OpPtrAccessChain = 67,
1218     OpArrayLength = 68,
1219     OpGenericPtrMemSemantics = 69,
1220     OpInBoundsPtrAccessChain = 70,
1221     OpDecorate = 71,
1222     OpMemberDecorate = 72,
1223     OpDecorationGroup = 73,
1224     OpGroupDecorate = 74,
1225     OpGroupMemberDecorate = 75,
1226     OpVectorExtractDynamic = 77,
1227     OpVectorInsertDynamic = 78,
1228     OpVectorShuffle = 79,
1229     OpCompositeConstruct = 80,
1230     OpCompositeExtract = 81,
1231     OpCompositeInsert = 82,
1232     OpCopyObject = 83,
1233     OpTranspose = 84,
1234     OpSampledImage = 86,
1235     OpImageSampleImplicitLod = 87,
1236     OpImageSampleExplicitLod = 88,
1237     OpImageSampleDrefImplicitLod = 89,
1238     OpImageSampleDrefExplicitLod = 90,
1239     OpImageSampleProjImplicitLod = 91,
1240     OpImageSampleProjExplicitLod = 92,
1241     OpImageSampleProjDrefImplicitLod = 93,
1242     OpImageSampleProjDrefExplicitLod = 94,
1243     OpImageFetch = 95,
1244     OpImageGather = 96,
1245     OpImageDrefGather = 97,
1246     OpImageRead = 98,
1247     OpImageWrite = 99,
1248     OpImage = 100,
1249     OpImageQueryFormat = 101,
1250     OpImageQueryOrder = 102,
1251     OpImageQuerySizeLod = 103,
1252     OpImageQuerySize = 104,
1253     OpImageQueryLod = 105,
1254     OpImageQueryLevels = 106,
1255     OpImageQuerySamples = 107,
1256     OpConvertFToU = 109,
1257     OpConvertFToS = 110,
1258     OpConvertSToF = 111,
1259     OpConvertUToF = 112,
1260     OpUConvert = 113,
1261     OpSConvert = 114,
1262     OpFConvert = 115,
1263     OpQuantizeToF16 = 116,
1264     OpConvertPtrToU = 117,
1265     OpSatConvertSToU = 118,
1266     OpSatConvertUToS = 119,
1267     OpConvertUToPtr = 120,
1268     OpPtrCastToGeneric = 121,
1269     OpGenericCastToPtr = 122,
1270     OpGenericCastToPtrExplicit = 123,
1271     OpBitcast = 124,
1272     OpSNegate = 126,
1273     OpFNegate = 127,
1274     OpIAdd = 128,
1275     OpFAdd = 129,
1276     OpISub = 130,
1277     OpFSub = 131,
1278     OpIMul = 132,
1279     OpFMul = 133,
1280     OpUDiv = 134,
1281     OpSDiv = 135,
1282     OpFDiv = 136,
1283     OpUMod = 137,
1284     OpSRem = 138,
1285     OpSMod = 139,
1286     OpFRem = 140,
1287     OpFMod = 141,
1288     OpVectorTimesScalar = 142,
1289     OpMatrixTimesScalar = 143,
1290     OpVectorTimesMatrix = 144,
1291     OpMatrixTimesVector = 145,
1292     OpMatrixTimesMatrix = 146,
1293     OpOuterProduct = 147,
1294     OpDot = 148,
1295     OpIAddCarry = 149,
1296     OpISubBorrow = 150,
1297     OpUMulExtended = 151,
1298     OpSMulExtended = 152,
1299     OpAny = 154,
1300     OpAll = 155,
1301     OpIsNan = 156,
1302     OpIsInf = 157,
1303     OpIsFinite = 158,
1304     OpIsNormal = 159,
1305     OpSignBitSet = 160,
1306     OpLessOrGreater = 161,
1307     OpOrdered = 162,
1308     OpUnordered = 163,
1309     OpLogicalEqual = 164,
1310     OpLogicalNotEqual = 165,
1311     OpLogicalOr = 166,
1312     OpLogicalAnd = 167,
1313     OpLogicalNot = 168,
1314     OpSelect = 169,
1315     OpIEqual = 170,
1316     OpINotEqual = 171,
1317     OpUGreaterThan = 172,
1318     OpSGreaterThan = 173,
1319     OpUGreaterThanEqual = 174,
1320     OpSGreaterThanEqual = 175,
1321     OpULessThan = 176,
1322     OpSLessThan = 177,
1323     OpULessThanEqual = 178,
1324     OpSLessThanEqual = 179,
1325     OpFOrdEqual = 180,
1326     OpFUnordEqual = 181,
1327     OpFOrdNotEqual = 182,
1328     OpFUnordNotEqual = 183,
1329     OpFOrdLessThan = 184,
1330     OpFUnordLessThan = 185,
1331     OpFOrdGreaterThan = 186,
1332     OpFUnordGreaterThan = 187,
1333     OpFOrdLessThanEqual = 188,
1334     OpFUnordLessThanEqual = 189,
1335     OpFOrdGreaterThanEqual = 190,
1336     OpFUnordGreaterThanEqual = 191,
1337     OpShiftRightLogical = 194,
1338     OpShiftRightArithmetic = 195,
1339     OpShiftLeftLogical = 196,
1340     OpBitwiseOr = 197,
1341     OpBitwiseXor = 198,
1342     OpBitwiseAnd = 199,
1343     OpNot = 200,
1344     OpBitFieldInsert = 201,
1345     OpBitFieldSExtract = 202,
1346     OpBitFieldUExtract = 203,
1347     OpBitReverse = 204,
1348     OpBitCount = 205,
1349     OpDPdx = 207,
1350     OpDPdy = 208,
1351     OpFwidth = 209,
1352     OpDPdxFine = 210,
1353     OpDPdyFine = 211,
1354     OpFwidthFine = 212,
1355     OpDPdxCoarse = 213,
1356     OpDPdyCoarse = 214,
1357     OpFwidthCoarse = 215,
1358     OpEmitVertex = 218,
1359     OpEndPrimitive = 219,
1360     OpEmitStreamVertex = 220,
1361     OpEndStreamPrimitive = 221,
1362     OpControlBarrier = 224,
1363     OpMemoryBarrier = 225,
1364     OpAtomicLoad = 227,
1365     OpAtomicStore = 228,
1366     OpAtomicExchange = 229,
1367     OpAtomicCompareExchange = 230,
1368     OpAtomicCompareExchangeWeak = 231,
1369     OpAtomicIIncrement = 232,
1370     OpAtomicIDecrement = 233,
1371     OpAtomicIAdd = 234,
1372     OpAtomicISub = 235,
1373     OpAtomicSMin = 236,
1374     OpAtomicUMin = 237,
1375     OpAtomicSMax = 238,
1376     OpAtomicUMax = 239,
1377     OpAtomicAnd = 240,
1378     OpAtomicOr = 241,
1379     OpAtomicXor = 242,
1380     OpPhi = 245,
1381     OpLoopMerge = 246,
1382     OpSelectionMerge = 247,
1383     OpLabel = 248,
1384     OpBranch = 249,
1385     OpBranchConditional = 250,
1386     OpSwitch = 251,
1387     OpKill = 252,
1388     OpReturn = 253,
1389     OpReturnValue = 254,
1390     OpUnreachable = 255,
1391     OpLifetimeStart = 256,
1392     OpLifetimeStop = 257,
1393     OpGroupAsyncCopy = 259,
1394     OpGroupWaitEvents = 260,
1395     OpGroupAll = 261,
1396     OpGroupAny = 262,
1397     OpGroupBroadcast = 263,
1398     OpGroupIAdd = 264,
1399     OpGroupFAdd = 265,
1400     OpGroupFMin = 266,
1401     OpGroupUMin = 267,
1402     OpGroupSMin = 268,
1403     OpGroupFMax = 269,
1404     OpGroupUMax = 270,
1405     OpGroupSMax = 271,
1406     OpReadPipe = 274,
1407     OpWritePipe = 275,
1408     OpReservedReadPipe = 276,
1409     OpReservedWritePipe = 277,
1410     OpReserveReadPipePackets = 278,
1411     OpReserveWritePipePackets = 279,
1412     OpCommitReadPipe = 280,
1413     OpCommitWritePipe = 281,
1414     OpIsValidReserveId = 282,
1415     OpGetNumPipePackets = 283,
1416     OpGetMaxPipePackets = 284,
1417     OpGroupReserveReadPipePackets = 285,
1418     OpGroupReserveWritePipePackets = 286,
1419     OpGroupCommitReadPipe = 287,
1420     OpGroupCommitWritePipe = 288,
1421     OpEnqueueMarker = 291,
1422     OpEnqueueKernel = 292,
1423     OpGetKernelNDrangeSubGroupCount = 293,
1424     OpGetKernelNDrangeMaxSubGroupSize = 294,
1425     OpGetKernelWorkGroupSize = 295,
1426     OpGetKernelPreferredWorkGroupSizeMultiple = 296,
1427     OpRetainEvent = 297,
1428     OpReleaseEvent = 298,
1429     OpCreateUserEvent = 299,
1430     OpIsValidEvent = 300,
1431     OpSetUserEventStatus = 301,
1432     OpCaptureEventProfilingInfo = 302,
1433     OpGetDefaultQueue = 303,
1434     OpBuildNDRange = 304,
1435     OpImageSparseSampleImplicitLod = 305,
1436     OpImageSparseSampleExplicitLod = 306,
1437     OpImageSparseSampleDrefImplicitLod = 307,
1438     OpImageSparseSampleDrefExplicitLod = 308,
1439     OpImageSparseSampleProjImplicitLod = 309,
1440     OpImageSparseSampleProjExplicitLod = 310,
1441     OpImageSparseSampleProjDrefImplicitLod = 311,
1442     OpImageSparseSampleProjDrefExplicitLod = 312,
1443     OpImageSparseFetch = 313,
1444     OpImageSparseGather = 314,
1445     OpImageSparseDrefGather = 315,
1446     OpImageSparseTexelsResident = 316,
1447     OpNoLine = 317,
1448     OpAtomicFlagTestAndSet = 318,
1449     OpAtomicFlagClear = 319,
1450     OpImageSparseRead = 320,
1451     OpSizeOf = 321,
1452     OpTypePipeStorage = 322,
1453     OpConstantPipeStorage = 323,
1454     OpCreatePipeFromPipeStorage = 324,
1455     OpGetKernelLocalSizeForSubgroupCount = 325,
1456     OpGetKernelMaxNumSubgroups = 326,
1457     OpTypeNamedBarrier = 327,
1458     OpNamedBarrierInitialize = 328,
1459     OpMemoryNamedBarrier = 329,
1460     OpModuleProcessed = 330,
1461     OpExecutionModeId = 331,
1462     OpDecorateId = 332,
1463     OpGroupNonUniformElect = 333,
1464     OpGroupNonUniformAll = 334,
1465     OpGroupNonUniformAny = 335,
1466     OpGroupNonUniformAllEqual = 336,
1467     OpGroupNonUniformBroadcast = 337,
1468     OpGroupNonUniformBroadcastFirst = 338,
1469     OpGroupNonUniformBallot = 339,
1470     OpGroupNonUniformInverseBallot = 340,
1471     OpGroupNonUniformBallotBitExtract = 341,
1472     OpGroupNonUniformBallotBitCount = 342,
1473     OpGroupNonUniformBallotFindLSB = 343,
1474     OpGroupNonUniformBallotFindMSB = 344,
1475     OpGroupNonUniformShuffle = 345,
1476     OpGroupNonUniformShuffleXor = 346,
1477     OpGroupNonUniformShuffleUp = 347,
1478     OpGroupNonUniformShuffleDown = 348,
1479     OpGroupNonUniformIAdd = 349,
1480     OpGroupNonUniformFAdd = 350,
1481     OpGroupNonUniformIMul = 351,
1482     OpGroupNonUniformFMul = 352,
1483     OpGroupNonUniformSMin = 353,
1484     OpGroupNonUniformUMin = 354,
1485     OpGroupNonUniformFMin = 355,
1486     OpGroupNonUniformSMax = 356,
1487     OpGroupNonUniformUMax = 357,
1488     OpGroupNonUniformFMax = 358,
1489     OpGroupNonUniformBitwiseAnd = 359,
1490     OpGroupNonUniformBitwiseOr = 360,
1491     OpGroupNonUniformBitwiseXor = 361,
1492     OpGroupNonUniformLogicalAnd = 362,
1493     OpGroupNonUniformLogicalOr = 363,
1494     OpGroupNonUniformLogicalXor = 364,
1495     OpGroupNonUniformQuadBroadcast = 365,
1496     OpGroupNonUniformQuadSwap = 366,
1497     OpCopyLogical = 400,
1498     OpPtrEqual = 401,
1499     OpPtrNotEqual = 402,
1500     OpPtrDiff = 403,
1501     OpTerminateInvocation = 4416,
1502     OpSubgroupBallotKHR = 4421,
1503     OpSubgroupFirstInvocationKHR = 4422,
1504     OpSubgroupAllKHR = 4428,
1505     OpSubgroupAnyKHR = 4429,
1506     OpSubgroupAllEqualKHR = 4430,
1507     OpSubgroupReadInvocationKHR = 4432,
1508     OpTraceRayKHR = 4445,
1509     OpExecuteCallableKHR = 4446,
1510     OpConvertUToAccelerationStructureKHR = 4447,
1511     OpIgnoreIntersectionKHR = 4448,
1512     OpTerminateRayKHR = 4449,
1513     OpSDotKHR = 4450,
1514     OpUDotKHR = 4451,
1515     OpSUDotKHR = 4452,
1516     OpSDotAccSatKHR = 4453,
1517     OpUDotAccSatKHR = 4454,
1518     OpSUDotAccSatKHR = 4455,
1519     OpTypeRayQueryKHR = 4472,
1520     OpRayQueryInitializeKHR = 4473,
1521     OpRayQueryTerminateKHR = 4474,
1522     OpRayQueryGenerateIntersectionKHR = 4475,
1523     OpRayQueryConfirmIntersectionKHR = 4476,
1524     OpRayQueryProceedKHR = 4477,
1525     OpRayQueryGetIntersectionTypeKHR = 4479,
1526     OpGroupIAddNonUniformAMD = 5000,
1527     OpGroupFAddNonUniformAMD = 5001,
1528     OpGroupFMinNonUniformAMD = 5002,
1529     OpGroupUMinNonUniformAMD = 5003,
1530     OpGroupSMinNonUniformAMD = 5004,
1531     OpGroupFMaxNonUniformAMD = 5005,
1532     OpGroupUMaxNonUniformAMD = 5006,
1533     OpGroupSMaxNonUniformAMD = 5007,
1534     OpFragmentMaskFetchAMD = 5011,
1535     OpFragmentFetchAMD = 5012,
1536     OpReadClockKHR = 5056,
1537     OpImageSampleFootprintNV = 5283,
1538     OpGroupNonUniformPartitionNV = 5296,
1539     OpWritePackedPrimitiveIndices4x8NV = 5299,
1540     OpReportIntersectionKHR = 5334,
1541     OpReportIntersectionNV = 5334,
1542     OpIgnoreIntersectionNV = 5335,
1543     OpTerminateRayNV = 5336,
1544     OpTraceNV = 5337,
1545     OpTypeAccelerationStructureKHR = 5341,
1546     OpTypeAccelerationStructureNV = 5341,
1547     OpExecuteCallableNV = 5344,
1548     OpTypeCooperativeMatrixNV = 5358,
1549     OpCooperativeMatrixLoadNV = 5359,
1550     OpCooperativeMatrixStoreNV = 5360,
1551     OpCooperativeMatrixMulAddNV = 5361,
1552     OpCooperativeMatrixLengthNV = 5362,
1553     OpBeginInvocationInterlockEXT = 5364,
1554     OpEndInvocationInterlockEXT = 5365,
1555     OpDemoteToHelperInvocationEXT = 5380,
1556     OpIsHelperInvocationEXT = 5381,
1557     OpSubgroupShuffleINTEL = 5571,
1558     OpSubgroupShuffleDownINTEL = 5572,
1559     OpSubgroupShuffleUpINTEL = 5573,
1560     OpSubgroupShuffleXorINTEL = 5574,
1561     OpSubgroupBlockReadINTEL = 5575,
1562     OpSubgroupBlockWriteINTEL = 5576,
1563     OpSubgroupImageBlockReadINTEL = 5577,
1564     OpSubgroupImageBlockWriteINTEL = 5578,
1565     OpSubgroupImageMediaBlockReadINTEL = 5580,
1566     OpSubgroupImageMediaBlockWriteINTEL = 5581,
1567     OpUCountLeadingZerosINTEL = 5585,
1568     OpUCountTrailingZerosINTEL = 5586,
1569     OpAbsISubINTEL = 5587,
1570     OpAbsUSubINTEL = 5588,
1571     OpIAddSatINTEL = 5589,
1572     OpUAddSatINTEL = 5590,
1573     OpIAverageINTEL = 5591,
1574     OpUAverageINTEL = 5592,
1575     OpIAverageRoundedINTEL = 5593,
1576     OpUAverageRoundedINTEL = 5594,
1577     OpISubSatINTEL = 5595,
1578     OpUSubSatINTEL = 5596,
1579     OpIMul32x16INTEL = 5597,
1580     OpUMul32x16INTEL = 5598,
1581     OpConstFunctionPointerINTEL = 5600,
1582     OpFunctionPointerCallINTEL = 5601,
1583     OpAsmTargetINTEL = 5609,
1584     OpAsmINTEL = 5610,
1585     OpAsmCallINTEL = 5611,
1586     OpAtomicFMinEXT = 5614,
1587     OpAtomicFMaxEXT = 5615,
1588     OpAssumeTrueKHR = 5630,
1589     OpExpectKHR = 5631,
1590     OpDecorateString = 5632,
1591     OpDecorateStringGOOGLE = 5632,
1592     OpMemberDecorateString = 5633,
1593     OpMemberDecorateStringGOOGLE = 5633,
1594     OpVmeImageINTEL = 5699,
1595     OpTypeVmeImageINTEL = 5700,
1596     OpTypeAvcImePayloadINTEL = 5701,
1597     OpTypeAvcRefPayloadINTEL = 5702,
1598     OpTypeAvcSicPayloadINTEL = 5703,
1599     OpTypeAvcMcePayloadINTEL = 5704,
1600     OpTypeAvcMceResultINTEL = 5705,
1601     OpTypeAvcImeResultINTEL = 5706,
1602     OpTypeAvcImeResultSingleReferenceStreamoutINTEL = 5707,
1603     OpTypeAvcImeResultDualReferenceStreamoutINTEL = 5708,
1604     OpTypeAvcImeSingleReferenceStreaminINTEL = 5709,
1605     OpTypeAvcImeDualReferenceStreaminINTEL = 5710,
1606     OpTypeAvcRefResultINTEL = 5711,
1607     OpTypeAvcSicResultINTEL = 5712,
1608     OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL = 5713,
1609     OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL = 5714,
1610     OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL = 5715,
1611     OpSubgroupAvcMceSetInterShapePenaltyINTEL = 5716,
1612     OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL = 5717,
1613     OpSubgroupAvcMceSetInterDirectionPenaltyINTEL = 5718,
1614     OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL = 5719,
1615     OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL = 5720,
1616     OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL = 5721,
1617     OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL = 5722,
1618     OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL = 5723,
1619     OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL = 5724,
1620     OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL = 5725,
1621     OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL = 5726,
1622     OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL = 5727,
1623     OpSubgroupAvcMceSetAcOnlyHaarINTEL = 5728,
1624     OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL = 5729,
1625     OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL = 5730,
1626     OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL = 5731,
1627     OpSubgroupAvcMceConvertToImePayloadINTEL = 5732,
1628     OpSubgroupAvcMceConvertToImeResultINTEL = 5733,
1629     OpSubgroupAvcMceConvertToRefPayloadINTEL = 5734,
1630     OpSubgroupAvcMceConvertToRefResultINTEL = 5735,
1631     OpSubgroupAvcMceConvertToSicPayloadINTEL = 5736,
1632     OpSubgroupAvcMceConvertToSicResultINTEL = 5737,
1633     OpSubgroupAvcMceGetMotionVectorsINTEL = 5738,
1634     OpSubgroupAvcMceGetInterDistortionsINTEL = 5739,
1635     OpSubgroupAvcMceGetBestInterDistortionsINTEL = 5740,
1636     OpSubgroupAvcMceGetInterMajorShapeINTEL = 5741,
1637     OpSubgroupAvcMceGetInterMinorShapeINTEL = 5742,
1638     OpSubgroupAvcMceGetInterDirectionsINTEL = 5743,
1639     OpSubgroupAvcMceGetInterMotionVectorCountINTEL = 5744,
1640     OpSubgroupAvcMceGetInterReferenceIdsINTEL = 5745,
1641     OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL = 5746,
1642     OpSubgroupAvcImeInitializeINTEL = 5747,
1643     OpSubgroupAvcImeSetSingleReferenceINTEL = 5748,
1644     OpSubgroupAvcImeSetDualReferenceINTEL = 5749,
1645     OpSubgroupAvcImeRefWindowSizeINTEL = 5750,
1646     OpSubgroupAvcImeAdjustRefOffsetINTEL = 5751,
1647     OpSubgroupAvcImeConvertToMcePayloadINTEL = 5752,
1648     OpSubgroupAvcImeSetMaxMotionVectorCountINTEL = 5753,
1649     OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL = 5754,
1650     OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL = 5755,
1651     OpSubgroupAvcImeSetWeightedSadINTEL = 5756,
1652     OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL = 5757,
1653     OpSubgroupAvcImeEvaluateWithDualReferenceINTEL = 5758,
1654     OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL = 5759,
1655     OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL = 5760,
1656     OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL = 5761,
1657     OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL = 5762,
1658     OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL = 5763,
1659     OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL = 5764,
1660     OpSubgroupAvcImeConvertToMceResultINTEL = 5765,
1661     OpSubgroupAvcImeGetSingleReferenceStreaminINTEL = 5766,
1662     OpSubgroupAvcImeGetDualReferenceStreaminINTEL = 5767,
1663     OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL = 5768,
1664     OpSubgroupAvcImeStripDualReferenceStreamoutINTEL = 5769,
1665     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL = 5770,
1666     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL = 5771,
1667     OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL = 5772,
1668     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL = 5773,
1669     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL = 5774,
1670     OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL = 5775,
1671     OpSubgroupAvcImeGetBorderReachedINTEL = 5776,
1672     OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL = 5777,
1673     OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL = 5778,
1674     OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL = 5779,
1675     OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL = 5780,
1676     OpSubgroupAvcFmeInitializeINTEL = 5781,
1677     OpSubgroupAvcBmeInitializeINTEL = 5782,
1678     OpSubgroupAvcRefConvertToMcePayloadINTEL = 5783,
1679     OpSubgroupAvcRefSetBidirectionalMixDisableINTEL = 5784,
1680     OpSubgroupAvcRefSetBilinearFilterEnableINTEL = 5785,
1681     OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL = 5786,
1682     OpSubgroupAvcRefEvaluateWithDualReferenceINTEL = 5787,
1683     OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL = 5788,
1684     OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL = 5789,
1685     OpSubgroupAvcRefConvertToMceResultINTEL = 5790,
1686     OpSubgroupAvcSicInitializeINTEL = 5791,
1687     OpSubgroupAvcSicConfigureSkcINTEL = 5792,
1688     OpSubgroupAvcSicConfigureIpeLumaINTEL = 5793,
1689     OpSubgroupAvcSicConfigureIpeLumaChromaINTEL = 5794,
1690     OpSubgroupAvcSicGetMotionVectorMaskINTEL = 5795,
1691     OpSubgroupAvcSicConvertToMcePayloadINTEL = 5796,
1692     OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL = 5797,
1693     OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL = 5798,
1694     OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL = 5799,
1695     OpSubgroupAvcSicSetBilinearFilterEnableINTEL = 5800,
1696     OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL = 5801,
1697     OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL = 5802,
1698     OpSubgroupAvcSicEvaluateIpeINTEL = 5803,
1699     OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL = 5804,
1700     OpSubgroupAvcSicEvaluateWithDualReferenceINTEL = 5805,
1701     OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL = 5806,
1702     OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL = 5807,
1703     OpSubgroupAvcSicConvertToMceResultINTEL = 5808,
1704     OpSubgroupAvcSicGetIpeLumaShapeINTEL = 5809,
1705     OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL = 5810,
1706     OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL = 5811,
1707     OpSubgroupAvcSicGetPackedIpeLumaModesINTEL = 5812,
1708     OpSubgroupAvcSicGetIpeChromaModeINTEL = 5813,
1709     OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL = 5814,
1710     OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL = 5815,
1711     OpSubgroupAvcSicGetInterRawSadsINTEL = 5816,
1712     OpVariableLengthArrayINTEL = 5818,
1713     OpSaveMemoryINTEL = 5819,
1714     OpRestoreMemoryINTEL = 5820,
1715     OpArbitraryFloatSinCosPiINTEL = 5840,
1716     OpArbitraryFloatCastINTEL = 5841,
1717     OpArbitraryFloatCastFromIntINTEL = 5842,
1718     OpArbitraryFloatCastToIntINTEL = 5843,
1719     OpArbitraryFloatAddINTEL = 5846,
1720     OpArbitraryFloatSubINTEL = 5847,
1721     OpArbitraryFloatMulINTEL = 5848,
1722     OpArbitraryFloatDivINTEL = 5849,
1723     OpArbitraryFloatGTINTEL = 5850,
1724     OpArbitraryFloatGEINTEL = 5851,
1725     OpArbitraryFloatLTINTEL = 5852,
1726     OpArbitraryFloatLEINTEL = 5853,
1727     OpArbitraryFloatEQINTEL = 5854,
1728     OpArbitraryFloatRecipINTEL = 5855,
1729     OpArbitraryFloatRSqrtINTEL = 5856,
1730     OpArbitraryFloatCbrtINTEL = 5857,
1731     OpArbitraryFloatHypotINTEL = 5858,
1732     OpArbitraryFloatSqrtINTEL = 5859,
1733     OpArbitraryFloatLogINTEL = 5860,
1734     OpArbitraryFloatLog2INTEL = 5861,
1735     OpArbitraryFloatLog10INTEL = 5862,
1736     OpArbitraryFloatLog1pINTEL = 5863,
1737     OpArbitraryFloatExpINTEL = 5864,
1738     OpArbitraryFloatExp2INTEL = 5865,
1739     OpArbitraryFloatExp10INTEL = 5866,
1740     OpArbitraryFloatExpm1INTEL = 5867,
1741     OpArbitraryFloatSinINTEL = 5868,
1742     OpArbitraryFloatCosINTEL = 5869,
1743     OpArbitraryFloatSinCosINTEL = 5870,
1744     OpArbitraryFloatSinPiINTEL = 5871,
1745     OpArbitraryFloatCosPiINTEL = 5872,
1746     OpArbitraryFloatASinINTEL = 5873,
1747     OpArbitraryFloatASinPiINTEL = 5874,
1748     OpArbitraryFloatACosINTEL = 5875,
1749     OpArbitraryFloatACosPiINTEL = 5876,
1750     OpArbitraryFloatATanINTEL = 5877,
1751     OpArbitraryFloatATanPiINTEL = 5878,
1752     OpArbitraryFloatATan2INTEL = 5879,
1753     OpArbitraryFloatPowINTEL = 5880,
1754     OpArbitraryFloatPowRINTEL = 5881,
1755     OpArbitraryFloatPowNINTEL = 5882,
1756     OpLoopControlINTEL = 5887,
1757     OpFixedSqrtINTEL = 5923,
1758     OpFixedRecipINTEL = 5924,
1759     OpFixedRsqrtINTEL = 5925,
1760     OpFixedSinINTEL = 5926,
1761     OpFixedCosINTEL = 5927,
1762     OpFixedSinCosINTEL = 5928,
1763     OpFixedSinPiINTEL = 5929,
1764     OpFixedCosPiINTEL = 5930,
1765     OpFixedSinCosPiINTEL = 5931,
1766     OpFixedLogINTEL = 5932,
1767     OpFixedExpINTEL = 5933,
1768     OpPtrCastToCrossWorkgroupINTEL = 5934,
1769     OpCrossWorkgroupCastToPtrINTEL = 5938,
1770     OpReadPipeBlockingINTEL = 5946,
1771     OpWritePipeBlockingINTEL = 5947,
1772     OpFPGARegINTEL = 5949,
1773     OpRayQueryGetRayTMinKHR = 6016,
1774     OpRayQueryGetRayFlagsKHR = 6017,
1775     OpRayQueryGetIntersectionTKHR = 6018,
1776     OpRayQueryGetIntersectionInstanceCustomIndexKHR = 6019,
1777     OpRayQueryGetIntersectionInstanceIdKHR = 6020,
1778     OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR = 6021,
1779     OpRayQueryGetIntersectionGeometryIndexKHR = 6022,
1780     OpRayQueryGetIntersectionPrimitiveIndexKHR = 6023,
1781     OpRayQueryGetIntersectionBarycentricsKHR = 6024,
1782     OpRayQueryGetIntersectionFrontFaceKHR = 6025,
1783     OpRayQueryGetIntersectionCandidateAABBOpaqueKHR = 6026,
1784     OpRayQueryGetIntersectionObjectRayDirectionKHR = 6027,
1785     OpRayQueryGetIntersectionObjectRayOriginKHR = 6028,
1786     OpRayQueryGetWorldRayDirectionKHR = 6029,
1787     OpRayQueryGetWorldRayOriginKHR = 6030,
1788     OpRayQueryGetIntersectionObjectToWorldKHR = 6031,
1789     OpRayQueryGetIntersectionWorldToObjectKHR = 6032,
1790     OpAtomicFAddEXT = 6035,
1791     OpTypeBufferSurfaceINTEL = 6086,
1792     OpTypeStructContinuedINTEL = 6090,
1793     OpConstantCompositeContinuedINTEL = 6091,
1794     OpSpecConstantCompositeContinuedINTEL = 6092,
1795     OpMax = 0x7fffffff,
1796 };
1797
1798 #ifdef SPV_ENABLE_UTILITY_CODE
1799 inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
1800     *hasResult = *hasResultType = false;
1801     switch (opcode) {
1802     default: /* unknown opcode */ break;
1803     case OpNop: *hasResult = false; *hasResultType = false; break;
1804     case OpUndef: *hasResult = true; *hasResultType = true; break;
1805     case OpSourceContinued: *hasResult = false; *hasResultType = false; break;
1806     case OpSource: *hasResult = false; *hasResultType = false; break;
1807     case OpSourceExtension: *hasResult = false; *hasResultType = false; break;
1808     case OpName: *hasResult = false; *hasResultType = false; break;
1809     case OpMemberName: *hasResult = false; *hasResultType = false; break;
1810     case OpString: *hasResult = true; *hasResultType = false; break;
1811     case OpLine: *hasResult = false; *hasResultType = false; break;
1812     case OpExtension: *hasResult = false; *hasResultType = false; break;
1813     case OpExtInstImport: *hasResult = true; *hasResultType = false; break;
1814     case OpExtInst: *hasResult = true; *hasResultType = true; break;
1815     case OpMemoryModel: *hasResult = false; *hasResultType = false; break;
1816     case OpEntryPoint: *hasResult = false; *hasResultType = false; break;
1817     case OpExecutionMode: *hasResult = false; *hasResultType = false; break;
1818     case OpCapability: *hasResult = false; *hasResultType = false; break;
1819     case OpTypeVoid: *hasResult = true; *hasResultType = false; break;
1820     case OpTypeBool: *hasResult = true; *hasResultType = false; break;
1821     case OpTypeInt: *hasResult = true; *hasResultType = false; break;
1822     case OpTypeFloat: *hasResult = true; *hasResultType = false; break;
1823     case OpTypeVector: *hasResult = true; *hasResultType = false; break;
1824     case OpTypeMatrix: *hasResult = true; *hasResultType = false; break;
1825     case OpTypeImage: *hasResult = true; *hasResultType = false; break;
1826     case OpTypeSampler: *hasResult = true; *hasResultType = false; break;
1827     case OpTypeSampledImage: *hasResult = true; *hasResultType = false; break;
1828     case OpTypeArray: *hasResult = true; *hasResultType = false; break;
1829     case OpTypeRuntimeArray: *hasResult = true; *hasResultType = false; break;
1830     case OpTypeStruct: *hasResult = true; *hasResultType = false; break;
1831     case OpTypeOpaque: *hasResult = true; *hasResultType = false; break;
1832     case OpTypePointer: *hasResult = true; *hasResultType = false; break;
1833     case OpTypeFunction: *hasResult = true; *hasResultType = false; break;
1834     case OpTypeEvent: *hasResult = true; *hasResultType = false; break;
1835     case OpTypeDeviceEvent: *hasResult = true; *hasResultType = false; break;
1836     case OpTypeReserveId: *hasResult = true; *hasResultType = false; break;
1837     case OpTypeQueue: *hasResult = true; *hasResultType = false; break;
1838     case OpTypePipe: *hasResult = true; *hasResultType = false; break;
1839     case OpTypeForwardPointer: *hasResult = false; *hasResultType = false; break;
1840     case OpConstantTrue: *hasResult = true; *hasResultType = true; break;
1841     case OpConstantFalse: *hasResult = true; *hasResultType = true; break;
1842     case OpConstant: *hasResult = true; *hasResultType = true; break;
1843     case OpConstantComposite: *hasResult = true; *hasResultType = true; break;
1844     case OpConstantSampler: *hasResult = true; *hasResultType = true; break;
1845     case OpConstantNull: *hasResult = true; *hasResultType = true; break;
1846     case OpSpecConstantTrue: *hasResult = true; *hasResultType = true; break;
1847     case OpSpecConstantFalse: *hasResult = true; *hasResultType = true; break;
1848     case OpSpecConstant: *hasResult = true; *hasResultType = true; break;
1849     case OpSpecConstantComposite: *hasResult = true; *hasResultType = true; break;
1850     case OpSpecConstantOp: *hasResult = true; *hasResultType = true; break;
1851     case OpFunction: *hasResult = true; *hasResultType = true; break;
1852     case OpFunctionParameter: *hasResult = true; *hasResultType = true; break;
1853     case OpFunctionEnd: *hasResult = false; *hasResultType = false; break;
1854     case OpFunctionCall: *hasResult = true; *hasResultType = true; break;
1855     case OpVariable: *hasResult = true; *hasResultType = true; break;
1856     case OpImageTexelPointer: *hasResult = true; *hasResultType = true; break;
1857     case OpLoad: *hasResult = true; *hasResultType = true; break;
1858     case OpStore: *hasResult = false; *hasResultType = false; break;
1859     case OpCopyMemory: *hasResult = false; *hasResultType = false; break;
1860     case OpCopyMemorySized: *hasResult = false; *hasResultType = false; break;
1861     case OpAccessChain: *hasResult = true; *hasResultType = true; break;
1862     case OpInBoundsAccessChain: *hasResult = true; *hasResultType = true; break;
1863     case OpPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1864     case OpArrayLength: *hasResult = true; *hasResultType = true; break;
1865     case OpGenericPtrMemSemantics: *hasResult = true; *hasResultType = true; break;
1866     case OpInBoundsPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1867     case OpDecorate: *hasResult = false; *hasResultType = false; break;
1868     case OpMemberDecorate: *hasResult = false; *hasResultType = false; break;
1869     case OpDecorationGroup: *hasResult = true; *hasResultType = false; break;
1870     case OpGroupDecorate: *hasResult = false; *hasResultType = false; break;
1871     case OpGroupMemberDecorate: *hasResult = false; *hasResultType = false; break;
1872     case OpVectorExtractDynamic: *hasResult = true; *hasResultType = true; break;
1873     case OpVectorInsertDynamic: *hasResult = true; *hasResultType = true; break;
1874     case OpVectorShuffle: *hasResult = true; *hasResultType = true; break;
1875     case OpCompositeConstruct: *hasResult = true; *hasResultType = true; break;
1876     case OpCompositeExtract: *hasResult = true; *hasResultType = true; break;
1877     case OpCompositeInsert: *hasResult = true; *hasResultType = true; break;
1878     case OpCopyObject: *hasResult = true; *hasResultType = true; break;
1879     case OpTranspose: *hasResult = true; *hasResultType = true; break;
1880     case OpSampledImage: *hasResult = true; *hasResultType = true; break;
1881     case OpImageSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
1882     case OpImageSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
1883     case OpImageSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1884     case OpImageSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1885     case OpImageSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
1886     case OpImageSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
1887     case OpImageSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1888     case OpImageSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1889     case OpImageFetch: *hasResult = true; *hasResultType = true; break;
1890     case OpImageGather: *hasResult = true; *hasResultType = true; break;
1891     case OpImageDrefGather: *hasResult = true; *hasResultType = true; break;
1892     case OpImageRead: *hasResult = true; *hasResultType = true; break;
1893     case OpImageWrite: *hasResult = false; *hasResultType = false; break;
1894     case OpImage: *hasResult = true; *hasResultType = true; break;
1895     case OpImageQueryFormat: *hasResult = true; *hasResultType = true; break;
1896     case OpImageQueryOrder: *hasResult = true; *hasResultType = true; break;
1897     case OpImageQuerySizeLod: *hasResult = true; *hasResultType = true; break;
1898     case OpImageQuerySize: *hasResult = true; *hasResultType = true; break;
1899     case OpImageQueryLod: *hasResult = true; *hasResultType = true; break;
1900     case OpImageQueryLevels: *hasResult = true; *hasResultType = true; break;
1901     case OpImageQuerySamples: *hasResult = true; *hasResultType = true; break;
1902     case OpConvertFToU: *hasResult = true; *hasResultType = true; break;
1903     case OpConvertFToS: *hasResult = true; *hasResultType = true; break;
1904     case OpConvertSToF: *hasResult = true; *hasResultType = true; break;
1905     case OpConvertUToF: *hasResult = true; *hasResultType = true; break;
1906     case OpUConvert: *hasResult = true; *hasResultType = true; break;
1907     case OpSConvert: *hasResult = true; *hasResultType = true; break;
1908     case OpFConvert: *hasResult = true; *hasResultType = true; break;
1909     case OpQuantizeToF16: *hasResult = true; *hasResultType = true; break;
1910     case OpConvertPtrToU: *hasResult = true; *hasResultType = true; break;
1911     case OpSatConvertSToU: *hasResult = true; *hasResultType = true; break;
1912     case OpSatConvertUToS: *hasResult = true; *hasResultType = true; break;
1913     case OpConvertUToPtr: *hasResult = true; *hasResultType = true; break;
1914     case OpPtrCastToGeneric: *hasResult = true; *hasResultType = true; break;
1915     case OpGenericCastToPtr: *hasResult = true; *hasResultType = true; break;
1916     case OpGenericCastToPtrExplicit: *hasResult = true; *hasResultType = true; break;
1917     case OpBitcast: *hasResult = true; *hasResultType = true; break;
1918     case OpSNegate: *hasResult = true; *hasResultType = true; break;
1919     case OpFNegate: *hasResult = true; *hasResultType = true; break;
1920     case OpIAdd: *hasResult = true; *hasResultType = true; break;
1921     case OpFAdd: *hasResult = true; *hasResultType = true; break;
1922     case OpISub: *hasResult = true; *hasResultType = true; break;
1923     case OpFSub: *hasResult = true; *hasResultType = true; break;
1924     case OpIMul: *hasResult = true; *hasResultType = true; break;
1925     case OpFMul: *hasResult = true; *hasResultType = true; break;
1926     case OpUDiv: *hasResult = true; *hasResultType = true; break;
1927     case OpSDiv: *hasResult = true; *hasResultType = true; break;
1928     case OpFDiv: *hasResult = true; *hasResultType = true; break;
1929     case OpUMod: *hasResult = true; *hasResultType = true; break;
1930     case OpSRem: *hasResult = true; *hasResultType = true; break;
1931     case OpSMod: *hasResult = true; *hasResultType = true; break;
1932     case OpFRem: *hasResult = true; *hasResultType = true; break;
1933     case OpFMod: *hasResult = true; *hasResultType = true; break;
1934     case OpVectorTimesScalar: *hasResult = true; *hasResultType = true; break;
1935     case OpMatrixTimesScalar: *hasResult = true; *hasResultType = true; break;
1936     case OpVectorTimesMatrix: *hasResult = true; *hasResultType = true; break;
1937     case OpMatrixTimesVector: *hasResult = true; *hasResultType = true; break;
1938     case OpMatrixTimesMatrix: *hasResult = true; *hasResultType = true; break;
1939     case OpOuterProduct: *hasResult = true; *hasResultType = true; break;
1940     case OpDot: *hasResult = true; *hasResultType = true; break;
1941     case OpIAddCarry: *hasResult = true; *hasResultType = true; break;
1942     case OpISubBorrow: *hasResult = true; *hasResultType = true; break;
1943     case OpUMulExtended: *hasResult = true; *hasResultType = true; break;
1944     case OpSMulExtended: *hasResult = true; *hasResultType = true; break;
1945     case OpAny: *hasResult = true; *hasResultType = true; break;
1946     case OpAll: *hasResult = true; *hasResultType = true; break;
1947     case OpIsNan: *hasResult = true; *hasResultType = true; break;
1948     case OpIsInf: *hasResult = true; *hasResultType = true; break;
1949     case OpIsFinite: *hasResult = true; *hasResultType = true; break;
1950     case OpIsNormal: *hasResult = true; *hasResultType = true; break;
1951     case OpSignBitSet: *hasResult = true; *hasResultType = true; break;
1952     case OpLessOrGreater: *hasResult = true; *hasResultType = true; break;
1953     case OpOrdered: *hasResult = true; *hasResultType = true; break;
1954     case OpUnordered: *hasResult = true; *hasResultType = true; break;
1955     case OpLogicalEqual: *hasResult = true; *hasResultType = true; break;
1956     case OpLogicalNotEqual: *hasResult = true; *hasResultType = true; break;
1957     case OpLogicalOr: *hasResult = true; *hasResultType = true; break;
1958     case OpLogicalAnd: *hasResult = true; *hasResultType = true; break;
1959     case OpLogicalNot: *hasResult = true; *hasResultType = true; break;
1960     case OpSelect: *hasResult = true; *hasResultType = true; break;
1961     case OpIEqual: *hasResult = true; *hasResultType = true; break;
1962     case OpINotEqual: *hasResult = true; *hasResultType = true; break;
1963     case OpUGreaterThan: *hasResult = true; *hasResultType = true; break;
1964     case OpSGreaterThan: *hasResult = true; *hasResultType = true; break;
1965     case OpUGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1966     case OpSGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1967     case OpULessThan: *hasResult = true; *hasResultType = true; break;
1968     case OpSLessThan: *hasResult = true; *hasResultType = true; break;
1969     case OpULessThanEqual: *hasResult = true; *hasResultType = true; break;
1970     case OpSLessThanEqual: *hasResult = true; *hasResultType = true; break;
1971     case OpFOrdEqual: *hasResult = true; *hasResultType = true; break;
1972     case OpFUnordEqual: *hasResult = true; *hasResultType = true; break;
1973     case OpFOrdNotEqual: *hasResult = true; *hasResultType = true; break;
1974     case OpFUnordNotEqual: *hasResult = true; *hasResultType = true; break;
1975     case OpFOrdLessThan: *hasResult = true; *hasResultType = true; break;
1976     case OpFUnordLessThan: *hasResult = true; *hasResultType = true; break;
1977     case OpFOrdGreaterThan: *hasResult = true; *hasResultType = true; break;
1978     case OpFUnordGreaterThan: *hasResult = true; *hasResultType = true; break;
1979     case OpFOrdLessThanEqual: *hasResult = true; *hasResultType = true; break;
1980     case OpFUnordLessThanEqual: *hasResult = true; *hasResultType = true; break;
1981     case OpFOrdGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1982     case OpFUnordGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1983     case OpShiftRightLogical: *hasResult = true; *hasResultType = true; break;
1984     case OpShiftRightArithmetic: *hasResult = true; *hasResultType = true; break;
1985     case OpShiftLeftLogical: *hasResult = true; *hasResultType = true; break;
1986     case OpBitwiseOr: *hasResult = true; *hasResultType = true; break;
1987     case OpBitwiseXor: *hasResult = true; *hasResultType = true; break;
1988     case OpBitwiseAnd: *hasResult = true; *hasResultType = true; break;
1989     case OpNot: *hasResult = true; *hasResultType = true; break;
1990     case OpBitFieldInsert: *hasResult = true; *hasResultType = true; break;
1991     case OpBitFieldSExtract: *hasResult = true; *hasResultType = true; break;
1992     case OpBitFieldUExtract: *hasResult = true; *hasResultType = true; break;
1993     case OpBitReverse: *hasResult = true; *hasResultType = true; break;
1994     case OpBitCount: *hasResult = true; *hasResultType = true; break;
1995     case OpDPdx: *hasResult = true; *hasResultType = true; break;
1996     case OpDPdy: *hasResult = true; *hasResultType = true; break;
1997     case OpFwidth: *hasResult = true; *hasResultType = true; break;
1998     case OpDPdxFine: *hasResult = true; *hasResultType = true; break;
1999     case OpDPdyFine: *hasResult = true; *hasResultType = true; break;
2000     case OpFwidthFine: *hasResult = true; *hasResultType = true; break;
2001     case OpDPdxCoarse: *hasResult = true; *hasResultType = true; break;
2002     case OpDPdyCoarse: *hasResult = true; *hasResultType = true; break;
2003     case OpFwidthCoarse: *hasResult = true; *hasResultType = true; break;
2004     case OpEmitVertex: *hasResult = false; *hasResultType = false; break;
2005     case OpEndPrimitive: *hasResult = false; *hasResultType = false; break;
2006     case OpEmitStreamVertex: *hasResult = false; *hasResultType = false; break;
2007     case OpEndStreamPrimitive: *hasResult = false; *hasResultType = false; break;
2008     case OpControlBarrier: *hasResult = false; *hasResultType = false; break;
2009     case OpMemoryBarrier: *hasResult = false; *hasResultType = false; break;
2010     case OpAtomicLoad: *hasResult = true; *hasResultType = true; break;
2011     case OpAtomicStore: *hasResult = false; *hasResultType = false; break;
2012     case OpAtomicExchange: *hasResult = true; *hasResultType = true; break;
2013     case OpAtomicCompareExchange: *hasResult = true; *hasResultType = true; break;
2014     case OpAtomicCompareExchangeWeak: *hasResult = true; *hasResultType = true; break;
2015     case OpAtomicIIncrement: *hasResult = true; *hasResultType = true; break;
2016     case OpAtomicIDecrement: *hasResult = true; *hasResultType = true; break;
2017     case OpAtomicIAdd: *hasResult = true; *hasResultType = true; break;
2018     case OpAtomicISub: *hasResult = true; *hasResultType = true; break;
2019     case OpAtomicSMin: *hasResult = true; *hasResultType = true; break;
2020     case OpAtomicUMin: *hasResult = true; *hasResultType = true; break;
2021     case OpAtomicSMax: *hasResult = true; *hasResultType = true; break;
2022     case OpAtomicUMax: *hasResult = true; *hasResultType = true; break;
2023     case OpAtomicAnd: *hasResult = true; *hasResultType = true; break;
2024     case OpAtomicOr: *hasResult = true; *hasResultType = true; break;
2025     case OpAtomicXor: *hasResult = true; *hasResultType = true; break;
2026     case OpPhi: *hasResult = true; *hasResultType = true; break;
2027     case OpLoopMerge: *hasResult = false; *hasResultType = false; break;
2028     case OpSelectionMerge: *hasResult = false; *hasResultType = false; break;
2029     case OpLabel: *hasResult = true; *hasResultType = false; break;
2030     case OpBranch: *hasResult = false; *hasResultType = false; break;
2031     case OpBranchConditional: *hasResult = false; *hasResultType = false; break;
2032     case OpSwitch: *hasResult = false; *hasResultType = false; break;
2033     case OpKill: *hasResult = false; *hasResultType = false; break;
2034     case OpReturn: *hasResult = false; *hasResultType = false; break;
2035     case OpReturnValue: *hasResult = false; *hasResultType = false; break;
2036     case OpUnreachable: *hasResult = false; *hasResultType = false; break;
2037     case OpLifetimeStart: *hasResult = false; *hasResultType = false; break;
2038     case OpLifetimeStop: *hasResult = false; *hasResultType = false; break;
2039     case OpGroupAsyncCopy: *hasResult = true; *hasResultType = true; break;
2040     case OpGroupWaitEvents: *hasResult = false; *hasResultType = false; break;
2041     case OpGroupAll: *hasResult = true; *hasResultType = true; break;
2042     case OpGroupAny: *hasResult = true; *hasResultType = true; break;
2043     case OpGroupBroadcast: *hasResult = true; *hasResultType = true; break;
2044     case OpGroupIAdd: *hasResult = true; *hasResultType = true; break;
2045     case OpGroupFAdd: *hasResult = true; *hasResultType = true; break;
2046     case OpGroupFMin: *hasResult = true; *hasResultType = true; break;
2047     case OpGroupUMin: *hasResult = true; *hasResultType = true; break;
2048     case OpGroupSMin: *hasResult = true; *hasResultType = true; break;
2049     case OpGroupFMax: *hasResult = true; *hasResultType = true; break;
2050     case OpGroupUMax: *hasResult = true; *hasResultType = true; break;
2051     case OpGroupSMax: *hasResult = true; *hasResultType = true; break;
2052     case OpReadPipe: *hasResult = true; *hasResultType = true; break;
2053     case OpWritePipe: *hasResult = true; *hasResultType = true; break;
2054     case OpReservedReadPipe: *hasResult = true; *hasResultType = true; break;
2055     case OpReservedWritePipe: *hasResult = true; *hasResultType = true; break;
2056     case OpReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
2057     case OpReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
2058     case OpCommitReadPipe: *hasResult = false; *hasResultType = false; break;
2059     case OpCommitWritePipe: *hasResult = false; *hasResultType = false; break;
2060     case OpIsValidReserveId: *hasResult = true; *hasResultType = true; break;
2061     case OpGetNumPipePackets: *hasResult = true; *hasResultType = true; break;
2062     case OpGetMaxPipePackets: *hasResult = true; *hasResultType = true; break;
2063     case OpGroupReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
2064     case OpGroupReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
2065     case OpGroupCommitReadPipe: *hasResult = false; *hasResultType = false; break;
2066     case OpGroupCommitWritePipe: *hasResult = false; *hasResultType = false; break;
2067     case OpEnqueueMarker: *hasResult = true; *hasResultType = true; break;
2068     case OpEnqueueKernel: *hasResult = true; *hasResultType = true; break;
2069     case OpGetKernelNDrangeSubGroupCount: *hasResult = true; *hasResultType = true; break;
2070     case OpGetKernelNDrangeMaxSubGroupSize: *hasResult = true; *hasResultType = true; break;
2071     case OpGetKernelWorkGroupSize: *hasResult = true; *hasResultType = true; break;
2072     case OpGetKernelPreferredWorkGroupSizeMultiple: *hasResult = true; *hasResultType = true; break;
2073     case OpRetainEvent: *hasResult = false; *hasResultType = false; break;
2074     case OpReleaseEvent: *hasResult = false; *hasResultType = false; break;
2075     case OpCreateUserEvent: *hasResult = true; *hasResultType = true; break;
2076     case OpIsValidEvent: *hasResult = true; *hasResultType = true; break;
2077     case OpSetUserEventStatus: *hasResult = false; *hasResultType = false; break;
2078     case OpCaptureEventProfilingInfo: *hasResult = false; *hasResultType = false; break;
2079     case OpGetDefaultQueue: *hasResult = true; *hasResultType = true; break;
2080     case OpBuildNDRange: *hasResult = true; *hasResultType = true; break;
2081     case OpImageSparseSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
2082     case OpImageSparseSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
2083     case OpImageSparseSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2084     case OpImageSparseSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2085     case OpImageSparseSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
2086     case OpImageSparseSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
2087     case OpImageSparseSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2088     case OpImageSparseSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2089     case OpImageSparseFetch: *hasResult = true; *hasResultType = true; break;
2090     case OpImageSparseGather: *hasResult = true; *hasResultType = true; break;
2091     case OpImageSparseDrefGather: *hasResult = true; *hasResultType = true; break;
2092     case OpImageSparseTexelsResident: *hasResult = true; *hasResultType = true; break;
2093     case OpNoLine: *hasResult = false; *hasResultType = false; break;
2094     case OpAtomicFlagTestAndSet: *hasResult = true; *hasResultType = true; break;
2095     case OpAtomicFlagClear: *hasResult = false; *hasResultType = false; break;
2096     case OpImageSparseRead: *hasResult = true; *hasResultType = true; break;
2097     case OpSizeOf: *hasResult = true; *hasResultType = true; break;
2098     case OpTypePipeStorage: *hasResult = true; *hasResultType = false; break;
2099     case OpConstantPipeStorage: *hasResult = true; *hasResultType = true; break;
2100     case OpCreatePipeFromPipeStorage: *hasResult = true; *hasResultType = true; break;
2101     case OpGetKernelLocalSizeForSubgroupCount: *hasResult = true; *hasResultType = true; break;
2102     case OpGetKernelMaxNumSubgroups: *hasResult = true; *hasResultType = true; break;
2103     case OpTypeNamedBarrier: *hasResult = true; *hasResultType = false; break;
2104     case OpNamedBarrierInitialize: *hasResult = true; *hasResultType = true; break;
2105     case OpMemoryNamedBarrier: *hasResult = false; *hasResultType = false; break;
2106     case OpModuleProcessed: *hasResult = false; *hasResultType = false; break;
2107     case OpExecutionModeId: *hasResult = false; *hasResultType = false; break;
2108     case OpDecorateId: *hasResult = false; *hasResultType = false; break;
2109     case OpGroupNonUniformElect: *hasResult = true; *hasResultType = true; break;
2110     case OpGroupNonUniformAll: *hasResult = true; *hasResultType = true; break;
2111     case OpGroupNonUniformAny: *hasResult = true; *hasResultType = true; break;
2112     case OpGroupNonUniformAllEqual: *hasResult = true; *hasResultType = true; break;
2113     case OpGroupNonUniformBroadcast: *hasResult = true; *hasResultType = true; break;
2114     case OpGroupNonUniformBroadcastFirst: *hasResult = true; *hasResultType = true; break;
2115     case OpGroupNonUniformBallot: *hasResult = true; *hasResultType = true; break;
2116     case OpGroupNonUniformInverseBallot: *hasResult = true; *hasResultType = true; break;
2117     case OpGroupNonUniformBallotBitExtract: *hasResult = true; *hasResultType = true; break;
2118     case OpGroupNonUniformBallotBitCount: *hasResult = true; *hasResultType = true; break;
2119     case OpGroupNonUniformBallotFindLSB: *hasResult = true; *hasResultType = true; break;
2120     case OpGroupNonUniformBallotFindMSB: *hasResult = true; *hasResultType = true; break;
2121     case OpGroupNonUniformShuffle: *hasResult = true; *hasResultType = true; break;
2122     case OpGroupNonUniformShuffleXor: *hasResult = true; *hasResultType = true; break;
2123     case OpGroupNonUniformShuffleUp: *hasResult = true; *hasResultType = true; break;
2124     case OpGroupNonUniformShuffleDown: *hasResult = true; *hasResultType = true; break;
2125     case OpGroupNonUniformIAdd: *hasResult = true; *hasResultType = true; break;
2126     case OpGroupNonUniformFAdd: *hasResult = true; *hasResultType = true; break;
2127     case OpGroupNonUniformIMul: *hasResult = true; *hasResultType = true; break;
2128     case OpGroupNonUniformFMul: *hasResult = true; *hasResultType = true; break;
2129     case OpGroupNonUniformSMin: *hasResult = true; *hasResultType = true; break;
2130     case OpGroupNonUniformUMin: *hasResult = true; *hasResultType = true; break;
2131     case OpGroupNonUniformFMin: *hasResult = true; *hasResultType = true; break;
2132     case OpGroupNonUniformSMax: *hasResult = true; *hasResultType = true; break;
2133     case OpGroupNonUniformUMax: *hasResult = true; *hasResultType = true; break;
2134     case OpGroupNonUniformFMax: *hasResult = true; *hasResultType = true; break;
2135     case OpGroupNonUniformBitwiseAnd: *hasResult = true; *hasResultType = true; break;
2136     case OpGroupNonUniformBitwiseOr: *hasResult = true; *hasResultType = true; break;
2137     case OpGroupNonUniformBitwiseXor: *hasResult = true; *hasResultType = true; break;
2138     case OpGroupNonUniformLogicalAnd: *hasResult = true; *hasResultType = true; break;
2139     case OpGroupNonUniformLogicalOr: *hasResult = true; *hasResultType = true; break;
2140     case OpGroupNonUniformLogicalXor: *hasResult = true; *hasResultType = true; break;
2141     case OpGroupNonUniformQuadBroadcast: *hasResult = true; *hasResultType = true; break;
2142     case OpGroupNonUniformQuadSwap: *hasResult = true; *hasResultType = true; break;
2143     case OpCopyLogical: *hasResult = true; *hasResultType = true; break;
2144     case OpPtrEqual: *hasResult = true; *hasResultType = true; break;
2145     case OpPtrNotEqual: *hasResult = true; *hasResultType = true; break;
2146     case OpPtrDiff: *hasResult = true; *hasResultType = true; break;
2147     case OpTerminateInvocation: *hasResult = false; *hasResultType = false; break;
2148     case OpSubgroupBallotKHR: *hasResult = true; *hasResultType = true; break;
2149     case OpSubgroupFirstInvocationKHR: *hasResult = true; *hasResultType = true; break;
2150     case OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
2151     case OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
2152     case OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
2153     case OpSubgroupReadInvocationKHR: *hasResult = true; *hasResultType = true; break;
2154     case OpTraceRayKHR: *hasResult = false; *hasResultType = false; break;
2155     case OpExecuteCallableKHR: *hasResult = false; *hasResultType = false; break;
2156     case OpConvertUToAccelerationStructureKHR: *hasResult = true; *hasResultType = true; break;
2157     case OpIgnoreIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2158     case OpTerminateRayKHR: *hasResult = false; *hasResultType = false; break;
2159     case OpSDotKHR: *hasResult = true; *hasResultType = true; break;
2160     case OpUDotKHR: *hasResult = true; *hasResultType = true; break;
2161     case OpSUDotKHR: *hasResult = true; *hasResultType = true; break;
2162     case OpSDotAccSatKHR: *hasResult = true; *hasResultType = true; break;
2163     case OpUDotAccSatKHR: *hasResult = true; *hasResultType = true; break;
2164     case OpSUDotAccSatKHR: *hasResult = true; *hasResultType = true; break;
2165     case OpTypeRayQueryKHR: *hasResult = true; *hasResultType = false; break;
2166     case OpRayQueryInitializeKHR: *hasResult = false; *hasResultType = false; break;
2167     case OpRayQueryTerminateKHR: *hasResult = false; *hasResultType = false; break;
2168     case OpRayQueryGenerateIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2169     case OpRayQueryConfirmIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2170     case OpRayQueryProceedKHR: *hasResult = true; *hasResultType = true; break;
2171     case OpRayQueryGetIntersectionTypeKHR: *hasResult = true; *hasResultType = true; break;
2172     case OpGroupIAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2173     case OpGroupFAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2174     case OpGroupFMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2175     case OpGroupUMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2176     case OpGroupSMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2177     case OpGroupFMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2178     case OpGroupUMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2179     case OpGroupSMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2180     case OpFragmentMaskFetchAMD: *hasResult = true; *hasResultType = true; break;
2181     case OpFragmentFetchAMD: *hasResult = true; *hasResultType = true; break;
2182     case OpReadClockKHR: *hasResult = true; *hasResultType = true; break;
2183     case OpImageSampleFootprintNV: *hasResult = true; *hasResultType = true; break;
2184     case OpGroupNonUniformPartitionNV: *hasResult = true; *hasResultType = true; break;
2185     case OpWritePackedPrimitiveIndices4x8NV: *hasResult = false; *hasResultType = false; break;
2186     case OpReportIntersectionNV: *hasResult = true; *hasResultType = true; break;
2187     case OpIgnoreIntersectionNV: *hasResult = false; *hasResultType = false; break;
2188     case OpTerminateRayNV: *hasResult = false; *hasResultType = false; break;
2189     case OpTraceNV: *hasResult = false; *hasResultType = false; break;
2190     case OpTypeAccelerationStructureNV: *hasResult = true; *hasResultType = false; break;
2191     case OpExecuteCallableNV: *hasResult = false; *hasResultType = false; break;
2192     case OpTypeCooperativeMatrixNV: *hasResult = true; *hasResultType = false; break;
2193     case OpCooperativeMatrixLoadNV: *hasResult = true; *hasResultType = true; break;
2194     case OpCooperativeMatrixStoreNV: *hasResult = false; *hasResultType = false; break;
2195     case OpCooperativeMatrixMulAddNV: *hasResult = true; *hasResultType = true; break;
2196     case OpCooperativeMatrixLengthNV: *hasResult = true; *hasResultType = true; break;
2197     case OpBeginInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2198     case OpEndInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2199     case OpDemoteToHelperInvocationEXT: *hasResult = false; *hasResultType = false; break;
2200     case OpIsHelperInvocationEXT: *hasResult = true; *hasResultType = true; break;
2201     case OpSubgroupShuffleINTEL: *hasResult = true; *hasResultType = true; break;
2202     case OpSubgroupShuffleDownINTEL: *hasResult = true; *hasResultType = true; break;
2203     case OpSubgroupShuffleUpINTEL: *hasResult = true; *hasResultType = true; break;
2204     case OpSubgroupShuffleXorINTEL: *hasResult = true; *hasResultType = true; break;
2205     case OpSubgroupBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2206     case OpSubgroupBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2207     case OpSubgroupImageBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2208     case OpSubgroupImageBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2209     case OpSubgroupImageMediaBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2210     case OpSubgroupImageMediaBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2211     case OpUCountLeadingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2212     case OpUCountTrailingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2213     case OpAbsISubINTEL: *hasResult = true; *hasResultType = true; break;
2214     case OpAbsUSubINTEL: *hasResult = true; *hasResultType = true; break;
2215     case OpIAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2216     case OpUAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2217     case OpIAverageINTEL: *hasResult = true; *hasResultType = true; break;
2218     case OpUAverageINTEL: *hasResult = true; *hasResultType = true; break;
2219     case OpIAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2220     case OpUAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2221     case OpISubSatINTEL: *hasResult = true; *hasResultType = true; break;
2222     case OpUSubSatINTEL: *hasResult = true; *hasResultType = true; break;
2223     case OpIMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2224     case OpUMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2225     case OpConstFunctionPointerINTEL: *hasResult = true; *hasResultType = true; break;
2226     case OpFunctionPointerCallINTEL: *hasResult = true; *hasResultType = true; break;
2227     case OpAsmTargetINTEL: *hasResult = true; *hasResultType = true; break;
2228     case OpAsmINTEL: *hasResult = true; *hasResultType = true; break;
2229     case OpAsmCallINTEL: *hasResult = true; *hasResultType = true; break;
2230     case OpAtomicFMinEXT: *hasResult = true; *hasResultType = true; break;
2231     case OpAtomicFMaxEXT: *hasResult = true; *hasResultType = true; break;
2232     case OpAssumeTrueKHR: *hasResult = false; *hasResultType = false; break;
2233     case OpExpectKHR: *hasResult = true; *hasResultType = true; break;
2234     case OpDecorateString: *hasResult = false; *hasResultType = false; break;
2235     case OpMemberDecorateString: *hasResult = false; *hasResultType = false; break;
2236     case OpVmeImageINTEL: *hasResult = true; *hasResultType = true; break;
2237     case OpTypeVmeImageINTEL: *hasResult = true; *hasResultType = false; break;
2238     case OpTypeAvcImePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2239     case OpTypeAvcRefPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2240     case OpTypeAvcSicPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2241     case OpTypeAvcMcePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2242     case OpTypeAvcMceResultINTEL: *hasResult = true; *hasResultType = false; break;
2243     case OpTypeAvcImeResultINTEL: *hasResult = true; *hasResultType = false; break;
2244     case OpTypeAvcImeResultSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2245     case OpTypeAvcImeResultDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2246     case OpTypeAvcImeSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2247     case OpTypeAvcImeDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2248     case OpTypeAvcRefResultINTEL: *hasResult = true; *hasResultType = false; break;
2249     case OpTypeAvcSicResultINTEL: *hasResult = true; *hasResultType = false; break;
2250     case OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2251     case OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2252     case OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2253     case OpSubgroupAvcMceSetInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2254     case OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2255     case OpSubgroupAvcMceSetInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2256     case OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2257     case OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2258     case OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2259     case OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2260     case OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2261     case OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2262     case OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2263     case OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2264     case OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2265     case OpSubgroupAvcMceSetAcOnlyHaarINTEL: *hasResult = true; *hasResultType = true; break;
2266     case OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2267     case OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2268     case OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2269     case OpSubgroupAvcMceConvertToImePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2270     case OpSubgroupAvcMceConvertToImeResultINTEL: *hasResult = true; *hasResultType = true; break;
2271     case OpSubgroupAvcMceConvertToRefPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2272     case OpSubgroupAvcMceConvertToRefResultINTEL: *hasResult = true; *hasResultType = true; break;
2273     case OpSubgroupAvcMceConvertToSicPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2274     case OpSubgroupAvcMceConvertToSicResultINTEL: *hasResult = true; *hasResultType = true; break;
2275     case OpSubgroupAvcMceGetMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2276     case OpSubgroupAvcMceGetInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2277     case OpSubgroupAvcMceGetBestInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2278     case OpSubgroupAvcMceGetInterMajorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2279     case OpSubgroupAvcMceGetInterMinorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2280     case OpSubgroupAvcMceGetInterDirectionsINTEL: *hasResult = true; *hasResultType = true; break;
2281     case OpSubgroupAvcMceGetInterMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2282     case OpSubgroupAvcMceGetInterReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2283     case OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2284     case OpSubgroupAvcImeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2285     case OpSubgroupAvcImeSetSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2286     case OpSubgroupAvcImeSetDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2287     case OpSubgroupAvcImeRefWindowSizeINTEL: *hasResult = true; *hasResultType = true; break;
2288     case OpSubgroupAvcImeAdjustRefOffsetINTEL: *hasResult = true; *hasResultType = true; break;
2289     case OpSubgroupAvcImeConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2290     case OpSubgroupAvcImeSetMaxMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2291     case OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2292     case OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2293     case OpSubgroupAvcImeSetWeightedSadINTEL: *hasResult = true; *hasResultType = true; break;
2294     case OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2295     case OpSubgroupAvcImeEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2296     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2297     case OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2298     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2299     case OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2300     case OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2301     case OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2302     case OpSubgroupAvcImeConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2303     case OpSubgroupAvcImeGetSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2304     case OpSubgroupAvcImeGetDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2305     case OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2306     case OpSubgroupAvcImeStripDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2307     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2308     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2309     case OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2310     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2311     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2312     case OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2313     case OpSubgroupAvcImeGetBorderReachedINTEL: *hasResult = true; *hasResultType = true; break;
2314     case OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL: *hasResult = true; *hasResultType = true; break;
2315     case OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL: *hasResult = true; *hasResultType = true; break;
2316     case OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL: *hasResult = true; *hasResultType = true; break;
2317     case OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2318     case OpSubgroupAvcFmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2319     case OpSubgroupAvcBmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2320     case OpSubgroupAvcRefConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2321     case OpSubgroupAvcRefSetBidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2322     case OpSubgroupAvcRefSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2323     case OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2324     case OpSubgroupAvcRefEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2325     case OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2326     case OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2327     case OpSubgroupAvcRefConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2328     case OpSubgroupAvcSicInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2329     case OpSubgroupAvcSicConfigureSkcINTEL: *hasResult = true; *hasResultType = true; break;
2330     case OpSubgroupAvcSicConfigureIpeLumaINTEL: *hasResult = true; *hasResultType = true; break;
2331     case OpSubgroupAvcSicConfigureIpeLumaChromaINTEL: *hasResult = true; *hasResultType = true; break;
2332     case OpSubgroupAvcSicGetMotionVectorMaskINTEL: *hasResult = true; *hasResultType = true; break;
2333     case OpSubgroupAvcSicConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2334     case OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2335     case OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2336     case OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2337     case OpSubgroupAvcSicSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2338     case OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL: *hasResult = true; *hasResultType = true; break;
2339     case OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL: *hasResult = true; *hasResultType = true; break;
2340     case OpSubgroupAvcSicEvaluateIpeINTEL: *hasResult = true; *hasResultType = true; break;
2341     case OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2342     case OpSubgroupAvcSicEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2343     case OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2344     case OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2345     case OpSubgroupAvcSicConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2346     case OpSubgroupAvcSicGetIpeLumaShapeINTEL: *hasResult = true; *hasResultType = true; break;
2347     case OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2348     case OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2349     case OpSubgroupAvcSicGetPackedIpeLumaModesINTEL: *hasResult = true; *hasResultType = true; break;
2350     case OpSubgroupAvcSicGetIpeChromaModeINTEL: *hasResult = true; *hasResultType = true; break;
2351     case OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2352     case OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2353     case OpSubgroupAvcSicGetInterRawSadsINTEL: *hasResult = true; *hasResultType = true; break;
2354     case OpVariableLengthArrayINTEL: *hasResult = true; *hasResultType = true; break;
2355     case OpSaveMemoryINTEL: *hasResult = true; *hasResultType = true; break;
2356     case OpRestoreMemoryINTEL: *hasResult = false; *hasResultType = false; break;
2357     case OpArbitraryFloatSinCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2358     case OpArbitraryFloatCastINTEL: *hasResult = true; *hasResultType = true; break;
2359     case OpArbitraryFloatCastFromIntINTEL: *hasResult = true; *hasResultType = true; break;
2360     case OpArbitraryFloatCastToIntINTEL: *hasResult = true; *hasResultType = true; break;
2361     case OpArbitraryFloatAddINTEL: *hasResult = true; *hasResultType = true; break;
2362     case OpArbitraryFloatSubINTEL: *hasResult = true; *hasResultType = true; break;
2363     case OpArbitraryFloatMulINTEL: *hasResult = true; *hasResultType = true; break;
2364     case OpArbitraryFloatDivINTEL: *hasResult = true; *hasResultType = true; break;
2365     case OpArbitraryFloatGTINTEL: *hasResult = true; *hasResultType = true; break;
2366     case OpArbitraryFloatGEINTEL: *hasResult = true; *hasResultType = true; break;
2367     case OpArbitraryFloatLTINTEL: *hasResult = true; *hasResultType = true; break;
2368     case OpArbitraryFloatLEINTEL: *hasResult = true; *hasResultType = true; break;
2369     case OpArbitraryFloatEQINTEL: *hasResult = true; *hasResultType = true; break;
2370     case OpArbitraryFloatRecipINTEL: *hasResult = true; *hasResultType = true; break;
2371     case OpArbitraryFloatRSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2372     case OpArbitraryFloatCbrtINTEL: *hasResult = true; *hasResultType = true; break;
2373     case OpArbitraryFloatHypotINTEL: *hasResult = true; *hasResultType = true; break;
2374     case OpArbitraryFloatSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2375     case OpArbitraryFloatLogINTEL: *hasResult = true; *hasResultType = true; break;
2376     case OpArbitraryFloatLog2INTEL: *hasResult = true; *hasResultType = true; break;
2377     case OpArbitraryFloatLog10INTEL: *hasResult = true; *hasResultType = true; break;
2378     case OpArbitraryFloatLog1pINTEL: *hasResult = true; *hasResultType = true; break;
2379     case OpArbitraryFloatExpINTEL: *hasResult = true; *hasResultType = true; break;
2380     case OpArbitraryFloatExp2INTEL: *hasResult = true; *hasResultType = true; break;
2381     case OpArbitraryFloatExp10INTEL: *hasResult = true; *hasResultType = true; break;
2382     case OpArbitraryFloatExpm1INTEL: *hasResult = true; *hasResultType = true; break;
2383     case OpArbitraryFloatSinINTEL: *hasResult = true; *hasResultType = true; break;
2384     case OpArbitraryFloatCosINTEL: *hasResult = true; *hasResultType = true; break;
2385     case OpArbitraryFloatSinCosINTEL: *hasResult = true; *hasResultType = true; break;
2386     case OpArbitraryFloatSinPiINTEL: *hasResult = true; *hasResultType = true; break;
2387     case OpArbitraryFloatCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2388     case OpArbitraryFloatASinINTEL: *hasResult = true; *hasResultType = true; break;
2389     case OpArbitraryFloatASinPiINTEL: *hasResult = true; *hasResultType = true; break;
2390     case OpArbitraryFloatACosINTEL: *hasResult = true; *hasResultType = true; break;
2391     case OpArbitraryFloatACosPiINTEL: *hasResult = true; *hasResultType = true; break;
2392     case OpArbitraryFloatATanINTEL: *hasResult = true; *hasResultType = true; break;
2393     case OpArbitraryFloatATanPiINTEL: *hasResult = true; *hasResultType = true; break;
2394     case OpArbitraryFloatATan2INTEL: *hasResult = true; *hasResultType = true; break;
2395     case OpArbitraryFloatPowINTEL: *hasResult = true; *hasResultType = true; break;
2396     case OpArbitraryFloatPowRINTEL: *hasResult = true; *hasResultType = true; break;
2397     case OpArbitraryFloatPowNINTEL: *hasResult = true; *hasResultType = true; break;
2398     case OpLoopControlINTEL: *hasResult = false; *hasResultType = false; break;
2399     case OpFixedSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2400     case OpFixedRecipINTEL: *hasResult = true; *hasResultType = true; break;
2401     case OpFixedRsqrtINTEL: *hasResult = true; *hasResultType = true; break;
2402     case OpFixedSinINTEL: *hasResult = true; *hasResultType = true; break;
2403     case OpFixedCosINTEL: *hasResult = true; *hasResultType = true; break;
2404     case OpFixedSinCosINTEL: *hasResult = true; *hasResultType = true; break;
2405     case OpFixedSinPiINTEL: *hasResult = true; *hasResultType = true; break;
2406     case OpFixedCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2407     case OpFixedSinCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2408     case OpFixedLogINTEL: *hasResult = true; *hasResultType = true; break;
2409     case OpFixedExpINTEL: *hasResult = true; *hasResultType = true; break;
2410     case OpPtrCastToCrossWorkgroupINTEL: *hasResult = true; *hasResultType = true; break;
2411     case OpCrossWorkgroupCastToPtrINTEL: *hasResult = true; *hasResultType = true; break;
2412     case OpReadPipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2413     case OpWritePipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2414     case OpFPGARegINTEL: *hasResult = true; *hasResultType = true; break;
2415     case OpRayQueryGetRayTMinKHR: *hasResult = true; *hasResultType = true; break;
2416     case OpRayQueryGetRayFlagsKHR: *hasResult = true; *hasResultType = true; break;
2417     case OpRayQueryGetIntersectionTKHR: *hasResult = true; *hasResultType = true; break;
2418     case OpRayQueryGetIntersectionInstanceCustomIndexKHR: *hasResult = true; *hasResultType = true; break;
2419     case OpRayQueryGetIntersectionInstanceIdKHR: *hasResult = true; *hasResultType = true; break;
2420     case OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: *hasResult = true; *hasResultType = true; break;
2421     case OpRayQueryGetIntersectionGeometryIndexKHR: *hasResult = true; *hasResultType = true; break;
2422     case OpRayQueryGetIntersectionPrimitiveIndexKHR: *hasResult = true; *hasResultType = true; break;
2423     case OpRayQueryGetIntersectionBarycentricsKHR: *hasResult = true; *hasResultType = true; break;
2424     case OpRayQueryGetIntersectionFrontFaceKHR: *hasResult = true; *hasResultType = true; break;
2425     case OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: *hasResult = true; *hasResultType = true; break;
2426     case OpRayQueryGetIntersectionObjectRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2427     case OpRayQueryGetIntersectionObjectRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2428     case OpRayQueryGetWorldRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2429     case OpRayQueryGetWorldRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2430     case OpRayQueryGetIntersectionObjectToWorldKHR: *hasResult = true; *hasResultType = true; break;
2431     case OpRayQueryGetIntersectionWorldToObjectKHR: *hasResult = true; *hasResultType = true; break;
2432     case OpAtomicFAddEXT: *hasResult = true; *hasResultType = true; break;
2433     case OpTypeBufferSurfaceINTEL: *hasResult = true; *hasResultType = false; break;
2434     case OpTypeStructContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2435     case OpConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2436     case OpSpecConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2437     }
2438 }
2439 #endif /* SPV_ENABLE_UTILITY_CODE */
2440
2441 // Overload operator| for mask bit combining
2442
2443 inline ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
2444 inline FPFastMathModeMask operator|(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) | unsigned(b)); }
2445 inline SelectionControlMask operator|(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) | unsigned(b)); }
2446 inline LoopControlMask operator|(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) | unsigned(b)); }
2447 inline FunctionControlMask operator|(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) | unsigned(b)); }
2448 inline MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }
2449 inline MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
2450 inline KernelProfilingInfoMask operator|(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) | unsigned(b)); }
2451 inline RayFlagsMask operator|(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) | unsigned(b)); }
2452 inline FragmentShadingRateMask operator|(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) | unsigned(b)); }
2453
2454 }  // end namespace spv
2455
2456 #endif  // #ifndef spirv_HPP
2457