GLSL AST -> SPIR-V: Update to explicit enum values for the GLSL extended instruction set.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30443 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -28,95 +28,95 @@
|
|||||||
namespace GLSL_STD_450 {
|
namespace GLSL_STD_450 {
|
||||||
|
|
||||||
enum Entrypoints {
|
enum Entrypoints {
|
||||||
Round,
|
Round = 0,
|
||||||
RoundEven,
|
RoundEven = 1,
|
||||||
Trunc,
|
Trunc = 2,
|
||||||
Abs,
|
Abs = 3,
|
||||||
Sign,
|
Sign = 4,
|
||||||
Floor,
|
Floor = 5,
|
||||||
Ceil,
|
Ceil = 6,
|
||||||
Fract,
|
Fract = 7,
|
||||||
|
|
||||||
Radians,
|
Radians = 8,
|
||||||
Degrees,
|
Degrees = 9,
|
||||||
Sin,
|
Sin = 10,
|
||||||
Cos,
|
Cos = 11,
|
||||||
Tan,
|
Tan = 12,
|
||||||
Asin,
|
Asin = 13,
|
||||||
Acos,
|
Acos = 14,
|
||||||
Atan,
|
Atan = 15,
|
||||||
Sinh,
|
Sinh = 16,
|
||||||
Cosh,
|
Cosh = 17,
|
||||||
Tanh,
|
Tanh = 18,
|
||||||
Asinh,
|
Asinh = 19,
|
||||||
Acosh,
|
Acosh = 20,
|
||||||
Atanh,
|
Atanh = 21,
|
||||||
Atan2,
|
Atan2 = 22,
|
||||||
|
|
||||||
Pow,
|
Pow = 23,
|
||||||
Exp,
|
Exp = 24,
|
||||||
Log,
|
Log = 25,
|
||||||
Exp2,
|
Exp2 = 26,
|
||||||
Log2,
|
Log2 = 27,
|
||||||
Sqrt,
|
Sqrt = 28,
|
||||||
InverseSqrt,
|
InverseSqrt = 29,
|
||||||
|
|
||||||
Determinant,
|
Determinant = 30,
|
||||||
MatrixInverse,
|
MatrixInverse = 31,
|
||||||
|
|
||||||
Modf, // second argument needs the OpVariable, not an OpLoad
|
Modf = 32, // second argument needs the OpVariable = , not an OpLoad
|
||||||
Min,
|
Min = 33,
|
||||||
Max,
|
Max = 34,
|
||||||
Clamp,
|
Clamp = 35,
|
||||||
Mix,
|
Mix = 36,
|
||||||
Step,
|
Step = 37,
|
||||||
SmoothStep,
|
SmoothStep = 38,
|
||||||
|
|
||||||
FloatBitsToInt,
|
FloatBitsToInt = 39,
|
||||||
FloatBitsToUint,
|
FloatBitsToUint = 40,
|
||||||
IntBitsToFloat,
|
IntBitsToFloat = 41,
|
||||||
UintBitsToFloat,
|
UintBitsToFloat = 42,
|
||||||
|
|
||||||
Fma,
|
Fma = 43,
|
||||||
Frexp,
|
Frexp = 44,
|
||||||
Ldexp,
|
Ldexp = 45,
|
||||||
|
|
||||||
PackSnorm4x8,
|
PackSnorm4x8 = 46,
|
||||||
PackUnorm4x8,
|
PackUnorm4x8 = 47,
|
||||||
PackSnorm2x16,
|
PackSnorm2x16 = 48,
|
||||||
PackUnorm2x16,
|
PackUnorm2x16 = 49,
|
||||||
PackHalf2x16,
|
PackHalf2x16 = 50,
|
||||||
PackDouble2x32,
|
PackDouble2x32 = 51,
|
||||||
UnpackSnorm2x16,
|
UnpackSnorm2x16 = 52,
|
||||||
UnpackUnorm2x16,
|
UnpackUnorm2x16 = 53,
|
||||||
UnpackHalf2x16,
|
UnpackHalf2x16 = 54,
|
||||||
UnpackSnorm4x8,
|
UnpackSnorm4x8 = 55,
|
||||||
UnpackUnorm4x8,
|
UnpackUnorm4x8 = 56,
|
||||||
UnpackDouble2x32,
|
UnpackDouble2x32 = 57,
|
||||||
|
|
||||||
Length,
|
Length = 58,
|
||||||
Distance,
|
Distance = 59,
|
||||||
Cross,
|
Cross = 60,
|
||||||
Normalize,
|
Normalize = 61,
|
||||||
Ftransform,
|
Ftransform = 62,
|
||||||
FaceForward,
|
FaceForward = 63,
|
||||||
Reflect,
|
Reflect = 64,
|
||||||
Refract,
|
Refract = 65,
|
||||||
|
|
||||||
UaddCarry,
|
UaddCarry = 66,
|
||||||
UsubBorrow,
|
UsubBorrow = 67,
|
||||||
UmulExtended,
|
UmulExtended = 68,
|
||||||
ImulExtended,
|
ImulExtended = 69,
|
||||||
BitfieldExtract,
|
BitfieldExtract = 70,
|
||||||
BitfieldInsert,
|
BitfieldInsert = 71,
|
||||||
BitfieldReverse,
|
BitfieldReverse = 72,
|
||||||
BitCount,
|
BitCount = 73,
|
||||||
FindLSB,
|
FindLSB = 74,
|
||||||
FindMSB,
|
FindMSB = 75,
|
||||||
|
|
||||||
InterpolateAtCentroid,
|
InterpolateAtCentroid = 76,
|
||||||
InterpolateAtSample,
|
InterpolateAtSample = 77,
|
||||||
InterpolateAtOffset,
|
InterpolateAtOffset = 78,
|
||||||
|
|
||||||
Count
|
Count
|
||||||
};
|
};
|
||||||
@@ -178,14 +178,12 @@ inline void GetDebugNames(const char** names)
|
|||||||
names[PackUnorm2x16] = "packUnorm2x16";
|
names[PackUnorm2x16] = "packUnorm2x16";
|
||||||
names[PackHalf2x16] = "packHalf2x16";
|
names[PackHalf2x16] = "packHalf2x16";
|
||||||
names[PackDouble2x32] = "packDouble2x32";
|
names[PackDouble2x32] = "packDouble2x32";
|
||||||
names[PackHalf2x16] = "packHalf2x16";
|
|
||||||
names[UnpackSnorm2x16] = "unpackSnorm2x16";
|
names[UnpackSnorm2x16] = "unpackSnorm2x16";
|
||||||
names[UnpackUnorm2x16] = "unpackUnorm2x16";
|
names[UnpackUnorm2x16] = "unpackUnorm2x16";
|
||||||
names[UnpackHalf2x16] = "unpackHalf2x16";
|
names[UnpackHalf2x16] = "unpackHalf2x16";
|
||||||
names[UnpackSnorm4x8] = "unpackSnorm4x8";
|
names[UnpackSnorm4x8] = "unpackSnorm4x8";
|
||||||
names[UnpackUnorm4x8] = "unpackUnorm4x8";
|
names[UnpackUnorm4x8] = "unpackUnorm4x8";
|
||||||
names[UnpackDouble2x32] = "unpackDouble2x32";
|
names[UnpackDouble2x32] = "unpackDouble2x32";
|
||||||
names[UnpackHalf2x16] = "unpackHalf2x16";
|
|
||||||
names[Length] = "length";
|
names[Length] = "length";
|
||||||
names[Distance] = "distance";
|
names[Distance] = "distance";
|
||||||
names[Cross] = "cross";
|
names[Cross] = "cross";
|
||||||
|
|||||||
Reference in New Issue
Block a user