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