• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) 2014-2020 The Khronos Group Inc.
2//
3// Permission is hereby granted, free of charge, to any person obtaining a copy
4// of this software and/or associated documentation files (the "Materials"),
5// to deal in the Materials without restriction, including without limitation
6// the rights to use, copy, modify, merge, publish, distribute, sublicense,
7// and/or sell copies of the Materials, and to permit persons to whom the
8// Materials are furnished to do so, subject to the following conditions:
9//
10// The above copyright notice and this permission notice shall be included in
11// all copies or substantial portions of the Materials.
12//
13// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
14// STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
15// HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
16//
17// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
23// IN THE MATERIALS.
24
25// This header is automatically generated by the same tool that creates
26// the Binary Section of the SPIR-V specification.
27
28// Enumeration tokens for SPIR-V, in various styles:
29//   C, C++, C++11, JSON, Lua, Python, C#, D, Beef
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// - Beef will use enum classes in the Specification class located in the "Spv" namespace,
40//     e.g.: Spv.Specification.SourceLanguage.GLSL
41//
42// Some tokens act like mask values, which can be OR'd together,
43// while others are mutually exclusive.  The mask-like ones have
44// "Mask" in their name, and a parallel enum that has the shift
45// amount (1 << x) for each corresponding enumerant.
46
47#ifndef spirv_HPP
48#define spirv_HPP
49
50namespace spv {
51
52typedef unsigned int Id;
53
54#define SPV_VERSION 0x10600
55#define SPV_REVISION 1
56
57static const unsigned int MagicNumber = 0x07230203;
58static const unsigned int Version = 0x00010600;
59static const unsigned int Revision = 1;
60static const unsigned int OpCodeMask = 0xffff;
61static const unsigned int WordCountShift = 16;
62
63enum class SourceLanguage : unsigned {
64    Unknown = 0,
65    ESSL = 1,
66    GLSL = 2,
67    OpenCL_C = 3,
68    OpenCL_CPP = 4,
69    HLSL = 5,
70    CPP_for_OpenCL = 6,
71    SYCL = 7,
72    HERO_C = 8,
73    NZSL = 9,
74    WGSL = 10,
75    Slang = 11,
76    Max = 0x7fffffff,
77};
78
79enum class ExecutionModel : unsigned {
80    Vertex = 0,
81    TessellationControl = 1,
82    TessellationEvaluation = 2,
83    Geometry = 3,
84    Fragment = 4,
85    GLCompute = 5,
86    Kernel = 6,
87    TaskNV = 5267,
88    MeshNV = 5268,
89    RayGenerationKHR = 5313,
90    RayGenerationNV = 5313,
91    IntersectionKHR = 5314,
92    IntersectionNV = 5314,
93    AnyHitKHR = 5315,
94    AnyHitNV = 5315,
95    ClosestHitKHR = 5316,
96    ClosestHitNV = 5316,
97    MissKHR = 5317,
98    MissNV = 5317,
99    CallableKHR = 5318,
100    CallableNV = 5318,
101    TaskEXT = 5364,
102    MeshEXT = 5365,
103    Max = 0x7fffffff,
104};
105
106enum class AddressingModel : unsigned {
107    Logical = 0,
108    Physical32 = 1,
109    Physical64 = 2,
110    PhysicalStorageBuffer64 = 5348,
111    PhysicalStorageBuffer64EXT = 5348,
112    Max = 0x7fffffff,
113};
114
115enum class MemoryModel : unsigned {
116    Simple = 0,
117    GLSL450 = 1,
118    OpenCL = 2,
119    Vulkan = 3,
120    VulkanKHR = 3,
121    Max = 0x7fffffff,
122};
123
124enum class ExecutionMode : unsigned {
125    Invocations = 0,
126    SpacingEqual = 1,
127    SpacingFractionalEven = 2,
128    SpacingFractionalOdd = 3,
129    VertexOrderCw = 4,
130    VertexOrderCcw = 5,
131    PixelCenterInteger = 6,
132    OriginUpperLeft = 7,
133    OriginLowerLeft = 8,
134    EarlyFragmentTests = 9,
135    PointMode = 10,
136    Xfb = 11,
137    DepthReplacing = 12,
138    DepthGreater = 14,
139    DepthLess = 15,
140    DepthUnchanged = 16,
141    LocalSize = 17,
142    LocalSizeHint = 18,
143    InputPoints = 19,
144    InputLines = 20,
145    InputLinesAdjacency = 21,
146    Triangles = 22,
147    InputTrianglesAdjacency = 23,
148    Quads = 24,
149    Isolines = 25,
150    OutputVertices = 26,
151    OutputPoints = 27,
152    OutputLineStrip = 28,
153    OutputTriangleStrip = 29,
154    VecTypeHint = 30,
155    ContractionOff = 31,
156    Initializer = 33,
157    Finalizer = 34,
158    SubgroupSize = 35,
159    SubgroupsPerWorkgroup = 36,
160    SubgroupsPerWorkgroupId = 37,
161    LocalSizeId = 38,
162    LocalSizeHintId = 39,
163    NonCoherentColorAttachmentReadEXT = 4169,
164    NonCoherentDepthAttachmentReadEXT = 4170,
165    NonCoherentStencilAttachmentReadEXT = 4171,
166    SubgroupUniformControlFlowKHR = 4421,
167    PostDepthCoverage = 4446,
168    DenormPreserve = 4459,
169    DenormFlushToZero = 4460,
170    SignedZeroInfNanPreserve = 4461,
171    RoundingModeRTE = 4462,
172    RoundingModeRTZ = 4463,
173    EarlyAndLateFragmentTestsAMD = 5017,
174    StencilRefReplacingEXT = 5027,
175    CoalescingAMDX = 5069,
176    MaxNodeRecursionAMDX = 5071,
177    StaticNumWorkgroupsAMDX = 5072,
178    ShaderIndexAMDX = 5073,
179    MaxNumWorkgroupsAMDX = 5077,
180    StencilRefUnchangedFrontAMD = 5079,
181    StencilRefGreaterFrontAMD = 5080,
182    StencilRefLessFrontAMD = 5081,
183    StencilRefUnchangedBackAMD = 5082,
184    StencilRefGreaterBackAMD = 5083,
185    StencilRefLessBackAMD = 5084,
186    OutputLinesEXT = 5269,
187    OutputLinesNV = 5269,
188    OutputPrimitivesEXT = 5270,
189    OutputPrimitivesNV = 5270,
190    DerivativeGroupQuadsNV = 5289,
191    DerivativeGroupLinearNV = 5290,
192    OutputTrianglesEXT = 5298,
193    OutputTrianglesNV = 5298,
194    PixelInterlockOrderedEXT = 5366,
195    PixelInterlockUnorderedEXT = 5367,
196    SampleInterlockOrderedEXT = 5368,
197    SampleInterlockUnorderedEXT = 5369,
198    ShadingRateInterlockOrderedEXT = 5370,
199    ShadingRateInterlockUnorderedEXT = 5371,
200    SharedLocalMemorySizeINTEL = 5618,
201    RoundingModeRTPINTEL = 5620,
202    RoundingModeRTNINTEL = 5621,
203    FloatingPointModeALTINTEL = 5622,
204    FloatingPointModeIEEEINTEL = 5623,
205    MaxWorkgroupSizeINTEL = 5893,
206    MaxWorkDimINTEL = 5894,
207    NoGlobalOffsetINTEL = 5895,
208    NumSIMDWorkitemsINTEL = 5896,
209    SchedulerTargetFmaxMhzINTEL = 5903,
210    StreamingInterfaceINTEL = 6154,
211    RegisterMapInterfaceINTEL = 6160,
212    NamedBarrierCountINTEL = 6417,
213    Max = 0x7fffffff,
214};
215
216enum class StorageClass : unsigned {
217    UniformConstant = 0,
218    Input = 1,
219    Uniform = 2,
220    Output = 3,
221    Workgroup = 4,
222    CrossWorkgroup = 5,
223    Private = 6,
224    Function = 7,
225    Generic = 8,
226    PushConstant = 9,
227    AtomicCounter = 10,
228    Image = 11,
229    StorageBuffer = 12,
230    TileImageEXT = 4172,
231    NodePayloadAMDX = 5068,
232    NodeOutputPayloadAMDX = 5076,
233    CallableDataKHR = 5328,
234    CallableDataNV = 5328,
235    IncomingCallableDataKHR = 5329,
236    IncomingCallableDataNV = 5329,
237    RayPayloadKHR = 5338,
238    RayPayloadNV = 5338,
239    HitAttributeKHR = 5339,
240    HitAttributeNV = 5339,
241    IncomingRayPayloadKHR = 5342,
242    IncomingRayPayloadNV = 5342,
243    ShaderRecordBufferKHR = 5343,
244    ShaderRecordBufferNV = 5343,
245    PhysicalStorageBuffer = 5349,
246    PhysicalStorageBufferEXT = 5349,
247    HitObjectAttributeNV = 5385,
248    TaskPayloadWorkgroupEXT = 5402,
249    CodeSectionINTEL = 5605,
250    DeviceOnlyINTEL = 5936,
251    HostOnlyINTEL = 5937,
252    Max = 0x7fffffff,
253};
254
255enum class Dim : unsigned {
256    Dim1D = 0,
257    Dim2D = 1,
258    Dim3D = 2,
259    Cube = 3,
260    Rect = 4,
261    Buffer = 5,
262    SubpassData = 6,
263    TileImageDataEXT = 4173,
264    Max = 0x7fffffff,
265};
266
267enum class SamplerAddressingMode : unsigned {
268    None = 0,
269    ClampToEdge = 1,
270    Clamp = 2,
271    Repeat = 3,
272    RepeatMirrored = 4,
273    Max = 0x7fffffff,
274};
275
276enum class SamplerFilterMode : unsigned {
277    Nearest = 0,
278    Linear = 1,
279    Max = 0x7fffffff,
280};
281
282enum class ImageFormat : unsigned {
283    Unknown = 0,
284    Rgba32f = 1,
285    Rgba16f = 2,
286    R32f = 3,
287    Rgba8 = 4,
288    Rgba8Snorm = 5,
289    Rg32f = 6,
290    Rg16f = 7,
291    R11fG11fB10f = 8,
292    R16f = 9,
293    Rgba16 = 10,
294    Rgb10A2 = 11,
295    Rg16 = 12,
296    Rg8 = 13,
297    R16 = 14,
298    R8 = 15,
299    Rgba16Snorm = 16,
300    Rg16Snorm = 17,
301    Rg8Snorm = 18,
302    R16Snorm = 19,
303    R8Snorm = 20,
304    Rgba32i = 21,
305    Rgba16i = 22,
306    Rgba8i = 23,
307    R32i = 24,
308    Rg32i = 25,
309    Rg16i = 26,
310    Rg8i = 27,
311    R16i = 28,
312    R8i = 29,
313    Rgba32ui = 30,
314    Rgba16ui = 31,
315    Rgba8ui = 32,
316    R32ui = 33,
317    Rgb10a2ui = 34,
318    Rg32ui = 35,
319    Rg16ui = 36,
320    Rg8ui = 37,
321    R16ui = 38,
322    R8ui = 39,
323    R64ui = 40,
324    R64i = 41,
325    Max = 0x7fffffff,
326};
327
328enum class ImageChannelOrder : unsigned {
329    R = 0,
330    A = 1,
331    RG = 2,
332    RA = 3,
333    RGB = 4,
334    RGBA = 5,
335    BGRA = 6,
336    ARGB = 7,
337    Intensity = 8,
338    Luminance = 9,
339    Rx = 10,
340    RGx = 11,
341    RGBx = 12,
342    Depth = 13,
343    DepthStencil = 14,
344    sRGB = 15,
345    sRGBx = 16,
346    sRGBA = 17,
347    sBGRA = 18,
348    ABGR = 19,
349    Max = 0x7fffffff,
350};
351
352enum class ImageChannelDataType : unsigned {
353    SnormInt8 = 0,
354    SnormInt16 = 1,
355    UnormInt8 = 2,
356    UnormInt16 = 3,
357    UnormShort565 = 4,
358    UnormShort555 = 5,
359    UnormInt101010 = 6,
360    SignedInt8 = 7,
361    SignedInt16 = 8,
362    SignedInt32 = 9,
363    UnsignedInt8 = 10,
364    UnsignedInt16 = 11,
365    UnsignedInt32 = 12,
366    HalfFloat = 13,
367    Float = 14,
368    UnormInt24 = 15,
369    UnormInt101010_2 = 16,
370    UnsignedIntRaw10EXT = 19,
371    UnsignedIntRaw12EXT = 20,
372    Max = 0x7fffffff,
373};
374
375enum class ImageOperandsShift : unsigned {
376    Bias = 0,
377    Lod = 1,
378    Grad = 2,
379    ConstOffset = 3,
380    Offset = 4,
381    ConstOffsets = 5,
382    Sample = 6,
383    MinLod = 7,
384    MakeTexelAvailable = 8,
385    MakeTexelAvailableKHR = 8,
386    MakeTexelVisible = 9,
387    MakeTexelVisibleKHR = 9,
388    NonPrivateTexel = 10,
389    NonPrivateTexelKHR = 10,
390    VolatileTexel = 11,
391    VolatileTexelKHR = 11,
392    SignExtend = 12,
393    ZeroExtend = 13,
394    Nontemporal = 14,
395    Offsets = 16,
396    Max = 0x7fffffff,
397};
398
399enum class ImageOperandsMask : unsigned {
400    MaskNone = 0,
401    Bias = 0x00000001,
402    Lod = 0x00000002,
403    Grad = 0x00000004,
404    ConstOffset = 0x00000008,
405    Offset = 0x00000010,
406    ConstOffsets = 0x00000020,
407    Sample = 0x00000040,
408    MinLod = 0x00000080,
409    MakeTexelAvailable = 0x00000100,
410    MakeTexelAvailableKHR = 0x00000100,
411    MakeTexelVisible = 0x00000200,
412    MakeTexelVisibleKHR = 0x00000200,
413    NonPrivateTexel = 0x00000400,
414    NonPrivateTexelKHR = 0x00000400,
415    VolatileTexel = 0x00000800,
416    VolatileTexelKHR = 0x00000800,
417    SignExtend = 0x00001000,
418    ZeroExtend = 0x00002000,
419    Nontemporal = 0x00004000,
420    Offsets = 0x00010000,
421};
422
423enum class FPFastMathModeShift : unsigned {
424    NotNaN = 0,
425    NotInf = 1,
426    NSZ = 2,
427    AllowRecip = 3,
428    Fast = 4,
429    AllowContractFastINTEL = 16,
430    AllowReassocINTEL = 17,
431    Max = 0x7fffffff,
432};
433
434enum class FPFastMathModeMask : unsigned {
435    MaskNone = 0,
436    NotNaN = 0x00000001,
437    NotInf = 0x00000002,
438    NSZ = 0x00000004,
439    AllowRecip = 0x00000008,
440    Fast = 0x00000010,
441    AllowContractFastINTEL = 0x00010000,
442    AllowReassocINTEL = 0x00020000,
443};
444
445enum class FPRoundingMode : unsigned {
446    RTE = 0,
447    RTZ = 1,
448    RTP = 2,
449    RTN = 3,
450    Max = 0x7fffffff,
451};
452
453enum class LinkageType : unsigned {
454    Export = 0,
455    Import = 1,
456    LinkOnceODR = 2,
457    Max = 0x7fffffff,
458};
459
460enum class AccessQualifier : unsigned {
461    ReadOnly = 0,
462    WriteOnly = 1,
463    ReadWrite = 2,
464    Max = 0x7fffffff,
465};
466
467enum class FunctionParameterAttribute : unsigned {
468    Zext = 0,
469    Sext = 1,
470    ByVal = 2,
471    Sret = 3,
472    NoAlias = 4,
473    NoCapture = 5,
474    NoWrite = 6,
475    NoReadWrite = 7,
476    RuntimeAlignedINTEL = 5940,
477    Max = 0x7fffffff,
478};
479
480enum class Decoration : unsigned {
481    RelaxedPrecision = 0,
482    SpecId = 1,
483    Block = 2,
484    BufferBlock = 3,
485    RowMajor = 4,
486    ColMajor = 5,
487    ArrayStride = 6,
488    MatrixStride = 7,
489    GLSLShared = 8,
490    GLSLPacked = 9,
491    CPacked = 10,
492    BuiltIn = 11,
493    NoPerspective = 13,
494    Flat = 14,
495    Patch = 15,
496    Centroid = 16,
497    Sample = 17,
498    Invariant = 18,
499    Restrict = 19,
500    Aliased = 20,
501    Volatile = 21,
502    Constant = 22,
503    Coherent = 23,
504    NonWritable = 24,
505    NonReadable = 25,
506    Uniform = 26,
507    UniformId = 27,
508    SaturatedConversion = 28,
509    Stream = 29,
510    Location = 30,
511    Component = 31,
512    Index = 32,
513    Binding = 33,
514    DescriptorSet = 34,
515    Offset = 35,
516    XfbBuffer = 36,
517    XfbStride = 37,
518    FuncParamAttr = 38,
519    FPRoundingMode = 39,
520    FPFastMathMode = 40,
521    LinkageAttributes = 41,
522    NoContraction = 42,
523    InputAttachmentIndex = 43,
524    Alignment = 44,
525    MaxByteOffset = 45,
526    AlignmentId = 46,
527    MaxByteOffsetId = 47,
528    NoSignedWrap = 4469,
529    NoUnsignedWrap = 4470,
530    WeightTextureQCOM = 4487,
531    BlockMatchTextureQCOM = 4488,
532    ExplicitInterpAMD = 4999,
533    NodeSharesPayloadLimitsWithAMDX = 5019,
534    NodeMaxPayloadsAMDX = 5020,
535    TrackFinishWritingAMDX = 5078,
536    PayloadNodeNameAMDX = 5091,
537    OverrideCoverageNV = 5248,
538    PassthroughNV = 5250,
539    ViewportRelativeNV = 5252,
540    SecondaryViewportRelativeNV = 5256,
541    PerPrimitiveEXT = 5271,
542    PerPrimitiveNV = 5271,
543    PerViewNV = 5272,
544    PerTaskNV = 5273,
545    PerVertexKHR = 5285,
546    PerVertexNV = 5285,
547    NonUniform = 5300,
548    NonUniformEXT = 5300,
549    RestrictPointer = 5355,
550    RestrictPointerEXT = 5355,
551    AliasedPointer = 5356,
552    AliasedPointerEXT = 5356,
553    HitObjectShaderRecordBufferNV = 5386,
554    BindlessSamplerNV = 5398,
555    BindlessImageNV = 5399,
556    BoundSamplerNV = 5400,
557    BoundImageNV = 5401,
558    SIMTCallINTEL = 5599,
559    ReferencedIndirectlyINTEL = 5602,
560    ClobberINTEL = 5607,
561    SideEffectsINTEL = 5608,
562    VectorComputeVariableINTEL = 5624,
563    FuncParamIOKindINTEL = 5625,
564    VectorComputeFunctionINTEL = 5626,
565    StackCallINTEL = 5627,
566    GlobalVariableOffsetINTEL = 5628,
567    CounterBuffer = 5634,
568    HlslCounterBufferGOOGLE = 5634,
569    HlslSemanticGOOGLE = 5635,
570    UserSemantic = 5635,
571    UserTypeGOOGLE = 5636,
572    FunctionRoundingModeINTEL = 5822,
573    FunctionDenormModeINTEL = 5823,
574    RegisterINTEL = 5825,
575    MemoryINTEL = 5826,
576    NumbanksINTEL = 5827,
577    BankwidthINTEL = 5828,
578    MaxPrivateCopiesINTEL = 5829,
579    SinglepumpINTEL = 5830,
580    DoublepumpINTEL = 5831,
581    MaxReplicatesINTEL = 5832,
582    SimpleDualPortINTEL = 5833,
583    MergeINTEL = 5834,
584    BankBitsINTEL = 5835,
585    ForcePow2DepthINTEL = 5836,
586    StridesizeINTEL = 5883,
587    WordsizeINTEL = 5884,
588    TrueDualPortINTEL = 5885,
589    BurstCoalesceINTEL = 5899,
590    CacheSizeINTEL = 5900,
591    DontStaticallyCoalesceINTEL = 5901,
592    PrefetchINTEL = 5902,
593    StallEnableINTEL = 5905,
594    FuseLoopsInFunctionINTEL = 5907,
595    MathOpDSPModeINTEL = 5909,
596    AliasScopeINTEL = 5914,
597    NoAliasINTEL = 5915,
598    InitiationIntervalINTEL = 5917,
599    MaxConcurrencyINTEL = 5918,
600    PipelineEnableINTEL = 5919,
601    BufferLocationINTEL = 5921,
602    IOPipeStorageINTEL = 5944,
603    FunctionFloatingPointModeINTEL = 6080,
604    SingleElementVectorINTEL = 6085,
605    VectorComputeCallableFunctionINTEL = 6087,
606    MediaBlockIOINTEL = 6140,
607    StallFreeINTEL = 6151,
608    FPMaxErrorDecorationINTEL = 6170,
609    LatencyControlLabelINTEL = 6172,
610    LatencyControlConstraintINTEL = 6173,
611    ConduitKernelArgumentINTEL = 6175,
612    RegisterMapKernelArgumentINTEL = 6176,
613    MMHostInterfaceAddressWidthINTEL = 6177,
614    MMHostInterfaceDataWidthINTEL = 6178,
615    MMHostInterfaceLatencyINTEL = 6179,
616    MMHostInterfaceReadWriteModeINTEL = 6180,
617    MMHostInterfaceMaxBurstINTEL = 6181,
618    MMHostInterfaceWaitRequestINTEL = 6182,
619    StableKernelArgumentINTEL = 6183,
620    HostAccessINTEL = 6188,
621    InitModeINTEL = 6190,
622    ImplementInRegisterMapINTEL = 6191,
623    CacheControlLoadINTEL = 6442,
624    CacheControlStoreINTEL = 6443,
625    Max = 0x7fffffff,
626};
627
628enum class BuiltIn : unsigned {
629    Position = 0,
630    PointSize = 1,
631    ClipDistance = 3,
632    CullDistance = 4,
633    VertexId = 5,
634    InstanceId = 6,
635    PrimitiveId = 7,
636    InvocationId = 8,
637    Layer = 9,
638    ViewportIndex = 10,
639    TessLevelOuter = 11,
640    TessLevelInner = 12,
641    TessCoord = 13,
642    PatchVertices = 14,
643    FragCoord = 15,
644    PointCoord = 16,
645    FrontFacing = 17,
646    SampleId = 18,
647    SamplePosition = 19,
648    SampleMask = 20,
649    FragDepth = 22,
650    HelperInvocation = 23,
651    NumWorkgroups = 24,
652    WorkgroupSize = 25,
653    WorkgroupId = 26,
654    LocalInvocationId = 27,
655    GlobalInvocationId = 28,
656    LocalInvocationIndex = 29,
657    WorkDim = 30,
658    GlobalSize = 31,
659    EnqueuedWorkgroupSize = 32,
660    GlobalOffset = 33,
661    GlobalLinearId = 34,
662    SubgroupSize = 36,
663    SubgroupMaxSize = 37,
664    NumSubgroups = 38,
665    NumEnqueuedSubgroups = 39,
666    SubgroupId = 40,
667    SubgroupLocalInvocationId = 41,
668    VertexIndex = 42,
669    InstanceIndex = 43,
670    CoreIDARM = 4160,
671    CoreCountARM = 4161,
672    CoreMaxIDARM = 4162,
673    WarpIDARM = 4163,
674    WarpMaxIDARM = 4164,
675    SubgroupEqMask = 4416,
676    SubgroupEqMaskKHR = 4416,
677    SubgroupGeMask = 4417,
678    SubgroupGeMaskKHR = 4417,
679    SubgroupGtMask = 4418,
680    SubgroupGtMaskKHR = 4418,
681    SubgroupLeMask = 4419,
682    SubgroupLeMaskKHR = 4419,
683    SubgroupLtMask = 4420,
684    SubgroupLtMaskKHR = 4420,
685    BaseVertex = 4424,
686    BaseInstance = 4425,
687    DrawIndex = 4426,
688    PrimitiveShadingRateKHR = 4432,
689    DeviceIndex = 4438,
690    ViewIndex = 4440,
691    ShadingRateKHR = 4444,
692    BaryCoordNoPerspAMD = 4992,
693    BaryCoordNoPerspCentroidAMD = 4993,
694    BaryCoordNoPerspSampleAMD = 4994,
695    BaryCoordSmoothAMD = 4995,
696    BaryCoordSmoothCentroidAMD = 4996,
697    BaryCoordSmoothSampleAMD = 4997,
698    BaryCoordPullModelAMD = 4998,
699    FragStencilRefEXT = 5014,
700    CoalescedInputCountAMDX = 5021,
701    ShaderIndexAMDX = 5073,
702    ViewportMaskNV = 5253,
703    SecondaryPositionNV = 5257,
704    SecondaryViewportMaskNV = 5258,
705    PositionPerViewNV = 5261,
706    ViewportMaskPerViewNV = 5262,
707    FullyCoveredEXT = 5264,
708    TaskCountNV = 5274,
709    PrimitiveCountNV = 5275,
710    PrimitiveIndicesNV = 5276,
711    ClipDistancePerViewNV = 5277,
712    CullDistancePerViewNV = 5278,
713    LayerPerViewNV = 5279,
714    MeshViewCountNV = 5280,
715    MeshViewIndicesNV = 5281,
716    BaryCoordKHR = 5286,
717    BaryCoordNV = 5286,
718    BaryCoordNoPerspKHR = 5287,
719    BaryCoordNoPerspNV = 5287,
720    FragSizeEXT = 5292,
721    FragmentSizeNV = 5292,
722    FragInvocationCountEXT = 5293,
723    InvocationsPerPixelNV = 5293,
724    PrimitivePointIndicesEXT = 5294,
725    PrimitiveLineIndicesEXT = 5295,
726    PrimitiveTriangleIndicesEXT = 5296,
727    CullPrimitiveEXT = 5299,
728    LaunchIdKHR = 5319,
729    LaunchIdNV = 5319,
730    LaunchSizeKHR = 5320,
731    LaunchSizeNV = 5320,
732    WorldRayOriginKHR = 5321,
733    WorldRayOriginNV = 5321,
734    WorldRayDirectionKHR = 5322,
735    WorldRayDirectionNV = 5322,
736    ObjectRayOriginKHR = 5323,
737    ObjectRayOriginNV = 5323,
738    ObjectRayDirectionKHR = 5324,
739    ObjectRayDirectionNV = 5324,
740    RayTminKHR = 5325,
741    RayTminNV = 5325,
742    RayTmaxKHR = 5326,
743    RayTmaxNV = 5326,
744    InstanceCustomIndexKHR = 5327,
745    InstanceCustomIndexNV = 5327,
746    ObjectToWorldKHR = 5330,
747    ObjectToWorldNV = 5330,
748    WorldToObjectKHR = 5331,
749    WorldToObjectNV = 5331,
750    HitTNV = 5332,
751    HitKindKHR = 5333,
752    HitKindNV = 5333,
753    CurrentRayTimeNV = 5334,
754    HitTriangleVertexPositionsKHR = 5335,
755    HitMicroTriangleVertexPositionsNV = 5337,
756    HitMicroTriangleVertexBarycentricsNV = 5344,
757    IncomingRayFlagsKHR = 5351,
758    IncomingRayFlagsNV = 5351,
759    RayGeometryIndexKHR = 5352,
760    WarpsPerSMNV = 5374,
761    SMCountNV = 5375,
762    WarpIDNV = 5376,
763    SMIDNV = 5377,
764    HitKindFrontFacingMicroTriangleNV = 5405,
765    HitKindBackFacingMicroTriangleNV = 5406,
766    CullMaskKHR = 6021,
767    Max = 0x7fffffff,
768};
769
770enum class SelectionControlShift : unsigned {
771    Flatten = 0,
772    DontFlatten = 1,
773    Max = 0x7fffffff,
774};
775
776enum class SelectionControlMask : unsigned {
777    MaskNone = 0,
778    Flatten = 0x00000001,
779    DontFlatten = 0x00000002,
780};
781
782enum class LoopControlShift : unsigned {
783    Unroll = 0,
784    DontUnroll = 1,
785    DependencyInfinite = 2,
786    DependencyLength = 3,
787    MinIterations = 4,
788    MaxIterations = 5,
789    IterationMultiple = 6,
790    PeelCount = 7,
791    PartialCount = 8,
792    InitiationIntervalINTEL = 16,
793    MaxConcurrencyINTEL = 17,
794    DependencyArrayINTEL = 18,
795    PipelineEnableINTEL = 19,
796    LoopCoalesceINTEL = 20,
797    MaxInterleavingINTEL = 21,
798    SpeculatedIterationsINTEL = 22,
799    NoFusionINTEL = 23,
800    LoopCountINTEL = 24,
801    MaxReinvocationDelayINTEL = 25,
802    Max = 0x7fffffff,
803};
804
805enum class LoopControlMask : unsigned {
806    MaskNone = 0,
807    Unroll = 0x00000001,
808    DontUnroll = 0x00000002,
809    DependencyInfinite = 0x00000004,
810    DependencyLength = 0x00000008,
811    MinIterations = 0x00000010,
812    MaxIterations = 0x00000020,
813    IterationMultiple = 0x00000040,
814    PeelCount = 0x00000080,
815    PartialCount = 0x00000100,
816    InitiationIntervalINTEL = 0x00010000,
817    MaxConcurrencyINTEL = 0x00020000,
818    DependencyArrayINTEL = 0x00040000,
819    PipelineEnableINTEL = 0x00080000,
820    LoopCoalesceINTEL = 0x00100000,
821    MaxInterleavingINTEL = 0x00200000,
822    SpeculatedIterationsINTEL = 0x00400000,
823    NoFusionINTEL = 0x00800000,
824    LoopCountINTEL = 0x01000000,
825    MaxReinvocationDelayINTEL = 0x02000000,
826};
827
828enum class FunctionControlShift : unsigned {
829    Inline = 0,
830    DontInline = 1,
831    Pure = 2,
832    Const = 3,
833    OptNoneINTEL = 16,
834    Max = 0x7fffffff,
835};
836
837enum class FunctionControlMask : unsigned {
838    MaskNone = 0,
839    Inline = 0x00000001,
840    DontInline = 0x00000002,
841    Pure = 0x00000004,
842    Const = 0x00000008,
843    OptNoneINTEL = 0x00010000,
844};
845
846enum class MemorySemanticsShift : unsigned {
847    Acquire = 1,
848    Release = 2,
849    AcquireRelease = 3,
850    SequentiallyConsistent = 4,
851    UniformMemory = 6,
852    SubgroupMemory = 7,
853    WorkgroupMemory = 8,
854    CrossWorkgroupMemory = 9,
855    AtomicCounterMemory = 10,
856    ImageMemory = 11,
857    OutputMemory = 12,
858    OutputMemoryKHR = 12,
859    MakeAvailable = 13,
860    MakeAvailableKHR = 13,
861    MakeVisible = 14,
862    MakeVisibleKHR = 14,
863    Volatile = 15,
864    Max = 0x7fffffff,
865};
866
867enum class MemorySemanticsMask : unsigned {
868    MaskNone = 0,
869    Acquire = 0x00000002,
870    Release = 0x00000004,
871    AcquireRelease = 0x00000008,
872    SequentiallyConsistent = 0x00000010,
873    UniformMemory = 0x00000040,
874    SubgroupMemory = 0x00000080,
875    WorkgroupMemory = 0x00000100,
876    CrossWorkgroupMemory = 0x00000200,
877    AtomicCounterMemory = 0x00000400,
878    ImageMemory = 0x00000800,
879    OutputMemory = 0x00001000,
880    OutputMemoryKHR = 0x00001000,
881    MakeAvailable = 0x00002000,
882    MakeAvailableKHR = 0x00002000,
883    MakeVisible = 0x00004000,
884    MakeVisibleKHR = 0x00004000,
885    Volatile = 0x00008000,
886};
887
888enum class MemoryAccessShift : unsigned {
889    Volatile = 0,
890    Aligned = 1,
891    Nontemporal = 2,
892    MakePointerAvailable = 3,
893    MakePointerAvailableKHR = 3,
894    MakePointerVisible = 4,
895    MakePointerVisibleKHR = 4,
896    NonPrivatePointer = 5,
897    NonPrivatePointerKHR = 5,
898    AliasScopeINTELMask = 16,
899    NoAliasINTELMask = 17,
900    Max = 0x7fffffff,
901};
902
903enum class MemoryAccessMask : unsigned {
904    MaskNone = 0,
905    Volatile = 0x00000001,
906    Aligned = 0x00000002,
907    Nontemporal = 0x00000004,
908    MakePointerAvailable = 0x00000008,
909    MakePointerAvailableKHR = 0x00000008,
910    MakePointerVisible = 0x00000010,
911    MakePointerVisibleKHR = 0x00000010,
912    NonPrivatePointer = 0x00000020,
913    NonPrivatePointerKHR = 0x00000020,
914    AliasScopeINTELMask = 0x00010000,
915    NoAliasINTELMask = 0x00020000,
916};
917
918enum class Scope : unsigned {
919    CrossDevice = 0,
920    Device = 1,
921    Workgroup = 2,
922    Subgroup = 3,
923    Invocation = 4,
924    QueueFamily = 5,
925    QueueFamilyKHR = 5,
926    ShaderCallKHR = 6,
927    Max = 0x7fffffff,
928};
929
930enum class GroupOperation : unsigned {
931    Reduce = 0,
932    InclusiveScan = 1,
933    ExclusiveScan = 2,
934    ClusteredReduce = 3,
935    PartitionedReduceNV = 6,
936    PartitionedInclusiveScanNV = 7,
937    PartitionedExclusiveScanNV = 8,
938    Max = 0x7fffffff,
939};
940
941enum class KernelEnqueueFlags : unsigned {
942    NoWait = 0,
943    WaitKernel = 1,
944    WaitWorkGroup = 2,
945    Max = 0x7fffffff,
946};
947
948enum class KernelProfilingInfoShift : unsigned {
949    CmdExecTime = 0,
950    Max = 0x7fffffff,
951};
952
953enum class KernelProfilingInfoMask : unsigned {
954    MaskNone = 0,
955    CmdExecTime = 0x00000001,
956};
957
958enum class Capability : unsigned {
959    Matrix = 0,
960    Shader = 1,
961    Geometry = 2,
962    Tessellation = 3,
963    Addresses = 4,
964    Linkage = 5,
965    Kernel = 6,
966    Vector16 = 7,
967    Float16Buffer = 8,
968    Float16 = 9,
969    Float64 = 10,
970    Int64 = 11,
971    Int64Atomics = 12,
972    ImageBasic = 13,
973    ImageReadWrite = 14,
974    ImageMipmap = 15,
975    Pipes = 17,
976    Groups = 18,
977    DeviceEnqueue = 19,
978    LiteralSampler = 20,
979    AtomicStorage = 21,
980    Int16 = 22,
981    TessellationPointSize = 23,
982    GeometryPointSize = 24,
983    ImageGatherExtended = 25,
984    StorageImageMultisample = 27,
985    UniformBufferArrayDynamicIndexing = 28,
986    SampledImageArrayDynamicIndexing = 29,
987    StorageBufferArrayDynamicIndexing = 30,
988    StorageImageArrayDynamicIndexing = 31,
989    ClipDistance = 32,
990    CullDistance = 33,
991    ImageCubeArray = 34,
992    SampleRateShading = 35,
993    ImageRect = 36,
994    SampledRect = 37,
995    GenericPointer = 38,
996    Int8 = 39,
997    InputAttachment = 40,
998    SparseResidency = 41,
999    MinLod = 42,
1000    Sampled1D = 43,
1001    Image1D = 44,
1002    SampledCubeArray = 45,
1003    SampledBuffer = 46,
1004    ImageBuffer = 47,
1005    ImageMSArray = 48,
1006    StorageImageExtendedFormats = 49,
1007    ImageQuery = 50,
1008    DerivativeControl = 51,
1009    InterpolationFunction = 52,
1010    TransformFeedback = 53,
1011    GeometryStreams = 54,
1012    StorageImageReadWithoutFormat = 55,
1013    StorageImageWriteWithoutFormat = 56,
1014    MultiViewport = 57,
1015    SubgroupDispatch = 58,
1016    NamedBarrier = 59,
1017    PipeStorage = 60,
1018    GroupNonUniform = 61,
1019    GroupNonUniformVote = 62,
1020    GroupNonUniformArithmetic = 63,
1021    GroupNonUniformBallot = 64,
1022    GroupNonUniformShuffle = 65,
1023    GroupNonUniformShuffleRelative = 66,
1024    GroupNonUniformClustered = 67,
1025    GroupNonUniformQuad = 68,
1026    ShaderLayer = 69,
1027    ShaderViewportIndex = 70,
1028    UniformDecoration = 71,
1029    CoreBuiltinsARM = 4165,
1030    TileImageColorReadAccessEXT = 4166,
1031    TileImageDepthReadAccessEXT = 4167,
1032    TileImageStencilReadAccessEXT = 4168,
1033    FragmentShadingRateKHR = 4422,
1034    SubgroupBallotKHR = 4423,
1035    DrawParameters = 4427,
1036    WorkgroupMemoryExplicitLayoutKHR = 4428,
1037    WorkgroupMemoryExplicitLayout8BitAccessKHR = 4429,
1038    WorkgroupMemoryExplicitLayout16BitAccessKHR = 4430,
1039    SubgroupVoteKHR = 4431,
1040    StorageBuffer16BitAccess = 4433,
1041    StorageUniformBufferBlock16 = 4433,
1042    StorageUniform16 = 4434,
1043    UniformAndStorageBuffer16BitAccess = 4434,
1044    StoragePushConstant16 = 4435,
1045    StorageInputOutput16 = 4436,
1046    DeviceGroup = 4437,
1047    MultiView = 4439,
1048    VariablePointersStorageBuffer = 4441,
1049    VariablePointers = 4442,
1050    AtomicStorageOps = 4445,
1051    SampleMaskPostDepthCoverage = 4447,
1052    StorageBuffer8BitAccess = 4448,
1053    UniformAndStorageBuffer8BitAccess = 4449,
1054    StoragePushConstant8 = 4450,
1055    DenormPreserve = 4464,
1056    DenormFlushToZero = 4465,
1057    SignedZeroInfNanPreserve = 4466,
1058    RoundingModeRTE = 4467,
1059    RoundingModeRTZ = 4468,
1060    RayQueryProvisionalKHR = 4471,
1061    RayQueryKHR = 4472,
1062    RayTraversalPrimitiveCullingKHR = 4478,
1063    RayTracingKHR = 4479,
1064    TextureSampleWeightedQCOM = 4484,
1065    TextureBoxFilterQCOM = 4485,
1066    TextureBlockMatchQCOM = 4486,
1067    Float16ImageAMD = 5008,
1068    ImageGatherBiasLodAMD = 5009,
1069    FragmentMaskAMD = 5010,
1070    StencilExportEXT = 5013,
1071    ImageReadWriteLodAMD = 5015,
1072    Int64ImageEXT = 5016,
1073    ShaderClockKHR = 5055,
1074    ShaderEnqueueAMDX = 5067,
1075    SampleMaskOverrideCoverageNV = 5249,
1076    GeometryShaderPassthroughNV = 5251,
1077    ShaderViewportIndexLayerEXT = 5254,
1078    ShaderViewportIndexLayerNV = 5254,
1079    ShaderViewportMaskNV = 5255,
1080    ShaderStereoViewNV = 5259,
1081    PerViewAttributesNV = 5260,
1082    FragmentFullyCoveredEXT = 5265,
1083    MeshShadingNV = 5266,
1084    ImageFootprintNV = 5282,
1085    MeshShadingEXT = 5283,
1086    FragmentBarycentricKHR = 5284,
1087    FragmentBarycentricNV = 5284,
1088    ComputeDerivativeGroupQuadsNV = 5288,
1089    FragmentDensityEXT = 5291,
1090    ShadingRateNV = 5291,
1091    GroupNonUniformPartitionedNV = 5297,
1092    ShaderNonUniform = 5301,
1093    ShaderNonUniformEXT = 5301,
1094    RuntimeDescriptorArray = 5302,
1095    RuntimeDescriptorArrayEXT = 5302,
1096    InputAttachmentArrayDynamicIndexing = 5303,
1097    InputAttachmentArrayDynamicIndexingEXT = 5303,
1098    UniformTexelBufferArrayDynamicIndexing = 5304,
1099    UniformTexelBufferArrayDynamicIndexingEXT = 5304,
1100    StorageTexelBufferArrayDynamicIndexing = 5305,
1101    StorageTexelBufferArrayDynamicIndexingEXT = 5305,
1102    UniformBufferArrayNonUniformIndexing = 5306,
1103    UniformBufferArrayNonUniformIndexingEXT = 5306,
1104    SampledImageArrayNonUniformIndexing = 5307,
1105    SampledImageArrayNonUniformIndexingEXT = 5307,
1106    StorageBufferArrayNonUniformIndexing = 5308,
1107    StorageBufferArrayNonUniformIndexingEXT = 5308,
1108    StorageImageArrayNonUniformIndexing = 5309,
1109    StorageImageArrayNonUniformIndexingEXT = 5309,
1110    InputAttachmentArrayNonUniformIndexing = 5310,
1111    InputAttachmentArrayNonUniformIndexingEXT = 5310,
1112    UniformTexelBufferArrayNonUniformIndexing = 5311,
1113    UniformTexelBufferArrayNonUniformIndexingEXT = 5311,
1114    StorageTexelBufferArrayNonUniformIndexing = 5312,
1115    StorageTexelBufferArrayNonUniformIndexingEXT = 5312,
1116    RayTracingPositionFetchKHR = 5336,
1117    RayTracingNV = 5340,
1118    RayTracingMotionBlurNV = 5341,
1119    VulkanMemoryModel = 5345,
1120    VulkanMemoryModelKHR = 5345,
1121    VulkanMemoryModelDeviceScope = 5346,
1122    VulkanMemoryModelDeviceScopeKHR = 5346,
1123    PhysicalStorageBufferAddresses = 5347,
1124    PhysicalStorageBufferAddressesEXT = 5347,
1125    ComputeDerivativeGroupLinearNV = 5350,
1126    RayTracingProvisionalKHR = 5353,
1127    CooperativeMatrixNV = 5357,
1128    FragmentShaderSampleInterlockEXT = 5363,
1129    FragmentShaderShadingRateInterlockEXT = 5372,
1130    ShaderSMBuiltinsNV = 5373,
1131    FragmentShaderPixelInterlockEXT = 5378,
1132    DemoteToHelperInvocation = 5379,
1133    DemoteToHelperInvocationEXT = 5379,
1134    DisplacementMicromapNV = 5380,
1135    RayTracingOpacityMicromapEXT = 5381,
1136    ShaderInvocationReorderNV = 5383,
1137    BindlessTextureNV = 5390,
1138    RayQueryPositionFetchKHR = 5391,
1139    RayTracingDisplacementMicromapNV = 5409,
1140    SubgroupShuffleINTEL = 5568,
1141    SubgroupBufferBlockIOINTEL = 5569,
1142    SubgroupImageBlockIOINTEL = 5570,
1143    SubgroupImageMediaBlockIOINTEL = 5579,
1144    RoundToInfinityINTEL = 5582,
1145    FloatingPointModeINTEL = 5583,
1146    IntegerFunctions2INTEL = 5584,
1147    FunctionPointersINTEL = 5603,
1148    IndirectReferencesINTEL = 5604,
1149    AsmINTEL = 5606,
1150    AtomicFloat32MinMaxEXT = 5612,
1151    AtomicFloat64MinMaxEXT = 5613,
1152    AtomicFloat16MinMaxEXT = 5616,
1153    VectorComputeINTEL = 5617,
1154    VectorAnyINTEL = 5619,
1155    ExpectAssumeKHR = 5629,
1156    SubgroupAvcMotionEstimationINTEL = 5696,
1157    SubgroupAvcMotionEstimationIntraINTEL = 5697,
1158    SubgroupAvcMotionEstimationChromaINTEL = 5698,
1159    VariableLengthArrayINTEL = 5817,
1160    FunctionFloatControlINTEL = 5821,
1161    FPGAMemoryAttributesINTEL = 5824,
1162    FPFastMathModeINTEL = 5837,
1163    ArbitraryPrecisionIntegersINTEL = 5844,
1164    ArbitraryPrecisionFloatingPointINTEL = 5845,
1165    UnstructuredLoopControlsINTEL = 5886,
1166    FPGALoopControlsINTEL = 5888,
1167    KernelAttributesINTEL = 5892,
1168    FPGAKernelAttributesINTEL = 5897,
1169    FPGAMemoryAccessesINTEL = 5898,
1170    FPGAClusterAttributesINTEL = 5904,
1171    LoopFuseINTEL = 5906,
1172    FPGADSPControlINTEL = 5908,
1173    MemoryAccessAliasingINTEL = 5910,
1174    FPGAInvocationPipeliningAttributesINTEL = 5916,
1175    FPGABufferLocationINTEL = 5920,
1176    ArbitraryPrecisionFixedPointINTEL = 5922,
1177    USMStorageClassesINTEL = 5935,
1178    RuntimeAlignedAttributeINTEL = 5939,
1179    IOPipesINTEL = 5943,
1180    BlockingPipesINTEL = 5945,
1181    FPGARegINTEL = 5948,
1182    DotProductInputAll = 6016,
1183    DotProductInputAllKHR = 6016,
1184    DotProductInput4x8Bit = 6017,
1185    DotProductInput4x8BitKHR = 6017,
1186    DotProductInput4x8BitPacked = 6018,
1187    DotProductInput4x8BitPackedKHR = 6018,
1188    DotProduct = 6019,
1189    DotProductKHR = 6019,
1190    RayCullMaskKHR = 6020,
1191    CooperativeMatrixKHR = 6022,
1192    BitInstructions = 6025,
1193    GroupNonUniformRotateKHR = 6026,
1194    AtomicFloat32AddEXT = 6033,
1195    AtomicFloat64AddEXT = 6034,
1196    LongCompositesINTEL = 6089,
1197    OptNoneINTEL = 6094,
1198    AtomicFloat16AddEXT = 6095,
1199    DebugInfoModuleINTEL = 6114,
1200    BFloat16ConversionINTEL = 6115,
1201    SplitBarrierINTEL = 6141,
1202    FPGAClusterAttributesV2INTEL = 6150,
1203    FPGAKernelAttributesv2INTEL = 6161,
1204    FPMaxErrorINTEL = 6169,
1205    FPGALatencyControlINTEL = 6171,
1206    FPGAArgumentInterfacesINTEL = 6174,
1207    GlobalVariableHostAccessINTEL = 6187,
1208    GlobalVariableFPGADecorationsINTEL = 6189,
1209    GroupUniformArithmeticKHR = 6400,
1210    CacheControlsINTEL = 6441,
1211    Max = 0x7fffffff,
1212};
1213
1214enum class RayFlagsShift : unsigned {
1215    OpaqueKHR = 0,
1216    NoOpaqueKHR = 1,
1217    TerminateOnFirstHitKHR = 2,
1218    SkipClosestHitShaderKHR = 3,
1219    CullBackFacingTrianglesKHR = 4,
1220    CullFrontFacingTrianglesKHR = 5,
1221    CullOpaqueKHR = 6,
1222    CullNoOpaqueKHR = 7,
1223    SkipTrianglesKHR = 8,
1224    SkipAABBsKHR = 9,
1225    ForceOpacityMicromap2StateEXT = 10,
1226    Max = 0x7fffffff,
1227};
1228
1229enum class RayFlagsMask : unsigned {
1230    MaskNone = 0,
1231    OpaqueKHR = 0x00000001,
1232    NoOpaqueKHR = 0x00000002,
1233    TerminateOnFirstHitKHR = 0x00000004,
1234    SkipClosestHitShaderKHR = 0x00000008,
1235    CullBackFacingTrianglesKHR = 0x00000010,
1236    CullFrontFacingTrianglesKHR = 0x00000020,
1237    CullOpaqueKHR = 0x00000040,
1238    CullNoOpaqueKHR = 0x00000080,
1239    SkipTrianglesKHR = 0x00000100,
1240    SkipAABBsKHR = 0x00000200,
1241    ForceOpacityMicromap2StateEXT = 0x00000400,
1242};
1243
1244enum class RayQueryIntersection : unsigned {
1245    RayQueryCandidateIntersectionKHR = 0,
1246    RayQueryCommittedIntersectionKHR = 1,
1247    Max = 0x7fffffff,
1248};
1249
1250enum class RayQueryCommittedIntersectionType : unsigned {
1251    RayQueryCommittedIntersectionNoneKHR = 0,
1252    RayQueryCommittedIntersectionTriangleKHR = 1,
1253    RayQueryCommittedIntersectionGeneratedKHR = 2,
1254    Max = 0x7fffffff,
1255};
1256
1257enum class RayQueryCandidateIntersectionType : unsigned {
1258    RayQueryCandidateIntersectionTriangleKHR = 0,
1259    RayQueryCandidateIntersectionAABBKHR = 1,
1260    Max = 0x7fffffff,
1261};
1262
1263enum class FragmentShadingRateShift : unsigned {
1264    Vertical2Pixels = 0,
1265    Vertical4Pixels = 1,
1266    Horizontal2Pixels = 2,
1267    Horizontal4Pixels = 3,
1268    Max = 0x7fffffff,
1269};
1270
1271enum class FragmentShadingRateMask : unsigned {
1272    MaskNone = 0,
1273    Vertical2Pixels = 0x00000001,
1274    Vertical4Pixels = 0x00000002,
1275    Horizontal2Pixels = 0x00000004,
1276    Horizontal4Pixels = 0x00000008,
1277};
1278
1279enum class FPDenormMode : unsigned {
1280    Preserve = 0,
1281    FlushToZero = 1,
1282    Max = 0x7fffffff,
1283};
1284
1285enum class FPOperationMode : unsigned {
1286    IEEE = 0,
1287    ALT = 1,
1288    Max = 0x7fffffff,
1289};
1290
1291enum class QuantizationModes : unsigned {
1292    TRN = 0,
1293    TRN_ZERO = 1,
1294    RND = 2,
1295    RND_ZERO = 3,
1296    RND_INF = 4,
1297    RND_MIN_INF = 5,
1298    RND_CONV = 6,
1299    RND_CONV_ODD = 7,
1300    Max = 0x7fffffff,
1301};
1302
1303enum class OverflowModes : unsigned {
1304    WRAP = 0,
1305    SAT = 1,
1306    SAT_ZERO = 2,
1307    SAT_SYM = 3,
1308    Max = 0x7fffffff,
1309};
1310
1311enum class PackedVectorFormat : unsigned {
1312    PackedVectorFormat4x8Bit = 0,
1313    PackedVectorFormat4x8BitKHR = 0,
1314    Max = 0x7fffffff,
1315};
1316
1317enum class CooperativeMatrixOperandsShift : unsigned {
1318    MatrixASignedComponentsKHR = 0,
1319    MatrixBSignedComponentsKHR = 1,
1320    MatrixCSignedComponentsKHR = 2,
1321    MatrixResultSignedComponentsKHR = 3,
1322    SaturatingAccumulationKHR = 4,
1323    Max = 0x7fffffff,
1324};
1325
1326enum class CooperativeMatrixOperandsMask : unsigned {
1327    MaskNone = 0,
1328    MatrixASignedComponentsKHR = 0x00000001,
1329    MatrixBSignedComponentsKHR = 0x00000002,
1330    MatrixCSignedComponentsKHR = 0x00000004,
1331    MatrixResultSignedComponentsKHR = 0x00000008,
1332    SaturatingAccumulationKHR = 0x00000010,
1333};
1334
1335enum class CooperativeMatrixLayout : unsigned {
1336    RowMajorKHR = 0,
1337    ColumnMajorKHR = 1,
1338    Max = 0x7fffffff,
1339};
1340
1341enum class CooperativeMatrixUse : unsigned {
1342    MatrixAKHR = 0,
1343    MatrixBKHR = 1,
1344    MatrixAccumulatorKHR = 2,
1345    Max = 0x7fffffff,
1346};
1347
1348enum class InitializationModeQualifier : unsigned {
1349    InitOnDeviceReprogramINTEL = 0,
1350    InitOnDeviceResetINTEL = 1,
1351    Max = 0x7fffffff,
1352};
1353
1354enum class HostAccessQualifier : unsigned {
1355    NoneINTEL = 0,
1356    ReadINTEL = 1,
1357    WriteINTEL = 2,
1358    ReadWriteINTEL = 3,
1359    Max = 0x7fffffff,
1360};
1361
1362enum class LoadCacheControl : unsigned {
1363    UncachedINTEL = 0,
1364    CachedINTEL = 1,
1365    StreamingINTEL = 2,
1366    InvalidateAfterReadINTEL = 3,
1367    ConstCachedINTEL = 4,
1368    Max = 0x7fffffff,
1369};
1370
1371enum class StoreCacheControl : unsigned {
1372    UncachedINTEL = 0,
1373    WriteThroughINTEL = 1,
1374    WriteBackINTEL = 2,
1375    StreamingINTEL = 3,
1376    Max = 0x7fffffff,
1377};
1378
1379enum class Op : unsigned {
1380    OpNop = 0,
1381    OpUndef = 1,
1382    OpSourceContinued = 2,
1383    OpSource = 3,
1384    OpSourceExtension = 4,
1385    OpName = 5,
1386    OpMemberName = 6,
1387    OpString = 7,
1388    OpLine = 8,
1389    OpExtension = 10,
1390    OpExtInstImport = 11,
1391    OpExtInst = 12,
1392    OpMemoryModel = 14,
1393    OpEntryPoint = 15,
1394    OpExecutionMode = 16,
1395    OpCapability = 17,
1396    OpTypeVoid = 19,
1397    OpTypeBool = 20,
1398    OpTypeInt = 21,
1399    OpTypeFloat = 22,
1400    OpTypeVector = 23,
1401    OpTypeMatrix = 24,
1402    OpTypeImage = 25,
1403    OpTypeSampler = 26,
1404    OpTypeSampledImage = 27,
1405    OpTypeArray = 28,
1406    OpTypeRuntimeArray = 29,
1407    OpTypeStruct = 30,
1408    OpTypeOpaque = 31,
1409    OpTypePointer = 32,
1410    OpTypeFunction = 33,
1411    OpTypeEvent = 34,
1412    OpTypeDeviceEvent = 35,
1413    OpTypeReserveId = 36,
1414    OpTypeQueue = 37,
1415    OpTypePipe = 38,
1416    OpTypeForwardPointer = 39,
1417    OpConstantTrue = 41,
1418    OpConstantFalse = 42,
1419    OpConstant = 43,
1420    OpConstantComposite = 44,
1421    OpConstantSampler = 45,
1422    OpConstantNull = 46,
1423    OpSpecConstantTrue = 48,
1424    OpSpecConstantFalse = 49,
1425    OpSpecConstant = 50,
1426    OpSpecConstantComposite = 51,
1427    OpSpecConstantOp = 52,
1428    OpFunction = 54,
1429    OpFunctionParameter = 55,
1430    OpFunctionEnd = 56,
1431    OpFunctionCall = 57,
1432    OpVariable = 59,
1433    OpImageTexelPointer = 60,
1434    OpLoad = 61,
1435    OpStore = 62,
1436    OpCopyMemory = 63,
1437    OpCopyMemorySized = 64,
1438    OpAccessChain = 65,
1439    OpInBoundsAccessChain = 66,
1440    OpPtrAccessChain = 67,
1441    OpArrayLength = 68,
1442    OpGenericPtrMemSemantics = 69,
1443    OpInBoundsPtrAccessChain = 70,
1444    OpDecorate = 71,
1445    OpMemberDecorate = 72,
1446    OpDecorationGroup = 73,
1447    OpGroupDecorate = 74,
1448    OpGroupMemberDecorate = 75,
1449    OpVectorExtractDynamic = 77,
1450    OpVectorInsertDynamic = 78,
1451    OpVectorShuffle = 79,
1452    OpCompositeConstruct = 80,
1453    OpCompositeExtract = 81,
1454    OpCompositeInsert = 82,
1455    OpCopyObject = 83,
1456    OpTranspose = 84,
1457    OpSampledImage = 86,
1458    OpImageSampleImplicitLod = 87,
1459    OpImageSampleExplicitLod = 88,
1460    OpImageSampleDrefImplicitLod = 89,
1461    OpImageSampleDrefExplicitLod = 90,
1462    OpImageSampleProjImplicitLod = 91,
1463    OpImageSampleProjExplicitLod = 92,
1464    OpImageSampleProjDrefImplicitLod = 93,
1465    OpImageSampleProjDrefExplicitLod = 94,
1466    OpImageFetch = 95,
1467    OpImageGather = 96,
1468    OpImageDrefGather = 97,
1469    OpImageRead = 98,
1470    OpImageWrite = 99,
1471    OpImage = 100,
1472    OpImageQueryFormat = 101,
1473    OpImageQueryOrder = 102,
1474    OpImageQuerySizeLod = 103,
1475    OpImageQuerySize = 104,
1476    OpImageQueryLod = 105,
1477    OpImageQueryLevels = 106,
1478    OpImageQuerySamples = 107,
1479    OpConvertFToU = 109,
1480    OpConvertFToS = 110,
1481    OpConvertSToF = 111,
1482    OpConvertUToF = 112,
1483    OpUConvert = 113,
1484    OpSConvert = 114,
1485    OpFConvert = 115,
1486    OpQuantizeToF16 = 116,
1487    OpConvertPtrToU = 117,
1488    OpSatConvertSToU = 118,
1489    OpSatConvertUToS = 119,
1490    OpConvertUToPtr = 120,
1491    OpPtrCastToGeneric = 121,
1492    OpGenericCastToPtr = 122,
1493    OpGenericCastToPtrExplicit = 123,
1494    OpBitcast = 124,
1495    OpSNegate = 126,
1496    OpFNegate = 127,
1497    OpIAdd = 128,
1498    OpFAdd = 129,
1499    OpISub = 130,
1500    OpFSub = 131,
1501    OpIMul = 132,
1502    OpFMul = 133,
1503    OpUDiv = 134,
1504    OpSDiv = 135,
1505    OpFDiv = 136,
1506    OpUMod = 137,
1507    OpSRem = 138,
1508    OpSMod = 139,
1509    OpFRem = 140,
1510    OpFMod = 141,
1511    OpVectorTimesScalar = 142,
1512    OpMatrixTimesScalar = 143,
1513    OpVectorTimesMatrix = 144,
1514    OpMatrixTimesVector = 145,
1515    OpMatrixTimesMatrix = 146,
1516    OpOuterProduct = 147,
1517    OpDot = 148,
1518    OpIAddCarry = 149,
1519    OpISubBorrow = 150,
1520    OpUMulExtended = 151,
1521    OpSMulExtended = 152,
1522    OpAny = 154,
1523    OpAll = 155,
1524    OpIsNan = 156,
1525    OpIsInf = 157,
1526    OpIsFinite = 158,
1527    OpIsNormal = 159,
1528    OpSignBitSet = 160,
1529    OpLessOrGreater = 161,
1530    OpOrdered = 162,
1531    OpUnordered = 163,
1532    OpLogicalEqual = 164,
1533    OpLogicalNotEqual = 165,
1534    OpLogicalOr = 166,
1535    OpLogicalAnd = 167,
1536    OpLogicalNot = 168,
1537    OpSelect = 169,
1538    OpIEqual = 170,
1539    OpINotEqual = 171,
1540    OpUGreaterThan = 172,
1541    OpSGreaterThan = 173,
1542    OpUGreaterThanEqual = 174,
1543    OpSGreaterThanEqual = 175,
1544    OpULessThan = 176,
1545    OpSLessThan = 177,
1546    OpULessThanEqual = 178,
1547    OpSLessThanEqual = 179,
1548    OpFOrdEqual = 180,
1549    OpFUnordEqual = 181,
1550    OpFOrdNotEqual = 182,
1551    OpFUnordNotEqual = 183,
1552    OpFOrdLessThan = 184,
1553    OpFUnordLessThan = 185,
1554    OpFOrdGreaterThan = 186,
1555    OpFUnordGreaterThan = 187,
1556    OpFOrdLessThanEqual = 188,
1557    OpFUnordLessThanEqual = 189,
1558    OpFOrdGreaterThanEqual = 190,
1559    OpFUnordGreaterThanEqual = 191,
1560    OpShiftRightLogical = 194,
1561    OpShiftRightArithmetic = 195,
1562    OpShiftLeftLogical = 196,
1563    OpBitwiseOr = 197,
1564    OpBitwiseXor = 198,
1565    OpBitwiseAnd = 199,
1566    OpNot = 200,
1567    OpBitFieldInsert = 201,
1568    OpBitFieldSExtract = 202,
1569    OpBitFieldUExtract = 203,
1570    OpBitReverse = 204,
1571    OpBitCount = 205,
1572    OpDPdx = 207,
1573    OpDPdy = 208,
1574    OpFwidth = 209,
1575    OpDPdxFine = 210,
1576    OpDPdyFine = 211,
1577    OpFwidthFine = 212,
1578    OpDPdxCoarse = 213,
1579    OpDPdyCoarse = 214,
1580    OpFwidthCoarse = 215,
1581    OpEmitVertex = 218,
1582    OpEndPrimitive = 219,
1583    OpEmitStreamVertex = 220,
1584    OpEndStreamPrimitive = 221,
1585    OpControlBarrier = 224,
1586    OpMemoryBarrier = 225,
1587    OpAtomicLoad = 227,
1588    OpAtomicStore = 228,
1589    OpAtomicExchange = 229,
1590    OpAtomicCompareExchange = 230,
1591    OpAtomicCompareExchangeWeak = 231,
1592    OpAtomicIIncrement = 232,
1593    OpAtomicIDecrement = 233,
1594    OpAtomicIAdd = 234,
1595    OpAtomicISub = 235,
1596    OpAtomicSMin = 236,
1597    OpAtomicUMin = 237,
1598    OpAtomicSMax = 238,
1599    OpAtomicUMax = 239,
1600    OpAtomicAnd = 240,
1601    OpAtomicOr = 241,
1602    OpAtomicXor = 242,
1603    OpPhi = 245,
1604    OpLoopMerge = 246,
1605    OpSelectionMerge = 247,
1606    OpLabel = 248,
1607    OpBranch = 249,
1608    OpBranchConditional = 250,
1609    OpSwitch = 251,
1610    OpKill = 252,
1611    OpReturn = 253,
1612    OpReturnValue = 254,
1613    OpUnreachable = 255,
1614    OpLifetimeStart = 256,
1615    OpLifetimeStop = 257,
1616    OpGroupAsyncCopy = 259,
1617    OpGroupWaitEvents = 260,
1618    OpGroupAll = 261,
1619    OpGroupAny = 262,
1620    OpGroupBroadcast = 263,
1621    OpGroupIAdd = 264,
1622    OpGroupFAdd = 265,
1623    OpGroupFMin = 266,
1624    OpGroupUMin = 267,
1625    OpGroupSMin = 268,
1626    OpGroupFMax = 269,
1627    OpGroupUMax = 270,
1628    OpGroupSMax = 271,
1629    OpReadPipe = 274,
1630    OpWritePipe = 275,
1631    OpReservedReadPipe = 276,
1632    OpReservedWritePipe = 277,
1633    OpReserveReadPipePackets = 278,
1634    OpReserveWritePipePackets = 279,
1635    OpCommitReadPipe = 280,
1636    OpCommitWritePipe = 281,
1637    OpIsValidReserveId = 282,
1638    OpGetNumPipePackets = 283,
1639    OpGetMaxPipePackets = 284,
1640    OpGroupReserveReadPipePackets = 285,
1641    OpGroupReserveWritePipePackets = 286,
1642    OpGroupCommitReadPipe = 287,
1643    OpGroupCommitWritePipe = 288,
1644    OpEnqueueMarker = 291,
1645    OpEnqueueKernel = 292,
1646    OpGetKernelNDrangeSubGroupCount = 293,
1647    OpGetKernelNDrangeMaxSubGroupSize = 294,
1648    OpGetKernelWorkGroupSize = 295,
1649    OpGetKernelPreferredWorkGroupSizeMultiple = 296,
1650    OpRetainEvent = 297,
1651    OpReleaseEvent = 298,
1652    OpCreateUserEvent = 299,
1653    OpIsValidEvent = 300,
1654    OpSetUserEventStatus = 301,
1655    OpCaptureEventProfilingInfo = 302,
1656    OpGetDefaultQueue = 303,
1657    OpBuildNDRange = 304,
1658    OpImageSparseSampleImplicitLod = 305,
1659    OpImageSparseSampleExplicitLod = 306,
1660    OpImageSparseSampleDrefImplicitLod = 307,
1661    OpImageSparseSampleDrefExplicitLod = 308,
1662    OpImageSparseSampleProjImplicitLod = 309,
1663    OpImageSparseSampleProjExplicitLod = 310,
1664    OpImageSparseSampleProjDrefImplicitLod = 311,
1665    OpImageSparseSampleProjDrefExplicitLod = 312,
1666    OpImageSparseFetch = 313,
1667    OpImageSparseGather = 314,
1668    OpImageSparseDrefGather = 315,
1669    OpImageSparseTexelsResident = 316,
1670    OpNoLine = 317,
1671    OpAtomicFlagTestAndSet = 318,
1672    OpAtomicFlagClear = 319,
1673    OpImageSparseRead = 320,
1674    OpSizeOf = 321,
1675    OpTypePipeStorage = 322,
1676    OpConstantPipeStorage = 323,
1677    OpCreatePipeFromPipeStorage = 324,
1678    OpGetKernelLocalSizeForSubgroupCount = 325,
1679    OpGetKernelMaxNumSubgroups = 326,
1680    OpTypeNamedBarrier = 327,
1681    OpNamedBarrierInitialize = 328,
1682    OpMemoryNamedBarrier = 329,
1683    OpModuleProcessed = 330,
1684    OpExecutionModeId = 331,
1685    OpDecorateId = 332,
1686    OpGroupNonUniformElect = 333,
1687    OpGroupNonUniformAll = 334,
1688    OpGroupNonUniformAny = 335,
1689    OpGroupNonUniformAllEqual = 336,
1690    OpGroupNonUniformBroadcast = 337,
1691    OpGroupNonUniformBroadcastFirst = 338,
1692    OpGroupNonUniformBallot = 339,
1693    OpGroupNonUniformInverseBallot = 340,
1694    OpGroupNonUniformBallotBitExtract = 341,
1695    OpGroupNonUniformBallotBitCount = 342,
1696    OpGroupNonUniformBallotFindLSB = 343,
1697    OpGroupNonUniformBallotFindMSB = 344,
1698    OpGroupNonUniformShuffle = 345,
1699    OpGroupNonUniformShuffleXor = 346,
1700    OpGroupNonUniformShuffleUp = 347,
1701    OpGroupNonUniformShuffleDown = 348,
1702    OpGroupNonUniformIAdd = 349,
1703    OpGroupNonUniformFAdd = 350,
1704    OpGroupNonUniformIMul = 351,
1705    OpGroupNonUniformFMul = 352,
1706    OpGroupNonUniformSMin = 353,
1707    OpGroupNonUniformUMin = 354,
1708    OpGroupNonUniformFMin = 355,
1709    OpGroupNonUniformSMax = 356,
1710    OpGroupNonUniformUMax = 357,
1711    OpGroupNonUniformFMax = 358,
1712    OpGroupNonUniformBitwiseAnd = 359,
1713    OpGroupNonUniformBitwiseOr = 360,
1714    OpGroupNonUniformBitwiseXor = 361,
1715    OpGroupNonUniformLogicalAnd = 362,
1716    OpGroupNonUniformLogicalOr = 363,
1717    OpGroupNonUniformLogicalXor = 364,
1718    OpGroupNonUniformQuadBroadcast = 365,
1719    OpGroupNonUniformQuadSwap = 366,
1720    OpCopyLogical = 400,
1721    OpPtrEqual = 401,
1722    OpPtrNotEqual = 402,
1723    OpPtrDiff = 403,
1724    OpColorAttachmentReadEXT = 4160,
1725    OpDepthAttachmentReadEXT = 4161,
1726    OpStencilAttachmentReadEXT = 4162,
1727    OpTerminateInvocation = 4416,
1728    OpSubgroupBallotKHR = 4421,
1729    OpSubgroupFirstInvocationKHR = 4422,
1730    OpSubgroupAllKHR = 4428,
1731    OpSubgroupAnyKHR = 4429,
1732    OpSubgroupAllEqualKHR = 4430,
1733    OpGroupNonUniformRotateKHR = 4431,
1734    OpSubgroupReadInvocationKHR = 4432,
1735    OpTraceRayKHR = 4445,
1736    OpExecuteCallableKHR = 4446,
1737    OpConvertUToAccelerationStructureKHR = 4447,
1738    OpIgnoreIntersectionKHR = 4448,
1739    OpTerminateRayKHR = 4449,
1740    OpSDot = 4450,
1741    OpSDotKHR = 4450,
1742    OpUDot = 4451,
1743    OpUDotKHR = 4451,
1744    OpSUDot = 4452,
1745    OpSUDotKHR = 4452,
1746    OpSDotAccSat = 4453,
1747    OpSDotAccSatKHR = 4453,
1748    OpUDotAccSat = 4454,
1749    OpUDotAccSatKHR = 4454,
1750    OpSUDotAccSat = 4455,
1751    OpSUDotAccSatKHR = 4455,
1752    OpTypeCooperativeMatrixKHR = 4456,
1753    OpCooperativeMatrixLoadKHR = 4457,
1754    OpCooperativeMatrixStoreKHR = 4458,
1755    OpCooperativeMatrixMulAddKHR = 4459,
1756    OpCooperativeMatrixLengthKHR = 4460,
1757    OpTypeRayQueryKHR = 4472,
1758    OpRayQueryInitializeKHR = 4473,
1759    OpRayQueryTerminateKHR = 4474,
1760    OpRayQueryGenerateIntersectionKHR = 4475,
1761    OpRayQueryConfirmIntersectionKHR = 4476,
1762    OpRayQueryProceedKHR = 4477,
1763    OpRayQueryGetIntersectionTypeKHR = 4479,
1764    OpImageSampleWeightedQCOM = 4480,
1765    OpImageBoxFilterQCOM = 4481,
1766    OpImageBlockMatchSSDQCOM = 4482,
1767    OpImageBlockMatchSADQCOM = 4483,
1768    OpGroupIAddNonUniformAMD = 5000,
1769    OpGroupFAddNonUniformAMD = 5001,
1770    OpGroupFMinNonUniformAMD = 5002,
1771    OpGroupUMinNonUniformAMD = 5003,
1772    OpGroupSMinNonUniformAMD = 5004,
1773    OpGroupFMaxNonUniformAMD = 5005,
1774    OpGroupUMaxNonUniformAMD = 5006,
1775    OpGroupSMaxNonUniformAMD = 5007,
1776    OpFragmentMaskFetchAMD = 5011,
1777    OpFragmentFetchAMD = 5012,
1778    OpReadClockKHR = 5056,
1779    OpFinalizeNodePayloadsAMDX = 5075,
1780    OpFinishWritingNodePayloadAMDX = 5078,
1781    OpInitializeNodePayloadsAMDX = 5090,
1782    OpHitObjectRecordHitMotionNV = 5249,
1783    OpHitObjectRecordHitWithIndexMotionNV = 5250,
1784    OpHitObjectRecordMissMotionNV = 5251,
1785    OpHitObjectGetWorldToObjectNV = 5252,
1786    OpHitObjectGetObjectToWorldNV = 5253,
1787    OpHitObjectGetObjectRayDirectionNV = 5254,
1788    OpHitObjectGetObjectRayOriginNV = 5255,
1789    OpHitObjectTraceRayMotionNV = 5256,
1790    OpHitObjectGetShaderRecordBufferHandleNV = 5257,
1791    OpHitObjectGetShaderBindingTableRecordIndexNV = 5258,
1792    OpHitObjectRecordEmptyNV = 5259,
1793    OpHitObjectTraceRayNV = 5260,
1794    OpHitObjectRecordHitNV = 5261,
1795    OpHitObjectRecordHitWithIndexNV = 5262,
1796    OpHitObjectRecordMissNV = 5263,
1797    OpHitObjectExecuteShaderNV = 5264,
1798    OpHitObjectGetCurrentTimeNV = 5265,
1799    OpHitObjectGetAttributesNV = 5266,
1800    OpHitObjectGetHitKindNV = 5267,
1801    OpHitObjectGetPrimitiveIndexNV = 5268,
1802    OpHitObjectGetGeometryIndexNV = 5269,
1803    OpHitObjectGetInstanceIdNV = 5270,
1804    OpHitObjectGetInstanceCustomIndexNV = 5271,
1805    OpHitObjectGetWorldRayDirectionNV = 5272,
1806    OpHitObjectGetWorldRayOriginNV = 5273,
1807    OpHitObjectGetRayTMaxNV = 5274,
1808    OpHitObjectGetRayTMinNV = 5275,
1809    OpHitObjectIsEmptyNV = 5276,
1810    OpHitObjectIsHitNV = 5277,
1811    OpHitObjectIsMissNV = 5278,
1812    OpReorderThreadWithHitObjectNV = 5279,
1813    OpReorderThreadWithHintNV = 5280,
1814    OpTypeHitObjectNV = 5281,
1815    OpImageSampleFootprintNV = 5283,
1816    OpEmitMeshTasksEXT = 5294,
1817    OpSetMeshOutputsEXT = 5295,
1818    OpGroupNonUniformPartitionNV = 5296,
1819    OpWritePackedPrimitiveIndices4x8NV = 5299,
1820    OpFetchMicroTriangleVertexPositionNV = 5300,
1821    OpFetchMicroTriangleVertexBarycentricNV = 5301,
1822    OpReportIntersectionKHR = 5334,
1823    OpReportIntersectionNV = 5334,
1824    OpIgnoreIntersectionNV = 5335,
1825    OpTerminateRayNV = 5336,
1826    OpTraceNV = 5337,
1827    OpTraceMotionNV = 5338,
1828    OpTraceRayMotionNV = 5339,
1829    OpRayQueryGetIntersectionTriangleVertexPositionsKHR = 5340,
1830    OpTypeAccelerationStructureKHR = 5341,
1831    OpTypeAccelerationStructureNV = 5341,
1832    OpExecuteCallableNV = 5344,
1833    OpTypeCooperativeMatrixNV = 5358,
1834    OpCooperativeMatrixLoadNV = 5359,
1835    OpCooperativeMatrixStoreNV = 5360,
1836    OpCooperativeMatrixMulAddNV = 5361,
1837    OpCooperativeMatrixLengthNV = 5362,
1838    OpBeginInvocationInterlockEXT = 5364,
1839    OpEndInvocationInterlockEXT = 5365,
1840    OpDemoteToHelperInvocation = 5380,
1841    OpDemoteToHelperInvocationEXT = 5380,
1842    OpIsHelperInvocationEXT = 5381,
1843    OpConvertUToImageNV = 5391,
1844    OpConvertUToSamplerNV = 5392,
1845    OpConvertImageToUNV = 5393,
1846    OpConvertSamplerToUNV = 5394,
1847    OpConvertUToSampledImageNV = 5395,
1848    OpConvertSampledImageToUNV = 5396,
1849    OpSamplerImageAddressingModeNV = 5397,
1850    OpSubgroupShuffleINTEL = 5571,
1851    OpSubgroupShuffleDownINTEL = 5572,
1852    OpSubgroupShuffleUpINTEL = 5573,
1853    OpSubgroupShuffleXorINTEL = 5574,
1854    OpSubgroupBlockReadINTEL = 5575,
1855    OpSubgroupBlockWriteINTEL = 5576,
1856    OpSubgroupImageBlockReadINTEL = 5577,
1857    OpSubgroupImageBlockWriteINTEL = 5578,
1858    OpSubgroupImageMediaBlockReadINTEL = 5580,
1859    OpSubgroupImageMediaBlockWriteINTEL = 5581,
1860    OpUCountLeadingZerosINTEL = 5585,
1861    OpUCountTrailingZerosINTEL = 5586,
1862    OpAbsISubINTEL = 5587,
1863    OpAbsUSubINTEL = 5588,
1864    OpIAddSatINTEL = 5589,
1865    OpUAddSatINTEL = 5590,
1866    OpIAverageINTEL = 5591,
1867    OpUAverageINTEL = 5592,
1868    OpIAverageRoundedINTEL = 5593,
1869    OpUAverageRoundedINTEL = 5594,
1870    OpISubSatINTEL = 5595,
1871    OpUSubSatINTEL = 5596,
1872    OpIMul32x16INTEL = 5597,
1873    OpUMul32x16INTEL = 5598,
1874    OpConstantFunctionPointerINTEL = 5600,
1875    OpFunctionPointerCallINTEL = 5601,
1876    OpAsmTargetINTEL = 5609,
1877    OpAsmINTEL = 5610,
1878    OpAsmCallINTEL = 5611,
1879    OpAtomicFMinEXT = 5614,
1880    OpAtomicFMaxEXT = 5615,
1881    OpAssumeTrueKHR = 5630,
1882    OpExpectKHR = 5631,
1883    OpDecorateString = 5632,
1884    OpDecorateStringGOOGLE = 5632,
1885    OpMemberDecorateString = 5633,
1886    OpMemberDecorateStringGOOGLE = 5633,
1887    OpVmeImageINTEL = 5699,
1888    OpTypeVmeImageINTEL = 5700,
1889    OpTypeAvcImePayloadINTEL = 5701,
1890    OpTypeAvcRefPayloadINTEL = 5702,
1891    OpTypeAvcSicPayloadINTEL = 5703,
1892    OpTypeAvcMcePayloadINTEL = 5704,
1893    OpTypeAvcMceResultINTEL = 5705,
1894    OpTypeAvcImeResultINTEL = 5706,
1895    OpTypeAvcImeResultSingleReferenceStreamoutINTEL = 5707,
1896    OpTypeAvcImeResultDualReferenceStreamoutINTEL = 5708,
1897    OpTypeAvcImeSingleReferenceStreaminINTEL = 5709,
1898    OpTypeAvcImeDualReferenceStreaminINTEL = 5710,
1899    OpTypeAvcRefResultINTEL = 5711,
1900    OpTypeAvcSicResultINTEL = 5712,
1901    OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL = 5713,
1902    OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL = 5714,
1903    OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL = 5715,
1904    OpSubgroupAvcMceSetInterShapePenaltyINTEL = 5716,
1905    OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL = 5717,
1906    OpSubgroupAvcMceSetInterDirectionPenaltyINTEL = 5718,
1907    OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL = 5719,
1908    OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL = 5720,
1909    OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL = 5721,
1910    OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL = 5722,
1911    OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL = 5723,
1912    OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL = 5724,
1913    OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL = 5725,
1914    OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL = 5726,
1915    OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL = 5727,
1916    OpSubgroupAvcMceSetAcOnlyHaarINTEL = 5728,
1917    OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL = 5729,
1918    OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL = 5730,
1919    OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL = 5731,
1920    OpSubgroupAvcMceConvertToImePayloadINTEL = 5732,
1921    OpSubgroupAvcMceConvertToImeResultINTEL = 5733,
1922    OpSubgroupAvcMceConvertToRefPayloadINTEL = 5734,
1923    OpSubgroupAvcMceConvertToRefResultINTEL = 5735,
1924    OpSubgroupAvcMceConvertToSicPayloadINTEL = 5736,
1925    OpSubgroupAvcMceConvertToSicResultINTEL = 5737,
1926    OpSubgroupAvcMceGetMotionVectorsINTEL = 5738,
1927    OpSubgroupAvcMceGetInterDistortionsINTEL = 5739,
1928    OpSubgroupAvcMceGetBestInterDistortionsINTEL = 5740,
1929    OpSubgroupAvcMceGetInterMajorShapeINTEL = 5741,
1930    OpSubgroupAvcMceGetInterMinorShapeINTEL = 5742,
1931    OpSubgroupAvcMceGetInterDirectionsINTEL = 5743,
1932    OpSubgroupAvcMceGetInterMotionVectorCountINTEL = 5744,
1933    OpSubgroupAvcMceGetInterReferenceIdsINTEL = 5745,
1934    OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL = 5746,
1935    OpSubgroupAvcImeInitializeINTEL = 5747,
1936    OpSubgroupAvcImeSetSingleReferenceINTEL = 5748,
1937    OpSubgroupAvcImeSetDualReferenceINTEL = 5749,
1938    OpSubgroupAvcImeRefWindowSizeINTEL = 5750,
1939    OpSubgroupAvcImeAdjustRefOffsetINTEL = 5751,
1940    OpSubgroupAvcImeConvertToMcePayloadINTEL = 5752,
1941    OpSubgroupAvcImeSetMaxMotionVectorCountINTEL = 5753,
1942    OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL = 5754,
1943    OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL = 5755,
1944    OpSubgroupAvcImeSetWeightedSadINTEL = 5756,
1945    OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL = 5757,
1946    OpSubgroupAvcImeEvaluateWithDualReferenceINTEL = 5758,
1947    OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL = 5759,
1948    OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL = 5760,
1949    OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL = 5761,
1950    OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL = 5762,
1951    OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL = 5763,
1952    OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL = 5764,
1953    OpSubgroupAvcImeConvertToMceResultINTEL = 5765,
1954    OpSubgroupAvcImeGetSingleReferenceStreaminINTEL = 5766,
1955    OpSubgroupAvcImeGetDualReferenceStreaminINTEL = 5767,
1956    OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL = 5768,
1957    OpSubgroupAvcImeStripDualReferenceStreamoutINTEL = 5769,
1958    OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL = 5770,
1959    OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL = 5771,
1960    OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL = 5772,
1961    OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL = 5773,
1962    OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL = 5774,
1963    OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL = 5775,
1964    OpSubgroupAvcImeGetBorderReachedINTEL = 5776,
1965    OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL = 5777,
1966    OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL = 5778,
1967    OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL = 5779,
1968    OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL = 5780,
1969    OpSubgroupAvcFmeInitializeINTEL = 5781,
1970    OpSubgroupAvcBmeInitializeINTEL = 5782,
1971    OpSubgroupAvcRefConvertToMcePayloadINTEL = 5783,
1972    OpSubgroupAvcRefSetBidirectionalMixDisableINTEL = 5784,
1973    OpSubgroupAvcRefSetBilinearFilterEnableINTEL = 5785,
1974    OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL = 5786,
1975    OpSubgroupAvcRefEvaluateWithDualReferenceINTEL = 5787,
1976    OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL = 5788,
1977    OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL = 5789,
1978    OpSubgroupAvcRefConvertToMceResultINTEL = 5790,
1979    OpSubgroupAvcSicInitializeINTEL = 5791,
1980    OpSubgroupAvcSicConfigureSkcINTEL = 5792,
1981    OpSubgroupAvcSicConfigureIpeLumaINTEL = 5793,
1982    OpSubgroupAvcSicConfigureIpeLumaChromaINTEL = 5794,
1983    OpSubgroupAvcSicGetMotionVectorMaskINTEL = 5795,
1984    OpSubgroupAvcSicConvertToMcePayloadINTEL = 5796,
1985    OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL = 5797,
1986    OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL = 5798,
1987    OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL = 5799,
1988    OpSubgroupAvcSicSetBilinearFilterEnableINTEL = 5800,
1989    OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL = 5801,
1990    OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL = 5802,
1991    OpSubgroupAvcSicEvaluateIpeINTEL = 5803,
1992    OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL = 5804,
1993    OpSubgroupAvcSicEvaluateWithDualReferenceINTEL = 5805,
1994    OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL = 5806,
1995    OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL = 5807,
1996    OpSubgroupAvcSicConvertToMceResultINTEL = 5808,
1997    OpSubgroupAvcSicGetIpeLumaShapeINTEL = 5809,
1998    OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL = 5810,
1999    OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL = 5811,
2000    OpSubgroupAvcSicGetPackedIpeLumaModesINTEL = 5812,
2001    OpSubgroupAvcSicGetIpeChromaModeINTEL = 5813,
2002    OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL = 5814,
2003    OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL = 5815,
2004    OpSubgroupAvcSicGetInterRawSadsINTEL = 5816,
2005    OpVariableLengthArrayINTEL = 5818,
2006    OpSaveMemoryINTEL = 5819,
2007    OpRestoreMemoryINTEL = 5820,
2008    OpArbitraryFloatSinCosPiINTEL = 5840,
2009    OpArbitraryFloatCastINTEL = 5841,
2010    OpArbitraryFloatCastFromIntINTEL = 5842,
2011    OpArbitraryFloatCastToIntINTEL = 5843,
2012    OpArbitraryFloatAddINTEL = 5846,
2013    OpArbitraryFloatSubINTEL = 5847,
2014    OpArbitraryFloatMulINTEL = 5848,
2015    OpArbitraryFloatDivINTEL = 5849,
2016    OpArbitraryFloatGTINTEL = 5850,
2017    OpArbitraryFloatGEINTEL = 5851,
2018    OpArbitraryFloatLTINTEL = 5852,
2019    OpArbitraryFloatLEINTEL = 5853,
2020    OpArbitraryFloatEQINTEL = 5854,
2021    OpArbitraryFloatRecipINTEL = 5855,
2022    OpArbitraryFloatRSqrtINTEL = 5856,
2023    OpArbitraryFloatCbrtINTEL = 5857,
2024    OpArbitraryFloatHypotINTEL = 5858,
2025    OpArbitraryFloatSqrtINTEL = 5859,
2026    OpArbitraryFloatLogINTEL = 5860,
2027    OpArbitraryFloatLog2INTEL = 5861,
2028    OpArbitraryFloatLog10INTEL = 5862,
2029    OpArbitraryFloatLog1pINTEL = 5863,
2030    OpArbitraryFloatExpINTEL = 5864,
2031    OpArbitraryFloatExp2INTEL = 5865,
2032    OpArbitraryFloatExp10INTEL = 5866,
2033    OpArbitraryFloatExpm1INTEL = 5867,
2034    OpArbitraryFloatSinINTEL = 5868,
2035    OpArbitraryFloatCosINTEL = 5869,
2036    OpArbitraryFloatSinCosINTEL = 5870,
2037    OpArbitraryFloatSinPiINTEL = 5871,
2038    OpArbitraryFloatCosPiINTEL = 5872,
2039    OpArbitraryFloatASinINTEL = 5873,
2040    OpArbitraryFloatASinPiINTEL = 5874,
2041    OpArbitraryFloatACosINTEL = 5875,
2042    OpArbitraryFloatACosPiINTEL = 5876,
2043    OpArbitraryFloatATanINTEL = 5877,
2044    OpArbitraryFloatATanPiINTEL = 5878,
2045    OpArbitraryFloatATan2INTEL = 5879,
2046    OpArbitraryFloatPowINTEL = 5880,
2047    OpArbitraryFloatPowRINTEL = 5881,
2048    OpArbitraryFloatPowNINTEL = 5882,
2049    OpLoopControlINTEL = 5887,
2050    OpAliasDomainDeclINTEL = 5911,
2051    OpAliasScopeDeclINTEL = 5912,
2052    OpAliasScopeListDeclINTEL = 5913,
2053    OpFixedSqrtINTEL = 5923,
2054    OpFixedRecipINTEL = 5924,
2055    OpFixedRsqrtINTEL = 5925,
2056    OpFixedSinINTEL = 5926,
2057    OpFixedCosINTEL = 5927,
2058    OpFixedSinCosINTEL = 5928,
2059    OpFixedSinPiINTEL = 5929,
2060    OpFixedCosPiINTEL = 5930,
2061    OpFixedSinCosPiINTEL = 5931,
2062    OpFixedLogINTEL = 5932,
2063    OpFixedExpINTEL = 5933,
2064    OpPtrCastToCrossWorkgroupINTEL = 5934,
2065    OpCrossWorkgroupCastToPtrINTEL = 5938,
2066    OpReadPipeBlockingINTEL = 5946,
2067    OpWritePipeBlockingINTEL = 5947,
2068    OpFPGARegINTEL = 5949,
2069    OpRayQueryGetRayTMinKHR = 6016,
2070    OpRayQueryGetRayFlagsKHR = 6017,
2071    OpRayQueryGetIntersectionTKHR = 6018,
2072    OpRayQueryGetIntersectionInstanceCustomIndexKHR = 6019,
2073    OpRayQueryGetIntersectionInstanceIdKHR = 6020,
2074    OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR = 6021,
2075    OpRayQueryGetIntersectionGeometryIndexKHR = 6022,
2076    OpRayQueryGetIntersectionPrimitiveIndexKHR = 6023,
2077    OpRayQueryGetIntersectionBarycentricsKHR = 6024,
2078    OpRayQueryGetIntersectionFrontFaceKHR = 6025,
2079    OpRayQueryGetIntersectionCandidateAABBOpaqueKHR = 6026,
2080    OpRayQueryGetIntersectionObjectRayDirectionKHR = 6027,
2081    OpRayQueryGetIntersectionObjectRayOriginKHR = 6028,
2082    OpRayQueryGetWorldRayDirectionKHR = 6029,
2083    OpRayQueryGetWorldRayOriginKHR = 6030,
2084    OpRayQueryGetIntersectionObjectToWorldKHR = 6031,
2085    OpRayQueryGetIntersectionWorldToObjectKHR = 6032,
2086    OpAtomicFAddEXT = 6035,
2087    OpTypeBufferSurfaceINTEL = 6086,
2088    OpTypeStructContinuedINTEL = 6090,
2089    OpConstantCompositeContinuedINTEL = 6091,
2090    OpSpecConstantCompositeContinuedINTEL = 6092,
2091    OpCompositeConstructContinuedINTEL = 6096,
2092    OpConvertFToBF16INTEL = 6116,
2093    OpConvertBF16ToFINTEL = 6117,
2094    OpControlBarrierArriveINTEL = 6142,
2095    OpControlBarrierWaitINTEL = 6143,
2096    OpGroupIMulKHR = 6401,
2097    OpGroupFMulKHR = 6402,
2098    OpGroupBitwiseAndKHR = 6403,
2099    OpGroupBitwiseOrKHR = 6404,
2100    OpGroupBitwiseXorKHR = 6405,
2101    OpGroupLogicalAndKHR = 6406,
2102    OpGroupLogicalOrKHR = 6407,
2103    OpGroupLogicalXorKHR = 6408,
2104    Max = 0x7fffffff,
2105};
2106
2107#ifdef SPV_ENABLE_UTILITY_CODE
2108#ifndef __cplusplus
2109#include <stdbool.h>
2110#endif
2111inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
2112    *hasResult = *hasResultType = false;
2113    switch (opcode) {
2114    default: /* unknown opcode */ break;
2115    case Op::OpNop: *hasResult = false; *hasResultType = false; break;
2116    case Op::OpUndef: *hasResult = true; *hasResultType = true; break;
2117    case Op::OpSourceContinued: *hasResult = false; *hasResultType = false; break;
2118    case Op::OpSource: *hasResult = false; *hasResultType = false; break;
2119    case Op::OpSourceExtension: *hasResult = false; *hasResultType = false; break;
2120    case Op::OpName: *hasResult = false; *hasResultType = false; break;
2121    case Op::OpMemberName: *hasResult = false; *hasResultType = false; break;
2122    case Op::OpString: *hasResult = true; *hasResultType = false; break;
2123    case Op::OpLine: *hasResult = false; *hasResultType = false; break;
2124    case Op::OpExtension: *hasResult = false; *hasResultType = false; break;
2125    case Op::OpExtInstImport: *hasResult = true; *hasResultType = false; break;
2126    case Op::OpExtInst: *hasResult = true; *hasResultType = true; break;
2127    case Op::OpMemoryModel: *hasResult = false; *hasResultType = false; break;
2128    case Op::OpEntryPoint: *hasResult = false; *hasResultType = false; break;
2129    case Op::OpExecutionMode: *hasResult = false; *hasResultType = false; break;
2130    case Op::OpCapability: *hasResult = false; *hasResultType = false; break;
2131    case Op::OpTypeVoid: *hasResult = true; *hasResultType = false; break;
2132    case Op::OpTypeBool: *hasResult = true; *hasResultType = false; break;
2133    case Op::OpTypeInt: *hasResult = true; *hasResultType = false; break;
2134    case Op::OpTypeFloat: *hasResult = true; *hasResultType = false; break;
2135    case Op::OpTypeVector: *hasResult = true; *hasResultType = false; break;
2136    case Op::OpTypeMatrix: *hasResult = true; *hasResultType = false; break;
2137    case Op::OpTypeImage: *hasResult = true; *hasResultType = false; break;
2138    case Op::OpTypeSampler: *hasResult = true; *hasResultType = false; break;
2139    case Op::OpTypeSampledImage: *hasResult = true; *hasResultType = false; break;
2140    case Op::OpTypeArray: *hasResult = true; *hasResultType = false; break;
2141    case Op::OpTypeRuntimeArray: *hasResult = true; *hasResultType = false; break;
2142    case Op::OpTypeStruct: *hasResult = true; *hasResultType = false; break;
2143    case Op::OpTypeOpaque: *hasResult = true; *hasResultType = false; break;
2144    case Op::OpTypePointer: *hasResult = true; *hasResultType = false; break;
2145    case Op::OpTypeFunction: *hasResult = true; *hasResultType = false; break;
2146    case Op::OpTypeEvent: *hasResult = true; *hasResultType = false; break;
2147    case Op::OpTypeDeviceEvent: *hasResult = true; *hasResultType = false; break;
2148    case Op::OpTypeReserveId: *hasResult = true; *hasResultType = false; break;
2149    case Op::OpTypeQueue: *hasResult = true; *hasResultType = false; break;
2150    case Op::OpTypePipe: *hasResult = true; *hasResultType = false; break;
2151    case Op::OpTypeForwardPointer: *hasResult = false; *hasResultType = false; break;
2152    case Op::OpConstantTrue: *hasResult = true; *hasResultType = true; break;
2153    case Op::OpConstantFalse: *hasResult = true; *hasResultType = true; break;
2154    case Op::OpConstant: *hasResult = true; *hasResultType = true; break;
2155    case Op::OpConstantComposite: *hasResult = true; *hasResultType = true; break;
2156    case Op::OpConstantSampler: *hasResult = true; *hasResultType = true; break;
2157    case Op::OpConstantNull: *hasResult = true; *hasResultType = true; break;
2158    case Op::OpSpecConstantTrue: *hasResult = true; *hasResultType = true; break;
2159    case Op::OpSpecConstantFalse: *hasResult = true; *hasResultType = true; break;
2160    case Op::OpSpecConstant: *hasResult = true; *hasResultType = true; break;
2161    case Op::OpSpecConstantComposite: *hasResult = true; *hasResultType = true; break;
2162    case Op::OpSpecConstantOp: *hasResult = true; *hasResultType = true; break;
2163    case Op::OpFunction: *hasResult = true; *hasResultType = true; break;
2164    case Op::OpFunctionParameter: *hasResult = true; *hasResultType = true; break;
2165    case Op::OpFunctionEnd: *hasResult = false; *hasResultType = false; break;
2166    case Op::OpFunctionCall: *hasResult = true; *hasResultType = true; break;
2167    case Op::OpVariable: *hasResult = true; *hasResultType = true; break;
2168    case Op::OpImageTexelPointer: *hasResult = true; *hasResultType = true; break;
2169    case Op::OpLoad: *hasResult = true; *hasResultType = true; break;
2170    case Op::OpStore: *hasResult = false; *hasResultType = false; break;
2171    case Op::OpCopyMemory: *hasResult = false; *hasResultType = false; break;
2172    case Op::OpCopyMemorySized: *hasResult = false; *hasResultType = false; break;
2173    case Op::OpAccessChain: *hasResult = true; *hasResultType = true; break;
2174    case Op::OpInBoundsAccessChain: *hasResult = true; *hasResultType = true; break;
2175    case Op::OpPtrAccessChain: *hasResult = true; *hasResultType = true; break;
2176    case Op::OpArrayLength: *hasResult = true; *hasResultType = true; break;
2177    case Op::OpGenericPtrMemSemantics: *hasResult = true; *hasResultType = true; break;
2178    case Op::OpInBoundsPtrAccessChain: *hasResult = true; *hasResultType = true; break;
2179    case Op::OpDecorate: *hasResult = false; *hasResultType = false; break;
2180    case Op::OpMemberDecorate: *hasResult = false; *hasResultType = false; break;
2181    case Op::OpDecorationGroup: *hasResult = true; *hasResultType = false; break;
2182    case Op::OpGroupDecorate: *hasResult = false; *hasResultType = false; break;
2183    case Op::OpGroupMemberDecorate: *hasResult = false; *hasResultType = false; break;
2184    case Op::OpVectorExtractDynamic: *hasResult = true; *hasResultType = true; break;
2185    case Op::OpVectorInsertDynamic: *hasResult = true; *hasResultType = true; break;
2186    case Op::OpVectorShuffle: *hasResult = true; *hasResultType = true; break;
2187    case Op::OpCompositeConstruct: *hasResult = true; *hasResultType = true; break;
2188    case Op::OpCompositeExtract: *hasResult = true; *hasResultType = true; break;
2189    case Op::OpCompositeInsert: *hasResult = true; *hasResultType = true; break;
2190    case Op::OpCopyObject: *hasResult = true; *hasResultType = true; break;
2191    case Op::OpTranspose: *hasResult = true; *hasResultType = true; break;
2192    case Op::OpSampledImage: *hasResult = true; *hasResultType = true; break;
2193    case Op::OpImageSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
2194    case Op::OpImageSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
2195    case Op::OpImageSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2196    case Op::OpImageSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2197    case Op::OpImageSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
2198    case Op::OpImageSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
2199    case Op::OpImageSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2200    case Op::OpImageSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2201    case Op::OpImageFetch: *hasResult = true; *hasResultType = true; break;
2202    case Op::OpImageGather: *hasResult = true; *hasResultType = true; break;
2203    case Op::OpImageDrefGather: *hasResult = true; *hasResultType = true; break;
2204    case Op::OpImageRead: *hasResult = true; *hasResultType = true; break;
2205    case Op::OpImageWrite: *hasResult = false; *hasResultType = false; break;
2206    case Op::OpImage: *hasResult = true; *hasResultType = true; break;
2207    case Op::OpImageQueryFormat: *hasResult = true; *hasResultType = true; break;
2208    case Op::OpImageQueryOrder: *hasResult = true; *hasResultType = true; break;
2209    case Op::OpImageQuerySizeLod: *hasResult = true; *hasResultType = true; break;
2210    case Op::OpImageQuerySize: *hasResult = true; *hasResultType = true; break;
2211    case Op::OpImageQueryLod: *hasResult = true; *hasResultType = true; break;
2212    case Op::OpImageQueryLevels: *hasResult = true; *hasResultType = true; break;
2213    case Op::OpImageQuerySamples: *hasResult = true; *hasResultType = true; break;
2214    case Op::OpConvertFToU: *hasResult = true; *hasResultType = true; break;
2215    case Op::OpConvertFToS: *hasResult = true; *hasResultType = true; break;
2216    case Op::OpConvertSToF: *hasResult = true; *hasResultType = true; break;
2217    case Op::OpConvertUToF: *hasResult = true; *hasResultType = true; break;
2218    case Op::OpUConvert: *hasResult = true; *hasResultType = true; break;
2219    case Op::OpSConvert: *hasResult = true; *hasResultType = true; break;
2220    case Op::OpFConvert: *hasResult = true; *hasResultType = true; break;
2221    case Op::OpQuantizeToF16: *hasResult = true; *hasResultType = true; break;
2222    case Op::OpConvertPtrToU: *hasResult = true; *hasResultType = true; break;
2223    case Op::OpSatConvertSToU: *hasResult = true; *hasResultType = true; break;
2224    case Op::OpSatConvertUToS: *hasResult = true; *hasResultType = true; break;
2225    case Op::OpConvertUToPtr: *hasResult = true; *hasResultType = true; break;
2226    case Op::OpPtrCastToGeneric: *hasResult = true; *hasResultType = true; break;
2227    case Op::OpGenericCastToPtr: *hasResult = true; *hasResultType = true; break;
2228    case Op::OpGenericCastToPtrExplicit: *hasResult = true; *hasResultType = true; break;
2229    case Op::OpBitcast: *hasResult = true; *hasResultType = true; break;
2230    case Op::OpSNegate: *hasResult = true; *hasResultType = true; break;
2231    case Op::OpFNegate: *hasResult = true; *hasResultType = true; break;
2232    case Op::OpIAdd: *hasResult = true; *hasResultType = true; break;
2233    case Op::OpFAdd: *hasResult = true; *hasResultType = true; break;
2234    case Op::OpISub: *hasResult = true; *hasResultType = true; break;
2235    case Op::OpFSub: *hasResult = true; *hasResultType = true; break;
2236    case Op::OpIMul: *hasResult = true; *hasResultType = true; break;
2237    case Op::OpFMul: *hasResult = true; *hasResultType = true; break;
2238    case Op::OpUDiv: *hasResult = true; *hasResultType = true; break;
2239    case Op::OpSDiv: *hasResult = true; *hasResultType = true; break;
2240    case Op::OpFDiv: *hasResult = true; *hasResultType = true; break;
2241    case Op::OpUMod: *hasResult = true; *hasResultType = true; break;
2242    case Op::OpSRem: *hasResult = true; *hasResultType = true; break;
2243    case Op::OpSMod: *hasResult = true; *hasResultType = true; break;
2244    case Op::OpFRem: *hasResult = true; *hasResultType = true; break;
2245    case Op::OpFMod: *hasResult = true; *hasResultType = true; break;
2246    case Op::OpVectorTimesScalar: *hasResult = true; *hasResultType = true; break;
2247    case Op::OpMatrixTimesScalar: *hasResult = true; *hasResultType = true; break;
2248    case Op::OpVectorTimesMatrix: *hasResult = true; *hasResultType = true; break;
2249    case Op::OpMatrixTimesVector: *hasResult = true; *hasResultType = true; break;
2250    case Op::OpMatrixTimesMatrix: *hasResult = true; *hasResultType = true; break;
2251    case Op::OpOuterProduct: *hasResult = true; *hasResultType = true; break;
2252    case Op::OpDot: *hasResult = true; *hasResultType = true; break;
2253    case Op::OpIAddCarry: *hasResult = true; *hasResultType = true; break;
2254    case Op::OpISubBorrow: *hasResult = true; *hasResultType = true; break;
2255    case Op::OpUMulExtended: *hasResult = true; *hasResultType = true; break;
2256    case Op::OpSMulExtended: *hasResult = true; *hasResultType = true; break;
2257    case Op::OpAny: *hasResult = true; *hasResultType = true; break;
2258    case Op::OpAll: *hasResult = true; *hasResultType = true; break;
2259    case Op::OpIsNan: *hasResult = true; *hasResultType = true; break;
2260    case Op::OpIsInf: *hasResult = true; *hasResultType = true; break;
2261    case Op::OpIsFinite: *hasResult = true; *hasResultType = true; break;
2262    case Op::OpIsNormal: *hasResult = true; *hasResultType = true; break;
2263    case Op::OpSignBitSet: *hasResult = true; *hasResultType = true; break;
2264    case Op::OpLessOrGreater: *hasResult = true; *hasResultType = true; break;
2265    case Op::OpOrdered: *hasResult = true; *hasResultType = true; break;
2266    case Op::OpUnordered: *hasResult = true; *hasResultType = true; break;
2267    case Op::OpLogicalEqual: *hasResult = true; *hasResultType = true; break;
2268    case Op::OpLogicalNotEqual: *hasResult = true; *hasResultType = true; break;
2269    case Op::OpLogicalOr: *hasResult = true; *hasResultType = true; break;
2270    case Op::OpLogicalAnd: *hasResult = true; *hasResultType = true; break;
2271    case Op::OpLogicalNot: *hasResult = true; *hasResultType = true; break;
2272    case Op::OpSelect: *hasResult = true; *hasResultType = true; break;
2273    case Op::OpIEqual: *hasResult = true; *hasResultType = true; break;
2274    case Op::OpINotEqual: *hasResult = true; *hasResultType = true; break;
2275    case Op::OpUGreaterThan: *hasResult = true; *hasResultType = true; break;
2276    case Op::OpSGreaterThan: *hasResult = true; *hasResultType = true; break;
2277    case Op::OpUGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
2278    case Op::OpSGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
2279    case Op::OpULessThan: *hasResult = true; *hasResultType = true; break;
2280    case Op::OpSLessThan: *hasResult = true; *hasResultType = true; break;
2281    case Op::OpULessThanEqual: *hasResult = true; *hasResultType = true; break;
2282    case Op::OpSLessThanEqual: *hasResult = true; *hasResultType = true; break;
2283    case Op::OpFOrdEqual: *hasResult = true; *hasResultType = true; break;
2284    case Op::OpFUnordEqual: *hasResult = true; *hasResultType = true; break;
2285    case Op::OpFOrdNotEqual: *hasResult = true; *hasResultType = true; break;
2286    case Op::OpFUnordNotEqual: *hasResult = true; *hasResultType = true; break;
2287    case Op::OpFOrdLessThan: *hasResult = true; *hasResultType = true; break;
2288    case Op::OpFUnordLessThan: *hasResult = true; *hasResultType = true; break;
2289    case Op::OpFOrdGreaterThan: *hasResult = true; *hasResultType = true; break;
2290    case Op::OpFUnordGreaterThan: *hasResult = true; *hasResultType = true; break;
2291    case Op::OpFOrdLessThanEqual: *hasResult = true; *hasResultType = true; break;
2292    case Op::OpFUnordLessThanEqual: *hasResult = true; *hasResultType = true; break;
2293    case Op::OpFOrdGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
2294    case Op::OpFUnordGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
2295    case Op::OpShiftRightLogical: *hasResult = true; *hasResultType = true; break;
2296    case Op::OpShiftRightArithmetic: *hasResult = true; *hasResultType = true; break;
2297    case Op::OpShiftLeftLogical: *hasResult = true; *hasResultType = true; break;
2298    case Op::OpBitwiseOr: *hasResult = true; *hasResultType = true; break;
2299    case Op::OpBitwiseXor: *hasResult = true; *hasResultType = true; break;
2300    case Op::OpBitwiseAnd: *hasResult = true; *hasResultType = true; break;
2301    case Op::OpNot: *hasResult = true; *hasResultType = true; break;
2302    case Op::OpBitFieldInsert: *hasResult = true; *hasResultType = true; break;
2303    case Op::OpBitFieldSExtract: *hasResult = true; *hasResultType = true; break;
2304    case Op::OpBitFieldUExtract: *hasResult = true; *hasResultType = true; break;
2305    case Op::OpBitReverse: *hasResult = true; *hasResultType = true; break;
2306    case Op::OpBitCount: *hasResult = true; *hasResultType = true; break;
2307    case Op::OpDPdx: *hasResult = true; *hasResultType = true; break;
2308    case Op::OpDPdy: *hasResult = true; *hasResultType = true; break;
2309    case Op::OpFwidth: *hasResult = true; *hasResultType = true; break;
2310    case Op::OpDPdxFine: *hasResult = true; *hasResultType = true; break;
2311    case Op::OpDPdyFine: *hasResult = true; *hasResultType = true; break;
2312    case Op::OpFwidthFine: *hasResult = true; *hasResultType = true; break;
2313    case Op::OpDPdxCoarse: *hasResult = true; *hasResultType = true; break;
2314    case Op::OpDPdyCoarse: *hasResult = true; *hasResultType = true; break;
2315    case Op::OpFwidthCoarse: *hasResult = true; *hasResultType = true; break;
2316    case Op::OpEmitVertex: *hasResult = false; *hasResultType = false; break;
2317    case Op::OpEndPrimitive: *hasResult = false; *hasResultType = false; break;
2318    case Op::OpEmitStreamVertex: *hasResult = false; *hasResultType = false; break;
2319    case Op::OpEndStreamPrimitive: *hasResult = false; *hasResultType = false; break;
2320    case Op::OpControlBarrier: *hasResult = false; *hasResultType = false; break;
2321    case Op::OpMemoryBarrier: *hasResult = false; *hasResultType = false; break;
2322    case Op::OpAtomicLoad: *hasResult = true; *hasResultType = true; break;
2323    case Op::OpAtomicStore: *hasResult = false; *hasResultType = false; break;
2324    case Op::OpAtomicExchange: *hasResult = true; *hasResultType = true; break;
2325    case Op::OpAtomicCompareExchange: *hasResult = true; *hasResultType = true; break;
2326    case Op::OpAtomicCompareExchangeWeak: *hasResult = true; *hasResultType = true; break;
2327    case Op::OpAtomicIIncrement: *hasResult = true; *hasResultType = true; break;
2328    case Op::OpAtomicIDecrement: *hasResult = true; *hasResultType = true; break;
2329    case Op::OpAtomicIAdd: *hasResult = true; *hasResultType = true; break;
2330    case Op::OpAtomicISub: *hasResult = true; *hasResultType = true; break;
2331    case Op::OpAtomicSMin: *hasResult = true; *hasResultType = true; break;
2332    case Op::OpAtomicUMin: *hasResult = true; *hasResultType = true; break;
2333    case Op::OpAtomicSMax: *hasResult = true; *hasResultType = true; break;
2334    case Op::OpAtomicUMax: *hasResult = true; *hasResultType = true; break;
2335    case Op::OpAtomicAnd: *hasResult = true; *hasResultType = true; break;
2336    case Op::OpAtomicOr: *hasResult = true; *hasResultType = true; break;
2337    case Op::OpAtomicXor: *hasResult = true; *hasResultType = true; break;
2338    case Op::OpPhi: *hasResult = true; *hasResultType = true; break;
2339    case Op::OpLoopMerge: *hasResult = false; *hasResultType = false; break;
2340    case Op::OpSelectionMerge: *hasResult = false; *hasResultType = false; break;
2341    case Op::OpLabel: *hasResult = true; *hasResultType = false; break;
2342    case Op::OpBranch: *hasResult = false; *hasResultType = false; break;
2343    case Op::OpBranchConditional: *hasResult = false; *hasResultType = false; break;
2344    case Op::OpSwitch: *hasResult = false; *hasResultType = false; break;
2345    case Op::OpKill: *hasResult = false; *hasResultType = false; break;
2346    case Op::OpReturn: *hasResult = false; *hasResultType = false; break;
2347    case Op::OpReturnValue: *hasResult = false; *hasResultType = false; break;
2348    case Op::OpUnreachable: *hasResult = false; *hasResultType = false; break;
2349    case Op::OpLifetimeStart: *hasResult = false; *hasResultType = false; break;
2350    case Op::OpLifetimeStop: *hasResult = false; *hasResultType = false; break;
2351    case Op::OpGroupAsyncCopy: *hasResult = true; *hasResultType = true; break;
2352    case Op::OpGroupWaitEvents: *hasResult = false; *hasResultType = false; break;
2353    case Op::OpGroupAll: *hasResult = true; *hasResultType = true; break;
2354    case Op::OpGroupAny: *hasResult = true; *hasResultType = true; break;
2355    case Op::OpGroupBroadcast: *hasResult = true; *hasResultType = true; break;
2356    case Op::OpGroupIAdd: *hasResult = true; *hasResultType = true; break;
2357    case Op::OpGroupFAdd: *hasResult = true; *hasResultType = true; break;
2358    case Op::OpGroupFMin: *hasResult = true; *hasResultType = true; break;
2359    case Op::OpGroupUMin: *hasResult = true; *hasResultType = true; break;
2360    case Op::OpGroupSMin: *hasResult = true; *hasResultType = true; break;
2361    case Op::OpGroupFMax: *hasResult = true; *hasResultType = true; break;
2362    case Op::OpGroupUMax: *hasResult = true; *hasResultType = true; break;
2363    case Op::OpGroupSMax: *hasResult = true; *hasResultType = true; break;
2364    case Op::OpReadPipe: *hasResult = true; *hasResultType = true; break;
2365    case Op::OpWritePipe: *hasResult = true; *hasResultType = true; break;
2366    case Op::OpReservedReadPipe: *hasResult = true; *hasResultType = true; break;
2367    case Op::OpReservedWritePipe: *hasResult = true; *hasResultType = true; break;
2368    case Op::OpReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
2369    case Op::OpReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
2370    case Op::OpCommitReadPipe: *hasResult = false; *hasResultType = false; break;
2371    case Op::OpCommitWritePipe: *hasResult = false; *hasResultType = false; break;
2372    case Op::OpIsValidReserveId: *hasResult = true; *hasResultType = true; break;
2373    case Op::OpGetNumPipePackets: *hasResult = true; *hasResultType = true; break;
2374    case Op::OpGetMaxPipePackets: *hasResult = true; *hasResultType = true; break;
2375    case Op::OpGroupReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
2376    case Op::OpGroupReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
2377    case Op::OpGroupCommitReadPipe: *hasResult = false; *hasResultType = false; break;
2378    case Op::OpGroupCommitWritePipe: *hasResult = false; *hasResultType = false; break;
2379    case Op::OpEnqueueMarker: *hasResult = true; *hasResultType = true; break;
2380    case Op::OpEnqueueKernel: *hasResult = true; *hasResultType = true; break;
2381    case Op::OpGetKernelNDrangeSubGroupCount: *hasResult = true; *hasResultType = true; break;
2382    case Op::OpGetKernelNDrangeMaxSubGroupSize: *hasResult = true; *hasResultType = true; break;
2383    case Op::OpGetKernelWorkGroupSize: *hasResult = true; *hasResultType = true; break;
2384    case Op::OpGetKernelPreferredWorkGroupSizeMultiple: *hasResult = true; *hasResultType = true; break;
2385    case Op::OpRetainEvent: *hasResult = false; *hasResultType = false; break;
2386    case Op::OpReleaseEvent: *hasResult = false; *hasResultType = false; break;
2387    case Op::OpCreateUserEvent: *hasResult = true; *hasResultType = true; break;
2388    case Op::OpIsValidEvent: *hasResult = true; *hasResultType = true; break;
2389    case Op::OpSetUserEventStatus: *hasResult = false; *hasResultType = false; break;
2390    case Op::OpCaptureEventProfilingInfo: *hasResult = false; *hasResultType = false; break;
2391    case Op::OpGetDefaultQueue: *hasResult = true; *hasResultType = true; break;
2392    case Op::OpBuildNDRange: *hasResult = true; *hasResultType = true; break;
2393    case Op::OpImageSparseSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
2394    case Op::OpImageSparseSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
2395    case Op::OpImageSparseSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2396    case Op::OpImageSparseSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2397    case Op::OpImageSparseSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
2398    case Op::OpImageSparseSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
2399    case Op::OpImageSparseSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
2400    case Op::OpImageSparseSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
2401    case Op::OpImageSparseFetch: *hasResult = true; *hasResultType = true; break;
2402    case Op::OpImageSparseGather: *hasResult = true; *hasResultType = true; break;
2403    case Op::OpImageSparseDrefGather: *hasResult = true; *hasResultType = true; break;
2404    case Op::OpImageSparseTexelsResident: *hasResult = true; *hasResultType = true; break;
2405    case Op::OpNoLine: *hasResult = false; *hasResultType = false; break;
2406    case Op::OpAtomicFlagTestAndSet: *hasResult = true; *hasResultType = true; break;
2407    case Op::OpAtomicFlagClear: *hasResult = false; *hasResultType = false; break;
2408    case Op::OpImageSparseRead: *hasResult = true; *hasResultType = true; break;
2409    case Op::OpSizeOf: *hasResult = true; *hasResultType = true; break;
2410    case Op::OpTypePipeStorage: *hasResult = true; *hasResultType = false; break;
2411    case Op::OpConstantPipeStorage: *hasResult = true; *hasResultType = true; break;
2412    case Op::OpCreatePipeFromPipeStorage: *hasResult = true; *hasResultType = true; break;
2413    case Op::OpGetKernelLocalSizeForSubgroupCount: *hasResult = true; *hasResultType = true; break;
2414    case Op::OpGetKernelMaxNumSubgroups: *hasResult = true; *hasResultType = true; break;
2415    case Op::OpTypeNamedBarrier: *hasResult = true; *hasResultType = false; break;
2416    case Op::OpNamedBarrierInitialize: *hasResult = true; *hasResultType = true; break;
2417    case Op::OpMemoryNamedBarrier: *hasResult = false; *hasResultType = false; break;
2418    case Op::OpModuleProcessed: *hasResult = false; *hasResultType = false; break;
2419    case Op::OpExecutionModeId: *hasResult = false; *hasResultType = false; break;
2420    case Op::OpDecorateId: *hasResult = false; *hasResultType = false; break;
2421    case Op::OpGroupNonUniformElect: *hasResult = true; *hasResultType = true; break;
2422    case Op::OpGroupNonUniformAll: *hasResult = true; *hasResultType = true; break;
2423    case Op::OpGroupNonUniformAny: *hasResult = true; *hasResultType = true; break;
2424    case Op::OpGroupNonUniformAllEqual: *hasResult = true; *hasResultType = true; break;
2425    case Op::OpGroupNonUniformBroadcast: *hasResult = true; *hasResultType = true; break;
2426    case Op::OpGroupNonUniformBroadcastFirst: *hasResult = true; *hasResultType = true; break;
2427    case Op::OpGroupNonUniformBallot: *hasResult = true; *hasResultType = true; break;
2428    case Op::OpGroupNonUniformInverseBallot: *hasResult = true; *hasResultType = true; break;
2429    case Op::OpGroupNonUniformBallotBitExtract: *hasResult = true; *hasResultType = true; break;
2430    case Op::OpGroupNonUniformBallotBitCount: *hasResult = true; *hasResultType = true; break;
2431    case Op::OpGroupNonUniformBallotFindLSB: *hasResult = true; *hasResultType = true; break;
2432    case Op::OpGroupNonUniformBallotFindMSB: *hasResult = true; *hasResultType = true; break;
2433    case Op::OpGroupNonUniformShuffle: *hasResult = true; *hasResultType = true; break;
2434    case Op::OpGroupNonUniformShuffleXor: *hasResult = true; *hasResultType = true; break;
2435    case Op::OpGroupNonUniformShuffleUp: *hasResult = true; *hasResultType = true; break;
2436    case Op::OpGroupNonUniformShuffleDown: *hasResult = true; *hasResultType = true; break;
2437    case Op::OpGroupNonUniformIAdd: *hasResult = true; *hasResultType = true; break;
2438    case Op::OpGroupNonUniformFAdd: *hasResult = true; *hasResultType = true; break;
2439    case Op::OpGroupNonUniformIMul: *hasResult = true; *hasResultType = true; break;
2440    case Op::OpGroupNonUniformFMul: *hasResult = true; *hasResultType = true; break;
2441    case Op::OpGroupNonUniformSMin: *hasResult = true; *hasResultType = true; break;
2442    case Op::OpGroupNonUniformUMin: *hasResult = true; *hasResultType = true; break;
2443    case Op::OpGroupNonUniformFMin: *hasResult = true; *hasResultType = true; break;
2444    case Op::OpGroupNonUniformSMax: *hasResult = true; *hasResultType = true; break;
2445    case Op::OpGroupNonUniformUMax: *hasResult = true; *hasResultType = true; break;
2446    case Op::OpGroupNonUniformFMax: *hasResult = true; *hasResultType = true; break;
2447    case Op::OpGroupNonUniformBitwiseAnd: *hasResult = true; *hasResultType = true; break;
2448    case Op::OpGroupNonUniformBitwiseOr: *hasResult = true; *hasResultType = true; break;
2449    case Op::OpGroupNonUniformBitwiseXor: *hasResult = true; *hasResultType = true; break;
2450    case Op::OpGroupNonUniformLogicalAnd: *hasResult = true; *hasResultType = true; break;
2451    case Op::OpGroupNonUniformLogicalOr: *hasResult = true; *hasResultType = true; break;
2452    case Op::OpGroupNonUniformLogicalXor: *hasResult = true; *hasResultType = true; break;
2453    case Op::OpGroupNonUniformQuadBroadcast: *hasResult = true; *hasResultType = true; break;
2454    case Op::OpGroupNonUniformQuadSwap: *hasResult = true; *hasResultType = true; break;
2455    case Op::OpCopyLogical: *hasResult = true; *hasResultType = true; break;
2456    case Op::OpPtrEqual: *hasResult = true; *hasResultType = true; break;
2457    case Op::OpPtrNotEqual: *hasResult = true; *hasResultType = true; break;
2458    case Op::OpPtrDiff: *hasResult = true; *hasResultType = true; break;
2459    case Op::OpColorAttachmentReadEXT: *hasResult = true; *hasResultType = true; break;
2460    case Op::OpDepthAttachmentReadEXT: *hasResult = true; *hasResultType = true; break;
2461    case Op::OpStencilAttachmentReadEXT: *hasResult = true; *hasResultType = true; break;
2462    case Op::OpTerminateInvocation: *hasResult = false; *hasResultType = false; break;
2463    case Op::OpSubgroupBallotKHR: *hasResult = true; *hasResultType = true; break;
2464    case Op::OpSubgroupFirstInvocationKHR: *hasResult = true; *hasResultType = true; break;
2465    case Op::OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
2466    case Op::OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
2467    case Op::OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
2468    case Op::OpGroupNonUniformRotateKHR: *hasResult = true; *hasResultType = true; break;
2469    case Op::OpSubgroupReadInvocationKHR: *hasResult = true; *hasResultType = true; break;
2470    case Op::OpTraceRayKHR: *hasResult = false; *hasResultType = false; break;
2471    case Op::OpExecuteCallableKHR: *hasResult = false; *hasResultType = false; break;
2472    case Op::OpConvertUToAccelerationStructureKHR: *hasResult = true; *hasResultType = true; break;
2473    case Op::OpIgnoreIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2474    case Op::OpTerminateRayKHR: *hasResult = false; *hasResultType = false; break;
2475    case Op::OpSDot: *hasResult = true; *hasResultType = true; break;
2476    case Op::OpUDot: *hasResult = true; *hasResultType = true; break;
2477    case Op::OpSUDot: *hasResult = true; *hasResultType = true; break;
2478    case Op::OpSDotAccSat: *hasResult = true; *hasResultType = true; break;
2479    case Op::OpUDotAccSat: *hasResult = true; *hasResultType = true; break;
2480    case Op::OpSUDotAccSat: *hasResult = true; *hasResultType = true; break;
2481    case Op::OpTypeCooperativeMatrixKHR: *hasResult = true; *hasResultType = false; break;
2482    case Op::OpCooperativeMatrixLoadKHR: *hasResult = true; *hasResultType = true; break;
2483    case Op::OpCooperativeMatrixStoreKHR: *hasResult = false; *hasResultType = false; break;
2484    case Op::OpCooperativeMatrixMulAddKHR: *hasResult = true; *hasResultType = true; break;
2485    case Op::OpCooperativeMatrixLengthKHR: *hasResult = true; *hasResultType = true; break;
2486    case Op::OpTypeRayQueryKHR: *hasResult = true; *hasResultType = false; break;
2487    case Op::OpRayQueryInitializeKHR: *hasResult = false; *hasResultType = false; break;
2488    case Op::OpRayQueryTerminateKHR: *hasResult = false; *hasResultType = false; break;
2489    case Op::OpRayQueryGenerateIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2490    case Op::OpRayQueryConfirmIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2491    case Op::OpRayQueryProceedKHR: *hasResult = true; *hasResultType = true; break;
2492    case Op::OpRayQueryGetIntersectionTypeKHR: *hasResult = true; *hasResultType = true; break;
2493    case Op::OpImageSampleWeightedQCOM: *hasResult = true; *hasResultType = true; break;
2494    case Op::OpImageBoxFilterQCOM: *hasResult = true; *hasResultType = true; break;
2495    case Op::OpImageBlockMatchSSDQCOM: *hasResult = true; *hasResultType = true; break;
2496    case Op::OpImageBlockMatchSADQCOM: *hasResult = true; *hasResultType = true; break;
2497    case Op::OpGroupIAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2498    case Op::OpGroupFAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2499    case Op::OpGroupFMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2500    case Op::OpGroupUMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2501    case Op::OpGroupSMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2502    case Op::OpGroupFMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2503    case Op::OpGroupUMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2504    case Op::OpGroupSMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2505    case Op::OpFragmentMaskFetchAMD: *hasResult = true; *hasResultType = true; break;
2506    case Op::OpFragmentFetchAMD: *hasResult = true; *hasResultType = true; break;
2507    case Op::OpReadClockKHR: *hasResult = true; *hasResultType = true; break;
2508    case Op::OpFinalizeNodePayloadsAMDX: *hasResult = false; *hasResultType = false; break;
2509    case Op::OpFinishWritingNodePayloadAMDX: *hasResult = true; *hasResultType = true; break;
2510    case Op::OpInitializeNodePayloadsAMDX: *hasResult = false; *hasResultType = false; break;
2511    case Op::OpHitObjectRecordHitMotionNV: *hasResult = false; *hasResultType = false; break;
2512    case Op::OpHitObjectRecordHitWithIndexMotionNV: *hasResult = false; *hasResultType = false; break;
2513    case Op::OpHitObjectRecordMissMotionNV: *hasResult = false; *hasResultType = false; break;
2514    case Op::OpHitObjectGetWorldToObjectNV: *hasResult = true; *hasResultType = true; break;
2515    case Op::OpHitObjectGetObjectToWorldNV: *hasResult = true; *hasResultType = true; break;
2516    case Op::OpHitObjectGetObjectRayDirectionNV: *hasResult = true; *hasResultType = true; break;
2517    case Op::OpHitObjectGetObjectRayOriginNV: *hasResult = true; *hasResultType = true; break;
2518    case Op::OpHitObjectTraceRayMotionNV: *hasResult = false; *hasResultType = false; break;
2519    case Op::OpHitObjectGetShaderRecordBufferHandleNV: *hasResult = true; *hasResultType = true; break;
2520    case Op::OpHitObjectGetShaderBindingTableRecordIndexNV: *hasResult = true; *hasResultType = true; break;
2521    case Op::OpHitObjectRecordEmptyNV: *hasResult = false; *hasResultType = false; break;
2522    case Op::OpHitObjectTraceRayNV: *hasResult = false; *hasResultType = false; break;
2523    case Op::OpHitObjectRecordHitNV: *hasResult = false; *hasResultType = false; break;
2524    case Op::OpHitObjectRecordHitWithIndexNV: *hasResult = false; *hasResultType = false; break;
2525    case Op::OpHitObjectRecordMissNV: *hasResult = false; *hasResultType = false; break;
2526    case Op::OpHitObjectExecuteShaderNV: *hasResult = false; *hasResultType = false; break;
2527    case Op::OpHitObjectGetCurrentTimeNV: *hasResult = true; *hasResultType = true; break;
2528    case Op::OpHitObjectGetAttributesNV: *hasResult = false; *hasResultType = false; break;
2529    case Op::OpHitObjectGetHitKindNV: *hasResult = true; *hasResultType = true; break;
2530    case Op::OpHitObjectGetPrimitiveIndexNV: *hasResult = true; *hasResultType = true; break;
2531    case Op::OpHitObjectGetGeometryIndexNV: *hasResult = true; *hasResultType = true; break;
2532    case Op::OpHitObjectGetInstanceIdNV: *hasResult = true; *hasResultType = true; break;
2533    case Op::OpHitObjectGetInstanceCustomIndexNV: *hasResult = true; *hasResultType = true; break;
2534    case Op::OpHitObjectGetWorldRayDirectionNV: *hasResult = true; *hasResultType = true; break;
2535    case Op::OpHitObjectGetWorldRayOriginNV: *hasResult = true; *hasResultType = true; break;
2536    case Op::OpHitObjectGetRayTMaxNV: *hasResult = true; *hasResultType = true; break;
2537    case Op::OpHitObjectGetRayTMinNV: *hasResult = true; *hasResultType = true; break;
2538    case Op::OpHitObjectIsEmptyNV: *hasResult = true; *hasResultType = true; break;
2539    case Op::OpHitObjectIsHitNV: *hasResult = true; *hasResultType = true; break;
2540    case Op::OpHitObjectIsMissNV: *hasResult = true; *hasResultType = true; break;
2541    case Op::OpReorderThreadWithHitObjectNV: *hasResult = false; *hasResultType = false; break;
2542    case Op::OpReorderThreadWithHintNV: *hasResult = false; *hasResultType = false; break;
2543    case Op::OpTypeHitObjectNV: *hasResult = true; *hasResultType = false; break;
2544    case Op::OpImageSampleFootprintNV: *hasResult = true; *hasResultType = true; break;
2545    case Op::OpEmitMeshTasksEXT: *hasResult = false; *hasResultType = false; break;
2546    case Op::OpSetMeshOutputsEXT: *hasResult = false; *hasResultType = false; break;
2547    case Op::OpGroupNonUniformPartitionNV: *hasResult = true; *hasResultType = true; break;
2548    case Op::OpWritePackedPrimitiveIndices4x8NV: *hasResult = false; *hasResultType = false; break;
2549    case Op::OpFetchMicroTriangleVertexPositionNV: *hasResult = true; *hasResultType = true; break;
2550    case Op::OpFetchMicroTriangleVertexBarycentricNV: *hasResult = true; *hasResultType = true; break;
2551    case Op::OpReportIntersectionNV: *hasResult = true; *hasResultType = true; break;
2552    case Op::OpIgnoreIntersectionNV: *hasResult = false; *hasResultType = false; break;
2553    case Op::OpTerminateRayNV: *hasResult = false; *hasResultType = false; break;
2554    case Op::OpTraceNV: *hasResult = false; *hasResultType = false; break;
2555    case Op::OpTraceMotionNV: *hasResult = false; *hasResultType = false; break;
2556    case Op::OpTraceRayMotionNV: *hasResult = false; *hasResultType = false; break;
2557    case Op::OpRayQueryGetIntersectionTriangleVertexPositionsKHR: *hasResult = true; *hasResultType = true; break;
2558    case Op::OpTypeAccelerationStructureNV: *hasResult = true; *hasResultType = false; break;
2559    case Op::OpExecuteCallableNV: *hasResult = false; *hasResultType = false; break;
2560    case Op::OpTypeCooperativeMatrixNV: *hasResult = true; *hasResultType = false; break;
2561    case Op::OpCooperativeMatrixLoadNV: *hasResult = true; *hasResultType = true; break;
2562    case Op::OpCooperativeMatrixStoreNV: *hasResult = false; *hasResultType = false; break;
2563    case Op::OpCooperativeMatrixMulAddNV: *hasResult = true; *hasResultType = true; break;
2564    case Op::OpCooperativeMatrixLengthNV: *hasResult = true; *hasResultType = true; break;
2565    case Op::OpBeginInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2566    case Op::OpEndInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2567    case Op::OpDemoteToHelperInvocation: *hasResult = false; *hasResultType = false; break;
2568    case Op::OpIsHelperInvocationEXT: *hasResult = true; *hasResultType = true; break;
2569    case Op::OpConvertUToImageNV: *hasResult = true; *hasResultType = true; break;
2570    case Op::OpConvertUToSamplerNV: *hasResult = true; *hasResultType = true; break;
2571    case Op::OpConvertImageToUNV: *hasResult = true; *hasResultType = true; break;
2572    case Op::OpConvertSamplerToUNV: *hasResult = true; *hasResultType = true; break;
2573    case Op::OpConvertUToSampledImageNV: *hasResult = true; *hasResultType = true; break;
2574    case Op::OpConvertSampledImageToUNV: *hasResult = true; *hasResultType = true; break;
2575    case Op::OpSamplerImageAddressingModeNV: *hasResult = false; *hasResultType = false; break;
2576    case Op::OpSubgroupShuffleINTEL: *hasResult = true; *hasResultType = true; break;
2577    case Op::OpSubgroupShuffleDownINTEL: *hasResult = true; *hasResultType = true; break;
2578    case Op::OpSubgroupShuffleUpINTEL: *hasResult = true; *hasResultType = true; break;
2579    case Op::OpSubgroupShuffleXorINTEL: *hasResult = true; *hasResultType = true; break;
2580    case Op::OpSubgroupBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2581    case Op::OpSubgroupBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2582    case Op::OpSubgroupImageBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2583    case Op::OpSubgroupImageBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2584    case Op::OpSubgroupImageMediaBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2585    case Op::OpSubgroupImageMediaBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2586    case Op::OpUCountLeadingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2587    case Op::OpUCountTrailingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2588    case Op::OpAbsISubINTEL: *hasResult = true; *hasResultType = true; break;
2589    case Op::OpAbsUSubINTEL: *hasResult = true; *hasResultType = true; break;
2590    case Op::OpIAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2591    case Op::OpUAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2592    case Op::OpIAverageINTEL: *hasResult = true; *hasResultType = true; break;
2593    case Op::OpUAverageINTEL: *hasResult = true; *hasResultType = true; break;
2594    case Op::OpIAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2595    case Op::OpUAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2596    case Op::OpISubSatINTEL: *hasResult = true; *hasResultType = true; break;
2597    case Op::OpUSubSatINTEL: *hasResult = true; *hasResultType = true; break;
2598    case Op::OpIMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2599    case Op::OpUMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2600    case Op::OpConstantFunctionPointerINTEL: *hasResult = true; *hasResultType = true; break;
2601    case Op::OpFunctionPointerCallINTEL: *hasResult = true; *hasResultType = true; break;
2602    case Op::OpAsmTargetINTEL: *hasResult = true; *hasResultType = true; break;
2603    case Op::OpAsmINTEL: *hasResult = true; *hasResultType = true; break;
2604    case Op::OpAsmCallINTEL: *hasResult = true; *hasResultType = true; break;
2605    case Op::OpAtomicFMinEXT: *hasResult = true; *hasResultType = true; break;
2606    case Op::OpAtomicFMaxEXT: *hasResult = true; *hasResultType = true; break;
2607    case Op::OpAssumeTrueKHR: *hasResult = false; *hasResultType = false; break;
2608    case Op::OpExpectKHR: *hasResult = true; *hasResultType = true; break;
2609    case Op::OpDecorateString: *hasResult = false; *hasResultType = false; break;
2610    case Op::OpMemberDecorateString: *hasResult = false; *hasResultType = false; break;
2611    case Op::OpVmeImageINTEL: *hasResult = true; *hasResultType = true; break;
2612    case Op::OpTypeVmeImageINTEL: *hasResult = true; *hasResultType = false; break;
2613    case Op::OpTypeAvcImePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2614    case Op::OpTypeAvcRefPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2615    case Op::OpTypeAvcSicPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2616    case Op::OpTypeAvcMcePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2617    case Op::OpTypeAvcMceResultINTEL: *hasResult = true; *hasResultType = false; break;
2618    case Op::OpTypeAvcImeResultINTEL: *hasResult = true; *hasResultType = false; break;
2619    case Op::OpTypeAvcImeResultSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2620    case Op::OpTypeAvcImeResultDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2621    case Op::OpTypeAvcImeSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2622    case Op::OpTypeAvcImeDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2623    case Op::OpTypeAvcRefResultINTEL: *hasResult = true; *hasResultType = false; break;
2624    case Op::OpTypeAvcSicResultINTEL: *hasResult = true; *hasResultType = false; break;
2625    case Op::OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2626    case Op::OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2627    case Op::OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2628    case Op::OpSubgroupAvcMceSetInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2629    case Op::OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2630    case Op::OpSubgroupAvcMceSetInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2631    case Op::OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2632    case Op::OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2633    case Op::OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2634    case Op::OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2635    case Op::OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2636    case Op::OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2637    case Op::OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2638    case Op::OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2639    case Op::OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2640    case Op::OpSubgroupAvcMceSetAcOnlyHaarINTEL: *hasResult = true; *hasResultType = true; break;
2641    case Op::OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2642    case Op::OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2643    case Op::OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2644    case Op::OpSubgroupAvcMceConvertToImePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2645    case Op::OpSubgroupAvcMceConvertToImeResultINTEL: *hasResult = true; *hasResultType = true; break;
2646    case Op::OpSubgroupAvcMceConvertToRefPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2647    case Op::OpSubgroupAvcMceConvertToRefResultINTEL: *hasResult = true; *hasResultType = true; break;
2648    case Op::OpSubgroupAvcMceConvertToSicPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2649    case Op::OpSubgroupAvcMceConvertToSicResultINTEL: *hasResult = true; *hasResultType = true; break;
2650    case Op::OpSubgroupAvcMceGetMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2651    case Op::OpSubgroupAvcMceGetInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2652    case Op::OpSubgroupAvcMceGetBestInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2653    case Op::OpSubgroupAvcMceGetInterMajorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2654    case Op::OpSubgroupAvcMceGetInterMinorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2655    case Op::OpSubgroupAvcMceGetInterDirectionsINTEL: *hasResult = true; *hasResultType = true; break;
2656    case Op::OpSubgroupAvcMceGetInterMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2657    case Op::OpSubgroupAvcMceGetInterReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2658    case Op::OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2659    case Op::OpSubgroupAvcImeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2660    case Op::OpSubgroupAvcImeSetSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2661    case Op::OpSubgroupAvcImeSetDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2662    case Op::OpSubgroupAvcImeRefWindowSizeINTEL: *hasResult = true; *hasResultType = true; break;
2663    case Op::OpSubgroupAvcImeAdjustRefOffsetINTEL: *hasResult = true; *hasResultType = true; break;
2664    case Op::OpSubgroupAvcImeConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2665    case Op::OpSubgroupAvcImeSetMaxMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2666    case Op::OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2667    case Op::OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2668    case Op::OpSubgroupAvcImeSetWeightedSadINTEL: *hasResult = true; *hasResultType = true; break;
2669    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2670    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2671    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2672    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2673    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2674    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2675    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2676    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2677    case Op::OpSubgroupAvcImeConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2678    case Op::OpSubgroupAvcImeGetSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2679    case Op::OpSubgroupAvcImeGetDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2680    case Op::OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2681    case Op::OpSubgroupAvcImeStripDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2682    case Op::OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2683    case Op::OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2684    case Op::OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2685    case Op::OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2686    case Op::OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2687    case Op::OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2688    case Op::OpSubgroupAvcImeGetBorderReachedINTEL: *hasResult = true; *hasResultType = true; break;
2689    case Op::OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL: *hasResult = true; *hasResultType = true; break;
2690    case Op::OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL: *hasResult = true; *hasResultType = true; break;
2691    case Op::OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL: *hasResult = true; *hasResultType = true; break;
2692    case Op::OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2693    case Op::OpSubgroupAvcFmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2694    case Op::OpSubgroupAvcBmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2695    case Op::OpSubgroupAvcRefConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2696    case Op::OpSubgroupAvcRefSetBidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2697    case Op::OpSubgroupAvcRefSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2698    case Op::OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2699    case Op::OpSubgroupAvcRefEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2700    case Op::OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2701    case Op::OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2702    case Op::OpSubgroupAvcRefConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2703    case Op::OpSubgroupAvcSicInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2704    case Op::OpSubgroupAvcSicConfigureSkcINTEL: *hasResult = true; *hasResultType = true; break;
2705    case Op::OpSubgroupAvcSicConfigureIpeLumaINTEL: *hasResult = true; *hasResultType = true; break;
2706    case Op::OpSubgroupAvcSicConfigureIpeLumaChromaINTEL: *hasResult = true; *hasResultType = true; break;
2707    case Op::OpSubgroupAvcSicGetMotionVectorMaskINTEL: *hasResult = true; *hasResultType = true; break;
2708    case Op::OpSubgroupAvcSicConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2709    case Op::OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2710    case Op::OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2711    case Op::OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2712    case Op::OpSubgroupAvcSicSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2713    case Op::OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL: *hasResult = true; *hasResultType = true; break;
2714    case Op::OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL: *hasResult = true; *hasResultType = true; break;
2715    case Op::OpSubgroupAvcSicEvaluateIpeINTEL: *hasResult = true; *hasResultType = true; break;
2716    case Op::OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2717    case Op::OpSubgroupAvcSicEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2718    case Op::OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2719    case Op::OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2720    case Op::OpSubgroupAvcSicConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2721    case Op::OpSubgroupAvcSicGetIpeLumaShapeINTEL: *hasResult = true; *hasResultType = true; break;
2722    case Op::OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2723    case Op::OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2724    case Op::OpSubgroupAvcSicGetPackedIpeLumaModesINTEL: *hasResult = true; *hasResultType = true; break;
2725    case Op::OpSubgroupAvcSicGetIpeChromaModeINTEL: *hasResult = true; *hasResultType = true; break;
2726    case Op::OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2727    case Op::OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2728    case Op::OpSubgroupAvcSicGetInterRawSadsINTEL: *hasResult = true; *hasResultType = true; break;
2729    case Op::OpVariableLengthArrayINTEL: *hasResult = true; *hasResultType = true; break;
2730    case Op::OpSaveMemoryINTEL: *hasResult = true; *hasResultType = true; break;
2731    case Op::OpRestoreMemoryINTEL: *hasResult = false; *hasResultType = false; break;
2732    case Op::OpArbitraryFloatSinCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2733    case Op::OpArbitraryFloatCastINTEL: *hasResult = true; *hasResultType = true; break;
2734    case Op::OpArbitraryFloatCastFromIntINTEL: *hasResult = true; *hasResultType = true; break;
2735    case Op::OpArbitraryFloatCastToIntINTEL: *hasResult = true; *hasResultType = true; break;
2736    case Op::OpArbitraryFloatAddINTEL: *hasResult = true; *hasResultType = true; break;
2737    case Op::OpArbitraryFloatSubINTEL: *hasResult = true; *hasResultType = true; break;
2738    case Op::OpArbitraryFloatMulINTEL: *hasResult = true; *hasResultType = true; break;
2739    case Op::OpArbitraryFloatDivINTEL: *hasResult = true; *hasResultType = true; break;
2740    case Op::OpArbitraryFloatGTINTEL: *hasResult = true; *hasResultType = true; break;
2741    case Op::OpArbitraryFloatGEINTEL: *hasResult = true; *hasResultType = true; break;
2742    case Op::OpArbitraryFloatLTINTEL: *hasResult = true; *hasResultType = true; break;
2743    case Op::OpArbitraryFloatLEINTEL: *hasResult = true; *hasResultType = true; break;
2744    case Op::OpArbitraryFloatEQINTEL: *hasResult = true; *hasResultType = true; break;
2745    case Op::OpArbitraryFloatRecipINTEL: *hasResult = true; *hasResultType = true; break;
2746    case Op::OpArbitraryFloatRSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2747    case Op::OpArbitraryFloatCbrtINTEL: *hasResult = true; *hasResultType = true; break;
2748    case Op::OpArbitraryFloatHypotINTEL: *hasResult = true; *hasResultType = true; break;
2749    case Op::OpArbitraryFloatSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2750    case Op::OpArbitraryFloatLogINTEL: *hasResult = true; *hasResultType = true; break;
2751    case Op::OpArbitraryFloatLog2INTEL: *hasResult = true; *hasResultType = true; break;
2752    case Op::OpArbitraryFloatLog10INTEL: *hasResult = true; *hasResultType = true; break;
2753    case Op::OpArbitraryFloatLog1pINTEL: *hasResult = true; *hasResultType = true; break;
2754    case Op::OpArbitraryFloatExpINTEL: *hasResult = true; *hasResultType = true; break;
2755    case Op::OpArbitraryFloatExp2INTEL: *hasResult = true; *hasResultType = true; break;
2756    case Op::OpArbitraryFloatExp10INTEL: *hasResult = true; *hasResultType = true; break;
2757    case Op::OpArbitraryFloatExpm1INTEL: *hasResult = true; *hasResultType = true; break;
2758    case Op::OpArbitraryFloatSinINTEL: *hasResult = true; *hasResultType = true; break;
2759    case Op::OpArbitraryFloatCosINTEL: *hasResult = true; *hasResultType = true; break;
2760    case Op::OpArbitraryFloatSinCosINTEL: *hasResult = true; *hasResultType = true; break;
2761    case Op::OpArbitraryFloatSinPiINTEL: *hasResult = true; *hasResultType = true; break;
2762    case Op::OpArbitraryFloatCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2763    case Op::OpArbitraryFloatASinINTEL: *hasResult = true; *hasResultType = true; break;
2764    case Op::OpArbitraryFloatASinPiINTEL: *hasResult = true; *hasResultType = true; break;
2765    case Op::OpArbitraryFloatACosINTEL: *hasResult = true; *hasResultType = true; break;
2766    case Op::OpArbitraryFloatACosPiINTEL: *hasResult = true; *hasResultType = true; break;
2767    case Op::OpArbitraryFloatATanINTEL: *hasResult = true; *hasResultType = true; break;
2768    case Op::OpArbitraryFloatATanPiINTEL: *hasResult = true; *hasResultType = true; break;
2769    case Op::OpArbitraryFloatATan2INTEL: *hasResult = true; *hasResultType = true; break;
2770    case Op::OpArbitraryFloatPowINTEL: *hasResult = true; *hasResultType = true; break;
2771    case Op::OpArbitraryFloatPowRINTEL: *hasResult = true; *hasResultType = true; break;
2772    case Op::OpArbitraryFloatPowNINTEL: *hasResult = true; *hasResultType = true; break;
2773    case Op::OpLoopControlINTEL: *hasResult = false; *hasResultType = false; break;
2774    case Op::OpAliasDomainDeclINTEL: *hasResult = true; *hasResultType = false; break;
2775    case Op::OpAliasScopeDeclINTEL: *hasResult = true; *hasResultType = false; break;
2776    case Op::OpAliasScopeListDeclINTEL: *hasResult = true; *hasResultType = false; break;
2777    case Op::OpFixedSqrtINTEL: *hasResult = true; *hasResultType = true; break;
2778    case Op::OpFixedRecipINTEL: *hasResult = true; *hasResultType = true; break;
2779    case Op::OpFixedRsqrtINTEL: *hasResult = true; *hasResultType = true; break;
2780    case Op::OpFixedSinINTEL: *hasResult = true; *hasResultType = true; break;
2781    case Op::OpFixedCosINTEL: *hasResult = true; *hasResultType = true; break;
2782    case Op::OpFixedSinCosINTEL: *hasResult = true; *hasResultType = true; break;
2783    case Op::OpFixedSinPiINTEL: *hasResult = true; *hasResultType = true; break;
2784    case Op::OpFixedCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2785    case Op::OpFixedSinCosPiINTEL: *hasResult = true; *hasResultType = true; break;
2786    case Op::OpFixedLogINTEL: *hasResult = true; *hasResultType = true; break;
2787    case Op::OpFixedExpINTEL: *hasResult = true; *hasResultType = true; break;
2788    case Op::OpPtrCastToCrossWorkgroupINTEL: *hasResult = true; *hasResultType = true; break;
2789    case Op::OpCrossWorkgroupCastToPtrINTEL: *hasResult = true; *hasResultType = true; break;
2790    case Op::OpReadPipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2791    case Op::OpWritePipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2792    case Op::OpFPGARegINTEL: *hasResult = true; *hasResultType = true; break;
2793    case Op::OpRayQueryGetRayTMinKHR: *hasResult = true; *hasResultType = true; break;
2794    case Op::OpRayQueryGetRayFlagsKHR: *hasResult = true; *hasResultType = true; break;
2795    case Op::OpRayQueryGetIntersectionTKHR: *hasResult = true; *hasResultType = true; break;
2796    case Op::OpRayQueryGetIntersectionInstanceCustomIndexKHR: *hasResult = true; *hasResultType = true; break;
2797    case Op::OpRayQueryGetIntersectionInstanceIdKHR: *hasResult = true; *hasResultType = true; break;
2798    case Op::OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: *hasResult = true; *hasResultType = true; break;
2799    case Op::OpRayQueryGetIntersectionGeometryIndexKHR: *hasResult = true; *hasResultType = true; break;
2800    case Op::OpRayQueryGetIntersectionPrimitiveIndexKHR: *hasResult = true; *hasResultType = true; break;
2801    case Op::OpRayQueryGetIntersectionBarycentricsKHR: *hasResult = true; *hasResultType = true; break;
2802    case Op::OpRayQueryGetIntersectionFrontFaceKHR: *hasResult = true; *hasResultType = true; break;
2803    case Op::OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: *hasResult = true; *hasResultType = true; break;
2804    case Op::OpRayQueryGetIntersectionObjectRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2805    case Op::OpRayQueryGetIntersectionObjectRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2806    case Op::OpRayQueryGetWorldRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2807    case Op::OpRayQueryGetWorldRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2808    case Op::OpRayQueryGetIntersectionObjectToWorldKHR: *hasResult = true; *hasResultType = true; break;
2809    case Op::OpRayQueryGetIntersectionWorldToObjectKHR: *hasResult = true; *hasResultType = true; break;
2810    case Op::OpAtomicFAddEXT: *hasResult = true; *hasResultType = true; break;
2811    case Op::OpTypeBufferSurfaceINTEL: *hasResult = true; *hasResultType = false; break;
2812    case Op::OpTypeStructContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2813    case Op::OpConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2814    case Op::OpSpecConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2815    case Op::OpCompositeConstructContinuedINTEL: *hasResult = true; *hasResultType = true; break;
2816    case Op::OpConvertFToBF16INTEL: *hasResult = true; *hasResultType = true; break;
2817    case Op::OpConvertBF16ToFINTEL: *hasResult = true; *hasResultType = true; break;
2818    case Op::OpControlBarrierArriveINTEL: *hasResult = false; *hasResultType = false; break;
2819    case Op::OpControlBarrierWaitINTEL: *hasResult = false; *hasResultType = false; break;
2820    case Op::OpGroupIMulKHR: *hasResult = true; *hasResultType = true; break;
2821    case Op::OpGroupFMulKHR: *hasResult = true; *hasResultType = true; break;
2822    case Op::OpGroupBitwiseAndKHR: *hasResult = true; *hasResultType = true; break;
2823    case Op::OpGroupBitwiseOrKHR: *hasResult = true; *hasResultType = true; break;
2824    case Op::OpGroupBitwiseXorKHR: *hasResult = true; *hasResultType = true; break;
2825    case Op::OpGroupLogicalAndKHR: *hasResult = true; *hasResultType = true; break;
2826    case Op::OpGroupLogicalOrKHR: *hasResult = true; *hasResultType = true; break;
2827    case Op::OpGroupLogicalXorKHR: *hasResult = true; *hasResultType = true; break;
2828    }
2829}
2830#endif /* SPV_ENABLE_UTILITY_CODE */
2831
2832// Overload bitwise operators for mask bit combining
2833
2834constexpr ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
2835constexpr ImageOperandsMask operator&(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) & unsigned(b)); }
2836constexpr ImageOperandsMask operator^(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) ^ unsigned(b)); }
2837constexpr ImageOperandsMask operator~(ImageOperandsMask a) { return ImageOperandsMask(~unsigned(a)); }
2838constexpr FPFastMathModeMask operator|(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) | unsigned(b)); }
2839constexpr FPFastMathModeMask operator&(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) & unsigned(b)); }
2840constexpr FPFastMathModeMask operator^(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) ^ unsigned(b)); }
2841constexpr FPFastMathModeMask operator~(FPFastMathModeMask a) { return FPFastMathModeMask(~unsigned(a)); }
2842constexpr SelectionControlMask operator|(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) | unsigned(b)); }
2843constexpr SelectionControlMask operator&(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) & unsigned(b)); }
2844constexpr SelectionControlMask operator^(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) ^ unsigned(b)); }
2845constexpr SelectionControlMask operator~(SelectionControlMask a) { return SelectionControlMask(~unsigned(a)); }
2846constexpr LoopControlMask operator|(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) | unsigned(b)); }
2847constexpr LoopControlMask operator&(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) & unsigned(b)); }
2848constexpr LoopControlMask operator^(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) ^ unsigned(b)); }
2849constexpr LoopControlMask operator~(LoopControlMask a) { return LoopControlMask(~unsigned(a)); }
2850constexpr FunctionControlMask operator|(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) | unsigned(b)); }
2851constexpr FunctionControlMask operator&(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) & unsigned(b)); }
2852constexpr FunctionControlMask operator^(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) ^ unsigned(b)); }
2853constexpr FunctionControlMask operator~(FunctionControlMask a) { return FunctionControlMask(~unsigned(a)); }
2854constexpr MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }
2855constexpr MemorySemanticsMask operator&(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) & unsigned(b)); }
2856constexpr MemorySemanticsMask operator^(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) ^ unsigned(b)); }
2857constexpr MemorySemanticsMask operator~(MemorySemanticsMask a) { return MemorySemanticsMask(~unsigned(a)); }
2858constexpr MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
2859constexpr MemoryAccessMask operator&(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) & unsigned(b)); }
2860constexpr MemoryAccessMask operator^(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) ^ unsigned(b)); }
2861constexpr MemoryAccessMask operator~(MemoryAccessMask a) { return MemoryAccessMask(~unsigned(a)); }
2862constexpr KernelProfilingInfoMask operator|(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) | unsigned(b)); }
2863constexpr KernelProfilingInfoMask operator&(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) & unsigned(b)); }
2864constexpr KernelProfilingInfoMask operator^(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) ^ unsigned(b)); }
2865constexpr KernelProfilingInfoMask operator~(KernelProfilingInfoMask a) { return KernelProfilingInfoMask(~unsigned(a)); }
2866constexpr RayFlagsMask operator|(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) | unsigned(b)); }
2867constexpr RayFlagsMask operator&(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) & unsigned(b)); }
2868constexpr RayFlagsMask operator^(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) ^ unsigned(b)); }
2869constexpr RayFlagsMask operator~(RayFlagsMask a) { return RayFlagsMask(~unsigned(a)); }
2870constexpr FragmentShadingRateMask operator|(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) | unsigned(b)); }
2871constexpr FragmentShadingRateMask operator&(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) & unsigned(b)); }
2872constexpr FragmentShadingRateMask operator^(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) ^ unsigned(b)); }
2873constexpr FragmentShadingRateMask operator~(FragmentShadingRateMask a) { return FragmentShadingRateMask(~unsigned(a)); }
2874constexpr CooperativeMatrixOperandsMask operator|(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) | unsigned(b)); }
2875constexpr CooperativeMatrixOperandsMask operator&(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) & unsigned(b)); }
2876constexpr CooperativeMatrixOperandsMask operator^(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) ^ unsigned(b)); }
2877constexpr CooperativeMatrixOperandsMask operator~(CooperativeMatrixOperandsMask a) { return CooperativeMatrixOperandsMask(~unsigned(a)); }
2878
2879}  // end namespace spv
2880
2881#endif  // #ifndef spirv_HPP
2882
2883