GlslStd450Grammar.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. // AUTOGENERATED: DO NOT EDIT
  2. // Last update date: 2021-01-06 23:02:26.955269
  3. #region Grammar License
  4. // Copyright (c) 2014-2016 The Khronos Group Inc.
  5. //
  6. // Permission is hereby granted, free of charge, to any person obtaining a copy
  7. // of this software and/or associated documentation files (the "Materials"),
  8. // to deal in the Materials without restriction, including without limitation
  9. // the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. // and/or sell copies of the Materials, and to permit persons to whom the
  11. // Materials are furnished to do so, subject to the following conditions:
  12. //
  13. // The above copyright notice and this permission notice shall be included in
  14. // all copies or substantial portions of the Materials.
  15. //
  16. // MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
  17. // STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
  18. // HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
  19. //
  20. // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  22. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  23. // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  24. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  25. // FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
  26. // IN THE MATERIALS.
  27. #endregion
  28. using static Spv.Specification;
  29. namespace Spv.Generator
  30. {
  31. public partial class Module
  32. {
  33. public Instruction GlslRound(Instruction resultType, Instruction x)
  34. {
  35. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 1, x);
  36. }
  37. public Instruction GlslRoundEven(Instruction resultType, Instruction x)
  38. {
  39. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 2, x);
  40. }
  41. public Instruction GlslTrunc(Instruction resultType, Instruction x)
  42. {
  43. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 3, x);
  44. }
  45. public Instruction GlslFAbs(Instruction resultType, Instruction x)
  46. {
  47. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 4, x);
  48. }
  49. public Instruction GlslSAbs(Instruction resultType, Instruction x)
  50. {
  51. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 5, x);
  52. }
  53. public Instruction GlslFSign(Instruction resultType, Instruction x)
  54. {
  55. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 6, x);
  56. }
  57. public Instruction GlslSSign(Instruction resultType, Instruction x)
  58. {
  59. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 7, x);
  60. }
  61. public Instruction GlslFloor(Instruction resultType, Instruction x)
  62. {
  63. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 8, x);
  64. }
  65. public Instruction GlslCeil(Instruction resultType, Instruction x)
  66. {
  67. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 9, x);
  68. }
  69. public Instruction GlslFract(Instruction resultType, Instruction x)
  70. {
  71. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 10, x);
  72. }
  73. public Instruction GlslRadians(Instruction resultType, Instruction degrees)
  74. {
  75. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 11, degrees);
  76. }
  77. public Instruction GlslDegrees(Instruction resultType, Instruction radians)
  78. {
  79. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 12, radians);
  80. }
  81. public Instruction GlslSin(Instruction resultType, Instruction x)
  82. {
  83. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 13, x);
  84. }
  85. public Instruction GlslCos(Instruction resultType, Instruction x)
  86. {
  87. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 14, x);
  88. }
  89. public Instruction GlslTan(Instruction resultType, Instruction x)
  90. {
  91. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 15, x);
  92. }
  93. public Instruction GlslAsin(Instruction resultType, Instruction x)
  94. {
  95. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 16, x);
  96. }
  97. public Instruction GlslAcos(Instruction resultType, Instruction x)
  98. {
  99. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 17, x);
  100. }
  101. public Instruction GlslAtan(Instruction resultType, Instruction y_over_x)
  102. {
  103. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 18, y_over_x);
  104. }
  105. public Instruction GlslSinh(Instruction resultType, Instruction x)
  106. {
  107. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 19, x);
  108. }
  109. public Instruction GlslCosh(Instruction resultType, Instruction x)
  110. {
  111. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 20, x);
  112. }
  113. public Instruction GlslTanh(Instruction resultType, Instruction x)
  114. {
  115. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 21, x);
  116. }
  117. public Instruction GlslAsinh(Instruction resultType, Instruction x)
  118. {
  119. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 22, x);
  120. }
  121. public Instruction GlslAcosh(Instruction resultType, Instruction x)
  122. {
  123. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 23, x);
  124. }
  125. public Instruction GlslAtanh(Instruction resultType, Instruction x)
  126. {
  127. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 24, x);
  128. }
  129. public Instruction GlslAtan2(Instruction resultType, Instruction y, Instruction x)
  130. {
  131. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 25, y, x);
  132. }
  133. public Instruction GlslPow(Instruction resultType, Instruction x, Instruction y)
  134. {
  135. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 26, x, y);
  136. }
  137. public Instruction GlslExp(Instruction resultType, Instruction x)
  138. {
  139. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 27, x);
  140. }
  141. public Instruction GlslLog(Instruction resultType, Instruction x)
  142. {
  143. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 28, x);
  144. }
  145. public Instruction GlslExp2(Instruction resultType, Instruction x)
  146. {
  147. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 29, x);
  148. }
  149. public Instruction GlslLog2(Instruction resultType, Instruction x)
  150. {
  151. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 30, x);
  152. }
  153. public Instruction GlslSqrt(Instruction resultType, Instruction x)
  154. {
  155. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 31, x);
  156. }
  157. public Instruction GlslInverseSqrt(Instruction resultType, Instruction x)
  158. {
  159. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 32, x);
  160. }
  161. public Instruction GlslDeterminant(Instruction resultType, Instruction x)
  162. {
  163. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 33, x);
  164. }
  165. public Instruction GlslMatrixInverse(Instruction resultType, Instruction x)
  166. {
  167. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 34, x);
  168. }
  169. public Instruction GlslModf(Instruction resultType, Instruction x, Instruction i)
  170. {
  171. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 35, x, i);
  172. }
  173. public Instruction GlslModfStruct(Instruction resultType, Instruction x)
  174. {
  175. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 36, x);
  176. }
  177. public Instruction GlslFMin(Instruction resultType, Instruction x, Instruction y)
  178. {
  179. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 37, x, y);
  180. }
  181. public Instruction GlslUMin(Instruction resultType, Instruction x, Instruction y)
  182. {
  183. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 38, x, y);
  184. }
  185. public Instruction GlslSMin(Instruction resultType, Instruction x, Instruction y)
  186. {
  187. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 39, x, y);
  188. }
  189. public Instruction GlslFMax(Instruction resultType, Instruction x, Instruction y)
  190. {
  191. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 40, x, y);
  192. }
  193. public Instruction GlslUMax(Instruction resultType, Instruction x, Instruction y)
  194. {
  195. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 41, x, y);
  196. }
  197. public Instruction GlslSMax(Instruction resultType, Instruction x, Instruction y)
  198. {
  199. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 42, x, y);
  200. }
  201. public Instruction GlslFClamp(Instruction resultType, Instruction x, Instruction minVal, Instruction maxVal)
  202. {
  203. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 43, x, minVal, maxVal);
  204. }
  205. public Instruction GlslUClamp(Instruction resultType, Instruction x, Instruction minVal, Instruction maxVal)
  206. {
  207. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 44, x, minVal, maxVal);
  208. }
  209. public Instruction GlslSClamp(Instruction resultType, Instruction x, Instruction minVal, Instruction maxVal)
  210. {
  211. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 45, x, minVal, maxVal);
  212. }
  213. public Instruction GlslFMix(Instruction resultType, Instruction x, Instruction y, Instruction a)
  214. {
  215. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 46, x, y, a);
  216. }
  217. public Instruction GlslIMix(Instruction resultType, Instruction x, Instruction y, Instruction a)
  218. {
  219. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 47, x, y, a);
  220. }
  221. public Instruction GlslStep(Instruction resultType, Instruction edge, Instruction x)
  222. {
  223. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 48, edge, x);
  224. }
  225. public Instruction GlslSmoothStep(Instruction resultType, Instruction edge0, Instruction edge1, Instruction x)
  226. {
  227. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 49, edge0, edge1, x);
  228. }
  229. public Instruction GlslFma(Instruction resultType, Instruction a, Instruction b, Instruction c)
  230. {
  231. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 50, a, b, c);
  232. }
  233. public Instruction GlslFrexp(Instruction resultType, Instruction x, Instruction exp)
  234. {
  235. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 51, x, exp);
  236. }
  237. public Instruction GlslFrexpStruct(Instruction resultType, Instruction x)
  238. {
  239. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 52, x);
  240. }
  241. public Instruction GlslLdexp(Instruction resultType, Instruction x, Instruction exp)
  242. {
  243. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 53, x, exp);
  244. }
  245. public Instruction GlslPackSnorm4x8(Instruction resultType, Instruction v)
  246. {
  247. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 54, v);
  248. }
  249. public Instruction GlslPackUnorm4x8(Instruction resultType, Instruction v)
  250. {
  251. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 55, v);
  252. }
  253. public Instruction GlslPackSnorm2x16(Instruction resultType, Instruction v)
  254. {
  255. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 56, v);
  256. }
  257. public Instruction GlslPackUnorm2x16(Instruction resultType, Instruction v)
  258. {
  259. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 57, v);
  260. }
  261. public Instruction GlslPackHalf2x16(Instruction resultType, Instruction v)
  262. {
  263. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 58, v);
  264. }
  265. public Instruction GlslPackDouble2x32(Instruction resultType, Instruction v)
  266. {
  267. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 59, v);
  268. }
  269. public Instruction GlslUnpackSnorm2x16(Instruction resultType, Instruction p)
  270. {
  271. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 60, p);
  272. }
  273. public Instruction GlslUnpackUnorm2x16(Instruction resultType, Instruction p)
  274. {
  275. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 61, p);
  276. }
  277. public Instruction GlslUnpackHalf2x16(Instruction resultType, Instruction v)
  278. {
  279. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 62, v);
  280. }
  281. public Instruction GlslUnpackSnorm4x8(Instruction resultType, Instruction p)
  282. {
  283. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 63, p);
  284. }
  285. public Instruction GlslUnpackUnorm4x8(Instruction resultType, Instruction p)
  286. {
  287. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 64, p);
  288. }
  289. public Instruction GlslUnpackDouble2x32(Instruction resultType, Instruction v)
  290. {
  291. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 65, v);
  292. }
  293. public Instruction GlslLength(Instruction resultType, Instruction x)
  294. {
  295. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 66, x);
  296. }
  297. public Instruction GlslDistance(Instruction resultType, Instruction p0, Instruction p1)
  298. {
  299. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 67, p0, p1);
  300. }
  301. public Instruction GlslCross(Instruction resultType, Instruction x, Instruction y)
  302. {
  303. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 68, x, y);
  304. }
  305. public Instruction GlslNormalize(Instruction resultType, Instruction x)
  306. {
  307. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 69, x);
  308. }
  309. public Instruction GlslFaceForward(Instruction resultType, Instruction n, Instruction i, Instruction nref)
  310. {
  311. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 70, n, i, nref);
  312. }
  313. public Instruction GlslReflect(Instruction resultType, Instruction i, Instruction n)
  314. {
  315. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 71, i, n);
  316. }
  317. public Instruction GlslRefract(Instruction resultType, Instruction i, Instruction n, Instruction eta)
  318. {
  319. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 72, i, n, eta);
  320. }
  321. public Instruction GlslFindILsb(Instruction resultType, Instruction value)
  322. {
  323. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 73, value);
  324. }
  325. public Instruction GlslFindSMsb(Instruction resultType, Instruction value)
  326. {
  327. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 74, value);
  328. }
  329. public Instruction GlslFindUMsb(Instruction resultType, Instruction value)
  330. {
  331. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 75, value);
  332. }
  333. public Instruction GlslInterpolateAtCentroid(Instruction resultType, Instruction interpolant)
  334. {
  335. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 76, interpolant);
  336. }
  337. public Instruction GlslInterpolateAtSample(Instruction resultType, Instruction interpolant, Instruction sample)
  338. {
  339. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 77, interpolant, sample);
  340. }
  341. public Instruction GlslInterpolateAtOffset(Instruction resultType, Instruction interpolant, Instruction offset)
  342. {
  343. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 78, interpolant, offset);
  344. }
  345. public Instruction GlslNMin(Instruction resultType, Instruction x, Instruction y)
  346. {
  347. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 79, x, y);
  348. }
  349. public Instruction GlslNMax(Instruction resultType, Instruction x, Instruction y)
  350. {
  351. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 80, x, y);
  352. }
  353. public Instruction GlslNClamp(Instruction resultType, Instruction x, Instruction minVal, Instruction maxVal)
  354. {
  355. return ExtInst(resultType, AddExtInstImport("GLSL.std.450"), 81, x, minVal, maxVal);
  356. }
  357. }
  358. }