spirv.hpp 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213
  1. // Copyright (c) 2014-2019 The Khronos Group Inc.
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4. // of this software and/or associated documentation files (the "Materials"),
  5. // to deal in the Materials without restriction, including without limitation
  6. // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  7. // and/or sell copies of the Materials, and to permit persons to whom the
  8. // Materials are furnished to do so, subject to the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be included in
  11. // all copies or substantial portions of the Materials.
  12. //
  13. // MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
  14. // STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
  15. // HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
  16. //
  17. // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. // FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
  23. // IN THE MATERIALS.
  24. // This header is automatically generated by the same tool that creates
  25. // the Binary Section of the SPIR-V specification.
  26. // Enumeration tokens for SPIR-V, in various styles:
  27. // C, C++, C++11, JSON, Lua, Python, C#, D
  28. //
  29. // - C will have tokens with a "Spv" prefix, e.g.: SpvSourceLanguageGLSL
  30. // - C++ will have tokens in the "spv" name space, e.g.: spv::SourceLanguageGLSL
  31. // - C++11 will use enum classes in the spv namespace, e.g.: spv::SourceLanguage::GLSL
  32. // - Lua will use tables, e.g.: spv.SourceLanguage.GLSL
  33. // - Python will use dictionaries, e.g.: spv['SourceLanguage']['GLSL']
  34. // - C# will use enum classes in the Specification class located in the "Spv" namespace,
  35. // e.g.: Spv.Specification.SourceLanguage.GLSL
  36. // - D will have tokens under the "spv" module, e.g: spv.SourceLanguage.GLSL
  37. //
  38. // Some tokens act like mask values, which can be OR'd together,
  39. // while others are mutually exclusive. The mask-like ones have
  40. // "Mask" in their name, and a parallel enum that has the shift
  41. // amount (1 << x) for each corresponding enumerant.
  42. #ifndef spirv_HPP
  43. #define spirv_HPP
  44. namespace spv {
  45. typedef unsigned int Id;
  46. #define SPV_VERSION 0x10300
  47. #define SPV_REVISION 6
  48. static const unsigned int MagicNumber = 0x07230203;
  49. static const unsigned int Version = 0x00010300;
  50. static const unsigned int Revision = 6;
  51. static const unsigned int OpCodeMask = 0xffff;
  52. static const unsigned int WordCountShift = 16;
  53. enum SourceLanguage {
  54. SourceLanguageUnknown = 0,
  55. SourceLanguageESSL = 1,
  56. SourceLanguageGLSL = 2,
  57. SourceLanguageOpenCL_C = 3,
  58. SourceLanguageOpenCL_CPP = 4,
  59. SourceLanguageHLSL = 5,
  60. SourceLanguageMax = 0x7fffffff,
  61. };
  62. enum ExecutionModel {
  63. ExecutionModelVertex = 0,
  64. ExecutionModelTessellationControl = 1,
  65. ExecutionModelTessellationEvaluation = 2,
  66. ExecutionModelGeometry = 3,
  67. ExecutionModelFragment = 4,
  68. ExecutionModelGLCompute = 5,
  69. ExecutionModelKernel = 6,
  70. ExecutionModelTaskNV = 5267,
  71. ExecutionModelMeshNV = 5268,
  72. ExecutionModelRayGenerationNV = 5313,
  73. ExecutionModelIntersectionNV = 5314,
  74. ExecutionModelAnyHitNV = 5315,
  75. ExecutionModelClosestHitNV = 5316,
  76. ExecutionModelMissNV = 5317,
  77. ExecutionModelCallableNV = 5318,
  78. ExecutionModelMax = 0x7fffffff,
  79. };
  80. enum AddressingModel {
  81. AddressingModelLogical = 0,
  82. AddressingModelPhysical32 = 1,
  83. AddressingModelPhysical64 = 2,
  84. AddressingModelPhysicalStorageBuffer64EXT = 5348,
  85. AddressingModelMax = 0x7fffffff,
  86. };
  87. enum MemoryModel {
  88. MemoryModelSimple = 0,
  89. MemoryModelGLSL450 = 1,
  90. MemoryModelOpenCL = 2,
  91. MemoryModelVulkanKHR = 3,
  92. MemoryModelMax = 0x7fffffff,
  93. };
  94. enum ExecutionMode {
  95. ExecutionModeInvocations = 0,
  96. ExecutionModeSpacingEqual = 1,
  97. ExecutionModeSpacingFractionalEven = 2,
  98. ExecutionModeSpacingFractionalOdd = 3,
  99. ExecutionModeVertexOrderCw = 4,
  100. ExecutionModeVertexOrderCcw = 5,
  101. ExecutionModePixelCenterInteger = 6,
  102. ExecutionModeOriginUpperLeft = 7,
  103. ExecutionModeOriginLowerLeft = 8,
  104. ExecutionModeEarlyFragmentTests = 9,
  105. ExecutionModePointMode = 10,
  106. ExecutionModeXfb = 11,
  107. ExecutionModeDepthReplacing = 12,
  108. ExecutionModeDepthGreater = 14,
  109. ExecutionModeDepthLess = 15,
  110. ExecutionModeDepthUnchanged = 16,
  111. ExecutionModeLocalSize = 17,
  112. ExecutionModeLocalSizeHint = 18,
  113. ExecutionModeInputPoints = 19,
  114. ExecutionModeInputLines = 20,
  115. ExecutionModeInputLinesAdjacency = 21,
  116. ExecutionModeTriangles = 22,
  117. ExecutionModeInputTrianglesAdjacency = 23,
  118. ExecutionModeQuads = 24,
  119. ExecutionModeIsolines = 25,
  120. ExecutionModeOutputVertices = 26,
  121. ExecutionModeOutputPoints = 27,
  122. ExecutionModeOutputLineStrip = 28,
  123. ExecutionModeOutputTriangleStrip = 29,
  124. ExecutionModeVecTypeHint = 30,
  125. ExecutionModeContractionOff = 31,
  126. ExecutionModeInitializer = 33,
  127. ExecutionModeFinalizer = 34,
  128. ExecutionModeSubgroupSize = 35,
  129. ExecutionModeSubgroupsPerWorkgroup = 36,
  130. ExecutionModeSubgroupsPerWorkgroupId = 37,
  131. ExecutionModeLocalSizeId = 38,
  132. ExecutionModeLocalSizeHintId = 39,
  133. ExecutionModePostDepthCoverage = 4446,
  134. ExecutionModeDenormPreserve = 4459,
  135. ExecutionModeDenormFlushToZero = 4460,
  136. ExecutionModeSignedZeroInfNanPreserve = 4461,
  137. ExecutionModeRoundingModeRTE = 4462,
  138. ExecutionModeRoundingModeRTZ = 4463,
  139. ExecutionModeStencilRefReplacingEXT = 5027,
  140. ExecutionModeOutputLinesNV = 5269,
  141. ExecutionModeOutputPrimitivesNV = 5270,
  142. ExecutionModeDerivativeGroupQuadsNV = 5289,
  143. ExecutionModeDerivativeGroupLinearNV = 5290,
  144. ExecutionModeOutputTrianglesNV = 5298,
  145. ExecutionModeMax = 0x7fffffff,
  146. };
  147. enum StorageClass {
  148. StorageClassUniformConstant = 0,
  149. StorageClassInput = 1,
  150. StorageClassUniform = 2,
  151. StorageClassOutput = 3,
  152. StorageClassWorkgroup = 4,
  153. StorageClassCrossWorkgroup = 5,
  154. StorageClassPrivate = 6,
  155. StorageClassFunction = 7,
  156. StorageClassGeneric = 8,
  157. StorageClassPushConstant = 9,
  158. StorageClassAtomicCounter = 10,
  159. StorageClassImage = 11,
  160. StorageClassStorageBuffer = 12,
  161. StorageClassCallableDataNV = 5328,
  162. StorageClassIncomingCallableDataNV = 5329,
  163. StorageClassRayPayloadNV = 5338,
  164. StorageClassHitAttributeNV = 5339,
  165. StorageClassIncomingRayPayloadNV = 5342,
  166. StorageClassShaderRecordBufferNV = 5343,
  167. StorageClassPhysicalStorageBufferEXT = 5349,
  168. StorageClassMax = 0x7fffffff,
  169. };
  170. enum Dim {
  171. Dim1D = 0,
  172. Dim2D = 1,
  173. Dim3D = 2,
  174. DimCube = 3,
  175. DimRect = 4,
  176. DimBuffer = 5,
  177. DimSubpassData = 6,
  178. DimMax = 0x7fffffff,
  179. };
  180. enum SamplerAddressingMode {
  181. SamplerAddressingModeNone = 0,
  182. SamplerAddressingModeClampToEdge = 1,
  183. SamplerAddressingModeClamp = 2,
  184. SamplerAddressingModeRepeat = 3,
  185. SamplerAddressingModeRepeatMirrored = 4,
  186. SamplerAddressingModeMax = 0x7fffffff,
  187. };
  188. enum SamplerFilterMode {
  189. SamplerFilterModeNearest = 0,
  190. SamplerFilterModeLinear = 1,
  191. SamplerFilterModeMax = 0x7fffffff,
  192. };
  193. enum ImageFormat {
  194. ImageFormatUnknown = 0,
  195. ImageFormatRgba32f = 1,
  196. ImageFormatRgba16f = 2,
  197. ImageFormatR32f = 3,
  198. ImageFormatRgba8 = 4,
  199. ImageFormatRgba8Snorm = 5,
  200. ImageFormatRg32f = 6,
  201. ImageFormatRg16f = 7,
  202. ImageFormatR11fG11fB10f = 8,
  203. ImageFormatR16f = 9,
  204. ImageFormatRgba16 = 10,
  205. ImageFormatRgb10A2 = 11,
  206. ImageFormatRg16 = 12,
  207. ImageFormatRg8 = 13,
  208. ImageFormatR16 = 14,
  209. ImageFormatR8 = 15,
  210. ImageFormatRgba16Snorm = 16,
  211. ImageFormatRg16Snorm = 17,
  212. ImageFormatRg8Snorm = 18,
  213. ImageFormatR16Snorm = 19,
  214. ImageFormatR8Snorm = 20,
  215. ImageFormatRgba32i = 21,
  216. ImageFormatRgba16i = 22,
  217. ImageFormatRgba8i = 23,
  218. ImageFormatR32i = 24,
  219. ImageFormatRg32i = 25,
  220. ImageFormatRg16i = 26,
  221. ImageFormatRg8i = 27,
  222. ImageFormatR16i = 28,
  223. ImageFormatR8i = 29,
  224. ImageFormatRgba32ui = 30,
  225. ImageFormatRgba16ui = 31,
  226. ImageFormatRgba8ui = 32,
  227. ImageFormatR32ui = 33,
  228. ImageFormatRgb10a2ui = 34,
  229. ImageFormatRg32ui = 35,
  230. ImageFormatRg16ui = 36,
  231. ImageFormatRg8ui = 37,
  232. ImageFormatR16ui = 38,
  233. ImageFormatR8ui = 39,
  234. ImageFormatMax = 0x7fffffff,
  235. };
  236. enum ImageChannelOrder {
  237. ImageChannelOrderR = 0,
  238. ImageChannelOrderA = 1,
  239. ImageChannelOrderRG = 2,
  240. ImageChannelOrderRA = 3,
  241. ImageChannelOrderRGB = 4,
  242. ImageChannelOrderRGBA = 5,
  243. ImageChannelOrderBGRA = 6,
  244. ImageChannelOrderARGB = 7,
  245. ImageChannelOrderIntensity = 8,
  246. ImageChannelOrderLuminance = 9,
  247. ImageChannelOrderRx = 10,
  248. ImageChannelOrderRGx = 11,
  249. ImageChannelOrderRGBx = 12,
  250. ImageChannelOrderDepth = 13,
  251. ImageChannelOrderDepthStencil = 14,
  252. ImageChannelOrdersRGB = 15,
  253. ImageChannelOrdersRGBx = 16,
  254. ImageChannelOrdersRGBA = 17,
  255. ImageChannelOrdersBGRA = 18,
  256. ImageChannelOrderABGR = 19,
  257. ImageChannelOrderMax = 0x7fffffff,
  258. };
  259. enum ImageChannelDataType {
  260. ImageChannelDataTypeSnormInt8 = 0,
  261. ImageChannelDataTypeSnormInt16 = 1,
  262. ImageChannelDataTypeUnormInt8 = 2,
  263. ImageChannelDataTypeUnormInt16 = 3,
  264. ImageChannelDataTypeUnormShort565 = 4,
  265. ImageChannelDataTypeUnormShort555 = 5,
  266. ImageChannelDataTypeUnormInt101010 = 6,
  267. ImageChannelDataTypeSignedInt8 = 7,
  268. ImageChannelDataTypeSignedInt16 = 8,
  269. ImageChannelDataTypeSignedInt32 = 9,
  270. ImageChannelDataTypeUnsignedInt8 = 10,
  271. ImageChannelDataTypeUnsignedInt16 = 11,
  272. ImageChannelDataTypeUnsignedInt32 = 12,
  273. ImageChannelDataTypeHalfFloat = 13,
  274. ImageChannelDataTypeFloat = 14,
  275. ImageChannelDataTypeUnormInt24 = 15,
  276. ImageChannelDataTypeUnormInt101010_2 = 16,
  277. ImageChannelDataTypeMax = 0x7fffffff,
  278. };
  279. enum ImageOperandsShift {
  280. ImageOperandsBiasShift = 0,
  281. ImageOperandsLodShift = 1,
  282. ImageOperandsGradShift = 2,
  283. ImageOperandsConstOffsetShift = 3,
  284. ImageOperandsOffsetShift = 4,
  285. ImageOperandsConstOffsetsShift = 5,
  286. ImageOperandsSampleShift = 6,
  287. ImageOperandsMinLodShift = 7,
  288. ImageOperandsMakeTexelAvailableKHRShift = 8,
  289. ImageOperandsMakeTexelVisibleKHRShift = 9,
  290. ImageOperandsNonPrivateTexelKHRShift = 10,
  291. ImageOperandsVolatileTexelKHRShift = 11,
  292. ImageOperandsMax = 0x7fffffff,
  293. };
  294. enum ImageOperandsMask {
  295. ImageOperandsMaskNone = 0,
  296. ImageOperandsBiasMask = 0x00000001,
  297. ImageOperandsLodMask = 0x00000002,
  298. ImageOperandsGradMask = 0x00000004,
  299. ImageOperandsConstOffsetMask = 0x00000008,
  300. ImageOperandsOffsetMask = 0x00000010,
  301. ImageOperandsConstOffsetsMask = 0x00000020,
  302. ImageOperandsSampleMask = 0x00000040,
  303. ImageOperandsMinLodMask = 0x00000080,
  304. ImageOperandsMakeTexelAvailableKHRMask = 0x00000100,
  305. ImageOperandsMakeTexelVisibleKHRMask = 0x00000200,
  306. ImageOperandsNonPrivateTexelKHRMask = 0x00000400,
  307. ImageOperandsVolatileTexelKHRMask = 0x00000800,
  308. };
  309. enum FPFastMathModeShift {
  310. FPFastMathModeNotNaNShift = 0,
  311. FPFastMathModeNotInfShift = 1,
  312. FPFastMathModeNSZShift = 2,
  313. FPFastMathModeAllowRecipShift = 3,
  314. FPFastMathModeFastShift = 4,
  315. FPFastMathModeMax = 0x7fffffff,
  316. };
  317. enum FPFastMathModeMask {
  318. FPFastMathModeMaskNone = 0,
  319. FPFastMathModeNotNaNMask = 0x00000001,
  320. FPFastMathModeNotInfMask = 0x00000002,
  321. FPFastMathModeNSZMask = 0x00000004,
  322. FPFastMathModeAllowRecipMask = 0x00000008,
  323. FPFastMathModeFastMask = 0x00000010,
  324. };
  325. enum FPRoundingMode {
  326. FPRoundingModeRTE = 0,
  327. FPRoundingModeRTZ = 1,
  328. FPRoundingModeRTP = 2,
  329. FPRoundingModeRTN = 3,
  330. FPRoundingModeMax = 0x7fffffff,
  331. };
  332. enum LinkageType {
  333. LinkageTypeExport = 0,
  334. LinkageTypeImport = 1,
  335. LinkageTypeMax = 0x7fffffff,
  336. };
  337. enum AccessQualifier {
  338. AccessQualifierReadOnly = 0,
  339. AccessQualifierWriteOnly = 1,
  340. AccessQualifierReadWrite = 2,
  341. AccessQualifierMax = 0x7fffffff,
  342. };
  343. enum FunctionParameterAttribute {
  344. FunctionParameterAttributeZext = 0,
  345. FunctionParameterAttributeSext = 1,
  346. FunctionParameterAttributeByVal = 2,
  347. FunctionParameterAttributeSret = 3,
  348. FunctionParameterAttributeNoAlias = 4,
  349. FunctionParameterAttributeNoCapture = 5,
  350. FunctionParameterAttributeNoWrite = 6,
  351. FunctionParameterAttributeNoReadWrite = 7,
  352. FunctionParameterAttributeMax = 0x7fffffff,
  353. };
  354. enum Decoration {
  355. DecorationRelaxedPrecision = 0,
  356. DecorationSpecId = 1,
  357. DecorationBlock = 2,
  358. DecorationBufferBlock = 3,
  359. DecorationRowMajor = 4,
  360. DecorationColMajor = 5,
  361. DecorationArrayStride = 6,
  362. DecorationMatrixStride = 7,
  363. DecorationGLSLShared = 8,
  364. DecorationGLSLPacked = 9,
  365. DecorationCPacked = 10,
  366. DecorationBuiltIn = 11,
  367. DecorationNoPerspective = 13,
  368. DecorationFlat = 14,
  369. DecorationPatch = 15,
  370. DecorationCentroid = 16,
  371. DecorationSample = 17,
  372. DecorationInvariant = 18,
  373. DecorationRestrict = 19,
  374. DecorationAliased = 20,
  375. DecorationVolatile = 21,
  376. DecorationConstant = 22,
  377. DecorationCoherent = 23,
  378. DecorationNonWritable = 24,
  379. DecorationNonReadable = 25,
  380. DecorationUniform = 26,
  381. DecorationSaturatedConversion = 28,
  382. DecorationStream = 29,
  383. DecorationLocation = 30,
  384. DecorationComponent = 31,
  385. DecorationIndex = 32,
  386. DecorationBinding = 33,
  387. DecorationDescriptorSet = 34,
  388. DecorationOffset = 35,
  389. DecorationXfbBuffer = 36,
  390. DecorationXfbStride = 37,
  391. DecorationFuncParamAttr = 38,
  392. DecorationFPRoundingMode = 39,
  393. DecorationFPFastMathMode = 40,
  394. DecorationLinkageAttributes = 41,
  395. DecorationNoContraction = 42,
  396. DecorationInputAttachmentIndex = 43,
  397. DecorationAlignment = 44,
  398. DecorationMaxByteOffset = 45,
  399. DecorationAlignmentId = 46,
  400. DecorationMaxByteOffsetId = 47,
  401. DecorationNoSignedWrap = 4469,
  402. DecorationNoUnsignedWrap = 4470,
  403. DecorationExplicitInterpAMD = 4999,
  404. DecorationOverrideCoverageNV = 5248,
  405. DecorationPassthroughNV = 5250,
  406. DecorationViewportRelativeNV = 5252,
  407. DecorationSecondaryViewportRelativeNV = 5256,
  408. DecorationPerPrimitiveNV = 5271,
  409. DecorationPerViewNV = 5272,
  410. DecorationPerTaskNV = 5273,
  411. DecorationPerVertexNV = 5285,
  412. DecorationNonUniformEXT = 5300,
  413. DecorationRestrictPointerEXT = 5355,
  414. DecorationAliasedPointerEXT = 5356,
  415. DecorationHlslCounterBufferGOOGLE = 5634,
  416. DecorationHlslSemanticGOOGLE = 5635,
  417. DecorationMax = 0x7fffffff,
  418. };
  419. enum BuiltIn {
  420. BuiltInPosition = 0,
  421. BuiltInPointSize = 1,
  422. BuiltInClipDistance = 3,
  423. BuiltInCullDistance = 4,
  424. BuiltInVertexId = 5,
  425. BuiltInInstanceId = 6,
  426. BuiltInPrimitiveId = 7,
  427. BuiltInInvocationId = 8,
  428. BuiltInLayer = 9,
  429. BuiltInViewportIndex = 10,
  430. BuiltInTessLevelOuter = 11,
  431. BuiltInTessLevelInner = 12,
  432. BuiltInTessCoord = 13,
  433. BuiltInPatchVertices = 14,
  434. BuiltInFragCoord = 15,
  435. BuiltInPointCoord = 16,
  436. BuiltInFrontFacing = 17,
  437. BuiltInSampleId = 18,
  438. BuiltInSamplePosition = 19,
  439. BuiltInSampleMask = 20,
  440. BuiltInFragDepth = 22,
  441. BuiltInHelperInvocation = 23,
  442. BuiltInNumWorkgroups = 24,
  443. BuiltInWorkgroupSize = 25,
  444. BuiltInWorkgroupId = 26,
  445. BuiltInLocalInvocationId = 27,
  446. BuiltInGlobalInvocationId = 28,
  447. BuiltInLocalInvocationIndex = 29,
  448. BuiltInWorkDim = 30,
  449. BuiltInGlobalSize = 31,
  450. BuiltInEnqueuedWorkgroupSize = 32,
  451. BuiltInGlobalOffset = 33,
  452. BuiltInGlobalLinearId = 34,
  453. BuiltInSubgroupSize = 36,
  454. BuiltInSubgroupMaxSize = 37,
  455. BuiltInNumSubgroups = 38,
  456. BuiltInNumEnqueuedSubgroups = 39,
  457. BuiltInSubgroupId = 40,
  458. BuiltInSubgroupLocalInvocationId = 41,
  459. BuiltInVertexIndex = 42,
  460. BuiltInInstanceIndex = 43,
  461. BuiltInSubgroupEqMask = 4416,
  462. BuiltInSubgroupEqMaskKHR = 4416,
  463. BuiltInSubgroupGeMask = 4417,
  464. BuiltInSubgroupGeMaskKHR = 4417,
  465. BuiltInSubgroupGtMask = 4418,
  466. BuiltInSubgroupGtMaskKHR = 4418,
  467. BuiltInSubgroupLeMask = 4419,
  468. BuiltInSubgroupLeMaskKHR = 4419,
  469. BuiltInSubgroupLtMask = 4420,
  470. BuiltInSubgroupLtMaskKHR = 4420,
  471. BuiltInBaseVertex = 4424,
  472. BuiltInBaseInstance = 4425,
  473. BuiltInDrawIndex = 4426,
  474. BuiltInDeviceIndex = 4438,
  475. BuiltInViewIndex = 4440,
  476. BuiltInBaryCoordNoPerspAMD = 4992,
  477. BuiltInBaryCoordNoPerspCentroidAMD = 4993,
  478. BuiltInBaryCoordNoPerspSampleAMD = 4994,
  479. BuiltInBaryCoordSmoothAMD = 4995,
  480. BuiltInBaryCoordSmoothCentroidAMD = 4996,
  481. BuiltInBaryCoordSmoothSampleAMD = 4997,
  482. BuiltInBaryCoordPullModelAMD = 4998,
  483. BuiltInFragStencilRefEXT = 5014,
  484. BuiltInViewportMaskNV = 5253,
  485. BuiltInSecondaryPositionNV = 5257,
  486. BuiltInSecondaryViewportMaskNV = 5258,
  487. BuiltInPositionPerViewNV = 5261,
  488. BuiltInViewportMaskPerViewNV = 5262,
  489. BuiltInFullyCoveredEXT = 5264,
  490. BuiltInTaskCountNV = 5274,
  491. BuiltInPrimitiveCountNV = 5275,
  492. BuiltInPrimitiveIndicesNV = 5276,
  493. BuiltInClipDistancePerViewNV = 5277,
  494. BuiltInCullDistancePerViewNV = 5278,
  495. BuiltInLayerPerViewNV = 5279,
  496. BuiltInMeshViewCountNV = 5280,
  497. BuiltInMeshViewIndicesNV = 5281,
  498. BuiltInBaryCoordNV = 5286,
  499. BuiltInBaryCoordNoPerspNV = 5287,
  500. BuiltInFragSizeEXT = 5292,
  501. BuiltInFragmentSizeNV = 5292,
  502. BuiltInFragInvocationCountEXT = 5293,
  503. BuiltInInvocationsPerPixelNV = 5293,
  504. BuiltInLaunchIdNV = 5319,
  505. BuiltInLaunchSizeNV = 5320,
  506. BuiltInWorldRayOriginNV = 5321,
  507. BuiltInWorldRayDirectionNV = 5322,
  508. BuiltInObjectRayOriginNV = 5323,
  509. BuiltInObjectRayDirectionNV = 5324,
  510. BuiltInRayTminNV = 5325,
  511. BuiltInRayTmaxNV = 5326,
  512. BuiltInInstanceCustomIndexNV = 5327,
  513. BuiltInObjectToWorldNV = 5330,
  514. BuiltInWorldToObjectNV = 5331,
  515. BuiltInHitTNV = 5332,
  516. BuiltInHitKindNV = 5333,
  517. BuiltInIncomingRayFlagsNV = 5351,
  518. BuiltInMax = 0x7fffffff,
  519. };
  520. enum SelectionControlShift {
  521. SelectionControlFlattenShift = 0,
  522. SelectionControlDontFlattenShift = 1,
  523. SelectionControlMax = 0x7fffffff,
  524. };
  525. enum SelectionControlMask {
  526. SelectionControlMaskNone = 0,
  527. SelectionControlFlattenMask = 0x00000001,
  528. SelectionControlDontFlattenMask = 0x00000002,
  529. };
  530. enum LoopControlShift {
  531. LoopControlUnrollShift = 0,
  532. LoopControlDontUnrollShift = 1,
  533. LoopControlDependencyInfiniteShift = 2,
  534. LoopControlDependencyLengthShift = 3,
  535. LoopControlMax = 0x7fffffff,
  536. };
  537. enum LoopControlMask {
  538. LoopControlMaskNone = 0,
  539. LoopControlUnrollMask = 0x00000001,
  540. LoopControlDontUnrollMask = 0x00000002,
  541. LoopControlDependencyInfiniteMask = 0x00000004,
  542. LoopControlDependencyLengthMask = 0x00000008,
  543. };
  544. enum FunctionControlShift {
  545. FunctionControlInlineShift = 0,
  546. FunctionControlDontInlineShift = 1,
  547. FunctionControlPureShift = 2,
  548. FunctionControlConstShift = 3,
  549. FunctionControlMax = 0x7fffffff,
  550. };
  551. enum FunctionControlMask {
  552. FunctionControlMaskNone = 0,
  553. FunctionControlInlineMask = 0x00000001,
  554. FunctionControlDontInlineMask = 0x00000002,
  555. FunctionControlPureMask = 0x00000004,
  556. FunctionControlConstMask = 0x00000008,
  557. };
  558. enum MemorySemanticsShift {
  559. MemorySemanticsAcquireShift = 1,
  560. MemorySemanticsReleaseShift = 2,
  561. MemorySemanticsAcquireReleaseShift = 3,
  562. MemorySemanticsSequentiallyConsistentShift = 4,
  563. MemorySemanticsUniformMemoryShift = 6,
  564. MemorySemanticsSubgroupMemoryShift = 7,
  565. MemorySemanticsWorkgroupMemoryShift = 8,
  566. MemorySemanticsCrossWorkgroupMemoryShift = 9,
  567. MemorySemanticsAtomicCounterMemoryShift = 10,
  568. MemorySemanticsImageMemoryShift = 11,
  569. MemorySemanticsOutputMemoryKHRShift = 12,
  570. MemorySemanticsMakeAvailableKHRShift = 13,
  571. MemorySemanticsMakeVisibleKHRShift = 14,
  572. MemorySemanticsMax = 0x7fffffff,
  573. };
  574. enum MemorySemanticsMask {
  575. MemorySemanticsMaskNone = 0,
  576. MemorySemanticsAcquireMask = 0x00000002,
  577. MemorySemanticsReleaseMask = 0x00000004,
  578. MemorySemanticsAcquireReleaseMask = 0x00000008,
  579. MemorySemanticsSequentiallyConsistentMask = 0x00000010,
  580. MemorySemanticsUniformMemoryMask = 0x00000040,
  581. MemorySemanticsSubgroupMemoryMask = 0x00000080,
  582. MemorySemanticsWorkgroupMemoryMask = 0x00000100,
  583. MemorySemanticsCrossWorkgroupMemoryMask = 0x00000200,
  584. MemorySemanticsAtomicCounterMemoryMask = 0x00000400,
  585. MemorySemanticsImageMemoryMask = 0x00000800,
  586. MemorySemanticsOutputMemoryKHRMask = 0x00001000,
  587. MemorySemanticsMakeAvailableKHRMask = 0x00002000,
  588. MemorySemanticsMakeVisibleKHRMask = 0x00004000,
  589. };
  590. enum MemoryAccessShift {
  591. MemoryAccessVolatileShift = 0,
  592. MemoryAccessAlignedShift = 1,
  593. MemoryAccessNontemporalShift = 2,
  594. MemoryAccessMakePointerAvailableKHRShift = 3,
  595. MemoryAccessMakePointerVisibleKHRShift = 4,
  596. MemoryAccessNonPrivatePointerKHRShift = 5,
  597. MemoryAccessMax = 0x7fffffff,
  598. };
  599. enum MemoryAccessMask {
  600. MemoryAccessMaskNone = 0,
  601. MemoryAccessVolatileMask = 0x00000001,
  602. MemoryAccessAlignedMask = 0x00000002,
  603. MemoryAccessNontemporalMask = 0x00000004,
  604. MemoryAccessMakePointerAvailableKHRMask = 0x00000008,
  605. MemoryAccessMakePointerVisibleKHRMask = 0x00000010,
  606. MemoryAccessNonPrivatePointerKHRMask = 0x00000020,
  607. };
  608. enum Scope {
  609. ScopeCrossDevice = 0,
  610. ScopeDevice = 1,
  611. ScopeWorkgroup = 2,
  612. ScopeSubgroup = 3,
  613. ScopeInvocation = 4,
  614. ScopeQueueFamilyKHR = 5,
  615. ScopeMax = 0x7fffffff,
  616. };
  617. enum GroupOperation {
  618. GroupOperationReduce = 0,
  619. GroupOperationInclusiveScan = 1,
  620. GroupOperationExclusiveScan = 2,
  621. GroupOperationClusteredReduce = 3,
  622. GroupOperationPartitionedReduceNV = 6,
  623. GroupOperationPartitionedInclusiveScanNV = 7,
  624. GroupOperationPartitionedExclusiveScanNV = 8,
  625. GroupOperationMax = 0x7fffffff,
  626. };
  627. enum KernelEnqueueFlags {
  628. KernelEnqueueFlagsNoWait = 0,
  629. KernelEnqueueFlagsWaitKernel = 1,
  630. KernelEnqueueFlagsWaitWorkGroup = 2,
  631. KernelEnqueueFlagsMax = 0x7fffffff,
  632. };
  633. enum KernelProfilingInfoShift {
  634. KernelProfilingInfoCmdExecTimeShift = 0,
  635. KernelProfilingInfoMax = 0x7fffffff,
  636. };
  637. enum KernelProfilingInfoMask {
  638. KernelProfilingInfoMaskNone = 0,
  639. KernelProfilingInfoCmdExecTimeMask = 0x00000001,
  640. };
  641. enum Capability {
  642. CapabilityMatrix = 0,
  643. CapabilityShader = 1,
  644. CapabilityGeometry = 2,
  645. CapabilityTessellation = 3,
  646. CapabilityAddresses = 4,
  647. CapabilityLinkage = 5,
  648. CapabilityKernel = 6,
  649. CapabilityVector16 = 7,
  650. CapabilityFloat16Buffer = 8,
  651. CapabilityFloat16 = 9,
  652. CapabilityFloat64 = 10,
  653. CapabilityInt64 = 11,
  654. CapabilityInt64Atomics = 12,
  655. CapabilityImageBasic = 13,
  656. CapabilityImageReadWrite = 14,
  657. CapabilityImageMipmap = 15,
  658. CapabilityPipes = 17,
  659. CapabilityGroups = 18,
  660. CapabilityDeviceEnqueue = 19,
  661. CapabilityLiteralSampler = 20,
  662. CapabilityAtomicStorage = 21,
  663. CapabilityInt16 = 22,
  664. CapabilityTessellationPointSize = 23,
  665. CapabilityGeometryPointSize = 24,
  666. CapabilityImageGatherExtended = 25,
  667. CapabilityStorageImageMultisample = 27,
  668. CapabilityUniformBufferArrayDynamicIndexing = 28,
  669. CapabilitySampledImageArrayDynamicIndexing = 29,
  670. CapabilityStorageBufferArrayDynamicIndexing = 30,
  671. CapabilityStorageImageArrayDynamicIndexing = 31,
  672. CapabilityClipDistance = 32,
  673. CapabilityCullDistance = 33,
  674. CapabilityImageCubeArray = 34,
  675. CapabilitySampleRateShading = 35,
  676. CapabilityImageRect = 36,
  677. CapabilitySampledRect = 37,
  678. CapabilityGenericPointer = 38,
  679. CapabilityInt8 = 39,
  680. CapabilityInputAttachment = 40,
  681. CapabilitySparseResidency = 41,
  682. CapabilityMinLod = 42,
  683. CapabilitySampled1D = 43,
  684. CapabilityImage1D = 44,
  685. CapabilitySampledCubeArray = 45,
  686. CapabilitySampledBuffer = 46,
  687. CapabilityImageBuffer = 47,
  688. CapabilityImageMSArray = 48,
  689. CapabilityStorageImageExtendedFormats = 49,
  690. CapabilityImageQuery = 50,
  691. CapabilityDerivativeControl = 51,
  692. CapabilityInterpolationFunction = 52,
  693. CapabilityTransformFeedback = 53,
  694. CapabilityGeometryStreams = 54,
  695. CapabilityStorageImageReadWithoutFormat = 55,
  696. CapabilityStorageImageWriteWithoutFormat = 56,
  697. CapabilityMultiViewport = 57,
  698. CapabilitySubgroupDispatch = 58,
  699. CapabilityNamedBarrier = 59,
  700. CapabilityPipeStorage = 60,
  701. CapabilityGroupNonUniform = 61,
  702. CapabilityGroupNonUniformVote = 62,
  703. CapabilityGroupNonUniformArithmetic = 63,
  704. CapabilityGroupNonUniformBallot = 64,
  705. CapabilityGroupNonUniformShuffle = 65,
  706. CapabilityGroupNonUniformShuffleRelative = 66,
  707. CapabilityGroupNonUniformClustered = 67,
  708. CapabilityGroupNonUniformQuad = 68,
  709. CapabilitySubgroupBallotKHR = 4423,
  710. CapabilityDrawParameters = 4427,
  711. CapabilitySubgroupVoteKHR = 4431,
  712. CapabilityStorageBuffer16BitAccess = 4433,
  713. CapabilityStorageUniformBufferBlock16 = 4433,
  714. CapabilityStorageUniform16 = 4434,
  715. CapabilityUniformAndStorageBuffer16BitAccess = 4434,
  716. CapabilityStoragePushConstant16 = 4435,
  717. CapabilityStorageInputOutput16 = 4436,
  718. CapabilityDeviceGroup = 4437,
  719. CapabilityMultiView = 4439,
  720. CapabilityVariablePointersStorageBuffer = 4441,
  721. CapabilityVariablePointers = 4442,
  722. CapabilityAtomicStorageOps = 4445,
  723. CapabilitySampleMaskPostDepthCoverage = 4447,
  724. CapabilityStorageBuffer8BitAccess = 4448,
  725. CapabilityUniformAndStorageBuffer8BitAccess = 4449,
  726. CapabilityStoragePushConstant8 = 4450,
  727. CapabilityDenormPreserve = 4464,
  728. CapabilityDenormFlushToZero = 4465,
  729. CapabilitySignedZeroInfNanPreserve = 4466,
  730. CapabilityRoundingModeRTE = 4467,
  731. CapabilityRoundingModeRTZ = 4468,
  732. CapabilityFloat16ImageAMD = 5008,
  733. CapabilityImageGatherBiasLodAMD = 5009,
  734. CapabilityFragmentMaskAMD = 5010,
  735. CapabilityStencilExportEXT = 5013,
  736. CapabilityImageReadWriteLodAMD = 5015,
  737. CapabilitySampleMaskOverrideCoverageNV = 5249,
  738. CapabilityGeometryShaderPassthroughNV = 5251,
  739. CapabilityShaderViewportIndexLayerEXT = 5254,
  740. CapabilityShaderViewportIndexLayerNV = 5254,
  741. CapabilityShaderViewportMaskNV = 5255,
  742. CapabilityShaderStereoViewNV = 5259,
  743. CapabilityPerViewAttributesNV = 5260,
  744. CapabilityFragmentFullyCoveredEXT = 5265,
  745. CapabilityMeshShadingNV = 5266,
  746. CapabilityImageFootprintNV = 5282,
  747. CapabilityFragmentBarycentricNV = 5284,
  748. CapabilityComputeDerivativeGroupQuadsNV = 5288,
  749. CapabilityFragmentDensityEXT = 5291,
  750. CapabilityShadingRateNV = 5291,
  751. CapabilityGroupNonUniformPartitionedNV = 5297,
  752. CapabilityShaderNonUniformEXT = 5301,
  753. CapabilityRuntimeDescriptorArrayEXT = 5302,
  754. CapabilityInputAttachmentArrayDynamicIndexingEXT = 5303,
  755. CapabilityUniformTexelBufferArrayDynamicIndexingEXT = 5304,
  756. CapabilityStorageTexelBufferArrayDynamicIndexingEXT = 5305,
  757. CapabilityUniformBufferArrayNonUniformIndexingEXT = 5306,
  758. CapabilitySampledImageArrayNonUniformIndexingEXT = 5307,
  759. CapabilityStorageBufferArrayNonUniformIndexingEXT = 5308,
  760. CapabilityStorageImageArrayNonUniformIndexingEXT = 5309,
  761. CapabilityInputAttachmentArrayNonUniformIndexingEXT = 5310,
  762. CapabilityUniformTexelBufferArrayNonUniformIndexingEXT = 5311,
  763. CapabilityStorageTexelBufferArrayNonUniformIndexingEXT = 5312,
  764. CapabilityRayTracingNV = 5340,
  765. CapabilityVulkanMemoryModelKHR = 5345,
  766. CapabilityVulkanMemoryModelDeviceScopeKHR = 5346,
  767. CapabilityPhysicalStorageBufferAddressesEXT = 5347,
  768. CapabilityComputeDerivativeGroupLinearNV = 5350,
  769. CapabilitySubgroupShuffleINTEL = 5568,
  770. CapabilitySubgroupBufferBlockIOINTEL = 5569,
  771. CapabilitySubgroupImageBlockIOINTEL = 5570,
  772. CapabilityMax = 0x7fffffff,
  773. };
  774. enum Op {
  775. OpNop = 0,
  776. OpUndef = 1,
  777. OpSourceContinued = 2,
  778. OpSource = 3,
  779. OpSourceExtension = 4,
  780. OpName = 5,
  781. OpMemberName = 6,
  782. OpString = 7,
  783. OpLine = 8,
  784. OpExtension = 10,
  785. OpExtInstImport = 11,
  786. OpExtInst = 12,
  787. OpMemoryModel = 14,
  788. OpEntryPoint = 15,
  789. OpExecutionMode = 16,
  790. OpCapability = 17,
  791. OpTypeVoid = 19,
  792. OpTypeBool = 20,
  793. OpTypeInt = 21,
  794. OpTypeFloat = 22,
  795. OpTypeVector = 23,
  796. OpTypeMatrix = 24,
  797. OpTypeImage = 25,
  798. OpTypeSampler = 26,
  799. OpTypeSampledImage = 27,
  800. OpTypeArray = 28,
  801. OpTypeRuntimeArray = 29,
  802. OpTypeStruct = 30,
  803. OpTypeOpaque = 31,
  804. OpTypePointer = 32,
  805. OpTypeFunction = 33,
  806. OpTypeEvent = 34,
  807. OpTypeDeviceEvent = 35,
  808. OpTypeReserveId = 36,
  809. OpTypeQueue = 37,
  810. OpTypePipe = 38,
  811. OpTypeForwardPointer = 39,
  812. OpConstantTrue = 41,
  813. OpConstantFalse = 42,
  814. OpConstant = 43,
  815. OpConstantComposite = 44,
  816. OpConstantSampler = 45,
  817. OpConstantNull = 46,
  818. OpSpecConstantTrue = 48,
  819. OpSpecConstantFalse = 49,
  820. OpSpecConstant = 50,
  821. OpSpecConstantComposite = 51,
  822. OpSpecConstantOp = 52,
  823. OpFunction = 54,
  824. OpFunctionParameter = 55,
  825. OpFunctionEnd = 56,
  826. OpFunctionCall = 57,
  827. OpVariable = 59,
  828. OpImageTexelPointer = 60,
  829. OpLoad = 61,
  830. OpStore = 62,
  831. OpCopyMemory = 63,
  832. OpCopyMemorySized = 64,
  833. OpAccessChain = 65,
  834. OpInBoundsAccessChain = 66,
  835. OpPtrAccessChain = 67,
  836. OpArrayLength = 68,
  837. OpGenericPtrMemSemantics = 69,
  838. OpInBoundsPtrAccessChain = 70,
  839. OpDecorate = 71,
  840. OpMemberDecorate = 72,
  841. OpDecorationGroup = 73,
  842. OpGroupDecorate = 74,
  843. OpGroupMemberDecorate = 75,
  844. OpVectorExtractDynamic = 77,
  845. OpVectorInsertDynamic = 78,
  846. OpVectorShuffle = 79,
  847. OpCompositeConstruct = 80,
  848. OpCompositeExtract = 81,
  849. OpCompositeInsert = 82,
  850. OpCopyObject = 83,
  851. OpTranspose = 84,
  852. OpSampledImage = 86,
  853. OpImageSampleImplicitLod = 87,
  854. OpImageSampleExplicitLod = 88,
  855. OpImageSampleDrefImplicitLod = 89,
  856. OpImageSampleDrefExplicitLod = 90,
  857. OpImageSampleProjImplicitLod = 91,
  858. OpImageSampleProjExplicitLod = 92,
  859. OpImageSampleProjDrefImplicitLod = 93,
  860. OpImageSampleProjDrefExplicitLod = 94,
  861. OpImageFetch = 95,
  862. OpImageGather = 96,
  863. OpImageDrefGather = 97,
  864. OpImageRead = 98,
  865. OpImageWrite = 99,
  866. OpImage = 100,
  867. OpImageQueryFormat = 101,
  868. OpImageQueryOrder = 102,
  869. OpImageQuerySizeLod = 103,
  870. OpImageQuerySize = 104,
  871. OpImageQueryLod = 105,
  872. OpImageQueryLevels = 106,
  873. OpImageQuerySamples = 107,
  874. OpConvertFToU = 109,
  875. OpConvertFToS = 110,
  876. OpConvertSToF = 111,
  877. OpConvertUToF = 112,
  878. OpUConvert = 113,
  879. OpSConvert = 114,
  880. OpFConvert = 115,
  881. OpQuantizeToF16 = 116,
  882. OpConvertPtrToU = 117,
  883. OpSatConvertSToU = 118,
  884. OpSatConvertUToS = 119,
  885. OpConvertUToPtr = 120,
  886. OpPtrCastToGeneric = 121,
  887. OpGenericCastToPtr = 122,
  888. OpGenericCastToPtrExplicit = 123,
  889. OpBitcast = 124,
  890. OpSNegate = 126,
  891. OpFNegate = 127,
  892. OpIAdd = 128,
  893. OpFAdd = 129,
  894. OpISub = 130,
  895. OpFSub = 131,
  896. OpIMul = 132,
  897. OpFMul = 133,
  898. OpUDiv = 134,
  899. OpSDiv = 135,
  900. OpFDiv = 136,
  901. OpUMod = 137,
  902. OpSRem = 138,
  903. OpSMod = 139,
  904. OpFRem = 140,
  905. OpFMod = 141,
  906. OpVectorTimesScalar = 142,
  907. OpMatrixTimesScalar = 143,
  908. OpVectorTimesMatrix = 144,
  909. OpMatrixTimesVector = 145,
  910. OpMatrixTimesMatrix = 146,
  911. OpOuterProduct = 147,
  912. OpDot = 148,
  913. OpIAddCarry = 149,
  914. OpISubBorrow = 150,
  915. OpUMulExtended = 151,
  916. OpSMulExtended = 152,
  917. OpAny = 154,
  918. OpAll = 155,
  919. OpIsNan = 156,
  920. OpIsInf = 157,
  921. OpIsFinite = 158,
  922. OpIsNormal = 159,
  923. OpSignBitSet = 160,
  924. OpLessOrGreater = 161,
  925. OpOrdered = 162,
  926. OpUnordered = 163,
  927. OpLogicalEqual = 164,
  928. OpLogicalNotEqual = 165,
  929. OpLogicalOr = 166,
  930. OpLogicalAnd = 167,
  931. OpLogicalNot = 168,
  932. OpSelect = 169,
  933. OpIEqual = 170,
  934. OpINotEqual = 171,
  935. OpUGreaterThan = 172,
  936. OpSGreaterThan = 173,
  937. OpUGreaterThanEqual = 174,
  938. OpSGreaterThanEqual = 175,
  939. OpULessThan = 176,
  940. OpSLessThan = 177,
  941. OpULessThanEqual = 178,
  942. OpSLessThanEqual = 179,
  943. OpFOrdEqual = 180,
  944. OpFUnordEqual = 181,
  945. OpFOrdNotEqual = 182,
  946. OpFUnordNotEqual = 183,
  947. OpFOrdLessThan = 184,
  948. OpFUnordLessThan = 185,
  949. OpFOrdGreaterThan = 186,
  950. OpFUnordGreaterThan = 187,
  951. OpFOrdLessThanEqual = 188,
  952. OpFUnordLessThanEqual = 189,
  953. OpFOrdGreaterThanEqual = 190,
  954. OpFUnordGreaterThanEqual = 191,
  955. OpShiftRightLogical = 194,
  956. OpShiftRightArithmetic = 195,
  957. OpShiftLeftLogical = 196,
  958. OpBitwiseOr = 197,
  959. OpBitwiseXor = 198,
  960. OpBitwiseAnd = 199,
  961. OpNot = 200,
  962. OpBitFieldInsert = 201,
  963. OpBitFieldSExtract = 202,
  964. OpBitFieldUExtract = 203,
  965. OpBitReverse = 204,
  966. OpBitCount = 205,
  967. OpDPdx = 207,
  968. OpDPdy = 208,
  969. OpFwidth = 209,
  970. OpDPdxFine = 210,
  971. OpDPdyFine = 211,
  972. OpFwidthFine = 212,
  973. OpDPdxCoarse = 213,
  974. OpDPdyCoarse = 214,
  975. OpFwidthCoarse = 215,
  976. OpEmitVertex = 218,
  977. OpEndPrimitive = 219,
  978. OpEmitStreamVertex = 220,
  979. OpEndStreamPrimitive = 221,
  980. OpControlBarrier = 224,
  981. OpMemoryBarrier = 225,
  982. OpAtomicLoad = 227,
  983. OpAtomicStore = 228,
  984. OpAtomicExchange = 229,
  985. OpAtomicCompareExchange = 230,
  986. OpAtomicCompareExchangeWeak = 231,
  987. OpAtomicIIncrement = 232,
  988. OpAtomicIDecrement = 233,
  989. OpAtomicIAdd = 234,
  990. OpAtomicISub = 235,
  991. OpAtomicSMin = 236,
  992. OpAtomicUMin = 237,
  993. OpAtomicSMax = 238,
  994. OpAtomicUMax = 239,
  995. OpAtomicAnd = 240,
  996. OpAtomicOr = 241,
  997. OpAtomicXor = 242,
  998. OpPhi = 245,
  999. OpLoopMerge = 246,
  1000. OpSelectionMerge = 247,
  1001. OpLabel = 248,
  1002. OpBranch = 249,
  1003. OpBranchConditional = 250,
  1004. OpSwitch = 251,
  1005. OpKill = 252,
  1006. OpReturn = 253,
  1007. OpReturnValue = 254,
  1008. OpUnreachable = 255,
  1009. OpLifetimeStart = 256,
  1010. OpLifetimeStop = 257,
  1011. OpGroupAsyncCopy = 259,
  1012. OpGroupWaitEvents = 260,
  1013. OpGroupAll = 261,
  1014. OpGroupAny = 262,
  1015. OpGroupBroadcast = 263,
  1016. OpGroupIAdd = 264,
  1017. OpGroupFAdd = 265,
  1018. OpGroupFMin = 266,
  1019. OpGroupUMin = 267,
  1020. OpGroupSMin = 268,
  1021. OpGroupFMax = 269,
  1022. OpGroupUMax = 270,
  1023. OpGroupSMax = 271,
  1024. OpReadPipe = 274,
  1025. OpWritePipe = 275,
  1026. OpReservedReadPipe = 276,
  1027. OpReservedWritePipe = 277,
  1028. OpReserveReadPipePackets = 278,
  1029. OpReserveWritePipePackets = 279,
  1030. OpCommitReadPipe = 280,
  1031. OpCommitWritePipe = 281,
  1032. OpIsValidReserveId = 282,
  1033. OpGetNumPipePackets = 283,
  1034. OpGetMaxPipePackets = 284,
  1035. OpGroupReserveReadPipePackets = 285,
  1036. OpGroupReserveWritePipePackets = 286,
  1037. OpGroupCommitReadPipe = 287,
  1038. OpGroupCommitWritePipe = 288,
  1039. OpEnqueueMarker = 291,
  1040. OpEnqueueKernel = 292,
  1041. OpGetKernelNDrangeSubGroupCount = 293,
  1042. OpGetKernelNDrangeMaxSubGroupSize = 294,
  1043. OpGetKernelWorkGroupSize = 295,
  1044. OpGetKernelPreferredWorkGroupSizeMultiple = 296,
  1045. OpRetainEvent = 297,
  1046. OpReleaseEvent = 298,
  1047. OpCreateUserEvent = 299,
  1048. OpIsValidEvent = 300,
  1049. OpSetUserEventStatus = 301,
  1050. OpCaptureEventProfilingInfo = 302,
  1051. OpGetDefaultQueue = 303,
  1052. OpBuildNDRange = 304,
  1053. OpImageSparseSampleImplicitLod = 305,
  1054. OpImageSparseSampleExplicitLod = 306,
  1055. OpImageSparseSampleDrefImplicitLod = 307,
  1056. OpImageSparseSampleDrefExplicitLod = 308,
  1057. OpImageSparseSampleProjImplicitLod = 309,
  1058. OpImageSparseSampleProjExplicitLod = 310,
  1059. OpImageSparseSampleProjDrefImplicitLod = 311,
  1060. OpImageSparseSampleProjDrefExplicitLod = 312,
  1061. OpImageSparseFetch = 313,
  1062. OpImageSparseGather = 314,
  1063. OpImageSparseDrefGather = 315,
  1064. OpImageSparseTexelsResident = 316,
  1065. OpNoLine = 317,
  1066. OpAtomicFlagTestAndSet = 318,
  1067. OpAtomicFlagClear = 319,
  1068. OpImageSparseRead = 320,
  1069. OpSizeOf = 321,
  1070. OpTypePipeStorage = 322,
  1071. OpConstantPipeStorage = 323,
  1072. OpCreatePipeFromPipeStorage = 324,
  1073. OpGetKernelLocalSizeForSubgroupCount = 325,
  1074. OpGetKernelMaxNumSubgroups = 326,
  1075. OpTypeNamedBarrier = 327,
  1076. OpNamedBarrierInitialize = 328,
  1077. OpMemoryNamedBarrier = 329,
  1078. OpModuleProcessed = 330,
  1079. OpExecutionModeId = 331,
  1080. OpDecorateId = 332,
  1081. OpGroupNonUniformElect = 333,
  1082. OpGroupNonUniformAll = 334,
  1083. OpGroupNonUniformAny = 335,
  1084. OpGroupNonUniformAllEqual = 336,
  1085. OpGroupNonUniformBroadcast = 337,
  1086. OpGroupNonUniformBroadcastFirst = 338,
  1087. OpGroupNonUniformBallot = 339,
  1088. OpGroupNonUniformInverseBallot = 340,
  1089. OpGroupNonUniformBallotBitExtract = 341,
  1090. OpGroupNonUniformBallotBitCount = 342,
  1091. OpGroupNonUniformBallotFindLSB = 343,
  1092. OpGroupNonUniformBallotFindMSB = 344,
  1093. OpGroupNonUniformShuffle = 345,
  1094. OpGroupNonUniformShuffleXor = 346,
  1095. OpGroupNonUniformShuffleUp = 347,
  1096. OpGroupNonUniformShuffleDown = 348,
  1097. OpGroupNonUniformIAdd = 349,
  1098. OpGroupNonUniformFAdd = 350,
  1099. OpGroupNonUniformIMul = 351,
  1100. OpGroupNonUniformFMul = 352,
  1101. OpGroupNonUniformSMin = 353,
  1102. OpGroupNonUniformUMin = 354,
  1103. OpGroupNonUniformFMin = 355,
  1104. OpGroupNonUniformSMax = 356,
  1105. OpGroupNonUniformUMax = 357,
  1106. OpGroupNonUniformFMax = 358,
  1107. OpGroupNonUniformBitwiseAnd = 359,
  1108. OpGroupNonUniformBitwiseOr = 360,
  1109. OpGroupNonUniformBitwiseXor = 361,
  1110. OpGroupNonUniformLogicalAnd = 362,
  1111. OpGroupNonUniformLogicalOr = 363,
  1112. OpGroupNonUniformLogicalXor = 364,
  1113. OpGroupNonUniformQuadBroadcast = 365,
  1114. OpGroupNonUniformQuadSwap = 366,
  1115. OpSubgroupBallotKHR = 4421,
  1116. OpSubgroupFirstInvocationKHR = 4422,
  1117. OpSubgroupAllKHR = 4428,
  1118. OpSubgroupAnyKHR = 4429,
  1119. OpSubgroupAllEqualKHR = 4430,
  1120. OpSubgroupReadInvocationKHR = 4432,
  1121. OpGroupIAddNonUniformAMD = 5000,
  1122. OpGroupFAddNonUniformAMD = 5001,
  1123. OpGroupFMinNonUniformAMD = 5002,
  1124. OpGroupUMinNonUniformAMD = 5003,
  1125. OpGroupSMinNonUniformAMD = 5004,
  1126. OpGroupFMaxNonUniformAMD = 5005,
  1127. OpGroupUMaxNonUniformAMD = 5006,
  1128. OpGroupSMaxNonUniformAMD = 5007,
  1129. OpFragmentMaskFetchAMD = 5011,
  1130. OpFragmentFetchAMD = 5012,
  1131. OpImageSampleFootprintNV = 5283,
  1132. OpGroupNonUniformPartitionNV = 5296,
  1133. OpWritePackedPrimitiveIndices4x8NV = 5299,
  1134. OpReportIntersectionNV = 5334,
  1135. OpIgnoreIntersectionNV = 5335,
  1136. OpTerminateRayNV = 5336,
  1137. OpTraceNV = 5337,
  1138. OpTypeAccelerationStructureNV = 5341,
  1139. OpExecuteCallableNV = 5344,
  1140. OpSubgroupShuffleINTEL = 5571,
  1141. OpSubgroupShuffleDownINTEL = 5572,
  1142. OpSubgroupShuffleUpINTEL = 5573,
  1143. OpSubgroupShuffleXorINTEL = 5574,
  1144. OpSubgroupBlockReadINTEL = 5575,
  1145. OpSubgroupBlockWriteINTEL = 5576,
  1146. OpSubgroupImageBlockReadINTEL = 5577,
  1147. OpSubgroupImageBlockWriteINTEL = 5578,
  1148. OpDecorateStringGOOGLE = 5632,
  1149. OpMemberDecorateStringGOOGLE = 5633,
  1150. OpMax = 0x7fffffff,
  1151. };
  1152. // Overload operator| for mask bit combining
  1153. inline ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
  1154. inline FPFastMathModeMask operator|(FPFastMathModeMask a, FPFastMathModeMask b) { return FPFastMathModeMask(unsigned(a) | unsigned(b)); }
  1155. inline SelectionControlMask operator|(SelectionControlMask a, SelectionControlMask b) { return SelectionControlMask(unsigned(a) | unsigned(b)); }
  1156. inline LoopControlMask operator|(LoopControlMask a, LoopControlMask b) { return LoopControlMask(unsigned(a) | unsigned(b)); }
  1157. inline FunctionControlMask operator|(FunctionControlMask a, FunctionControlMask b) { return FunctionControlMask(unsigned(a) | unsigned(b)); }
  1158. inline MemorySemanticsMask operator|(MemorySemanticsMask a, MemorySemanticsMask b) { return MemorySemanticsMask(unsigned(a) | unsigned(b)); }
  1159. inline MemoryAccessMask operator|(MemoryAccessMask a, MemoryAccessMask b) { return MemoryAccessMask(unsigned(a) | unsigned(b)); }
  1160. inline KernelProfilingInfoMask operator|(KernelProfilingInfoMask a, KernelProfilingInfoMask b) { return KernelProfilingInfoMask(unsigned(a) | unsigned(b)); }
  1161. } // end namespace spv
  1162. #endif // #ifndef spirv_HPP