/
UniformType.ts
139 lines (103 loc) · 3.21 KB
/
UniformType.ts
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/** Possible variable types for uniforms. */
enum UniformType {
/** A 32-bit signed floating-point value. */
FLOAT = 0x1406,
/** A two-dimensional vector of 32-bit signed floating-point values. */
FLOAT_VEC2 = 0x8b50,
/** A three-dimensional vector of 32-bit signed floating-point values. */
FLOAT_VEC3 = 0x8b51,
/** A four-dimensional vector of 32-bit signed floating-point values. */
FLOAT_VEC4 = 0x8b52,
/** A sampler of a 2D texture. */
SAMPLER_2D = 0x8b5e,
/** A sampler of a 3D texture. */
SAMPLER_3D = 0x8b5f,
/** A sampler of a cube texture. */
SAMPLER_CUBE = 0x8b60,
/** A sampler of a 2D shadow texture. */
SAMPLER_2D_SHADOW = 0x8b62,
/** A sampler of a 2D array texture. */
SAMPLER_2D_ARRAY = 0x8dc1,
/** A sampler of a 2D array shadow texture. */
SAMPLER_2D_ARRAY_SHADOW = 0x8dc4,
/** A sampler of a cube shadow texture. */
SAMPLER_CUBE_SHADOW = 0x8dc5,
/** An integer sampler of a 2D texture. */
INT_SAMPLER_2D = 0x8dca,
/** An integer sampler of a 3D texture. */
INT_SAMPLER_3D = 0x8dcb,
/** An integer sampler of a cube texture. */
INT_SAMPLER_CUBE = 0x8dcc,
/** An integer sampler of a 2D array texture. */
INT_SAMPLER_2D_ARRAY = 0x8dcf,
/** A boolean value. */
BOOL = 0x8b56,
/** A 32-bit signed integer value. */
INT = 0x1404,
/** A two-dimensional vector of boolean values. */
BOOL_VEC2 = 0x8b57,
/** A two-dimensional vector of 32-bit signed integer values. */
INT_VEC2 = 0x8b53,
/** A three-dimensional vector of boolean values. */
BOOL_VEC3 = 0x8b58,
/** A three-dimensional vector of 32-bit signed integer values. */
INT_VEC3 = 0x8b54,
/** A four-dimensional vector of boolean values. */
BOOL_VEC4 = 0x8b59,
/** A four-dimensional vector of 32-bit signed integer values. */
INT_VEC4 = 0x8b55,
/** A 32-bit signed uninteger value. */
UNSIGNED_INT = 0x1405,
/** A two-dimensional vector of 32-bit unsigned integer values. */
UNSIGNED_INT_VEC2 = 0x8dc6,
/** A three-dimensional vector of 32-bit unsigned integer values. */
UNSIGNED_INT_VEC3 = 0x8dc7,
/** A four-dimensional vector of 32-bit unsigned integer values. */
UNSIGNED_INT_VEC4 = 0x8dc8,
/**
* A matrix of 32-bit signed floating-point values with two rows and two
* columns.
*/
FLOAT_MAT2 = 0x8b5a,
/**
* A matrix of 32-bit signed floating-point values with three rows and
* three columns.
*/
FLOAT_MAT3 = 0x8b5b,
/**
* A matrix of 32-bit signed floating-point values with four rows and four
* columns.
*/
FLOAT_MAT4 = 0x8b5c,
/**
* A matrix of 32-bit signed floating-point values with two rows and three
* columns.
*/
FLOAT_MAT2x3 = 0x8b65,
/**
* A matrix of 32-bit signed floating-point values with two rows and four
* columns.
*/
FLOAT_MAT2x4 = 0x8b66,
/**
* A matrix of 32-bit signed floating-point values with three rows and two
* columns.
*/
FLOAT_MAT3x2 = 0x8b67,
/**
* A matrix of 32-bit signed floating-point values with three rows and four
* columns.
*/
FLOAT_MAT3x4 = 0x8b68,
/**
* A matrix of 32-bit signed floating-point values with four rows and two
* columns.
*/
FLOAT_MAT4x2 = 0x8b69,
/**
* A matrix of 32-bit signed floating-point values with four rows and three
* columns.
*/
FLOAT_MAT4x3 = 0x8b6a
}
export default UniformType;