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