GLSL.std.450.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. ** Copyright (c) 2014-2016 The Khronos Group Inc.
  3. **
  4. ** Permission is hereby granted, free of charge, to any person obtaining a copy
  5. ** of this software and/or associated documentation files (the "Materials"),
  6. ** to deal in the Materials without restriction, including without limitation
  7. ** the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. ** and/or sell copies of the Materials, and to permit persons to whom the
  9. ** Materials are furnished to do so, subject to the following conditions:
  10. **
  11. ** The above copyright notice and this permission notice shall be included in
  12. ** all copies or substantial portions of the Materials.
  13. **
  14. ** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
  15. ** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
  16. ** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
  17. **
  18. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. ** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  21. ** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. ** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  23. ** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
  24. ** IN THE MATERIALS.
  25. */
  26. #ifndef GLSLstd450_H
  27. #define GLSLstd450_H
  28. static const int GLSLstd450Version = 100;
  29. static const int GLSLstd450Revision = 1;
  30. enum GLSLstd450 {
  31. GLSLstd450Bad = 0, // Don't use
  32. GLSLstd450Round = 1,
  33. GLSLstd450RoundEven = 2,
  34. GLSLstd450Trunc = 3,
  35. GLSLstd450FAbs = 4,
  36. GLSLstd450SAbs = 5,
  37. GLSLstd450FSign = 6,
  38. GLSLstd450SSign = 7,
  39. GLSLstd450Floor = 8,
  40. GLSLstd450Ceil = 9,
  41. GLSLstd450Fract = 10,
  42. GLSLstd450Radians = 11,
  43. GLSLstd450Degrees = 12,
  44. GLSLstd450Sin = 13,
  45. GLSLstd450Cos = 14,
  46. GLSLstd450Tan = 15,
  47. GLSLstd450Asin = 16,
  48. GLSLstd450Acos = 17,
  49. GLSLstd450Atan = 18,
  50. GLSLstd450Sinh = 19,
  51. GLSLstd450Cosh = 20,
  52. GLSLstd450Tanh = 21,
  53. GLSLstd450Asinh = 22,
  54. GLSLstd450Acosh = 23,
  55. GLSLstd450Atanh = 24,
  56. GLSLstd450Atan2 = 25,
  57. GLSLstd450Pow = 26,
  58. GLSLstd450Exp = 27,
  59. GLSLstd450Log = 28,
  60. GLSLstd450Exp2 = 29,
  61. GLSLstd450Log2 = 30,
  62. GLSLstd450Sqrt = 31,
  63. GLSLstd450InverseSqrt = 32,
  64. GLSLstd450Determinant = 33,
  65. GLSLstd450MatrixInverse = 34,
  66. GLSLstd450Modf = 35, // second operand needs an OpVariable to write to
  67. GLSLstd450ModfStruct = 36, // no OpVariable operand
  68. GLSLstd450FMin = 37,
  69. GLSLstd450UMin = 38,
  70. GLSLstd450SMin = 39,
  71. GLSLstd450FMax = 40,
  72. GLSLstd450UMax = 41,
  73. GLSLstd450SMax = 42,
  74. GLSLstd450FClamp = 43,
  75. GLSLstd450UClamp = 44,
  76. GLSLstd450SClamp = 45,
  77. GLSLstd450FMix = 46,
  78. GLSLstd450IMix = 47, // Reserved
  79. GLSLstd450Step = 48,
  80. GLSLstd450SmoothStep = 49,
  81. GLSLstd450Fma = 50,
  82. GLSLstd450Frexp = 51, // second operand needs an OpVariable to write to
  83. GLSLstd450FrexpStruct = 52, // no OpVariable operand
  84. GLSLstd450Ldexp = 53,
  85. GLSLstd450PackSnorm4x8 = 54,
  86. GLSLstd450PackUnorm4x8 = 55,
  87. GLSLstd450PackSnorm2x16 = 56,
  88. GLSLstd450PackUnorm2x16 = 57,
  89. GLSLstd450PackHalf2x16 = 58,
  90. GLSLstd450PackDouble2x32 = 59,
  91. GLSLstd450UnpackSnorm2x16 = 60,
  92. GLSLstd450UnpackUnorm2x16 = 61,
  93. GLSLstd450UnpackHalf2x16 = 62,
  94. GLSLstd450UnpackSnorm4x8 = 63,
  95. GLSLstd450UnpackUnorm4x8 = 64,
  96. GLSLstd450UnpackDouble2x32 = 65,
  97. GLSLstd450Length = 66,
  98. GLSLstd450Distance = 67,
  99. GLSLstd450Cross = 68,
  100. GLSLstd450Normalize = 69,
  101. GLSLstd450FaceForward = 70,
  102. GLSLstd450Reflect = 71,
  103. GLSLstd450Refract = 72,
  104. GLSLstd450FindILsb = 73,
  105. GLSLstd450FindSMsb = 74,
  106. GLSLstd450FindUMsb = 75,
  107. GLSLstd450InterpolateAtCentroid = 76,
  108. GLSLstd450InterpolateAtSample = 77,
  109. GLSLstd450InterpolateAtOffset = 78,
  110. GLSLstd450NMin = 79,
  111. GLSLstd450NMax = 80,
  112. GLSLstd450NClamp = 81,
  113. GLSLstd450Count
  114. };
  115. #endif // #ifndef GLSLstd450_H