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