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