blob: 9e62a9de7e5c37ae9a23cfef386ef3ee848701c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#ifndef sh_enums_h
#define sh_enums_h
#define shader_type_xmacro() \
x(fragment) \
x(vertex)
typedef enum {
#define x(n) shader_type_ ## n,
shader_type_xmacro()
#undef x
shader_type_count
} Shader_Type;
#define sprogram_type_xmacro() \
x(graphics)
typedef enum {
#define x(n) sprogram_type_ ## n,
sprogram_type_xmacro()
#undef x
sprogram_type_count
} SProgram_Type;
#define svariable_type_xmacro() \
x(float) \
x(vec2) \
x(vec3) \
x(vec4) \
x(mat2) \
x(mat3) \
x(mat4)
typedef enum {
#define x(n) svariable_type_ ## n,
svariable_type_xmacro()
#undef x
svariable_type_count
} SVariable_Type;
#define sbinding_rate_xmacro() \
x(vertex) \
x(instance)
typedef enum {
#define x(n) sbinding_rate_ ## n,
sbinding_rate_xmacro()
#undef x
sbinding_rate_count
} SBinding_Rate;
#endif
|