1// Copyright (c) 2014-2020 The Khronos Group Inc.
2//
3// Permission is hereby granted, free of charge, to any person obtaining a copy
4// of this software and/or associated documentation files (the "Materials"),
5// to deal in the Materials without restriction, including without limitation
6// the rights to use, copy, modify, merge, publish, distribute, sublicense,
7// and/or sell copies of the Materials, and to permit persons to whom the
8// Materials are furnished to do so, subject to the following conditions:
9//
10// The above copyright notice and this permission notice shall be included in
11// all copies or substantial portions of the Materials.
12//
13// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
14// STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
15// HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
16//
17// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
23// IN THE MATERIALS.
24
25// This header is automatically generated by the same tool that creates
26// the Binary Section of the SPIR-V specification.
27
28// Enumeration tokens for SPIR-V, in various styles:
29//   C, C++, C++11, JSON, Lua, Python, C#, D
30//
31// - C will have tokens with a "Spv" prefix, e.g.: SpvSourceLanguageGLSL
32// - C++ will have tokens in the "spv" name space, e.g.: spv::SourceLanguageGLSL
33// - C++11 will use enum classes in the spv namespace, e.g.: spv::SourceLanguage::GLSL
34// - Lua will use tables, e.g.: spv.SourceLanguage.GLSL
35// - Python will use dictionaries, e.g.: spv['SourceLanguage']['GLSL']
36// - C# will use enum classes in the Specification class located in the "Spv" namespace,
37//     e.g.: Spv.Specification.SourceLanguage.GLSL
38// - D will have tokens under the "spv" module, e.g: spv.SourceLanguage.GLSL
39//
40// Some tokens act like mask values, which can be OR'd together,
41// while others are mutually exclusive.  The mask-like ones have
42// "Mask" in their name, and a parallel enum that has the shift
43// amount (1 << x) for each corresponding enumerant.
44
45#ifndef spirv_HPP
46#define spirv_HPP
47
48namespace spv {
49
50typedef unsigned int Id;
51
52#define SPV_VERSION 0x10500
53#define SPV_REVISION 4
54
55static const unsigned int MagicNumber = 0x07230203;
56static const unsigned int Version = 0x00010500;
57static const unsigned int Revision = 4;
58static const unsigned int OpCodeMask = 0xffff;
59static const unsigned int WordCountShift = 16;
60
61enum class SourceLanguage : unsigned {
62    Unknown = 0,
63    ESSL = 1,
64    GLSL = 2,
65    OpenCL_C = 3,
66    OpenCL_CPP = 4,
67    HLSL = 5,
68    Max = 0x7fffffff,
69};
70
71enum class ExecutionModel : unsigned {
72    Vertex = 0,
73    TessellationControl = 1,
74    TessellationEvaluation = 2,
75    Geometry = 3,
76    Fragment = 4,
77    GLCompute = 5,
78    Kernel = 6,
79    TaskNV = 5267,
80    MeshNV = 5268,
81    RayGenerationKHR = 5313,
82    RayGenerationNV = 5313,
83    IntersectionKHR = 5314,
84    IntersectionNV = 5314,
85    AnyHitKHR = 5315,
86    AnyHitNV = 5315,
87    ClosestHitKHR = 5316,
88    ClosestHitNV = 5316,
89    MissKHR = 5317,
90    MissNV = 5317,
91    CallableKHR = 5318,
92    CallableNV = 5318,
93    Max = 0x7fffffff,
94};
95
96enum class AddressingModel : unsigned {
97    Logical = 0,
98    Physical32 = 1,
99    Physical64 = 2,
100    PhysicalStorageBuffer64 = 5348,
101    PhysicalStorageBuffer64EXT = 5348,
102    Max = 0x7fffffff,
103};
104
105enum class MemoryModel : unsigned {
106    Simple = 0,
107    GLSL450 = 1,
108    OpenCL = 2,
109    Vulkan = 3,
110    VulkanKHR = 3,
111    Max = 0x7fffffff,
112};
113
114enum class ExecutionMode : unsigned {
115    Invocations = 0,
116    SpacingEqual = 1,
117    SpacingFractionalEven = 2,
118    SpacingFractionalOdd = 3,
119    VertexOrderCw = 4,
120    VertexOrderCcw = 5,
121    PixelCenterInteger = 6,
122    OriginUpperLeft = 7,
123    OriginLowerLeft = 8,
124    EarlyFragmentTests = 9,
125    PointMode = 10,
126    Xfb = 11,
127    DepthReplacing = 12,
128    DepthGreater = 14,
129    DepthLess = 15,
130    DepthUnchanged = 16,
131    LocalSize = 17,
132    LocalSizeHint = 18,
133    InputPoints = 19,
134    InputLines = 20,
135    InputLinesAdjacency = 21,
136    Triangles = 22,
137    InputTrianglesAdjacency = 23,
138    Quads = 24,
139    Isolines = 25,
140    OutputVertices = 26,
141    OutputPoints = 27,
142    OutputLineStrip = 28,
143    OutputTriangleStrip = 29,
144    VecTypeHint = 30,
145    ContractionOff = 31,
146    Initializer = 33,
147    Finalizer = 34,
148    SubgroupSize = 35,
149    SubgroupsPerWorkgroup = 36,
150    SubgroupsPerWorkgroupId = 37,
151    LocalSizeId = 38,
152    LocalSizeHintId = 39,
153    PostDepthCoverage = 4446,
154    DenormPreserve = 4459,
155    DenormFlushToZero = 4460,
156    SignedZeroInfNanPreserve = 4461,
157    RoundingModeRTE = 4462,
158    RoundingModeRTZ = 4463,
159    StencilRefReplacingEXT = 5027,
160    OutputLinesNV = 5269,
161    OutputPrimitivesNV = 5270,
162    DerivativeGroupQuadsNV = 5289,
163    DerivativeGroupLinearNV = 5290,
164    OutputTrianglesNV = 5298,
165    PixelInterlockOrderedEXT = 5366,
166    PixelInterlockUnorderedEXT = 5367,
167    SampleInterlockOrderedEXT = 5368,
168    SampleInterlockUnorderedEXT = 5369,
169    ShadingRateInterlockOrderedEXT = 5370,
170    ShadingRateInterlockUnorderedEXT = 5371,
171    SharedLocalMemorySizeINTEL = 5618,
172    RoundingModeRTPINTEL = 5620,
173    RoundingModeRTNINTEL = 5621,
174    FloatingPointModeALTINTEL = 5622,
175    FloatingPointModeIEEEINTEL = 5623,
176    MaxWorkgroupSizeINTEL = 5893,
177    MaxWorkDimINTEL = 5894,
178    NoGlobalOffsetINTEL = 5895,
179    NumSIMDWorkitemsINTEL = 5896,
180    SchedulerTargetFmaxMhzINTEL = 5903,
181    Max = 0x7fffffff,
182};
183
184enum class StorageClass : unsigned {
185    UniformConstant = 0,
186    Input = 1,
187    Uniform = 2,
188    Output = 3,
189    Workgroup = 4,
190    CrossWorkgroup = 5,
191    Private = 6,
192    Function = 7,
193    Generic = 8,
194    PushConstant = 9,
195    AtomicCounter = 10,
196    Image = 11,
197    StorageBuffer = 12,
198    CallableDataKHR = 5328,
199    CallableDataNV = 5328,
200    IncomingCallableDataKHR = 5329,
201    IncomingCallableDataNV = 5329,
202    RayPayloadKHR = 5338,
203    RayPayloadNV = 5338,
204    HitAttributeKHR = 5339,
205    HitAttributeNV = 5339,
206    IncomingRayPayloadKHR = 5342,
207    IncomingRayPayloadNV = 5342,
208    ShaderRecordBufferKHR = 5343,
209    ShaderRecordBufferNV = 5343,
210    PhysicalStorageBuffer = 5349,
211    PhysicalStorageBufferEXT = 5349,
212    CodeSectionINTEL = 5605,
213    DeviceOnlyINTEL = 5936,
214    HostOnlyINTEL = 5937,
215    Max = 0x7fffffff,
216};
217
218enum class Dim : unsigned {
219    Dim1D = 0,
220    Dim2D = 1,
221    Dim3D = 2,
222    Cube = 3,
223    Rect = 4,
224    Buffer = 5,
225    SubpassData = 6,
226    Max = 0x7fffffff,
227};
228
229enum class SamplerAddressingMode : unsigned {
230    None = 0,
231    ClampToEdge = 1,
232    Clamp = 2,
233    Repeat = 3,
234    RepeatMirrored = 4,
235    Max = 0x7fffffff,
236};
237
238enum class SamplerFilterMode : unsigned {
239    Nearest = 0,
240    Linear = 1,
241    Max = 0x7fffffff,
242};
243
244enum class ImageFormat : unsigned {
245    Unknown = 0,
246    Rgba32f = 1,
247    Rgba16f = 2,
248    R32f = 3,
249    Rgba8 = 4,
250    Rgba8Snorm = 5,
251    Rg32f = 6,
252    Rg16f = 7,
253    R11fG11fB10f = 8,
254    R16f = 9,
255    Rgba16 = 10,
256    Rgb10A2 = 11,
257    Rg16 = 12,
258    Rg8 = 13,
259    R16 = 14,
260    R8 = 15,
261    Rgba16Snorm = 16,
262    Rg16Snorm = 17,
263    Rg8Snorm = 18,
264    R16Snorm = 19,
265    R8Snorm = 20,
266    Rgba32i = 21,
267    Rgba16i = 22,
268    Rgba8i = 23,
269    R32i = 24,
270    Rg32i = 25,
271    Rg16i = 26,
272    Rg8i = 27,
273    R16i = 28,
274    R8i = 29,
275    Rgba32ui = 30,
276    Rgba16ui = 31,
277    Rgba8ui = 32,
278    R32ui = 33,
279    Rgb10a2ui = 34,
280    Rg32ui = 35,
281    Rg16ui = 36,
282    Rg8ui = 37,
283    R16ui = 38,
284    R8ui = 39,
285    R64ui = 40,
286    R64i = 41,
287    Max = 0x7fffffff,
288};
289
290enum class ImageChannelOrder : unsigned {
291    R = 0,
292    A = 1,
293    RG = 2,
294    RA = 3,
295    RGB = 4,
296    RGBA = 5,
297    BGRA = 6,
298    ARGB = 7,
299    Intensity = 8,
300    Luminance = 9,
301    Rx = 10,
302    RGx = 11,
303    RGBx = 12,
304    Depth = 13,
305    DepthStencil = 14,
306    sRGB = 15,
307    sRGBx = 16,
308    sRGBA = 17,
309    sBGRA = 18,
310    ABGR = 19,
311    Max = 0x7fffffff,
312};
313
314enum class ImageChannelDataType : unsigned {
315    SnormInt8 = 0,
316    SnormInt16 = 1,
317    UnormInt8 = 2,
318    UnormInt16 = 3,
319    UnormShort565 = 4,
320    UnormShort555 = 5,
321    UnormInt101010 = 6,
322    SignedInt8 = 7,
323    SignedInt16 = 8,
324    SignedInt32 = 9,
325    UnsignedInt8 = 10,
326    UnsignedInt16 = 11,
327    UnsignedInt32 = 12,
328    HalfFloat = 13,
329    Float = 14,
330    UnormInt24 = 15,
331    UnormInt101010_2 = 16,
332    Max = 0x7fffffff,
333};
334
335enum class ImageOperandsShift : unsigned {
336    Bias = 0,
337    Lod = 1,
338    Grad = 2,
339    ConstOffset = 3,
340    Offset = 4,
341    ConstOffsets = 5,
342    Sample = 6,
343    MinLod = 7,
344    MakeTexelAvailable = 8,
345    MakeTexelAvailableKHR = 8,
346    MakeTexelVisible = 9,
347    MakeTexelVisibleKHR = 9,
348    NonPrivateTexel = 10,
349    NonPrivateTexelKHR = 10,
350    VolatileTexel = 11,
351    VolatileTexelKHR = 11,
352    SignExtend = 12,
353    ZeroExtend = 13,
354    Max = 0x7fffffff,
355};
356
357enum class ImageOperandsMask : unsigned {
358    MaskNone = 0,
359    Bias = 0x00000001,
360    Lod = 0x00000002,
361    Grad = 0x00000004,
362    ConstOffset = 0x00000008,
363    Offset = 0x00000010,
364    ConstOffsets = 0x00000020,
365    Sample = 0x00000040,
366    MinLod = 0x00000080,
367    MakeTexelAvailable = 0x00000100,
368    MakeTexelAvailableKHR = 0x00000100,
369    MakeTexelVisible = 0x00000200,
370    MakeTexelVisibleKHR = 0x00000200,
371    NonPrivateTexel = 0x00000400,
372    NonPrivateTexelKHR = 0x00000400,
373    VolatileTexel = 0x00000800,
374    VolatileTexelKHR = 0x00000800,
375    SignExtend = 0x00001000,
376    ZeroExtend = 0x00002000,
377};
378
379enum class FPFastMathModeShift : unsigned {
380    NotNaN = 0,
381    NotInf = 1,
382    NSZ = 2,
383    AllowRecip = 3,
384    Fast = 4,
385    AllowContractFastINTEL = 16,
386    AllowReassocINTEL = 17,
387    Max = 0x7fffffff,
388};
389
390enum class FPFastMathModeMask : unsigned {
391    MaskNone = 0,
392    NotNaN = 0x00000001,
393    NotInf = 0x00000002,
394    NSZ = 0x00000004,
395    AllowRecip = 0x00000008,
396    Fast = 0x00000010,
397    AllowContractFastINTEL = 0x00010000,
398    AllowReassocINTEL = 0x00020000,
399};
400
401enum class FPRoundingMode : unsigned {
402    RTE = 0,
403    RTZ = 1,
404    RTP = 2,
405    RTN = 3,
406    Max = 0x7fffffff,
407};
408
409enum class FPDenormMode : unsigned {
410    Preserve = 0,
411    FlushToZero = 1,
412    Max = 0x7fffffff,
413};
414
415enum class FPOperationMode : unsigned {
416    IEEE = 0,
417    ALT = 1,
418    Max = 0x7fffffff,
419};
420
421enum class LinkageType : unsigned {
422    Export = 0,
423    Import = 1,
424    Max = 0x7fffffff,
425};
426
427enum class AccessQualifier : unsigned {
428    ReadOnly = 0,
429    WriteOnly = 1,
430    ReadWrite = 2,
431    Max = 0x7fffffff,
432};
433
434enum class FunctionParameterAttribute : unsigned {
435    Zext = 0,
436    Sext = 1,
437    ByVal = 2,
438    Sret = 3,
439    NoAlias = 4,
440    NoCapture = 5,
441    NoWrite = 6,
442    NoReadWrite = 7,
443    Max = 0x7fffffff,
444};
445
446enum class Decoration : unsigned {
447    RelaxedPrecision = 0,
448    SpecId = 1,
449    Block = 2,
450    BufferBlock = 3,
451    RowMajor = 4,
452    ColMajor = 5,
453    ArrayStride = 6,
454    MatrixStride = 7,
455    GLSLShared = 8,
456    GLSLPacked = 9,
457    CPacked = 10,
458    BuiltIn = 11,
459    NoPerspective = 13,
460    Flat = 14,
461    Patch = 15,
462    Centroid = 16,
463    Sample = 17,
464    Invariant = 18,
465    Restrict = 19,
466    Aliased = 20,
467    Volatile = 21,
468    Constant = 22,
469    Coherent = 23,
470    NonWritable = 24,
471    NonReadable = 25,
472    Uniform = 26,
473    UniformId = 27,
474    SaturatedConversion = 28,
475    Stream = 29,
476    Location = 30,
477    Component = 31,
478    Index = 32,
479    Binding = 33,
480    DescriptorSet = 34,
481    Offset = 35,
482    XfbBuffer = 36,
483    XfbStride = 37,
484    FuncParamAttr = 38,
485    FPRoundingMode = 39,
486    FPFastMathMode = 40,
487    LinkageAttributes = 41,
488    NoContraction = 42,
489    InputAttachmentIndex = 43,
490    Alignment = 44,
491    MaxByteOffset = 45,
492    AlignmentId = 46,
493    MaxByteOffsetId = 47,
494    NoSignedWrap = 4469,
495    NoUnsignedWrap = 4470,
496    ExplicitInterpAMD = 4999,
497    OverrideCoverageNV = 5248,
498    PassthroughNV = 5250,
499    ViewportRelativeNV = 5252,
500    SecondaryViewportRelativeNV = 5256,
501    PerPrimitiveNV = 5271,
502    PerViewNV = 5272,
503    PerTaskNV = 5273,
504    PerVertexNV = 5285,
505    NonUniform = 5300,
506    NonUniformEXT = 5300,
507    RestrictPointer = 5355,
508    RestrictPointerEXT = 5355,
509    AliasedPointer = 5356,
510    AliasedPointerEXT = 5356,
511    SIMTCallINTEL = 5599,
512    ReferencedIndirectlyINTEL = 5602,
513    ClobberINTEL = 5607,
514    SideEffectsINTEL = 5608,
515    VectorComputeVariableINTEL = 5624,
516    FuncParamIOKindINTEL = 5625,
517    VectorComputeFunctionINTEL = 5626,
518    StackCallINTEL = 5627,
519    GlobalVariableOffsetINTEL = 5628,
520    CounterBuffer = 5634,
521    HlslCounterBufferGOOGLE = 5634,
522    HlslSemanticGOOGLE = 5635,
523    UserSemantic = 5635,
524    UserTypeGOOGLE = 5636,
525    FunctionRoundingModeINTEL = 5822,
526    FunctionDenormModeINTEL = 5823,
527    RegisterINTEL = 5825,
528    MemoryINTEL = 5826,
529    NumbanksINTEL = 5827,
530    BankwidthINTEL = 5828,
531    MaxPrivateCopiesINTEL = 5829,
532    SinglepumpINTEL = 5830,
533    DoublepumpINTEL = 5831,
534    MaxReplicatesINTEL = 5832,
535    SimpleDualPortINTEL = 5833,
536    MergeINTEL = 5834,
537    BankBitsINTEL = 5835,
538    ForcePow2DepthINTEL = 5836,
539    BurstCoalesceINTEL = 5899,
540    CacheSizeINTEL = 5900,
541    DontStaticallyCoalesceINTEL = 5901,
542    PrefetchINTEL = 5902,
543    StallEnableINTEL = 5905,
544    FuseLoopsInFunctionINTEL = 5907,
545    BufferLocationINTEL = 5921,
546    IOPipeStorageINTEL = 5944,
547    FunctionFloatingPointModeINTEL = 6080,
548    SingleElementVectorINTEL = 6085,
549    VectorComputeCallableFunctionINTEL = 6087,
550    Max = 0x7fffffff,
551};
552
553enum class BuiltIn : unsigned {
554    Position = 0,
555    PointSize = 1,
556    ClipDistance = 3,
557    CullDistance = 4,
558    VertexId = 5,
559    InstanceId = 6,
560    PrimitiveId = 7,
561    InvocationId = 8,
562    Layer = 9,
563    ViewportIndex = 10,
564    TessLevelOuter = 11,
565    TessLevelInner = 12,
566    TessCoord = 13,
567    PatchVertices = 14,
568    FragCoord = 15,
569    PointCoord = 16,
570    FrontFacing = 17,
571    SampleId = 18,
572    SamplePosition = 19,
573    SampleMask = 20,
574    FragDepth = 22,
575    HelperInvocation = 23,
576    NumWorkgroups = 24,
577    WorkgroupSize = 25,
578    WorkgroupId = 26,
579    LocalInvocationId = 27,
580    GlobalInvocationId = 28,
581    LocalInvocationIndex = 29,
582    WorkDim = 30,
583    GlobalSize = 31,
584    EnqueuedWorkgroupSize = 32,
585    GlobalOffset = 33,
586    GlobalLinearId = 34,
587    SubgroupSize = 36,
588    SubgroupMaxSize = 37,
589    NumSubgroups = 38,
590    NumEnqueuedSubgroups = 39,
591    SubgroupId = 40,
592    SubgroupLocalInvocationId = 41,
593    VertexIndex = 42,
594    InstanceIndex = 43,
595    SubgroupEqMask = 4416,
596    SubgroupEqMaskKHR = 4416,
597    SubgroupGeMask = 4417,
598    SubgroupGeMaskKHR = 4417,
599    SubgroupGtMask = 4418,
600    SubgroupGtMaskKHR = 4418,
601    SubgroupLeMask = 4419,
602    SubgroupLeMaskKHR = 4419,
603    SubgroupLtMask = 4420,
604    SubgroupLtMaskKHR = 4420,
605    BaseVertex = 4424,
606    BaseInstance = 4425,
607    DrawIndex = 4426,
608    PrimitiveShadingRateKHR = 4432,
609    DeviceIndex = 4438,
610    ViewIndex = 4440,
611    ShadingRateKHR = 4444,
612    BaryCoordNoPerspAMD = 4992,
613    BaryCoordNoPerspCentroidAMD = 4993,
614    BaryCoordNoPerspSampleAMD = 4994,
615    BaryCoordSmoothAMD = 4995,
616    BaryCoordSmoothCentroidAMD = 4996,
617    BaryCoordSmoothSampleAMD = 4997,
618    BaryCoordPullModelAMD = 4998,
619    FragStencilRefEXT = 5014,
620    ViewportMaskNV = 5253,
621    SecondaryPositionNV = 5257,
622    SecondaryViewportMaskNV = 5258,
623    PositionPerViewNV = 5261,
624    ViewportMaskPerViewNV = 5262,
625    FullyCoveredEXT = 5264,
626    TaskCountNV = 5274,
627    PrimitiveCountNV = 5275,
628    PrimitiveIndicesNV = 5276,
629    ClipDistancePerViewNV = 5277,
630    CullDistancePerViewNV = 5278,
631    LayerPerViewNV = 5279,
632    MeshViewCountNV = 5280,
633    MeshViewIndicesNV = 5281,
634    BaryCoordNV = 5286,
635    BaryCoordNoPerspNV = 5287,
636    FragSizeEXT = 5292,
637    FragmentSizeNV = 5292,
638    FragInvocationCountEXT = 5293,
639    InvocationsPerPixelNV = 5293,
640    LaunchIdKHR = 5319,
641    LaunchIdNV = 5319,
642    LaunchSizeKHR = 5320,
643    LaunchSizeNV = 5320,
644    WorldRayOriginKHR = 5321,
645    WorldRayOriginNV = 5321,
646    WorldRayDirectionKHR = 5322,
647    WorldRayDirectionNV = 5322,
648    ObjectRayOriginKHR = 5323,
649    ObjectRayOriginNV = 5323,
650    ObjectRayDirectionKHR = 5324,
651    ObjectRayDirectionNV = 5324,
652    RayTminKHR = 5325,
653    RayTminNV = 5325,
654    RayTmaxKHR = 5326,
655    RayTmaxNV = 5326,
656    InstanceCustomIndexKHR = 5327,
657    InstanceCustomIndexNV = 5327,
658    ObjectToWorldKHR = 5330,
659    ObjectToWorldNV = 5330,
660    WorldToObjectKHR = 5331,
661    WorldToObjectNV = 5331,
662    HitTNV = 5332,
663    HitKindKHR = 5333,
664    HitKindNV = 5333,
665    IncomingRayFlagsKHR = 5351,
666    IncomingRayFlagsNV = 5351,
667    RayGeometryIndexKHR = 5352,
668    WarpsPerSMNV = 5374,
669    SMCountNV = 5375,
670    WarpIDNV = 5376,
671    SMIDNV = 5377,
672    Max = 0x7fffffff,
673};
674
675enum class SelectionControlShift : unsigned {
676    Flatten = 0,
677    DontFlatten = 1,
678    Max = 0x7fffffff,
679};
680
681enum class SelectionControlMask : unsigned {
682    MaskNone = 0,
683    Flatten = 0x00000001,
684    DontFlatten = 0x00000002,
685};
686
687enum class LoopControlShift : unsigned {
688    Unroll = 0,
689    DontUnroll = 1,
690    DependencyInfinite = 2,
691    DependencyLength = 3,
692    MinIterations = 4,
693    MaxIterations = 5,
694    IterationMultiple = 6,
695    PeelCount = 7,
696    PartialCount = 8,
697    InitiationIntervalINTEL = 16,
698    MaxConcurrencyINTEL = 17,
699    DependencyArrayINTEL = 18,
700    PipelineEnableINTEL = 19,
701    LoopCoalesceINTEL = 20,
702    MaxInterleavingINTEL = 21,
703    SpeculatedIterationsINTEL = 22,
704    NoFusionINTEL = 23,
705    Max = 0x7fffffff,
706};
707
708enum class LoopControlMask : unsigned {
709    MaskNone = 0,
710    Unroll = 0x00000001,
711    DontUnroll = 0x00000002,
712    DependencyInfinite = 0x00000004,
713    DependencyLength = 0x00000008,
714    MinIterations = 0x00000010,
715    MaxIterations = 0x00000020,
716    IterationMultiple = 0x00000040,
717    PeelCount = 0x00000080,
718    PartialCount = 0x00000100,
719    InitiationIntervalINTEL = 0x00010000,
720    MaxConcurrencyINTEL = 0x00020000,
721    DependencyArrayINTEL = 0x00040000,
722    PipelineEnableINTEL = 0x00080000,
723    LoopCoalesceINTEL = 0x00100000,
724    MaxInterleavingINTEL = 0x00200000,
725    SpeculatedIterationsINTEL = 0x00400000,
726    NoFusionINTEL = 0x00800000,
727};
728
729enum class FunctionControlShift : unsigned {
730    Inline = 0,
731    DontInline = 1,
732    Pure = 2,
733    Const = 3,
734    Max = 0x7fffffff,
735};
736
737enum class FunctionControlMask : unsigned {
738    MaskNone = 0,
739    Inline = 0x00000001,
740    DontInline = 0x00000002,
741    Pure = 0x00000004,
742    Const = 0x00000008,
743};
744
745enum class MemorySemanticsShift : unsigned {
746    Acquire = 1,
747    Release = 2,
748    AcquireRelease = 3,
749    SequentiallyConsistent = 4,
750    UniformMemory = 6,
751    SubgroupMemory = 7,
752    WorkgroupMemory = 8,
753    CrossWorkgroupMemory = 9,
754    AtomicCounterMemory = 10,
755    ImageMemory = 11,
756    OutputMemory = 12,
757    OutputMemoryKHR = 12,
758    MakeAvailable = 13,
759    MakeAvailableKHR = 13,
760    MakeVisible = 14,
761    MakeVisibleKHR = 14,
762    Volatile = 15,
763    Max = 0x7fffffff,
764};
765
766enum class MemorySemanticsMask : unsigned {
767    MaskNone = 0,
768    Acquire = 0x00000002,
769    Release = 0x00000004,
770    AcquireRelease = 0x00000008,
771    SequentiallyConsistent = 0x00000010,
772    UniformMemory = 0x00000040,
773    SubgroupMemory = 0x00000080,
774    WorkgroupMemory = 0x00000100,
775    CrossWorkgroupMemory = 0x00000200,
776    AtomicCounterMemory = 0x00000400,
777    ImageMemory = 0x00000800,
778    OutputMemory = 0x00001000,
779    OutputMemoryKHR = 0x00001000,
780    MakeAvailable = 0x00002000,
781    MakeAvailableKHR = 0x00002000,
782    MakeVisible = 0x00004000,
783    MakeVisibleKHR = 0x00004000,
784    Volatile = 0x00008000,
785};
786
787enum class MemoryAccessShift : unsigned {
788    Volatile = 0,
789    Aligned = 1,
790    Nontemporal = 2,
791    MakePointerAvailable = 3,
792    MakePointerAvailableKHR = 3,
793    MakePointerVisible = 4,
794    MakePointerVisibleKHR = 4,
795    NonPrivatePointer = 5,
796    NonPrivatePointerKHR = 5,
797    Max = 0x7fffffff,
798};
799
800enum class MemoryAccessMask : unsigned {
801    MaskNone = 0,
802    Volatile = 0x00000001,
803    Aligned = 0x00000002,
804    Nontemporal = 0x00000004,
805    MakePointerAvailable = 0x00000008,
806    MakePointerAvailableKHR = 0x00000008,
807    MakePointerVisible = 0x00000010,
808    MakePointerVisibleKHR = 0x00000010,
809    NonPrivatePointer = 0x00000020,
810    NonPrivatePointerKHR = 0x00000020,
811};
812
813enum class Scope : unsigned {
814    CrossDevice = 0,
815    Device = 1,
816    Workgroup = 2,
817    Subgroup = 3,
818    Invocation = 4,
819    QueueFamily = 5,
820    QueueFamilyKHR = 5,
821    ShaderCallKHR = 6,
822    Max = 0x7fffffff,
823};
824
825enum class GroupOperation : unsigned {
826    Reduce = 0,
827    InclusiveScan = 1,
828    ExclusiveScan = 2,
829    ClusteredReduce = 3,
830    PartitionedReduceNV = 6,
831    PartitionedInclusiveScanNV = 7,
832    PartitionedExclusiveScanNV = 8,
833    Max = 0x7fffffff,
834};
835
836enum class KernelEnqueueFlags : unsigned {
837    NoWait = 0,
838    WaitKernel = 1,
839    WaitWorkGroup = 2,
840    Max = 0x7fffffff,
841};
842
843enum class KernelProfilingInfoShift : unsigned {
844    CmdExecTime = 0,
845    Max = 0x7fffffff,
846};
847
848enum class KernelProfilingInfoMask : unsigned {
849    MaskNone = 0,
850    CmdExecTime = 0x00000001,
851};
852
853enum class Capability : unsigned {
854    Matrix = 0,
855    Shader = 1,
856    Geometry = 2,
857    Tessellation = 3,
858    Addresses = 4,
859    Linkage = 5,
860    Kernel = 6,
861    Vector16 = 7,
862    Float16Buffer = 8,
863    Float16 = 9,
864    Float64 = 10,
865    Int64 = 11,
866    Int64Atomics = 12,
867    ImageBasic = 13,
868    ImageReadWrite = 14,
869    ImageMipmap = 15,
870    Pipes = 17,
871    Groups = 18,
872    DeviceEnqueue = 19,
873    LiteralSampler = 20,
874    AtomicStorage = 21,
875    Int16 = 22,
876    TessellationPointSize = 23,
877    GeometryPointSize = 24,
878    ImageGatherExtended = 25,
879    StorageImageMultisample = 27,
880    UniformBufferArrayDynamicIndexing = 28,
881    SampledImageArrayDynamicIndexing = 29,
882    StorageBufferArrayDynamicIndexing = 30,
883    StorageImageArrayDynamicIndexing = 31,
884    ClipDistance = 32,
885    CullDistance = 33,
886    ImageCubeArray = 34,
887    SampleRateShading = 35,
888    ImageRect = 36,
889    SampledRect = 37,
890    GenericPointer = 38,
891    Int8 = 39,
892    InputAttachment = 40,
893    SparseResidency = 41,
894    MinLod = 42,
895    Sampled1D = 43,
896    Image1D = 44,
897    SampledCubeArray = 45,
898    SampledBuffer = 46,
899    ImageBuffer = 47,
900    ImageMSArray = 48,
901    StorageImageExtendedFormats = 49,
902    ImageQuery = 50,
903    DerivativeControl = 51,
904    InterpolationFunction = 52,
905    TransformFeedback = 53,
906    GeometryStreams = 54,
907    StorageImageReadWithoutFormat = 55,
908    StorageImageWriteWithoutFormat = 56,
909    MultiViewport = 57,
910    SubgroupDispatch = 58,
911    NamedBarrier = 59,
912    PipeStorage = 60,
913    GroupNonUniform = 61,
914    GroupNonUniformVote = 62,
915    GroupNonUniformArithmetic = 63,
916    GroupNonUniformBallot = 64,
917    GroupNonUniformShuffle = 65,
918    GroupNonUniformShuffleRelative = 66,
919    GroupNonUniformClustered = 67,
920    GroupNonUniformQuad = 68,
921    ShaderLayer = 69,
922    ShaderViewportIndex = 70,
923    FragmentShadingRateKHR = 4422,
924    SubgroupBallotKHR = 4423,
925    DrawParameters = 4427,
926    SubgroupVoteKHR = 4431,
927    StorageBuffer16BitAccess = 4433,
928    StorageUniformBufferBlock16 = 4433,
929    StorageUniform16 = 4434,
930    UniformAndStorageBuffer16BitAccess = 4434,
931    StoragePushConstant16 = 4435,
932    StorageInputOutput16 = 4436,
933    DeviceGroup = 4437,
934    MultiView = 4439,
935    VariablePointersStorageBuffer = 4441,
936    VariablePointers = 4442,
937    AtomicStorageOps = 4445,
938    SampleMaskPostDepthCoverage = 4447,
939    StorageBuffer8BitAccess = 4448,
940    UniformAndStorageBuffer8BitAccess = 4449,
941    StoragePushConstant8 = 4450,
942    DenormPreserve = 4464,
943    DenormFlushToZero = 4465,
944    SignedZeroInfNanPreserve = 4466,
945    RoundingModeRTE = 4467,
946    RoundingModeRTZ = 4468,
947    RayQueryProvisionalKHR = 4471,
948    RayQueryKHR = 4472,
949    RayTraversalPrimitiveCullingKHR = 4478,
950    RayTracingKHR = 4479,
951    Float16ImageAMD = 5008,
952    ImageGatherBiasLodAMD = 5009,
953    FragmentMaskAMD = 5010,
954    StencilExportEXT = 5013,
955    ImageReadWriteLodAMD = 5015,
956    Int64ImageEXT = 5016,
957    ShaderClockKHR = 5055,
958    SampleMaskOverrideCoverageNV = 5249,
959    GeometryShaderPassthroughNV = 5251,
960    ShaderViewportIndexLayerEXT = 5254,
961    ShaderViewportIndexLayerNV = 5254,
962    ShaderViewportMaskNV = 5255,
963    ShaderStereoViewNV = 5259,
964    PerViewAttributesNV = 5260,
965    FragmentFullyCoveredEXT = 5265,
966    MeshShadingNV = 5266,
967    ImageFootprintNV = 5282,
968    FragmentBarycentricNV = 5284,
969    ComputeDerivativeGroupQuadsNV = 5288,
970    FragmentDensityEXT = 5291,
971    ShadingRateNV = 5291,
972    GroupNonUniformPartitionedNV = 5297,
973    ShaderNonUniform = 5301,
974    ShaderNonUniformEXT = 5301,
975    RuntimeDescriptorArray = 5302,
976    RuntimeDescriptorArrayEXT = 5302,
977    InputAttachmentArrayDynamicIndexing = 5303,
978    InputAttachmentArrayDynamicIndexingEXT = 5303,
979    UniformTexelBufferArrayDynamicIndexing = 5304,
980    UniformTexelBufferArrayDynamicIndexingEXT = 5304,
981    StorageTexelBufferArrayDynamicIndexing = 5305,
982    StorageTexelBufferArrayDynamicIndexingEXT = 5305,
983    UniformBufferArrayNonUniformIndexing = 5306,
984    UniformBufferArrayNonUniformIndexingEXT = 5306,
985    SampledImageArrayNonUniformIndexing = 5307,
986    SampledImageArrayNonUniformIndexingEXT = 5307,
987    StorageBufferArrayNonUniformIndexing = 5308,
988    StorageBufferArrayNonUniformIndexingEXT = 5308,
989    StorageImageArrayNonUniformIndexing = 5309,
990    StorageImageArrayNonUniformIndexingEXT = 5309,
991    InputAttachmentArrayNonUniformIndexing = 5310,
992    InputAttachmentArrayNonUniformIndexingEXT = 5310,
993    UniformTexelBufferArrayNonUniformIndexing = 5311,
994    UniformTexelBufferArrayNonUniformIndexingEXT = 5311,
995    StorageTexelBufferArrayNonUniformIndexing = 5312,
996    StorageTexelBufferArrayNonUniformIndexingEXT = 5312,
997    RayTracingNV = 5340,
998    VulkanMemoryModel = 5345,
999    VulkanMemoryModelKHR = 5345,
1000    VulkanMemoryModelDeviceScope = 5346,
1001    VulkanMemoryModelDeviceScopeKHR = 5346,
1002    PhysicalStorageBufferAddresses = 5347,
1003    PhysicalStorageBufferAddressesEXT = 5347,
1004    ComputeDerivativeGroupLinearNV = 5350,
1005    RayTracingProvisionalKHR = 5353,
1006    CooperativeMatrixNV = 5357,
1007    FragmentShaderSampleInterlockEXT = 5363,
1008    FragmentShaderShadingRateInterlockEXT = 5372,
1009    ShaderSMBuiltinsNV = 5373,
1010    FragmentShaderPixelInterlockEXT = 5378,
1011    DemoteToHelperInvocationEXT = 5379,
1012    SubgroupShuffleINTEL = 5568,
1013    SubgroupBufferBlockIOINTEL = 5569,
1014    SubgroupImageBlockIOINTEL = 5570,
1015    SubgroupImageMediaBlockIOINTEL = 5579,
1016    RoundToInfinityINTEL = 5582,
1017    FloatingPointModeINTEL = 5583,
1018    IntegerFunctions2INTEL = 5584,
1019    FunctionPointersINTEL = 5603,
1020    IndirectReferencesINTEL = 5604,
1021    AsmINTEL = 5606,
1022    VectorComputeINTEL = 5617,
1023    VectorAnyINTEL = 5619,
1024    SubgroupAvcMotionEstimationINTEL = 5696,
1025    SubgroupAvcMotionEstimationIntraINTEL = 5697,
1026    SubgroupAvcMotionEstimationChromaINTEL = 5698,
1027    VariableLengthArrayINTEL = 5817,
1028    FunctionFloatControlINTEL = 5821,
1029    FPGAMemoryAttributesINTEL = 5824,
1030    FPFastMathModeINTEL = 5837,
1031    ArbitraryPrecisionIntegersINTEL = 5844,
1032    UnstructuredLoopControlsINTEL = 5886,
1033    FPGALoopControlsINTEL = 5888,
1034    KernelAttributesINTEL = 5892,
1035    FPGAKernelAttributesINTEL = 5897,
1036    FPGAMemoryAccessesINTEL = 5898,
1037    FPGAClusterAttributesINTEL = 5904,
1038    LoopFuseINTEL = 5906,
1039    FPGABufferLocationINTEL = 5920,
1040    USMStorageClassesINTEL = 5935,
1041    IOPipesINTEL = 5943,
1042    BlockingPipesINTEL = 5945,
1043    FPGARegINTEL = 5948,
1044    AtomicFloat32AddEXT = 6033,
1045    AtomicFloat64AddEXT = 6034,
1046    LongConstantCompositeINTEL = 6089,
1047    Max = 0x7fffffff,
1048};
1049
1050enum class RayFlagsShift : unsigned {
1051    OpaqueKHR = 0,
1052    NoOpaqueKHR = 1,
1053    TerminateOnFirstHitKHR = 2,
1054    SkipClosestHitShaderKHR = 3,
1055    CullBackFacingTrianglesKHR = 4,
1056    CullFrontFacingTrianglesKHR = 5,
1057    CullOpaqueKHR = 6,
1058    CullNoOpaqueKHR = 7,
1059    SkipTrianglesKHR = 8,
1060    SkipAABBsKHR = 9,
1061    Max = 0x7fffffff,
1062};
1063
1064enum class RayFlagsMask : unsigned {
1065    MaskNone = 0,
1066    OpaqueKHR = 0x00000001,
1067    NoOpaqueKHR = 0x00000002,
1068    TerminateOnFirstHitKHR = 0x00000004,
1069    SkipClosestHitShaderKHR = 0x00000008,
1070    CullBackFacingTrianglesKHR = 0x00000010,
1071    CullFrontFacingTrianglesKHR = 0x00000020,
1072    CullOpaqueKHR = 0x00000040,
1073    CullNoOpaqueKHR = 0x00000080,
1074    SkipTrianglesKHR = 0x00000100,
1075    SkipAABBsKHR = 0x00000200,
1076};
1077
1078enum class RayQueryIntersection : unsigned {
1079    RayQueryCandidateIntersectionKHR = 0,
1080    RayQueryCommittedIntersectionKHR = 1,
1081    Max = 0x7fffffff,
1082};
1083
1084enum class RayQueryCommittedIntersectionType : unsigned {
1085    RayQueryCommittedIntersectionNoneKHR = 0,
1086    RayQueryCommittedIntersectionTriangleKHR = 1,
1087    RayQueryCommittedIntersectionGeneratedKHR = 2,
1088    Max = 0x7fffffff,
1089};
1090
1091enum class RayQueryCandidateIntersectionType : unsigned {
1092    RayQueryCandidateIntersectionTriangleKHR = 0,
1093    RayQueryCandidateIntersectionAABBKHR = 1,
1094    Max = 0x7fffffff,
1095};
1096
1097enum class FragmentShadingRateShift : unsigned {
1098    Vertical2Pixels = 0,
1099    Vertical4Pixels = 1,
1100    Horizontal2Pixels = 2,
1101    Horizontal4Pixels = 3,
1102    Max = 0x7fffffff,
1103};
1104
1105enum class FragmentShadingRateMask : unsigned {
1106    MaskNone = 0,
1107    Vertical2Pixels = 0x00000001,
1108    Vertical4Pixels = 0x00000002,
1109    Horizontal2Pixels = 0x00000004,
1110    Horizontal4Pixels = 0x00000008,
1111};
1112
1113enum class Op : unsigned {
1114    OpNop = 0,
1115    OpUndef = 1,
1116    OpSourceContinued = 2,
1117    OpSource = 3,
1118    OpSourceExtension = 4,
1119    OpName = 5,
1120    OpMemberName = 6,
1121    OpString = 7,
1122    OpLine = 8,
1123    OpExtension = 10,
1124    OpExtInstImport = 11,
1125    OpExtInst = 12,
1126    OpMemoryModel = 14,
1127    OpEntryPoint = 15,
1128    OpExecutionMode = 16,
1129    OpCapability = 17,
1130    OpTypeVoid = 19,
1131    OpTypeBool = 20,
1132    OpTypeInt = 21,
1133    OpTypeFloat = 22,
1134    OpTypeVector = 23,
1135    OpTypeMatrix = 24,
1136    OpTypeImage = 25,
1137    OpTypeSampler = 26,
1138    OpTypeSampledImage = 27,
1139    OpTypeArray = 28,
1140    OpTypeRuntimeArray = 29,
1141    OpTypeStruct = 30,
1142    OpTypeOpaque = 31,
1143    OpTypePointer = 32,
1144    OpTypeFunction = 33,
1145    OpTypeEvent = 34,
1146    OpTypeDeviceEvent = 35,
1147    OpTypeReserveId = 36,
1148    OpTypeQueue = 37,
1149    OpTypePipe = 38,
1150    OpTypeForwardPointer = 39,
1151    OpConstantTrue = 41,
1152    OpConstantFalse = 42,
1153    OpConstant = 43,
1154    OpConstantComposite = 44,
1155    OpConstantSampler = 45,
1156    OpConstantNull = 46,
1157    OpSpecConstantTrue = 48,
1158    OpSpecConstantFalse = 49,
1159    OpSpecConstant = 50,
1160    OpSpecConstantComposite = 51,
1161    OpSpecConstantOp = 52,
1162    OpFunction = 54,
1163    OpFunctionParameter = 55,
1164    OpFunctionEnd = 56,
1165    OpFunctionCall = 57,
1166    OpVariable = 59,
1167    OpImageTexelPointer = 60,
1168    OpLoad = 61,
1169    OpStore = 62,
1170    OpCopyMemory = 63,
1171    OpCopyMemorySized = 64,
1172    OpAccessChain = 65,
1173    OpInBoundsAccessChain = 66,
1174    OpPtrAccessChain = 67,
1175    OpArrayLength = 68,
1176    OpGenericPtrMemSemantics = 69,
1177    OpInBoundsPtrAccessChain = 70,
1178    OpDecorate = 71,
1179    OpMemberDecorate = 72,
1180    OpDecorationGroup = 73,
1181    OpGroupDecorate = 74,
1182    OpGroupMemberDecorate = 75,
1183    OpVectorExtractDynamic = 77,
1184    OpVectorInsertDynamic = 78,
1185    OpVectorShuffle = 79,
1186    OpCompositeConstruct = 80,
1187    OpCompositeExtract = 81,
1188    OpCompositeInsert = 82,
1189    OpCopyObject = 83,
1190    OpTranspose = 84,
1191    OpSampledImage = 86,
1192    OpImageSampleImplicitLod = 87,
1193    OpImageSampleExplicitLod = 88,
1194    OpImageSampleDrefImplicitLod = 89,
1195    OpImageSampleDrefExplicitLod = 90,
1196    OpImageSampleProjImplicitLod = 91,
1197    OpImageSampleProjExplicitLod = 92,
1198    OpImageSampleProjDrefImplicitLod = 93,
1199    OpImageSampleProjDrefExplicitLod = 94,
1200    OpImageFetch = 95,
1201    OpImageGather = 96,
1202    OpImageDrefGather = 97,
1203    OpImageRead = 98,
1204    OpImageWrite = 99,
1205    OpImage = 100,
1206    OpImageQueryFormat = 101,
1207    OpImageQueryOrder = 102,
1208    OpImageQuerySizeLod = 103,
1209    OpImageQuerySize = 104,
1210    OpImageQueryLod = 105,
1211    OpImageQueryLevels = 106,
1212    OpImageQuerySamples = 107,
1213    OpConvertFToU = 109,
1214    OpConvertFToS = 110,
1215    OpConvertSToF = 111,
1216    OpConvertUToF = 112,
1217    OpUConvert = 113,
1218    OpSConvert = 114,
1219    OpFConvert = 115,
1220    OpQuantizeToF16 = 116,
1221    OpConvertPtrToU = 117,
1222    OpSatConvertSToU = 118,
1223    OpSatConvertUToS = 119,
1224    OpConvertUToPtr = 120,
1225    OpPtrCastToGeneric = 121,
1226    OpGenericCastToPtr = 122,
1227    OpGenericCastToPtrExplicit = 123,
1228    OpBitcast = 124,
1229    OpSNegate = 126,
1230    OpFNegate = 127,
1231    OpIAdd = 128,
1232    OpFAdd = 129,
1233    OpISub = 130,
1234    OpFSub = 131,
1235    OpIMul = 132,
1236    OpFMul = 133,
1237    OpUDiv = 134,
1238    OpSDiv = 135,
1239    OpFDiv = 136,
1240    OpUMod = 137,
1241    OpSRem = 138,
1242    OpSMod = 139,
1243    OpFRem = 140,
1244    OpFMod = 141,
1245    OpVectorTimesScalar = 142,
1246    OpMatrixTimesScalar = 143,
1247    OpVectorTimesMatrix = 144,
1248    OpMatrixTimesVector = 145,
1249    OpMatrixTimesMatrix = 146,
1250    OpOuterProduct = 147,
1251    OpDot = 148,
1252    OpIAddCarry = 149,
1253    OpISubBorrow = 150,
1254    OpUMulExtended = 151,
1255    OpSMulExtended = 152,
1256    OpAny = 154,
1257    OpAll = 155,
1258    OpIsNan = 156,
1259    OpIsInf = 157,
1260    OpIsFinite = 158,
1261    OpIsNormal = 159,
1262    OpSignBitSet = 160,
1263    OpLessOrGreater = 161,
1264    OpOrdered = 162,
1265    OpUnordered = 163,
1266    OpLogicalEqual = 164,
1267    OpLogicalNotEqual = 165,
1268    OpLogicalOr = 166,
1269    OpLogicalAnd = 167,
1270    OpLogicalNot = 168,
1271    OpSelect = 169,
1272    OpIEqual = 170,
1273    OpINotEqual = 171,
1274    OpUGreaterThan = 172,
1275    OpSGreaterThan = 173,
1276    OpUGreaterThanEqual = 174,
1277    OpSGreaterThanEqual = 175,
1278    OpULessThan = 176,
1279    OpSLessThan = 177,
1280    OpULessThanEqual = 178,
1281    OpSLessThanEqual = 179,
1282    OpFOrdEqual = 180,
1283    OpFUnordEqual = 181,
1284    OpFOrdNotEqual = 182,
1285    OpFUnordNotEqual = 183,
1286    OpFOrdLessThan = 184,
1287    OpFUnordLessThan = 185,
1288    OpFOrdGreaterThan = 186,
1289    OpFUnordGreaterThan = 187,
1290    OpFOrdLessThanEqual = 188,
1291    OpFUnordLessThanEqual = 189,
1292    OpFOrdGreaterThanEqual = 190,
1293    OpFUnordGreaterThanEqual = 191,
1294    OpShiftRightLogical = 194,
1295    OpShiftRightArithmetic = 195,
1296    OpShiftLeftLogical = 196,
1297    OpBitwiseOr = 197,
1298    OpBitwiseXor = 198,
1299    OpBitwiseAnd = 199,
1300    OpNot = 200,
1301    OpBitFieldInsert = 201,
1302    OpBitFieldSExtract = 202,
1303    OpBitFieldUExtract = 203,
1304    OpBitReverse = 204,
1305    OpBitCount = 205,
1306    OpDPdx = 207,
1307    OpDPdy = 208,
1308    OpFwidth = 209,
1309    OpDPdxFine = 210,
1310    OpDPdyFine = 211,
1311    OpFwidthFine = 212,
1312    OpDPdxCoarse = 213,
1313    OpDPdyCoarse = 214,
1314    OpFwidthCoarse = 215,
1315    OpEmitVertex = 218,
1316    OpEndPrimitive = 219,
1317    OpEmitStreamVertex = 220,
1318    OpEndStreamPrimitive = 221,
1319    OpControlBarrier = 224,
1320    OpMemoryBarrier = 225,
1321    OpAtomicLoad = 227,
1322    OpAtomicStore = 228,
1323    OpAtomicExchange = 229,
1324    OpAtomicCompareExchange = 230,
1325    OpAtomicCompareExchangeWeak = 231,
1326    OpAtomicIIncrement = 232,
1327    OpAtomicIDecrement = 233,
1328    OpAtomicIAdd = 234,
1329    OpAtomicISub = 235,
1330    OpAtomicSMin = 236,
1331    OpAtomicUMin = 237,
1332    OpAtomicSMax = 238,
1333    OpAtomicUMax = 239,
1334    OpAtomicAnd = 240,
1335    OpAtomicOr = 241,
1336    OpAtomicXor = 242,
1337    OpPhi = 245,
1338    OpLoopMerge = 246,
1339    OpSelectionMerge = 247,
1340    OpLabel = 248,
1341    OpBranch = 249,
1342    OpBranchConditional = 250,
1343    OpSwitch = 251,
1344    OpKill = 252,
1345    OpReturn = 253,
1346    OpReturnValue = 254,
1347    OpUnreachable = 255,
1348    OpLifetimeStart = 256,
1349    OpLifetimeStop = 257,
1350    OpGroupAsyncCopy = 259,
1351    OpGroupWaitEvents = 260,
1352    OpGroupAll = 261,
1353    OpGroupAny = 262,
1354    OpGroupBroadcast = 263,
1355    OpGroupIAdd = 264,
1356    OpGroupFAdd = 265,
1357    OpGroupFMin = 266,
1358    OpGroupUMin = 267,
1359    OpGroupSMin = 268,
1360    OpGroupFMax = 269,
1361    OpGroupUMax = 270,
1362    OpGroupSMax = 271,
1363    OpReadPipe = 274,
1364    OpWritePipe = 275,
1365    OpReservedReadPipe = 276,
1366    OpReservedWritePipe = 277,
1367    OpReserveReadPipePackets = 278,
1368    OpReserveWritePipePackets = 279,
1369    OpCommitReadPipe = 280,
1370    OpCommitWritePipe = 281,
1371    OpIsValidReserveId = 282,
1372    OpGetNumPipePackets = 283,
1373    OpGetMaxPipePackets = 284,
1374    OpGroupReserveReadPipePackets = 285,
1375    OpGroupReserveWritePipePackets = 286,
1376    OpGroupCommitReadPipe = 287,
1377    OpGroupCommitWritePipe = 288,
1378    OpEnqueueMarker = 291,
1379    OpEnqueueKernel = 292,
1380    OpGetKernelNDrangeSubGroupCount = 293,
1381    OpGetKernelNDrangeMaxSubGroupSize = 294,
1382    OpGetKernelWorkGroupSize = 295,
1383    OpGetKernelPreferredWorkGroupSizeMultiple = 296,
1384    OpRetainEvent = 297,
1385    OpReleaseEvent = 298,
1386    OpCreateUserEvent = 299,
1387    OpIsValidEvent = 300,
1388    OpSetUserEventStatus = 301,
1389    OpCaptureEventProfilingInfo = 302,
1390    OpGetDefaultQueue = 303,
1391    OpBuildNDRange = 304,
1392    OpImageSparseSampleImplicitLod = 305,
1393    OpImageSparseSampleExplicitLod = 306,
1394    OpImageSparseSampleDrefImplicitLod = 307,
1395    OpImageSparseSampleDrefExplicitLod = 308,
1396    OpImageSparseSampleProjImplicitLod = 309,
1397    OpImageSparseSampleProjExplicitLod = 310,
1398    OpImageSparseSampleProjDrefImplicitLod = 311,
1399    OpImageSparseSampleProjDrefExplicitLod = 312,
1400    OpImageSparseFetch = 313,
1401    OpImageSparseGather = 314,
1402    OpImageSparseDrefGather = 315,
1403    OpImageSparseTexelsResident = 316,
1404    OpNoLine = 317,
1405    OpAtomicFlagTestAndSet = 318,
1406    OpAtomicFlagClear = 319,
1407    OpImageSparseRead = 320,
1408    OpSizeOf = 321,
1409    OpTypePipeStorage = 322,
1410    OpConstantPipeStorage = 323,
1411    OpCreatePipeFromPipeStorage = 324,
1412    OpGetKernelLocalSizeForSubgroupCount = 325,
1413    OpGetKernelMaxNumSubgroups = 326,
1414    OpTypeNamedBarrier = 327,
1415    OpNamedBarrierInitialize = 328,
1416    OpMemoryNamedBarrier = 329,
1417    OpModuleProcessed = 330,
1418    OpExecutionModeId = 331,
1419    OpDecorateId = 332,
1420    OpGroupNonUniformElect = 333,
1421    OpGroupNonUniformAll = 334,
1422    OpGroupNonUniformAny = 335,
1423    OpGroupNonUniformAllEqual = 336,
1424    OpGroupNonUniformBroadcast = 337,
1425    OpGroupNonUniformBroadcastFirst = 338,
1426    OpGroupNonUniformBallot = 339,
1427    OpGroupNonUniformInverseBallot = 340,
1428    OpGroupNonUniformBallotBitExtract = 341,
1429    OpGroupNonUniformBallotBitCount = 342,
1430    OpGroupNonUniformBallotFindLSB = 343,
1431    OpGroupNonUniformBallotFindMSB = 344,
1432    OpGroupNonUniformShuffle = 345,
1433    OpGroupNonUniformShuffleXor = 346,
1434    OpGroupNonUniformShuffleUp = 347,
1435    OpGroupNonUniformShuffleDown = 348,
1436    OpGroupNonUniformIAdd = 349,
1437    OpGroupNonUniformFAdd = 350,
1438    OpGroupNonUniformIMul = 351,
1439    OpGroupNonUniformFMul = 352,
1440    OpGroupNonUniformSMin = 353,
1441    OpGroupNonUniformUMin = 354,
1442    OpGroupNonUniformFMin = 355,
1443    OpGroupNonUniformSMax = 356,
1444    OpGroupNonUniformUMax = 357,
1445    OpGroupNonUniformFMax = 358,
1446    OpGroupNonUniformBitwiseAnd = 359,
1447    OpGroupNonUniformBitwiseOr = 360,
1448    OpGroupNonUniformBitwiseXor = 361,
1449    OpGroupNonUniformLogicalAnd = 362,
1450    OpGroupNonUniformLogicalOr = 363,
1451    OpGroupNonUniformLogicalXor = 364,
1452    OpGroupNonUniformQuadBroadcast = 365,
1453    OpGroupNonUniformQuadSwap = 366,
1454    OpCopyLogical = 400,
1455    OpPtrEqual = 401,
1456    OpPtrNotEqual = 402,
1457    OpPtrDiff = 403,
1458    OpTerminateInvocation = 4416,
1459    OpSubgroupBallotKHR = 4421,
1460    OpSubgroupFirstInvocationKHR = 4422,
1461    OpSubgroupAllKHR = 4428,
1462    OpSubgroupAnyKHR = 4429,
1463    OpSubgroupAllEqualKHR = 4430,
1464    OpSubgroupReadInvocationKHR = 4432,
1465    OpTraceRayKHR = 4445,
1466    OpExecuteCallableKHR = 4446,
1467    OpConvertUToAccelerationStructureKHR = 4447,
1468    OpIgnoreIntersectionKHR = 4448,
1469    OpTerminateRayKHR = 4449,
1470    OpTypeRayQueryKHR = 4472,
1471    OpRayQueryInitializeKHR = 4473,
1472    OpRayQueryTerminateKHR = 4474,
1473    OpRayQueryGenerateIntersectionKHR = 4475,
1474    OpRayQueryConfirmIntersectionKHR = 4476,
1475    OpRayQueryProceedKHR = 4477,
1476    OpRayQueryGetIntersectionTypeKHR = 4479,
1477    OpGroupIAddNonUniformAMD = 5000,
1478    OpGroupFAddNonUniformAMD = 5001,
1479    OpGroupFMinNonUniformAMD = 5002,
1480    OpGroupUMinNonUniformAMD = 5003,
1481    OpGroupSMinNonUniformAMD = 5004,
1482    OpGroupFMaxNonUniformAMD = 5005,
1483    OpGroupUMaxNonUniformAMD = 5006,
1484    OpGroupSMaxNonUniformAMD = 5007,
1485    OpFragmentMaskFetchAMD = 5011,
1486    OpFragmentFetchAMD = 5012,
1487    OpReadClockKHR = 5056,
1488    OpImageSampleFootprintNV = 5283,
1489    OpGroupNonUniformPartitionNV = 5296,
1490    OpWritePackedPrimitiveIndices4x8NV = 5299,
1491    OpReportIntersectionKHR = 5334,
1492    OpReportIntersectionNV = 5334,
1493    OpIgnoreIntersectionNV = 5335,
1494    OpTerminateRayNV = 5336,
1495    OpTraceNV = 5337,
1496    OpTypeAccelerationStructureKHR = 5341,
1497    OpTypeAccelerationStructureNV = 5341,
1498    OpExecuteCallableNV = 5344,
1499    OpTypeCooperativeMatrixNV = 5358,
1500    OpCooperativeMatrixLoadNV = 5359,
1501    OpCooperativeMatrixStoreNV = 5360,
1502    OpCooperativeMatrixMulAddNV = 5361,
1503    OpCooperativeMatrixLengthNV = 5362,
1504    OpBeginInvocationInterlockEXT = 5364,
1505    OpEndInvocationInterlockEXT = 5365,
1506    OpDemoteToHelperInvocationEXT = 5380,
1507    OpIsHelperInvocationEXT = 5381,
1508    OpSubgroupShuffleINTEL = 5571,
1509    OpSubgroupShuffleDownINTEL = 5572,
1510    OpSubgroupShuffleUpINTEL = 5573,
1511    OpSubgroupShuffleXorINTEL = 5574,
1512    OpSubgroupBlockReadINTEL = 5575,
1513    OpSubgroupBlockWriteINTEL = 5576,
1514    OpSubgroupImageBlockReadINTEL = 5577,
1515    OpSubgroupImageBlockWriteINTEL = 5578,
1516    OpSubgroupImageMediaBlockReadINTEL = 5580,
1517    OpSubgroupImageMediaBlockWriteINTEL = 5581,
1518    OpUCountLeadingZerosINTEL = 5585,
1519    OpUCountTrailingZerosINTEL = 5586,
1520    OpAbsISubINTEL = 5587,
1521    OpAbsUSubINTEL = 5588,
1522    OpIAddSatINTEL = 5589,
1523    OpUAddSatINTEL = 5590,
1524    OpIAverageINTEL = 5591,
1525    OpUAverageINTEL = 5592,
1526    OpIAverageRoundedINTEL = 5593,
1527    OpUAverageRoundedINTEL = 5594,
1528    OpISubSatINTEL = 5595,
1529    OpUSubSatINTEL = 5596,
1530    OpIMul32x16INTEL = 5597,
1531    OpUMul32x16INTEL = 5598,
1532    OpConstFunctionPointerINTEL = 5600,
1533    OpFunctionPointerCallINTEL = 5601,
1534    OpAsmTargetINTEL = 5609,
1535    OpAsmINTEL = 5610,
1536    OpAsmCallINTEL = 5611,
1537    OpDecorateString = 5632,
1538    OpDecorateStringGOOGLE = 5632,
1539    OpMemberDecorateString = 5633,
1540    OpMemberDecorateStringGOOGLE = 5633,
1541    OpVmeImageINTEL = 5699,
1542    OpTypeVmeImageINTEL = 5700,
1543    OpTypeAvcImePayloadINTEL = 5701,
1544    OpTypeAvcRefPayloadINTEL = 5702,
1545    OpTypeAvcSicPayloadINTEL = 5703,
1546    OpTypeAvcMcePayloadINTEL = 5704,
1547    OpTypeAvcMceResultINTEL = 5705,
1548    OpTypeAvcImeResultINTEL = 5706,
1549    OpTypeAvcImeResultSingleReferenceStreamoutINTEL = 5707,
1550    OpTypeAvcImeResultDualReferenceStreamoutINTEL = 5708,
1551    OpTypeAvcImeSingleReferenceStreaminINTEL = 5709,
1552    OpTypeAvcImeDualReferenceStreaminINTEL = 5710,
1553    OpTypeAvcRefResultINTEL = 5711,
1554    OpTypeAvcSicResultINTEL = 5712,
1555    OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL = 5713,
1556    OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL = 5714,
1557    OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL = 5715,
1558    OpSubgroupAvcMceSetInterShapePenaltyINTEL = 5716,
1559    OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL = 5717,
1560    OpSubgroupAvcMceSetInterDirectionPenaltyINTEL = 5718,
1561    OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL = 5719,
1562    OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL = 5720,
1563    OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL = 5721,
1564    OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL = 5722,
1565    OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL = 5723,
1566    OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL = 5724,
1567    OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL = 5725,
1568    OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL = 5726,
1569    OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL = 5727,
1570    OpSubgroupAvcMceSetAcOnlyHaarINTEL = 5728,
1571    OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL = 5729,
1572    OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL = 5730,
1573    OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL = 5731,
1574    OpSubgroupAvcMceConvertToImePayloadINTEL = 5732,
1575    OpSubgroupAvcMceConvertToImeResultINTEL = 5733,
1576    OpSubgroupAvcMceConvertToRefPayloadINTEL = 5734,
1577    OpSubgroupAvcMceConvertToRefResultINTEL = 5735,
1578    OpSubgroupAvcMceConvertToSicPayloadINTEL = 5736,
1579    OpSubgroupAvcMceConvertToSicResultINTEL = 5737,
1580    OpSubgroupAvcMceGetMotionVectorsINTEL = 5738,
1581    OpSubgroupAvcMceGetInterDistortionsINTEL = 5739,
1582    OpSubgroupAvcMceGetBestInterDistortionsINTEL = 5740,
1583    OpSubgroupAvcMceGetInterMajorShapeINTEL = 5741,
1584    OpSubgroupAvcMceGetInterMinorShapeINTEL = 5742,
1585    OpSubgroupAvcMceGetInterDirectionsINTEL = 5743,
1586    OpSubgroupAvcMceGetInterMotionVectorCountINTEL = 5744,
1587    OpSubgroupAvcMceGetInterReferenceIdsINTEL = 5745,
1588    OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL = 5746,
1589    OpSubgroupAvcImeInitializeINTEL = 5747,
1590    OpSubgroupAvcImeSetSingleReferenceINTEL = 5748,
1591    OpSubgroupAvcImeSetDualReferenceINTEL = 5749,
1592    OpSubgroupAvcImeRefWindowSizeINTEL = 5750,
1593    OpSubgroupAvcImeAdjustRefOffsetINTEL = 5751,
1594    OpSubgroupAvcImeConvertToMcePayloadINTEL = 5752,
1595    OpSubgroupAvcImeSetMaxMotionVectorCountINTEL = 5753,
1596    OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL = 5754,
1597    OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL = 5755,
1598    OpSubgroupAvcImeSetWeightedSadINTEL = 5756,
1599    OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL = 5757,
1600    OpSubgroupAvcImeEvaluateWithDualReferenceINTEL = 5758,
1601    OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL = 5759,
1602    OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL = 5760,
1603    OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL = 5761,
1604    OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL = 5762,
1605    OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL = 5763,
1606    OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL = 5764,
1607    OpSubgroupAvcImeConvertToMceResultINTEL = 5765,
1608    OpSubgroupAvcImeGetSingleReferenceStreaminINTEL = 5766,
1609    OpSubgroupAvcImeGetDualReferenceStreaminINTEL = 5767,
1610    OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL = 5768,
1611    OpSubgroupAvcImeStripDualReferenceStreamoutINTEL = 5769,
1612    OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL = 5770,
1613    OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL = 5771,
1614    OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL = 5772,
1615    OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL = 5773,
1616    OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL = 5774,
1617    OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL = 5775,
1618    OpSubgroupAvcImeGetBorderReachedINTEL = 5776,
1619    OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL = 5777,
1620    OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL = 5778,
1621    OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL = 5779,
1622    OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL = 5780,
1623    OpSubgroupAvcFmeInitializeINTEL = 5781,
1624    OpSubgroupAvcBmeInitializeINTEL = 5782,
1625    OpSubgroupAvcRefConvertToMcePayloadINTEL = 5783,
1626    OpSubgroupAvcRefSetBidirectionalMixDisableINTEL = 5784,
1627    OpSubgroupAvcRefSetBilinearFilterEnableINTEL = 5785,
1628    OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL = 5786,
1629    OpSubgroupAvcRefEvaluateWithDualReferenceINTEL = 5787,
1630    OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL = 5788,
1631    OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL = 5789,
1632    OpSubgroupAvcRefConvertToMceResultINTEL = 5790,
1633    OpSubgroupAvcSicInitializeINTEL = 5791,
1634    OpSubgroupAvcSicConfigureSkcINTEL = 5792,
1635    OpSubgroupAvcSicConfigureIpeLumaINTEL = 5793,
1636    OpSubgroupAvcSicConfigureIpeLumaChromaINTEL = 5794,
1637    OpSubgroupAvcSicGetMotionVectorMaskINTEL = 5795,
1638    OpSubgroupAvcSicConvertToMcePayloadINTEL = 5796,
1639    OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL = 5797,
1640    OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL = 5798,
1641    OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL = 5799,
1642    OpSubgroupAvcSicSetBilinearFilterEnableINTEL = 5800,
1643    OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL = 5801,
1644    OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL = 5802,
1645    OpSubgroupAvcSicEvaluateIpeINTEL = 5803,
1646    OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL = 5804,
1647    OpSubgroupAvcSicEvaluateWithDualReferenceINTEL = 5805,
1648    OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL = 5806,
1649    OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL = 5807,
1650    OpSubgroupAvcSicConvertToMceResultINTEL = 5808,
1651    OpSubgroupAvcSicGetIpeLumaShapeINTEL = 5809,
1652    OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL = 5810,
1653    OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL = 5811,
1654    OpSubgroupAvcSicGetPackedIpeLumaModesINTEL = 5812,
1655    OpSubgroupAvcSicGetIpeChromaModeINTEL = 5813,
1656    OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL = 5814,
1657    OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL = 5815,
1658    OpSubgroupAvcSicGetInterRawSadsINTEL = 5816,
1659    OpVariableLengthArrayINTEL = 5818,
1660    OpSaveMemoryINTEL = 5819,
1661    OpRestoreMemoryINTEL = 5820,
1662    OpLoopControlINTEL = 5887,
1663    OpPtrCastToCrossWorkgroupINTEL = 5934,
1664    OpCrossWorkgroupCastToPtrINTEL = 5938,
1665    OpReadPipeBlockingINTEL = 5946,
1666    OpWritePipeBlockingINTEL = 5947,
1667    OpFPGARegINTEL = 5949,
1668    OpRayQueryGetRayTMinKHR = 6016,
1669    OpRayQueryGetRayFlagsKHR = 6017,
1670    OpRayQueryGetIntersectionTKHR = 6018,
1671    OpRayQueryGetIntersectionInstanceCustomIndexKHR = 6019,
1672    OpRayQueryGetIntersectionInstanceIdKHR = 6020,
1673    OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR = 6021,
1674    OpRayQueryGetIntersectionGeometryIndexKHR = 6022,
1675    OpRayQueryGetIntersectionPrimitiveIndexKHR = 6023,
1676    OpRayQueryGetIntersectionBarycentricsKHR = 6024,
1677    OpRayQueryGetIntersectionFrontFaceKHR = 6025,
1678    OpRayQueryGetIntersectionCandidateAABBOpaqueKHR = 6026,
1679    OpRayQueryGetIntersectionObjectRayDirectionKHR = 6027,
1680    OpRayQueryGetIntersectionObjectRayOriginKHR = 6028,
1681    OpRayQueryGetWorldRayDirectionKHR = 6029,
1682    OpRayQueryGetWorldRayOriginKHR = 6030,
1683    OpRayQueryGetIntersectionObjectToWorldKHR = 6031,
1684    OpRayQueryGetIntersectionWorldToObjectKHR = 6032,
1685    OpAtomicFAddEXT = 6035,
1686    OpTypeBufferSurfaceINTEL = 6086,
1687    OpTypeStructContinuedINTEL = 6090,
1688    OpConstantCompositeContinuedINTEL = 6091,
1689    OpSpecConstantCompositeContinuedINTEL = 6092,
1690    Max = 0x7fffffff,
1691};
1692
1693#ifdef SPV_ENABLE_UTILITY_CODE
1694inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
1695    *hasResult = *hasResultType = false;
1696    switch (opcode) {
1697    default: /* unknown opcode */ break;
1698    case Op::OpNop: *hasResult = false; *hasResultType = false; break;
1699    case Op::OpUndef: *hasResult = true; *hasResultType = true; break;
1700    case Op::OpSourceContinued: *hasResult = false; *hasResultType = false; break;
1701    case Op::OpSource: *hasResult = false; *hasResultType = false; break;
1702    case Op::OpSourceExtension: *hasResult = false; *hasResultType = false; break;
1703    case Op::OpName: *hasResult = false; *hasResultType = false; break;
1704    case Op::OpMemberName: *hasResult = false; *hasResultType = false; break;
1705    case Op::OpString: *hasResult = true; *hasResultType = false; break;
1706    case Op::OpLine: *hasResult = false; *hasResultType = false; break;
1707    case Op::OpExtension: *hasResult = false; *hasResultType = false; break;
1708    case Op::OpExtInstImport: *hasResult = true; *hasResultType = false; break;
1709    case Op::OpExtInst: *hasResult = true; *hasResultType = true; break;
1710    case Op::OpMemoryModel: *hasResult = false; *hasResultType = false; break;
1711    case Op::OpEntryPoint: *hasResult = false; *hasResultType = false; break;
1712    case Op::OpExecutionMode: *hasResult = false; *hasResultType = false; break;
1713    case Op::OpCapability: *hasResult = false; *hasResultType = false; break;
1714    case Op::OpTypeVoid: *hasResult = true; *hasResultType = false; break;
1715    case Op::OpTypeBool: *hasResult = true; *hasResultType = false; break;
1716    case Op::OpTypeInt: *hasResult = true; *hasResultType = false; break;
1717    case Op::OpTypeFloat: *hasResult = true; *hasResultType = false; break;
1718    case Op::OpTypeVector: *hasResult = true; *hasResultType = false; break;
1719    case Op::OpTypeMatrix: *hasResult = true; *hasResultType = false; break;
1720    case Op::OpTypeImage: *hasResult = true; *hasResultType = false; break;
1721    case Op::OpTypeSampler: *hasResult = true; *hasResultType = false; break;
1722    case Op::OpTypeSampledImage: *hasResult = true; *hasResultType = false; break;
1723    case Op::OpTypeArray: *hasResult = true; *hasResultType = false; break;
1724    case Op::OpTypeRuntimeArray: *hasResult = true; *hasResultType = false; break;
1725    case Op::OpTypeStruct: *hasResult = true; *hasResultType = false; break;
1726    case Op::OpTypeOpaque: *hasResult = true; *hasResultType = false; break;
1727    case Op::OpTypePointer: *hasResult = true; *hasResultType = false; break;
1728    case Op::OpTypeFunction: *hasResult = true; *hasResultType = false; break;
1729    case Op::OpTypeEvent: *hasResult = true; *hasResultType = false; break;
1730    case Op::OpTypeDeviceEvent: *hasResult = true; *hasResultType = false; break;
1731    case Op::OpTypeReserveId: *hasResult = true; *hasResultType = false; break;
1732    case Op::OpTypeQueue: *hasResult = true; *hasResultType = false; break;
1733    case Op::OpTypePipe: *hasResult = true; *hasResultType = false; break;
1734    case Op::OpTypeForwardPointer: *hasResult = false; *hasResultType = false; break;
1735    case Op::OpConstantTrue: *hasResult = true; *hasResultType = true; break;
1736    case Op::OpConstantFalse: *hasResult = true; *hasResultType = true; break;
1737    case Op::OpConstant: *hasResult = true; *hasResultType = true; break;
1738    case Op::OpConstantComposite: *hasResult = true; *hasResultType = true; break;
1739    case Op::OpConstantSampler: *hasResult = true; *hasResultType = true; break;
1740    case Op::OpConstantNull: *hasResult = true; *hasResultType = true; break;
1741    case Op::OpSpecConstantTrue: *hasResult = true; *hasResultType = true; break;
1742    case Op::OpSpecConstantFalse: *hasResult = true; *hasResultType = true; break;
1743    case Op::OpSpecConstant: *hasResult = true; *hasResultType = true; break;
1744    case Op::OpSpecConstantComposite: *hasResult = true; *hasResultType = true; break;
1745    case Op::OpSpecConstantOp: *hasResult = true; *hasResultType = true; break;
1746    case Op::OpFunction: *hasResult = true; *hasResultType = true; break;
1747    case Op::OpFunctionParameter: *hasResult = true; *hasResultType = true; break;
1748    case Op::OpFunctionEnd: *hasResult = false; *hasResultType = false; break;
1749    case Op::OpFunctionCall: *hasResult = true; *hasResultType = true; break;
1750    case Op::OpVariable: *hasResult = true; *hasResultType = true; break;
1751    case Op::OpImageTexelPointer: *hasResult = true; *hasResultType = true; break;
1752    case Op::OpLoad: *hasResult = true; *hasResultType = true; break;
1753    case Op::OpStore: *hasResult = false; *hasResultType = false; break;
1754    case Op::OpCopyMemory: *hasResult = false; *hasResultType = false; break;
1755    case Op::OpCopyMemorySized: *hasResult = false; *hasResultType = false; break;
1756    case Op::OpAccessChain: *hasResult = true; *hasResultType = true; break;
1757    case Op::OpInBoundsAccessChain: *hasResult = true; *hasResultType = true; break;
1758    case Op::OpPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1759    case Op::OpArrayLength: *hasResult = true; *hasResultType = true; break;
1760    case Op::OpGenericPtrMemSemantics: *hasResult = true; *hasResultType = true; break;
1761    case Op::OpInBoundsPtrAccessChain: *hasResult = true; *hasResultType = true; break;
1762    case Op::OpDecorate: *hasResult = false; *hasResultType = false; break;
1763    case Op::OpMemberDecorate: *hasResult = false; *hasResultType = false; break;
1764    case Op::OpDecorationGroup: *hasResult = true; *hasResultType = false; break;
1765    case Op::OpGroupDecorate: *hasResult = false; *hasResultType = false; break;
1766    case Op::OpGroupMemberDecorate: *hasResult = false; *hasResultType = false; break;
1767    case Op::OpVectorExtractDynamic: *hasResult = true; *hasResultType = true; break;
1768    case Op::OpVectorInsertDynamic: *hasResult = true; *hasResultType = true; break;
1769    case Op::OpVectorShuffle: *hasResult = true; *hasResultType = true; break;
1770    case Op::OpCompositeConstruct: *hasResult = true; *hasResultType = true; break;
1771    case Op::OpCompositeExtract: *hasResult = true; *hasResultType = true; break;
1772    case Op::OpCompositeInsert: *hasResult = true; *hasResultType = true; break;
1773    case Op::OpCopyObject: *hasResult = true; *hasResultType = true; break;
1774    case Op::OpTranspose: *hasResult = true; *hasResultType = true; break;
1775    case Op::OpSampledImage: *hasResult = true; *hasResultType = true; break;
1776    case Op::OpImageSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
1777    case Op::OpImageSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
1778    case Op::OpImageSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1779    case Op::OpImageSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1780    case Op::OpImageSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
1781    case Op::OpImageSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
1782    case Op::OpImageSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1783    case Op::OpImageSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1784    case Op::OpImageFetch: *hasResult = true; *hasResultType = true; break;
1785    case Op::OpImageGather: *hasResult = true; *hasResultType = true; break;
1786    case Op::OpImageDrefGather: *hasResult = true; *hasResultType = true; break;
1787    case Op::OpImageRead: *hasResult = true; *hasResultType = true; break;
1788    case Op::OpImageWrite: *hasResult = false; *hasResultType = false; break;
1789    case Op::OpImage: *hasResult = true; *hasResultType = true; break;
1790    case Op::OpImageQueryFormat: *hasResult = true; *hasResultType = true; break;
1791    case Op::OpImageQueryOrder: *hasResult = true; *hasResultType = true; break;
1792    case Op::OpImageQuerySizeLod: *hasResult = true; *hasResultType = true; break;
1793    case Op::OpImageQuerySize: *hasResult = true; *hasResultType = true; break;
1794    case Op::OpImageQueryLod: *hasResult = true; *hasResultType = true; break;
1795    case Op::OpImageQueryLevels: *hasResult = true; *hasResultType = true; break;
1796    case Op::OpImageQuerySamples: *hasResult = true; *hasResultType = true; break;
1797    case Op::OpConvertFToU: *hasResult = true; *hasResultType = true; break;
1798    case Op::OpConvertFToS: *hasResult = true; *hasResultType = true; break;
1799    case Op::OpConvertSToF: *hasResult = true; *hasResultType = true; break;
1800    case Op::OpConvertUToF: *hasResult = true; *hasResultType = true; break;
1801    case Op::OpUConvert: *hasResult = true; *hasResultType = true; break;
1802    case Op::OpSConvert: *hasResult = true; *hasResultType = true; break;
1803    case Op::OpFConvert: *hasResult = true; *hasResultType = true; break;
1804    case Op::OpQuantizeToF16: *hasResult = true; *hasResultType = true; break;
1805    case Op::OpConvertPtrToU: *hasResult = true; *hasResultType = true; break;
1806    case Op::OpSatConvertSToU: *hasResult = true; *hasResultType = true; break;
1807    case Op::OpSatConvertUToS: *hasResult = true; *hasResultType = true; break;
1808    case Op::OpConvertUToPtr: *hasResult = true; *hasResultType = true; break;
1809    case Op::OpPtrCastToGeneric: *hasResult = true; *hasResultType = true; break;
1810    case Op::OpGenericCastToPtr: *hasResult = true; *hasResultType = true; break;
1811    case Op::OpGenericCastToPtrExplicit: *hasResult = true; *hasResultType = true; break;
1812    case Op::OpBitcast: *hasResult = true; *hasResultType = true; break;
1813    case Op::OpSNegate: *hasResult = true; *hasResultType = true; break;
1814    case Op::OpFNegate: *hasResult = true; *hasResultType = true; break;
1815    case Op::OpIAdd: *hasResult = true; *hasResultType = true; break;
1816    case Op::OpFAdd: *hasResult = true; *hasResultType = true; break;
1817    case Op::OpISub: *hasResult = true; *hasResultType = true; break;
1818    case Op::OpFSub: *hasResult = true; *hasResultType = true; break;
1819    case Op::OpIMul: *hasResult = true; *hasResultType = true; break;
1820    case Op::OpFMul: *hasResult = true; *hasResultType = true; break;
1821    case Op::OpUDiv: *hasResult = true; *hasResultType = true; break;
1822    case Op::OpSDiv: *hasResult = true; *hasResultType = true; break;
1823    case Op::OpFDiv: *hasResult = true; *hasResultType = true; break;
1824    case Op::OpUMod: *hasResult = true; *hasResultType = true; break;
1825    case Op::OpSRem: *hasResult = true; *hasResultType = true; break;
1826    case Op::OpSMod: *hasResult = true; *hasResultType = true; break;
1827    case Op::OpFRem: *hasResult = true; *hasResultType = true; break;
1828    case Op::OpFMod: *hasResult = true; *hasResultType = true; break;
1829    case Op::OpVectorTimesScalar: *hasResult = true; *hasResultType = true; break;
1830    case Op::OpMatrixTimesScalar: *hasResult = true; *hasResultType = true; break;
1831    case Op::OpVectorTimesMatrix: *hasResult = true; *hasResultType = true; break;
1832    case Op::OpMatrixTimesVector: *hasResult = true; *hasResultType = true; break;
1833    case Op::OpMatrixTimesMatrix: *hasResult = true; *hasResultType = true; break;
1834    case Op::OpOuterProduct: *hasResult = true; *hasResultType = true; break;
1835    case Op::OpDot: *hasResult = true; *hasResultType = true; break;
1836    case Op::OpIAddCarry: *hasResult = true; *hasResultType = true; break;
1837    case Op::OpISubBorrow: *hasResult = true; *hasResultType = true; break;
1838    case Op::OpUMulExtended: *hasResult = true; *hasResultType = true; break;
1839    case Op::OpSMulExtended: *hasResult = true; *hasResultType = true; break;
1840    case Op::OpAny: *hasResult = true; *hasResultType = true; break;
1841    case Op::OpAll: *hasResult = true; *hasResultType = true; break;
1842    case Op::OpIsNan: *hasResult = true; *hasResultType = true; break;
1843    case Op::OpIsInf: *hasResult = true; *hasResultType = true; break;
1844    case Op::OpIsFinite: *hasResult = true; *hasResultType = true; break;
1845    case Op::OpIsNormal: *hasResult = true; *hasResultType = true; break;
1846    case Op::OpSignBitSet: *hasResult = true; *hasResultType = true; break;
1847    case Op::OpLessOrGreater: *hasResult = true; *hasResultType = true; break;
1848    case Op::OpOrdered: *hasResult = true; *hasResultType = true; break;
1849    case Op::OpUnordered: *hasResult = true; *hasResultType = true; break;
1850    case Op::OpLogicalEqual: *hasResult = true; *hasResultType = true; break;
1851    case Op::OpLogicalNotEqual: *hasResult = true; *hasResultType = true; break;
1852    case Op::OpLogicalOr: *hasResult = true; *hasResultType = true; break;
1853    case Op::OpLogicalAnd: *hasResult = true; *hasResultType = true; break;
1854    case Op::OpLogicalNot: *hasResult = true; *hasResultType = true; break;
1855    case Op::OpSelect: *hasResult = true; *hasResultType = true; break;
1856    case Op::OpIEqual: *hasResult = true; *hasResultType = true; break;
1857    case Op::OpINotEqual: *hasResult = true; *hasResultType = true; break;
1858    case Op::OpUGreaterThan: *hasResult = true; *hasResultType = true; break;
1859    case Op::OpSGreaterThan: *hasResult = true; *hasResultType = true; break;
1860    case Op::OpUGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1861    case Op::OpSGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1862    case Op::OpULessThan: *hasResult = true; *hasResultType = true; break;
1863    case Op::OpSLessThan: *hasResult = true; *hasResultType = true; break;
1864    case Op::OpULessThanEqual: *hasResult = true; *hasResultType = true; break;
1865    case Op::OpSLessThanEqual: *hasResult = true; *hasResultType = true; break;
1866    case Op::OpFOrdEqual: *hasResult = true; *hasResultType = true; break;
1867    case Op::OpFUnordEqual: *hasResult = true; *hasResultType = true; break;
1868    case Op::OpFOrdNotEqual: *hasResult = true; *hasResultType = true; break;
1869    case Op::OpFUnordNotEqual: *hasResult = true; *hasResultType = true; break;
1870    case Op::OpFOrdLessThan: *hasResult = true; *hasResultType = true; break;
1871    case Op::OpFUnordLessThan: *hasResult = true; *hasResultType = true; break;
1872    case Op::OpFOrdGreaterThan: *hasResult = true; *hasResultType = true; break;
1873    case Op::OpFUnordGreaterThan: *hasResult = true; *hasResultType = true; break;
1874    case Op::OpFOrdLessThanEqual: *hasResult = true; *hasResultType = true; break;
1875    case Op::OpFUnordLessThanEqual: *hasResult = true; *hasResultType = true; break;
1876    case Op::OpFOrdGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1877    case Op::OpFUnordGreaterThanEqual: *hasResult = true; *hasResultType = true; break;
1878    case Op::OpShiftRightLogical: *hasResult = true; *hasResultType = true; break;
1879    case Op::OpShiftRightArithmetic: *hasResult = true; *hasResultType = true; break;
1880    case Op::OpShiftLeftLogical: *hasResult = true; *hasResultType = true; break;
1881    case Op::OpBitwiseOr: *hasResult = true; *hasResultType = true; break;
1882    case Op::OpBitwiseXor: *hasResult = true; *hasResultType = true; break;
1883    case Op::OpBitwiseAnd: *hasResult = true; *hasResultType = true; break;
1884    case Op::OpNot: *hasResult = true; *hasResultType = true; break;
1885    case Op::OpBitFieldInsert: *hasResult = true; *hasResultType = true; break;
1886    case Op::OpBitFieldSExtract: *hasResult = true; *hasResultType = true; break;
1887    case Op::OpBitFieldUExtract: *hasResult = true; *hasResultType = true; break;
1888    case Op::OpBitReverse: *hasResult = true; *hasResultType = true; break;
1889    case Op::OpBitCount: *hasResult = true; *hasResultType = true; break;
1890    case Op::OpDPdx: *hasResult = true; *hasResultType = true; break;
1891    case Op::OpDPdy: *hasResult = true; *hasResultType = true; break;
1892    case Op::OpFwidth: *hasResult = true; *hasResultType = true; break;
1893    case Op::OpDPdxFine: *hasResult = true; *hasResultType = true; break;
1894    case Op::OpDPdyFine: *hasResult = true; *hasResultType = true; break;
1895    case Op::OpFwidthFine: *hasResult = true; *hasResultType = true; break;
1896    case Op::OpDPdxCoarse: *hasResult = true; *hasResultType = true; break;
1897    case Op::OpDPdyCoarse: *hasResult = true; *hasResultType = true; break;
1898    case Op::OpFwidthCoarse: *hasResult = true; *hasResultType = true; break;
1899    case Op::OpEmitVertex: *hasResult = false; *hasResultType = false; break;
1900    case Op::OpEndPrimitive: *hasResult = false; *hasResultType = false; break;
1901    case Op::OpEmitStreamVertex: *hasResult = false; *hasResultType = false; break;
1902    case Op::OpEndStreamPrimitive: *hasResult = false; *hasResultType = false; break;
1903    case Op::OpControlBarrier: *hasResult = false; *hasResultType = false; break;
1904    case Op::OpMemoryBarrier: *hasResult = false; *hasResultType = false; break;
1905    case Op::OpAtomicLoad: *hasResult = true; *hasResultType = true; break;
1906    case Op::OpAtomicStore: *hasResult = false; *hasResultType = false; break;
1907    case Op::OpAtomicExchange: *hasResult = true; *hasResultType = true; break;
1908    case Op::OpAtomicCompareExchange: *hasResult = true; *hasResultType = true; break;
1909    case Op::OpAtomicCompareExchangeWeak: *hasResult = true; *hasResultType = true; break;
1910    case Op::OpAtomicIIncrement: *hasResult = true; *hasResultType = true; break;
1911    case Op::OpAtomicIDecrement: *hasResult = true; *hasResultType = true; break;
1912    case Op::OpAtomicIAdd: *hasResult = true; *hasResultType = true; break;
1913    case Op::OpAtomicISub: *hasResult = true; *hasResultType = true; break;
1914    case Op::OpAtomicSMin: *hasResult = true; *hasResultType = true; break;
1915    case Op::OpAtomicUMin: *hasResult = true; *hasResultType = true; break;
1916    case Op::OpAtomicSMax: *hasResult = true; *hasResultType = true; break;
1917    case Op::OpAtomicUMax: *hasResult = true; *hasResultType = true; break;
1918    case Op::OpAtomicAnd: *hasResult = true; *hasResultType = true; break;
1919    case Op::OpAtomicOr: *hasResult = true; *hasResultType = true; break;
1920    case Op::OpAtomicXor: *hasResult = true; *hasResultType = true; break;
1921    case Op::OpPhi: *hasResult = true; *hasResultType = true; break;
1922    case Op::OpLoopMerge: *hasResult = false; *hasResultType = false; break;
1923    case Op::OpSelectionMerge: *hasResult = false; *hasResultType = false; break;
1924    case Op::OpLabel: *hasResult = true; *hasResultType = false; break;
1925    case Op::OpBranch: *hasResult = false; *hasResultType = false; break;
1926    case Op::OpBranchConditional: *hasResult = false; *hasResultType = false; break;
1927    case Op::OpSwitch: *hasResult = false; *hasResultType = false; break;
1928    case Op::OpKill: *hasResult = false; *hasResultType = false; break;
1929    case Op::OpReturn: *hasResult = false; *hasResultType = false; break;
1930    case Op::OpReturnValue: *hasResult = false; *hasResultType = false; break;
1931    case Op::OpUnreachable: *hasResult = false; *hasResultType = false; break;
1932    case Op::OpLifetimeStart: *hasResult = false; *hasResultType = false; break;
1933    case Op::OpLifetimeStop: *hasResult = false; *hasResultType = false; break;
1934    case Op::OpGroupAsyncCopy: *hasResult = true; *hasResultType = true; break;
1935    case Op::OpGroupWaitEvents: *hasResult = false; *hasResultType = false; break;
1936    case Op::OpGroupAll: *hasResult = true; *hasResultType = true; break;
1937    case Op::OpGroupAny: *hasResult = true; *hasResultType = true; break;
1938    case Op::OpGroupBroadcast: *hasResult = true; *hasResultType = true; break;
1939    case Op::OpGroupIAdd: *hasResult = true; *hasResultType = true; break;
1940    case Op::OpGroupFAdd: *hasResult = true; *hasResultType = true; break;
1941    case Op::OpGroupFMin: *hasResult = true; *hasResultType = true; break;
1942    case Op::OpGroupUMin: *hasResult = true; *hasResultType = true; break;
1943    case Op::OpGroupSMin: *hasResult = true; *hasResultType = true; break;
1944    case Op::OpGroupFMax: *hasResult = true; *hasResultType = true; break;
1945    case Op::OpGroupUMax: *hasResult = true; *hasResultType = true; break;
1946    case Op::OpGroupSMax: *hasResult = true; *hasResultType = true; break;
1947    case Op::OpReadPipe: *hasResult = true; *hasResultType = true; break;
1948    case Op::OpWritePipe: *hasResult = true; *hasResultType = true; break;
1949    case Op::OpReservedReadPipe: *hasResult = true; *hasResultType = true; break;
1950    case Op::OpReservedWritePipe: *hasResult = true; *hasResultType = true; break;
1951    case Op::OpReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
1952    case Op::OpReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
1953    case Op::OpCommitReadPipe: *hasResult = false; *hasResultType = false; break;
1954    case Op::OpCommitWritePipe: *hasResult = false; *hasResultType = false; break;
1955    case Op::OpIsValidReserveId: *hasResult = true; *hasResultType = true; break;
1956    case Op::OpGetNumPipePackets: *hasResult = true; *hasResultType = true; break;
1957    case Op::OpGetMaxPipePackets: *hasResult = true; *hasResultType = true; break;
1958    case Op::OpGroupReserveReadPipePackets: *hasResult = true; *hasResultType = true; break;
1959    case Op::OpGroupReserveWritePipePackets: *hasResult = true; *hasResultType = true; break;
1960    case Op::OpGroupCommitReadPipe: *hasResult = false; *hasResultType = false; break;
1961    case Op::OpGroupCommitWritePipe: *hasResult = false; *hasResultType = false; break;
1962    case Op::OpEnqueueMarker: *hasResult = true; *hasResultType = true; break;
1963    case Op::OpEnqueueKernel: *hasResult = true; *hasResultType = true; break;
1964    case Op::OpGetKernelNDrangeSubGroupCount: *hasResult = true; *hasResultType = true; break;
1965    case Op::OpGetKernelNDrangeMaxSubGroupSize: *hasResult = true; *hasResultType = true; break;
1966    case Op::OpGetKernelWorkGroupSize: *hasResult = true; *hasResultType = true; break;
1967    case Op::OpGetKernelPreferredWorkGroupSizeMultiple: *hasResult = true; *hasResultType = true; break;
1968    case Op::OpRetainEvent: *hasResult = false; *hasResultType = false; break;
1969    case Op::OpReleaseEvent: *hasResult = false; *hasResultType = false; break;
1970    case Op::OpCreateUserEvent: *hasResult = true; *hasResultType = true; break;
1971    case Op::OpIsValidEvent: *hasResult = true; *hasResultType = true; break;
1972    case Op::OpSetUserEventStatus: *hasResult = false; *hasResultType = false; break;
1973    case Op::OpCaptureEventProfilingInfo: *hasResult = false; *hasResultType = false; break;
1974    case Op::OpGetDefaultQueue: *hasResult = true; *hasResultType = true; break;
1975    case Op::OpBuildNDRange: *hasResult = true; *hasResultType = true; break;
1976    case Op::OpImageSparseSampleImplicitLod: *hasResult = true; *hasResultType = true; break;
1977    case Op::OpImageSparseSampleExplicitLod: *hasResult = true; *hasResultType = true; break;
1978    case Op::OpImageSparseSampleDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1979    case Op::OpImageSparseSampleDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1980    case Op::OpImageSparseSampleProjImplicitLod: *hasResult = true; *hasResultType = true; break;
1981    case Op::OpImageSparseSampleProjExplicitLod: *hasResult = true; *hasResultType = true; break;
1982    case Op::OpImageSparseSampleProjDrefImplicitLod: *hasResult = true; *hasResultType = true; break;
1983    case Op::OpImageSparseSampleProjDrefExplicitLod: *hasResult = true; *hasResultType = true; break;
1984    case Op::OpImageSparseFetch: *hasResult = true; *hasResultType = true; break;
1985    case Op::OpImageSparseGather: *hasResult = true; *hasResultType = true; break;
1986    case Op::OpImageSparseDrefGather: *hasResult = true; *hasResultType = true; break;
1987    case Op::OpImageSparseTexelsResident: *hasResult = true; *hasResultType = true; break;
1988    case Op::OpNoLine: *hasResult = false; *hasResultType = false; break;
1989    case Op::OpAtomicFlagTestAndSet: *hasResult = true; *hasResultType = true; break;
1990    case Op::OpAtomicFlagClear: *hasResult = false; *hasResultType = false; break;
1991    case Op::OpImageSparseRead: *hasResult = true; *hasResultType = true; break;
1992    case Op::OpSizeOf: *hasResult = true; *hasResultType = true; break;
1993    case Op::OpTypePipeStorage: *hasResult = true; *hasResultType = false; break;
1994    case Op::OpConstantPipeStorage: *hasResult = true; *hasResultType = true; break;
1995    case Op::OpCreatePipeFromPipeStorage: *hasResult = true; *hasResultType = true; break;
1996    case Op::OpGetKernelLocalSizeForSubgroupCount: *hasResult = true; *hasResultType = true; break;
1997    case Op::OpGetKernelMaxNumSubgroups: *hasResult = true; *hasResultType = true; break;
1998    case Op::OpTypeNamedBarrier: *hasResult = true; *hasResultType = false; break;
1999    case Op::OpNamedBarrierInitialize: *hasResult = true; *hasResultType = true; break;
2000    case Op::OpMemoryNamedBarrier: *hasResult = false; *hasResultType = false; break;
2001    case Op::OpModuleProcessed: *hasResult = false; *hasResultType = false; break;
2002    case Op::OpExecutionModeId: *hasResult = false; *hasResultType = false; break;
2003    case Op::OpDecorateId: *hasResult = false; *hasResultType = false; break;
2004    case Op::OpGroupNonUniformElect: *hasResult = true; *hasResultType = true; break;
2005    case Op::OpGroupNonUniformAll: *hasResult = true; *hasResultType = true; break;
2006    case Op::OpGroupNonUniformAny: *hasResult = true; *hasResultType = true; break;
2007    case Op::OpGroupNonUniformAllEqual: *hasResult = true; *hasResultType = true; break;
2008    case Op::OpGroupNonUniformBroadcast: *hasResult = true; *hasResultType = true; break;
2009    case Op::OpGroupNonUniformBroadcastFirst: *hasResult = true; *hasResultType = true; break;
2010    case Op::OpGroupNonUniformBallot: *hasResult = true; *hasResultType = true; break;
2011    case Op::OpGroupNonUniformInverseBallot: *hasResult = true; *hasResultType = true; break;
2012    case Op::OpGroupNonUniformBallotBitExtract: *hasResult = true; *hasResultType = true; break;
2013    case Op::OpGroupNonUniformBallotBitCount: *hasResult = true; *hasResultType = true; break;
2014    case Op::OpGroupNonUniformBallotFindLSB: *hasResult = true; *hasResultType = true; break;
2015    case Op::OpGroupNonUniformBallotFindMSB: *hasResult = true; *hasResultType = true; break;
2016    case Op::OpGroupNonUniformShuffle: *hasResult = true; *hasResultType = true; break;
2017    case Op::OpGroupNonUniformShuffleXor: *hasResult = true; *hasResultType = true; break;
2018    case Op::OpGroupNonUniformShuffleUp: *hasResult = true; *hasResultType = true; break;
2019    case Op::OpGroupNonUniformShuffleDown: *hasResult = true; *hasResultType = true; break;
2020    case Op::OpGroupNonUniformIAdd: *hasResult = true; *hasResultType = true; break;
2021    case Op::OpGroupNonUniformFAdd: *hasResult = true; *hasResultType = true; break;
2022    case Op::OpGroupNonUniformIMul: *hasResult = true; *hasResultType = true; break;
2023    case Op::OpGroupNonUniformFMul: *hasResult = true; *hasResultType = true; break;
2024    case Op::OpGroupNonUniformSMin: *hasResult = true; *hasResultType = true; break;
2025    case Op::OpGroupNonUniformUMin: *hasResult = true; *hasResultType = true; break;
2026    case Op::OpGroupNonUniformFMin: *hasResult = true; *hasResultType = true; break;
2027    case Op::OpGroupNonUniformSMax: *hasResult = true; *hasResultType = true; break;
2028    case Op::OpGroupNonUniformUMax: *hasResult = true; *hasResultType = true; break;
2029    case Op::OpGroupNonUniformFMax: *hasResult = true; *hasResultType = true; break;
2030    case Op::OpGroupNonUniformBitwiseAnd: *hasResult = true; *hasResultType = true; break;
2031    case Op::OpGroupNonUniformBitwiseOr: *hasResult = true; *hasResultType = true; break;
2032    case Op::OpGroupNonUniformBitwiseXor: *hasResult = true; *hasResultType = true; break;
2033    case Op::OpGroupNonUniformLogicalAnd: *hasResult = true; *hasResultType = true; break;
2034    case Op::OpGroupNonUniformLogicalOr: *hasResult = true; *hasResultType = true; break;
2035    case Op::OpGroupNonUniformLogicalXor: *hasResult = true; *hasResultType = true; break;
2036    case Op::OpGroupNonUniformQuadBroadcast: *hasResult = true; *hasResultType = true; break;
2037    case Op::OpGroupNonUniformQuadSwap: *hasResult = true; *hasResultType = true; break;
2038    case Op::OpCopyLogical: *hasResult = true; *hasResultType = true; break;
2039    case Op::OpPtrEqual: *hasResult = true; *hasResultType = true; break;
2040    case Op::OpPtrNotEqual: *hasResult = true; *hasResultType = true; break;
2041    case Op::OpPtrDiff: *hasResult = true; *hasResultType = true; break;
2042    case Op::OpTerminateInvocation: *hasResult = false; *hasResultType = false; break;
2043    case Op::OpSubgroupBallotKHR: *hasResult = true; *hasResultType = true; break;
2044    case Op::OpSubgroupFirstInvocationKHR: *hasResult = true; *hasResultType = true; break;
2045    case Op::OpSubgroupAllKHR: *hasResult = true; *hasResultType = true; break;
2046    case Op::OpSubgroupAnyKHR: *hasResult = true; *hasResultType = true; break;
2047    case Op::OpSubgroupAllEqualKHR: *hasResult = true; *hasResultType = true; break;
2048    case Op::OpSubgroupReadInvocationKHR: *hasResult = true; *hasResultType = true; break;
2049    case Op::OpTraceRayKHR: *hasResult = false; *hasResultType = false; break;
2050    case Op::OpExecuteCallableKHR: *hasResult = false; *hasResultType = false; break;
2051    case Op::OpConvertUToAccelerationStructureKHR: *hasResult = true; *hasResultType = true; break;
2052    case Op::OpIgnoreIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2053    case Op::OpTerminateRayKHR: *hasResult = false; *hasResultType = false; break;
2054    case Op::OpTypeRayQueryKHR: *hasResult = true; *hasResultType = false; break;
2055    case Op::OpRayQueryInitializeKHR: *hasResult = false; *hasResultType = false; break;
2056    case Op::OpRayQueryTerminateKHR: *hasResult = false; *hasResultType = false; break;
2057    case Op::OpRayQueryGenerateIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2058    case Op::OpRayQueryConfirmIntersectionKHR: *hasResult = false; *hasResultType = false; break;
2059    case Op::OpRayQueryProceedKHR: *hasResult = true; *hasResultType = true; break;
2060    case Op::OpRayQueryGetIntersectionTypeKHR: *hasResult = true; *hasResultType = true; break;
2061    case Op::OpGroupIAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2062    case Op::OpGroupFAddNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2063    case Op::OpGroupFMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2064    case Op::OpGroupUMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2065    case Op::OpGroupSMinNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2066    case Op::OpGroupFMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2067    case Op::OpGroupUMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2068    case Op::OpGroupSMaxNonUniformAMD: *hasResult = true; *hasResultType = true; break;
2069    case Op::OpFragmentMaskFetchAMD: *hasResult = true; *hasResultType = true; break;
2070    case Op::OpFragmentFetchAMD: *hasResult = true; *hasResultType = true; break;
2071    case Op::OpReadClockKHR: *hasResult = true; *hasResultType = true; break;
2072    case Op::OpImageSampleFootprintNV: *hasResult = true; *hasResultType = true; break;
2073    case Op::OpGroupNonUniformPartitionNV: *hasResult = true; *hasResultType = true; break;
2074    case Op::OpWritePackedPrimitiveIndices4x8NV: *hasResult = false; *hasResultType = false; break;
2075    case Op::OpReportIntersectionNV: *hasResult = true; *hasResultType = true; break;
2076    case Op::OpIgnoreIntersectionNV: *hasResult = false; *hasResultType = false; break;
2077    case Op::OpTerminateRayNV: *hasResult = false; *hasResultType = false; break;
2078    case Op::OpTraceNV: *hasResult = false; *hasResultType = false; break;
2079    case Op::OpTypeAccelerationStructureNV: *hasResult = true; *hasResultType = false; break;
2080    case Op::OpExecuteCallableNV: *hasResult = false; *hasResultType = false; break;
2081    case Op::OpTypeCooperativeMatrixNV: *hasResult = true; *hasResultType = false; break;
2082    case Op::OpCooperativeMatrixLoadNV: *hasResult = true; *hasResultType = true; break;
2083    case Op::OpCooperativeMatrixStoreNV: *hasResult = false; *hasResultType = false; break;
2084    case Op::OpCooperativeMatrixMulAddNV: *hasResult = true; *hasResultType = true; break;
2085    case Op::OpCooperativeMatrixLengthNV: *hasResult = true; *hasResultType = true; break;
2086    case Op::OpBeginInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2087    case Op::OpEndInvocationInterlockEXT: *hasResult = false; *hasResultType = false; break;
2088    case Op::OpDemoteToHelperInvocationEXT: *hasResult = false; *hasResultType = false; break;
2089    case Op::OpIsHelperInvocationEXT: *hasResult = true; *hasResultType = true; break;
2090    case Op::OpSubgroupShuffleINTEL: *hasResult = true; *hasResultType = true; break;
2091    case Op::OpSubgroupShuffleDownINTEL: *hasResult = true; *hasResultType = true; break;
2092    case Op::OpSubgroupShuffleUpINTEL: *hasResult = true; *hasResultType = true; break;
2093    case Op::OpSubgroupShuffleXorINTEL: *hasResult = true; *hasResultType = true; break;
2094    case Op::OpSubgroupBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2095    case Op::OpSubgroupBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2096    case Op::OpSubgroupImageBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2097    case Op::OpSubgroupImageBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2098    case Op::OpSubgroupImageMediaBlockReadINTEL: *hasResult = true; *hasResultType = true; break;
2099    case Op::OpSubgroupImageMediaBlockWriteINTEL: *hasResult = false; *hasResultType = false; break;
2100    case Op::OpUCountLeadingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2101    case Op::OpUCountTrailingZerosINTEL: *hasResult = true; *hasResultType = true; break;
2102    case Op::OpAbsISubINTEL: *hasResult = true; *hasResultType = true; break;
2103    case Op::OpAbsUSubINTEL: *hasResult = true; *hasResultType = true; break;
2104    case Op::OpIAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2105    case Op::OpUAddSatINTEL: *hasResult = true; *hasResultType = true; break;
2106    case Op::OpIAverageINTEL: *hasResult = true; *hasResultType = true; break;
2107    case Op::OpUAverageINTEL: *hasResult = true; *hasResultType = true; break;
2108    case Op::OpIAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2109    case Op::OpUAverageRoundedINTEL: *hasResult = true; *hasResultType = true; break;
2110    case Op::OpISubSatINTEL: *hasResult = true; *hasResultType = true; break;
2111    case Op::OpUSubSatINTEL: *hasResult = true; *hasResultType = true; break;
2112    case Op::OpIMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2113    case Op::OpUMul32x16INTEL: *hasResult = true; *hasResultType = true; break;
2114    case Op::OpConstFunctionPointerINTEL: *hasResult = true; *hasResultType = true; break;
2115    case Op::OpFunctionPointerCallINTEL: *hasResult = true; *hasResultType = true; break;
2116    case Op::OpAsmTargetINTEL: *hasResult = true; *hasResultType = true; break;
2117    case Op::OpAsmINTEL: *hasResult = true; *hasResultType = true; break;
2118    case Op::OpAsmCallINTEL: *hasResult = true; *hasResultType = true; break;
2119    case Op::OpDecorateString: *hasResult = false; *hasResultType = false; break;
2120    case Op::OpMemberDecorateString: *hasResult = false; *hasResultType = false; break;
2121    case Op::OpVmeImageINTEL: *hasResult = true; *hasResultType = true; break;
2122    case Op::OpTypeVmeImageINTEL: *hasResult = true; *hasResultType = false; break;
2123    case Op::OpTypeAvcImePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2124    case Op::OpTypeAvcRefPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2125    case Op::OpTypeAvcSicPayloadINTEL: *hasResult = true; *hasResultType = false; break;
2126    case Op::OpTypeAvcMcePayloadINTEL: *hasResult = true; *hasResultType = false; break;
2127    case Op::OpTypeAvcMceResultINTEL: *hasResult = true; *hasResultType = false; break;
2128    case Op::OpTypeAvcImeResultINTEL: *hasResult = true; *hasResultType = false; break;
2129    case Op::OpTypeAvcImeResultSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2130    case Op::OpTypeAvcImeResultDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = false; break;
2131    case Op::OpTypeAvcImeSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2132    case Op::OpTypeAvcImeDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = false; break;
2133    case Op::OpTypeAvcRefResultINTEL: *hasResult = true; *hasResultType = false; break;
2134    case Op::OpTypeAvcSicResultINTEL: *hasResult = true; *hasResultType = false; break;
2135    case Op::OpSubgroupAvcMceGetDefaultInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2136    case Op::OpSubgroupAvcMceSetInterBaseMultiReferencePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2137    case Op::OpSubgroupAvcMceGetDefaultInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2138    case Op::OpSubgroupAvcMceSetInterShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2139    case Op::OpSubgroupAvcMceGetDefaultInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2140    case Op::OpSubgroupAvcMceSetInterDirectionPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2141    case Op::OpSubgroupAvcMceGetDefaultIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2142    case Op::OpSubgroupAvcMceGetDefaultInterMotionVectorCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2143    case Op::OpSubgroupAvcMceGetDefaultHighPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2144    case Op::OpSubgroupAvcMceGetDefaultMediumPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2145    case Op::OpSubgroupAvcMceGetDefaultLowPenaltyCostTableINTEL: *hasResult = true; *hasResultType = true; break;
2146    case Op::OpSubgroupAvcMceSetMotionVectorCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2147    case Op::OpSubgroupAvcMceGetDefaultIntraLumaModePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2148    case Op::OpSubgroupAvcMceGetDefaultNonDcLumaIntraPenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2149    case Op::OpSubgroupAvcMceGetDefaultIntraChromaModeBasePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2150    case Op::OpSubgroupAvcMceSetAcOnlyHaarINTEL: *hasResult = true; *hasResultType = true; break;
2151    case Op::OpSubgroupAvcMceSetSourceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2152    case Op::OpSubgroupAvcMceSetSingleReferenceInterlacedFieldPolarityINTEL: *hasResult = true; *hasResultType = true; break;
2153    case Op::OpSubgroupAvcMceSetDualReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2154    case Op::OpSubgroupAvcMceConvertToImePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2155    case Op::OpSubgroupAvcMceConvertToImeResultINTEL: *hasResult = true; *hasResultType = true; break;
2156    case Op::OpSubgroupAvcMceConvertToRefPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2157    case Op::OpSubgroupAvcMceConvertToRefResultINTEL: *hasResult = true; *hasResultType = true; break;
2158    case Op::OpSubgroupAvcMceConvertToSicPayloadINTEL: *hasResult = true; *hasResultType = true; break;
2159    case Op::OpSubgroupAvcMceConvertToSicResultINTEL: *hasResult = true; *hasResultType = true; break;
2160    case Op::OpSubgroupAvcMceGetMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2161    case Op::OpSubgroupAvcMceGetInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2162    case Op::OpSubgroupAvcMceGetBestInterDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2163    case Op::OpSubgroupAvcMceGetInterMajorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2164    case Op::OpSubgroupAvcMceGetInterMinorShapeINTEL: *hasResult = true; *hasResultType = true; break;
2165    case Op::OpSubgroupAvcMceGetInterDirectionsINTEL: *hasResult = true; *hasResultType = true; break;
2166    case Op::OpSubgroupAvcMceGetInterMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2167    case Op::OpSubgroupAvcMceGetInterReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2168    case Op::OpSubgroupAvcMceGetInterReferenceInterlacedFieldPolaritiesINTEL: *hasResult = true; *hasResultType = true; break;
2169    case Op::OpSubgroupAvcImeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2170    case Op::OpSubgroupAvcImeSetSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2171    case Op::OpSubgroupAvcImeSetDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2172    case Op::OpSubgroupAvcImeRefWindowSizeINTEL: *hasResult = true; *hasResultType = true; break;
2173    case Op::OpSubgroupAvcImeAdjustRefOffsetINTEL: *hasResult = true; *hasResultType = true; break;
2174    case Op::OpSubgroupAvcImeConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2175    case Op::OpSubgroupAvcImeSetMaxMotionVectorCountINTEL: *hasResult = true; *hasResultType = true; break;
2176    case Op::OpSubgroupAvcImeSetUnidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2177    case Op::OpSubgroupAvcImeSetEarlySearchTerminationThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2178    case Op::OpSubgroupAvcImeSetWeightedSadINTEL: *hasResult = true; *hasResultType = true; break;
2179    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2180    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2181    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2182    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2183    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2184    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2185    case Op::OpSubgroupAvcImeEvaluateWithSingleReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2186    case Op::OpSubgroupAvcImeEvaluateWithDualReferenceStreaminoutINTEL: *hasResult = true; *hasResultType = true; break;
2187    case Op::OpSubgroupAvcImeConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2188    case Op::OpSubgroupAvcImeGetSingleReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2189    case Op::OpSubgroupAvcImeGetDualReferenceStreaminINTEL: *hasResult = true; *hasResultType = true; break;
2190    case Op::OpSubgroupAvcImeStripSingleReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2191    case Op::OpSubgroupAvcImeStripDualReferenceStreamoutINTEL: *hasResult = true; *hasResultType = true; break;
2192    case Op::OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2193    case Op::OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2194    case Op::OpSubgroupAvcImeGetStreamoutSingleReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2195    case Op::OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeMotionVectorsINTEL: *hasResult = true; *hasResultType = true; break;
2196    case Op::OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeDistortionsINTEL: *hasResult = true; *hasResultType = true; break;
2197    case Op::OpSubgroupAvcImeGetStreamoutDualReferenceMajorShapeReferenceIdsINTEL: *hasResult = true; *hasResultType = true; break;
2198    case Op::OpSubgroupAvcImeGetBorderReachedINTEL: *hasResult = true; *hasResultType = true; break;
2199    case Op::OpSubgroupAvcImeGetTruncatedSearchIndicationINTEL: *hasResult = true; *hasResultType = true; break;
2200    case Op::OpSubgroupAvcImeGetUnidirectionalEarlySearchTerminationINTEL: *hasResult = true; *hasResultType = true; break;
2201    case Op::OpSubgroupAvcImeGetWeightingPatternMinimumMotionVectorINTEL: *hasResult = true; *hasResultType = true; break;
2202    case Op::OpSubgroupAvcImeGetWeightingPatternMinimumDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2203    case Op::OpSubgroupAvcFmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2204    case Op::OpSubgroupAvcBmeInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2205    case Op::OpSubgroupAvcRefConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2206    case Op::OpSubgroupAvcRefSetBidirectionalMixDisableINTEL: *hasResult = true; *hasResultType = true; break;
2207    case Op::OpSubgroupAvcRefSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2208    case Op::OpSubgroupAvcRefEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2209    case Op::OpSubgroupAvcRefEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2210    case Op::OpSubgroupAvcRefEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2211    case Op::OpSubgroupAvcRefEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2212    case Op::OpSubgroupAvcRefConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2213    case Op::OpSubgroupAvcSicInitializeINTEL: *hasResult = true; *hasResultType = true; break;
2214    case Op::OpSubgroupAvcSicConfigureSkcINTEL: *hasResult = true; *hasResultType = true; break;
2215    case Op::OpSubgroupAvcSicConfigureIpeLumaINTEL: *hasResult = true; *hasResultType = true; break;
2216    case Op::OpSubgroupAvcSicConfigureIpeLumaChromaINTEL: *hasResult = true; *hasResultType = true; break;
2217    case Op::OpSubgroupAvcSicGetMotionVectorMaskINTEL: *hasResult = true; *hasResultType = true; break;
2218    case Op::OpSubgroupAvcSicConvertToMcePayloadINTEL: *hasResult = true; *hasResultType = true; break;
2219    case Op::OpSubgroupAvcSicSetIntraLumaShapePenaltyINTEL: *hasResult = true; *hasResultType = true; break;
2220    case Op::OpSubgroupAvcSicSetIntraLumaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2221    case Op::OpSubgroupAvcSicSetIntraChromaModeCostFunctionINTEL: *hasResult = true; *hasResultType = true; break;
2222    case Op::OpSubgroupAvcSicSetBilinearFilterEnableINTEL: *hasResult = true; *hasResultType = true; break;
2223    case Op::OpSubgroupAvcSicSetSkcForwardTransformEnableINTEL: *hasResult = true; *hasResultType = true; break;
2224    case Op::OpSubgroupAvcSicSetBlockBasedRawSkipSadINTEL: *hasResult = true; *hasResultType = true; break;
2225    case Op::OpSubgroupAvcSicEvaluateIpeINTEL: *hasResult = true; *hasResultType = true; break;
2226    case Op::OpSubgroupAvcSicEvaluateWithSingleReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2227    case Op::OpSubgroupAvcSicEvaluateWithDualReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2228    case Op::OpSubgroupAvcSicEvaluateWithMultiReferenceINTEL: *hasResult = true; *hasResultType = true; break;
2229    case Op::OpSubgroupAvcSicEvaluateWithMultiReferenceInterlacedINTEL: *hasResult = true; *hasResultType = true; break;
2230    case Op::OpSubgroupAvcSicConvertToMceResultINTEL: *hasResult = true; *hasResultType = true; break;
2231    case Op::OpSubgroupAvcSicGetIpeLumaShapeINTEL: *hasResult = true; *hasResultType = true; break;
2232    case Op::OpSubgroupAvcSicGetBestIpeLumaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2233    case Op::OpSubgroupAvcSicGetBestIpeChromaDistortionINTEL: *hasResult = true; *hasResultType = true; break;
2234    case Op::OpSubgroupAvcSicGetPackedIpeLumaModesINTEL: *hasResult = true; *hasResultType = true; break;
2235    case Op::OpSubgroupAvcSicGetIpeChromaModeINTEL: *hasResult = true; *hasResultType = true; break;
2236    case Op::OpSubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2237    case Op::OpSubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL: *hasResult = true; *hasResultType = true; break;
2238    case Op::OpSubgroupAvcSicGetInterRawSadsINTEL: *hasResult = true; *hasResultType = true; break;
2239    case Op::OpVariableLengthArrayINTEL: *hasResult = true; *hasResultType = true; break;
2240    case Op::OpSaveMemoryINTEL: *hasResult = true; *hasResultType = true; break;
2241    case Op::OpRestoreMemoryINTEL: *hasResult = false; *hasResultType = false; break;
2242    case Op::OpLoopControlINTEL: *hasResult = false; *hasResultType = false; break;
2243    case Op::OpPtrCastToCrossWorkgroupINTEL: *hasResult = true; *hasResultType = true; break;
2244    case Op::OpCrossWorkgroupCastToPtrINTEL: *hasResult = true; *hasResultType = true; break;
2245    case Op::OpReadPipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2246    case Op::OpWritePipeBlockingINTEL: *hasResult = true; *hasResultType = true; break;
2247    case Op::OpFPGARegINTEL: *hasResult = true; *hasResultType = true; break;
2248    case Op::OpRayQueryGetRayTMinKHR: *hasResult = true; *hasResultType = true; break;
2249    case Op::OpRayQueryGetRayFlagsKHR: *hasResult = true; *hasResultType = true; break;
2250    case Op::OpRayQueryGetIntersectionTKHR: *hasResult = true; *hasResultType = true; break;
2251    case Op::OpRayQueryGetIntersectionInstanceCustomIndexKHR: *hasResult = true; *hasResultType = true; break;
2252    case Op::OpRayQueryGetIntersectionInstanceIdKHR: *hasResult = true; *hasResultType = true; break;
2253    case Op::OpRayQueryGetIntersectionInstanceShaderBindingTableRecordOffsetKHR: *hasResult = true; *hasResultType = true; break;
2254    case Op::OpRayQueryGetIntersectionGeometryIndexKHR: *hasResult = true; *hasResultType = true; break;
2255    case Op::OpRayQueryGetIntersectionPrimitiveIndexKHR: *hasResult = true; *hasResultType = true; break;
2256    case Op::OpRayQueryGetIntersectionBarycentricsKHR: *hasResult = true; *hasResultType = true; break;
2257    case Op::OpRayQueryGetIntersectionFrontFaceKHR: *hasResult = true; *hasResultType = true; break;
2258    case Op::OpRayQueryGetIntersectionCandidateAABBOpaqueKHR: *hasResult = true; *hasResultType = true; break;
2259    case Op::OpRayQueryGetIntersectionObjectRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2260    case Op::OpRayQueryGetIntersectionObjectRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2261    case Op::OpRayQueryGetWorldRayDirectionKHR: *hasResult = true; *hasResultType = true; break;
2262    case Op::OpRayQueryGetWorldRayOriginKHR: *hasResult = true; *hasResultType = true; break;
2263    case Op::OpRayQueryGetIntersectionObjectToWorldKHR: *hasResult = true; *hasResultType = true; break;
2264    case Op::OpRayQueryGetIntersectionWorldToObjectKHR: *hasResult = true; *hasResultType = true; break;
2265    case Op::OpAtomicFAddEXT: *hasResult = true; *hasResultType = true; break;
2266    case Op::OpTypeBufferSurfaceINTEL: *hasResult = true; *hasResultType = false; break;
2267    case Op::OpTypeStructContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2268    case Op::OpConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2269    case Op::OpSpecConstantCompositeContinuedINTEL: *hasResult = false; *hasResultType = false; break;
2270    }
2271}
2272#endif /* SPV_ENABLE_UTILITY_CODE */
2273
2274// Overload operator| for mask bit combining
2275
2276inline ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
2277inline FPFastMathModeMask operator|(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) | unsigned(b)); }
2278inline SelectionControlMask operator|(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) | unsigned(b)); }
2279inline LoopControlMask operator|(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) | unsigned(b)); }
2280inline FunctionControlMask operator|(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) | unsigned(b)); }
2281inline MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }
2282inline MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
2283inline KernelProfilingInfoMask operator|(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) | unsigned(b)); }
2284inline RayFlagsMask operator|(RayFlagsMask a, RayFlagsMask b) { return RayFlagsMask(unsigned(a) | unsigned(b)); }
2285inline FragmentShadingRateMask operator|(FragmentShadingRateMask a, FragmentShadingRateMask b) { return FragmentShadingRateMask(unsigned(a) | unsigned(b)); }
2286
2287}  // end namespace spv
2288
2289#endif  // #ifndef spirv_HPP
2290
2291