1 #ifndef MSP_GL_SL_SPIRVCONSTANTS_H_
2 #define MSP_GL_SL_SPIRVCONSTANTS_H_
10 SPIRV_MAGIC = 0x07230203,
11 SPIRV_MAGIC_REVERSED = 0x03022307,
12 SPIRV_GENERATOR_MSP = 29
20 OP_EXT_INST_IMPORT = 11,
24 OP_EXECUTION_MODE = 16,
33 OP_TYPE_SAMPLED_IMAGE = 27,
35 OP_TYPE_RUNTIME_ARRAY = 29,
38 OP_TYPE_FUNCTION = 33,
39 OP_CONSTANT_TRUE = 41,
40 OP_CONSTANT_FALSE = 42,
42 OP_CONSTANT_COMPOSITE = 44,
43 OP_SPEC_CONSTANT_TRUE = 48,
44 OP_SPEC_CONSTANT_FALSE = 49,
45 OP_SPEC_CONSTANT = 50,
46 OP_SPEC_CONSTANT_COMPOSITE = 51,
47 OP_SPEC_CONSTANT_OP = 52,
49 OP_FUNCTION_PARAMETER = 55,
51 OP_FUNCTION_CALL = 57,
57 OP_MEMBER_DECORATE = 72,
58 OP_VECTOR_SHUFFLE = 79,
59 OP_COMPOSITE_CONSTRUCT = 80,
60 OP_COMPOSITE_EXTRACT = 81,
62 OP_IMAGE_SAMPLE_IMPLICIT_LOD = 87,
63 OP_IMAGE_SAMPLE_EXPLICIT_LOD = 88,
64 OP_IMAGE_SAMPLE_DREF_IMPLICIT_LOD = 89,
65 OP_IMAGE_SAMPLE_DREF_EXPLICIT_LOD = 89,
68 OP_IMAGE_QUERY_SIZE_LOD = 103,
69 OP_IMAGE_QUERY_LOD = 105,
70 OP_IMAGE_QUERY_LEVELS = 106,
71 OP_CONVERT_F_TO_U = 109,
72 OP_CONVERT_F_TO_S = 110,
73 OP_CONVERT_S_TO_F = 111,
74 OP_CONVERT_U_TO_F = 112,
90 OP_VECTOR_TIMES_SCALAR = 142,
91 OP_MATRIX_TIMES_SCALAR = 143,
92 OP_VECTOR_TIMES_MATRIX = 144,
93 OP_MATRIX_TIMES_VECTOR = 145,
94 OP_MATRIX_TIMES_MATRIX = 146,
95 OP_OUTER_PRODUCT = 147,
101 OP_LOGICAL_EQUAL = 164,
102 OP_LOGICAL_NOT_EQUAL = 165,
104 OP_LOGICAL_AND = 167,
105 OP_LOGICAL_NOT = 168,
108 OP_I_NOT_EQUAL = 171,
109 OP_U_GREATER_THAN = 172,
110 OP_S_GREATER_THAN = 173,
111 OP_U_GREATER_THAN_EQUAL = 174,
112 OP_S_GREATER_THAN_EQUAL = 175,
113 OP_U_LESS_THAN = 176,
114 OP_S_LESS_THAN = 177,
115 OP_U_LESS_THAN_EQUAL = 178,
116 OP_S_LESS_THAN_EQUAL = 179,
117 OP_F_ORD_EQUAL = 180,
118 OP_F_ORD_NOT_EQUAL = 182,
119 OP_F_ORD_LESS_THAN = 184,
120 OP_F_ORD_GREATER_THAN = 186,
121 OP_F_ORD_LESS_THAN_EQUAL = 188,
122 OP_F_ORD_GREATER_THAN_EQUAL = 190,
123 OP_SHIFT_RIGHT_ARITHMETIC = 195,
124 OP_SHIFT_LEFT_LOGICAL = 196,
126 OP_BITWISE_XOR = 198,
127 OP_BITWISE_AND = 199,
129 OP_BIT_FIELD_INSERT = 201,
130 OP_BIT_FIELD_S_EXTRACT = 202,
131 OP_BIT_FIELD_U_EXTRACT = 203,
132 OP_BIT_REVERSE = 204,
139 OP_FWIDTH_FINE = 212,
140 OP_DP_DX_COARSE = 213,
141 OP_DP_DY_COARSE = 214,
142 OP_FWIDTH_COARSE = 215,
143 OP_EMIT_VERTEX = 218,
144 OP_END_PRIMITIVE = 219,
147 OP_SELECTION_MERGE = 247,
150 OP_BRANCH_CONDITIONAL = 250,
153 OP_RETURN_VALUE = 254,
161 CAP_IMAGE_CUBE_ARRAY = 34,
164 CAP_SAMPLED_CUBE_ARRAY = 45,
165 CAP_IMAGE_QUERY = 50,
166 CAP_DERIVATIVE_CONTROL = 51,
167 CAP_INTERPOLATION_FUNCTION = 52
170 enum SpirVExecutionMode
172 EXEC_ORIGIN_LOWER_LEFT = 8,
173 EXEC_INPUT_POINTS = 19,
174 EXEC_INPUT_LINES = 20,
175 EXEC_INPUT_LINES_ADJACENCY = 21,
177 EXEC_INPUT_TRIANGLES_ADJACENCY = 23,
178 EXEC_OUTPUT_VERTICES = 26,
179 EXEC_OUTPUT_POINTS = 27,
180 EXEC_OUTPUT_LINE_STRIP = 28,
181 EXEC_OUTPUT_TRIANGLE_STRIP = 29
184 enum SpirVStorageClass
186 STORAGE_UNIFORM_CONSTANT = 0,
200 DECO_ARRAY_STRIDE = 6,
201 DECO_MATRIX_STRIDE = 7,
205 DECO_DESCRIPTOR_SET = 34,
211 BUILTIN_POSITION = 0,
212 BUILTIN_POINT_SIZE = 1,
213 BUILTIN_CLIP_DISTANCE = 3,
214 BUILTIN_VERTEX_ID = 5,
215 BUILTIN_INSTANCE_ID = 6,
216 BUILTIN_PRIMITIVE_ID = 7,
217 BUILTIN_INVOCATION_ID = 8,
219 BUILTIN_FRAG_COORD = 15,
220 BUILTIN_POINT_COORD = 16,
221 BUILTIN_FRONT_FACING = 17,
222 BUILTIN_SAMPLE_ID = 18,
223 BUILTIN_SAMPLE_POSITION = 19,
224 BUILTIN_FRAG_DEPTH = 22
227 enum SpirVGlslStd450Opcode
230 GLSL450_ROUND_EVEN = 2,
239 GLSL450_RADIANS = 11,
240 GLSL450_DEGREES = 12,
260 GLSL450_INVERSE_SQRT = 32,
261 GLSL450_DETERMINANT = 33,
262 GLSL450_MATRIX_INVERSE = 34,
269 GLSL450_F_CLAMP = 43,
270 GLSL450_U_CLAMP = 44,
271 GLSL450_S_CLAMP = 45,
274 GLSL450_F_SMOOTH_STEP = 49,
277 GLSL450_DISTANCE = 67,
279 GLSL450_NORMALIZE = 69,
280 GLSL450_FACE_FORWARD = 70,
281 GLSL450_REFLECT = 71,
282 GLSL450_REFRACT = 72,
283 GLSL450_FIND_I_LSB = 73,
284 GLSL450_FIND_S_MSB = 74,
285 GLSL450_FIND_U_MSB = 75,
286 GLSL450_INTERPOLATE_AT_CENTROID = 76,
287 GLSL450_INTERPOLATE_AT_SAMPLE = 77,
288 GLSL450_INTERPOLATE_AT_OFFSET = 78