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