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