1 #ifndef MSP_GL_SL_SPIRVCONSTANTS_H_
2 #define MSP_GL_SL_SPIRVCONSTANTS_H_
10 SPIRV_MAGIC = 0x07230203,
11 SPIRV_MAGIC_REVERSED = 0x03022307
19 OP_EXT_INST_IMPORT = 11,
23 OP_EXECUTION_MODE = 16,
32 OP_TYPE_SAMPLED_IMAGE = 27,
34 OP_TYPE_RUNTIME_ARRAY = 29,
37 OP_TYPE_FUNCTION = 33,
38 OP_CONSTANT_TRUE = 41,
39 OP_CONSTANT_FALSE = 42,
41 OP_CONSTANT_COMPOSITE = 44,
42 OP_SPEC_CONSTANT_TRUE = 48,
43 OP_SPEC_CONSTANT_FALSE = 49,
44 OP_SPEC_CONSTANT = 50,
45 OP_SPEC_CONSTANT_COMPOSITE = 51,
46 OP_SPEC_CONSTANT_OP = 52,
48 OP_FUNCTION_PARAMETER = 55,
50 OP_FUNCTION_CALL = 57,
56 OP_MEMBER_DECORATE = 72,
57 OP_VECTOR_SHUFFLE = 79,
58 OP_COMPOSITE_CONSTRUCT = 80,
59 OP_COMPOSITE_EXTRACT = 81,
61 OP_IMAGE_SAMPLE_IMPLICIT_LOD = 87,
62 OP_IMAGE_SAMPLE_EXPLICIT_LOD = 88,
63 OP_IMAGE_SAMPLE_DREF_IMPLICIT_LOD = 89,
64 OP_IMAGE_SAMPLE_DREF_EXPLICIT_LOD = 89,
66 OP_IMAGE_QUERY_SIZE_LOD = 103,
67 OP_CONVERT_F_TO_S = 110,
68 OP_CONVERT_S_TO_F = 111,
81 OP_VECTOR_TIMES_SCALAR = 142,
82 OP_MATRIX_TIMES_SCALAR = 143,
83 OP_VECTOR_TIMES_MATRIX = 144,
84 OP_MATRIX_TIMES_VECTOR = 145,
85 OP_MATRIX_TIMES_MATRIX = 146,
86 OP_OUTER_PRODUCT = 147,
92 OP_LOGICAL_EQUAL = 164,
93 OP_LOGICAL_NOT_EQUAL = 165,
100 OP_S_GREATER_THAN = 173,
101 OP_S_GREATER_THAN_EQUAL = 175,
102 OP_S_LESS_THAN = 177,
103 OP_S_LESS_THAN_EQUAL = 179,
104 OP_F_ORD_EQUAL = 180,
105 OP_F_ORD_NOT_EQUAL = 182,
106 OP_F_ORD_LESS_THAN = 184,
107 OP_F_ORD_GREATER_THAN = 186,
108 OP_F_ORD_LESS_THAN_EQUAL = 188,
109 OP_F_ORD_GREATER_THAN_EQUAL = 190,
110 OP_SHIFT_RIGHT_ARITHMETIC = 195,
111 OP_SHIFT_LEFT_LOGICAL = 196,
113 OP_BITWISE_XOR = 198,
114 OP_BITWISE_AND = 199,
116 OP_BIT_FIELD_INSERT = 201,
117 OP_BIT_FIELD_S_EXTRACT = 202,
118 OP_BIT_REVERSE = 204,
125 OP_FWIDTH_FINE = 212,
126 OP_DP_DX_COARSE = 213,
127 OP_DP_DY_COARSE = 214,
128 OP_FWIDTH_COARSE = 215,
129 OP_EMIT_VERTEX = 218,
130 OP_END_PRIMITIVE = 219,
133 OP_SELECTION_MERGE = 247,
136 OP_BRANCH_CONDITIONAL = 250,
139 OP_RETURN_VALUE = 254,
147 CAP_IMAGE_CUBE_ARRAY = 34,
150 CAP_SAMPLED_CUBE_ARRAY = 45,
151 CAP_INTERPOLATION_FUNCTION = 52
154 enum SpirVExecutionMode
156 EXEC_ORIGIN_LOWER_LEFT = 8,
157 EXEC_INPUT_POINTS = 19,
158 EXEC_INPUT_LINES = 20,
159 EXEC_INPUT_LINES_ADJACENCY = 21,
161 EXEC_INPUT_TRIANGLES_ADJACENCY = 23,
162 EXEC_OUTPUT_VERTICES = 26,
163 EXEC_OUTPUT_POINTS = 27,
164 EXEC_OUTPUT_LINE_STRIP = 28,
165 EXEC_OUTPUT_TRIANGLE_STRIP = 29
168 enum SpirVStorageClass
170 STORAGE_UNIFORM_CONSTANT = 0,
184 DECO_ARRAY_STRIDE = 6,
185 DECO_MATRIX_STRIDE = 7,
189 DECO_DESCRIPTOR_SET = 34,
195 BUILTIN_POSITION = 0,
196 BUILTIN_POINT_SIZE = 1,
197 BUILTIN_CLIP_DISTANCE = 3,
198 BUILTIN_VERTEX_ID = 5,
199 BUILTIN_INSTANCE_ID = 6,
200 BUILTIN_PRIMITIVE_ID = 7,
201 BUILTIN_INVOCATION_ID = 8,
203 BUILTIN_FRAG_COORD = 15,
204 BUILTIN_POINT_COORD = 16,
205 BUILTIN_FRONT_FACING = 17,
206 BUILTIN_SAMPLE_ID = 18,
207 BUILTIN_SAMPLE_POSITION = 19,
208 BUILTIN_FRAG_DEPTH = 22
211 enum SpirVGlslStd450Opcode
214 GLSL450_ROUND_EVEN = 2,
223 GLSL450_RADIANS = 11,
224 GLSL450_DEGREES = 12,
244 GLSL450_INVERSE_SQRT = 32,
245 GLSL450_DETERMINANT = 33,
246 GLSL450_MATRIX_INVERSE = 33,
251 GLSL450_F_CLAMP = 43,
252 GLSL450_S_CLAMP = 45,
255 GLSL450_F_SMOOTH_STEP = 49,
258 GLSL450_DISTANCE = 67,
260 GLSL450_NORMALIZE = 69,
261 GLSL450_FACE_FORWARD = 70,
262 GLSL450_REFLECT = 71,
263 GLSL450_REFRACT = 72,
264 GLSL450_FIND_I_LSB = 73,
265 GLSL450_FIND_S_MSB = 74,
266 GLSL450_INTERPOLATE_AT_CENTROID = 76,
267 GLSL450_INTERPOLATE_AT_SAMPLE = 77,
268 GLSL450_INTERPOLATE_AT_OFFSET = 78