X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fspirvconstants.h;h=28f556630a7df31d5115d52f87fa442e335bbd59;hb=59347f76bc985e8c9c769d4a3eee672cba9c920b;hp=b981d191c0940d8f76fdcb3981907b891aab1be6;hpb=cc5483cc709fdf7b6966a3e69dabfcafebaaffa0;p=libs%2Fgl.git diff --git a/source/glsl/spirvconstants.h b/source/glsl/spirvconstants.h index b981d191..28f55663 100644 --- a/source/glsl/spirvconstants.h +++ b/source/glsl/spirvconstants.h @@ -8,7 +8,8 @@ namespace SL { enum SpirVConstants { SPIRV_MAGIC = 0x07230203, - SPIRV_MAGIC_REVERSED = 0x03022307 + SPIRV_MAGIC_REVERSED = 0x03022307, + SPIRV_GENERATOR_MSP = 29 }; enum SpirVOpcode @@ -64,8 +65,11 @@ enum SpirVOpcode OP_IMAGE_SAMPLE_DREF_EXPLICIT_LOD = 89, OP_IMAGE_FETCH = 95, OP_IMAGE_QUERY_SIZE_LOD = 103, + OP_CONVERT_F_TO_U = 109, OP_CONVERT_F_TO_S = 110, OP_CONVERT_S_TO_F = 111, + OP_CONVERT_U_TO_F = 112, + OP_BITCAST = 124, OP_S_NEGATE = 126, OP_F_NEGATE = 127, OP_I_ADD = 128, @@ -74,8 +78,10 @@ enum SpirVOpcode OP_F_SUB = 131, OP_I_MUL = 132, OP_F_MUL = 133, + OP_U_DIV = 134, OP_S_DIV = 135, OP_F_DIV = 136, + OP_U_MOD = 137, OP_S_MOD = 139, OP_F_MOD = 141, OP_VECTOR_TIMES_SCALAR = 142, @@ -97,9 +103,13 @@ enum SpirVOpcode OP_SELECT = 169, OP_I_EQUAL = 170, OP_I_NOT_EQUAL = 171, + OP_U_GREATER_THAN = 172, OP_S_GREATER_THAN = 173, + OP_U_GREATER_THAN_EQUAL = 174, OP_S_GREATER_THAN_EQUAL = 175, + OP_U_LESS_THAN = 176, OP_S_LESS_THAN = 177, + OP_U_LESS_THAN_EQUAL = 178, OP_S_LESS_THAN_EQUAL = 179, OP_F_ORD_EQUAL = 180, OP_F_ORD_NOT_EQUAL = 182, @@ -115,6 +125,7 @@ enum SpirVOpcode OP_NOT = 200, OP_BIT_FIELD_INSERT = 201, OP_BIT_FIELD_S_EXTRACT = 202, + OP_BIT_FIELD_U_EXTRACT = 203, OP_BIT_REVERSE = 204, OP_BIT_COUNT = 205, OP_DP_DX = 207, @@ -243,12 +254,15 @@ enum SpirVGlslStd450Opcode GLSL450_SQRT = 31, GLSL450_INVERSE_SQRT = 32, GLSL450_DETERMINANT = 33, - GLSL450_MATRIX_INVERSE = 33, + GLSL450_MATRIX_INVERSE = 34, GLSL450_F_MIN = 37, + GLSL450_U_MIN = 38, GLSL450_S_MIN = 39, GLSL450_F_MAX = 40, + GLSL450_U_MAX = 41, GLSL450_S_MAX = 42, GLSL450_F_CLAMP = 43, + GLSL450_U_CLAMP = 44, GLSL450_S_CLAMP = 45, GLSL450_F_MIX = 46, GLSL450_F_STEP = 48, @@ -263,6 +277,7 @@ enum SpirVGlslStd450Opcode GLSL450_REFRACT = 72, GLSL450_FIND_I_LSB = 73, GLSL450_FIND_S_MSB = 74, + GLSL450_FIND_U_MSB = 75, GLSL450_INTERPOLATE_AT_CENTROID = 76, GLSL450_INTERPOLATE_AT_SAMPLE = 77, GLSL450_INTERPOLATE_AT_OFFSET = 78