@thi.ng/webgl 6.6.11 → 6.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/texture.js CHANGED
@@ -1,255 +1,592 @@
1
- export var TextureFormat;
2
- (function (TextureFormat) {
3
- TextureFormat[TextureFormat["ALPHA"] = 6406] = "ALPHA";
4
- TextureFormat[TextureFormat["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
5
- TextureFormat[TextureFormat["DEPTH_COMPONENT16"] = 33189] = "DEPTH_COMPONENT16";
6
- TextureFormat[TextureFormat["DEPTH_COMPONENT24"] = 33190] = "DEPTH_COMPONENT24";
7
- TextureFormat[TextureFormat["DEPTH_COMPONENT32F"] = 36012] = "DEPTH_COMPONENT32F";
8
- TextureFormat[TextureFormat["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
9
- TextureFormat[TextureFormat["DEPTH24_STENCIL8"] = 35056] = "DEPTH24_STENCIL8";
10
- TextureFormat[TextureFormat["DEPTH32F_STENCIL8"] = 36013] = "DEPTH32F_STENCIL8";
11
- TextureFormat[TextureFormat["LUMINANCE"] = 6409] = "LUMINANCE";
12
- TextureFormat[TextureFormat["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
13
- TextureFormat[TextureFormat["R11F_G11F_B10F"] = 35898] = "R11F_G11F_B10F";
14
- TextureFormat[TextureFormat["R16F"] = 33325] = "R16F";
15
- TextureFormat[TextureFormat["R16I"] = 33331] = "R16I";
16
- TextureFormat[TextureFormat["R16UI"] = 33332] = "R16UI";
17
- TextureFormat[TextureFormat["R32F"] = 33326] = "R32F";
18
- TextureFormat[TextureFormat["R32I"] = 33333] = "R32I";
19
- TextureFormat[TextureFormat["R32UI"] = 33334] = "R32UI";
20
- TextureFormat[TextureFormat["R8"] = 33321] = "R8";
21
- TextureFormat[TextureFormat["R8_SNORM"] = 36756] = "R8_SNORM";
22
- TextureFormat[TextureFormat["R8I"] = 33329] = "R8I";
23
- TextureFormat[TextureFormat["R8UI"] = 33330] = "R8UI";
24
- TextureFormat[TextureFormat["RED"] = 6403] = "RED";
25
- TextureFormat[TextureFormat["RED_INTEGER"] = 36244] = "RED_INTEGER";
26
- TextureFormat[TextureFormat["RG"] = 33319] = "RG";
27
- TextureFormat[TextureFormat["RG_INTEGER"] = 33320] = "RG_INTEGER";
28
- TextureFormat[TextureFormat["RG16F"] = 33327] = "RG16F";
29
- TextureFormat[TextureFormat["RG16I"] = 33337] = "RG16I";
30
- TextureFormat[TextureFormat["RG16UI"] = 33338] = "RG16UI";
31
- TextureFormat[TextureFormat["RG32F"] = 33328] = "RG32F";
32
- TextureFormat[TextureFormat["RG32I"] = 33339] = "RG32I";
33
- TextureFormat[TextureFormat["RG32UI"] = 33340] = "RG32UI";
34
- TextureFormat[TextureFormat["RG8"] = 33323] = "RG8";
35
- TextureFormat[TextureFormat["RG8_SNORM"] = 36757] = "RG8_SNORM";
36
- TextureFormat[TextureFormat["RG8I"] = 33335] = "RG8I";
37
- TextureFormat[TextureFormat["RG8UI"] = 33336] = "RG8UI";
38
- TextureFormat[TextureFormat["RGB"] = 6407] = "RGB";
39
- TextureFormat[TextureFormat["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
40
- TextureFormat[TextureFormat["RGB10_A2"] = 32857] = "RGB10_A2";
41
- TextureFormat[TextureFormat["RGB10_A2UI"] = 36975] = "RGB10_A2UI";
42
- TextureFormat[TextureFormat["RGB16F"] = 34843] = "RGB16F";
43
- TextureFormat[TextureFormat["RGB16I"] = 36233] = "RGB16I";
44
- TextureFormat[TextureFormat["RGB16UI"] = 36215] = "RGB16UI";
45
- TextureFormat[TextureFormat["RGB32F"] = 34837] = "RGB32F";
46
- TextureFormat[TextureFormat["RGB32I"] = 36227] = "RGB32I";
47
- TextureFormat[TextureFormat["RGB32UI"] = 36209] = "RGB32UI";
48
- TextureFormat[TextureFormat["RGB5_A1"] = 32855] = "RGB5_A1";
49
- TextureFormat[TextureFormat["RGB565"] = 36194] = "RGB565";
50
- TextureFormat[TextureFormat["RGB8"] = 32849] = "RGB8";
51
- TextureFormat[TextureFormat["RGB8_SNORM"] = 36758] = "RGB8_SNORM";
52
- TextureFormat[TextureFormat["RGB8I"] = 36239] = "RGB8I";
53
- TextureFormat[TextureFormat["RGB8UI"] = 36221] = "RGB8UI";
54
- TextureFormat[TextureFormat["RGB9_E5"] = 35901] = "RGB9_E5";
55
- TextureFormat[TextureFormat["RGBA"] = 6408] = "RGBA";
56
- TextureFormat[TextureFormat["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
57
- TextureFormat[TextureFormat["RGBA16F"] = 34842] = "RGBA16F";
58
- TextureFormat[TextureFormat["RGBA16I"] = 36232] = "RGBA16I";
59
- TextureFormat[TextureFormat["RGBA16UI"] = 36214] = "RGBA16UI";
60
- TextureFormat[TextureFormat["RGBA32F"] = 34836] = "RGBA32F";
61
- TextureFormat[TextureFormat["RGBA32I"] = 36226] = "RGBA32I";
62
- TextureFormat[TextureFormat["RGBA32UI"] = 36208] = "RGBA32UI";
63
- TextureFormat[TextureFormat["RGBA4"] = 32854] = "RGBA4";
64
- TextureFormat[TextureFormat["RGBA8"] = 32856] = "RGBA8";
65
- TextureFormat[TextureFormat["RGBA8_SNORM"] = 36759] = "RGBA8_SNORM";
66
- TextureFormat[TextureFormat["RGBA8I"] = 36238] = "RGBA8I";
67
- TextureFormat[TextureFormat["RGBA8UI"] = 36220] = "RGBA8UI";
68
- TextureFormat[TextureFormat["SRGB8"] = 35905] = "SRGB8";
69
- TextureFormat[TextureFormat["SRGB8_ALPHA8"] = 35907] = "SRGB8_ALPHA8";
70
- })(TextureFormat || (TextureFormat = {}));
71
- export var TextureType;
72
- (function (TextureType) {
73
- TextureType[TextureType["BYTE"] = 5120] = "BYTE";
74
- TextureType[TextureType["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
75
- TextureType[TextureType["SHORT"] = 5122] = "SHORT";
76
- TextureType[TextureType["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
77
- TextureType[TextureType["INT"] = 5124] = "INT";
78
- TextureType[TextureType["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
79
- TextureType[TextureType["FLOAT"] = 5126] = "FLOAT";
80
- TextureType[TextureType["HALF_FLOAT"] = 5131] = "HALF_FLOAT";
81
- TextureType[TextureType["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
82
- TextureType[TextureType["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
83
- TextureType[TextureType["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
84
- TextureType[TextureType["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
85
- TextureType[TextureType["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
86
- TextureType[TextureType["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
87
- TextureType[TextureType["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
88
- TextureType[TextureType["HALF_FLOAT_OES"] = 36193] = "HALF_FLOAT_OES";
89
- TextureType[TextureType["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
90
- })(TextureType || (TextureType = {}));
91
- export var TextureTarget;
92
- (function (TextureTarget) {
93
- TextureTarget[TextureTarget["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
94
- TextureTarget[TextureTarget["TEXTURE_3D"] = 32879] = "TEXTURE_3D";
95
- TextureTarget[TextureTarget["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
96
- TextureTarget[TextureTarget["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
97
- })(TextureTarget || (TextureTarget = {}));
98
- export var TextureFilter;
99
- (function (TextureFilter) {
100
- TextureFilter[TextureFilter["LINEAR"] = 9729] = "LINEAR";
101
- TextureFilter[TextureFilter["NEAREST"] = 9728] = "NEAREST";
102
- TextureFilter[TextureFilter["NEAREST_MIPMAP_NEAREST"] = 9984] = "NEAREST_MIPMAP_NEAREST";
103
- TextureFilter[TextureFilter["LINEAR_MIPMAP_NEAREST"] = 9985] = "LINEAR_MIPMAP_NEAREST";
104
- TextureFilter[TextureFilter["NEAREST_MIPMAP_LINEAR"] = 9986] = "NEAREST_MIPMAP_LINEAR";
105
- TextureFilter[TextureFilter["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
106
- })(TextureFilter || (TextureFilter = {}));
107
- export var TextureRepeat;
108
- (function (TextureRepeat) {
109
- TextureRepeat[TextureRepeat["REPEAT"] = 10497] = "REPEAT";
110
- TextureRepeat[TextureRepeat["CLAMP"] = 33071] = "CLAMP";
111
- TextureRepeat[TextureRepeat["REPEAT_MIRROR"] = 33648] = "REPEAT_MIRROR";
112
- })(TextureRepeat || (TextureRepeat = {}));
1
+ var TextureFormat = /* @__PURE__ */ ((TextureFormat2) => {
2
+ TextureFormat2[TextureFormat2["ALPHA"] = 6406] = "ALPHA";
3
+ TextureFormat2[TextureFormat2["DEPTH_COMPONENT"] = 6402] = "DEPTH_COMPONENT";
4
+ TextureFormat2[TextureFormat2["DEPTH_COMPONENT16"] = 33189] = "DEPTH_COMPONENT16";
5
+ TextureFormat2[TextureFormat2["DEPTH_COMPONENT24"] = 33190] = "DEPTH_COMPONENT24";
6
+ TextureFormat2[TextureFormat2["DEPTH_COMPONENT32F"] = 36012] = "DEPTH_COMPONENT32F";
7
+ TextureFormat2[TextureFormat2["DEPTH_STENCIL"] = 34041] = "DEPTH_STENCIL";
8
+ TextureFormat2[TextureFormat2["DEPTH24_STENCIL8"] = 35056] = "DEPTH24_STENCIL8";
9
+ TextureFormat2[TextureFormat2["DEPTH32F_STENCIL8"] = 36013] = "DEPTH32F_STENCIL8";
10
+ TextureFormat2[TextureFormat2["LUMINANCE"] = 6409] = "LUMINANCE";
11
+ TextureFormat2[TextureFormat2["LUMINANCE_ALPHA"] = 6410] = "LUMINANCE_ALPHA";
12
+ TextureFormat2[TextureFormat2["R11F_G11F_B10F"] = 35898] = "R11F_G11F_B10F";
13
+ TextureFormat2[TextureFormat2["R16F"] = 33325] = "R16F";
14
+ TextureFormat2[TextureFormat2["R16I"] = 33331] = "R16I";
15
+ TextureFormat2[TextureFormat2["R16UI"] = 33332] = "R16UI";
16
+ TextureFormat2[TextureFormat2["R32F"] = 33326] = "R32F";
17
+ TextureFormat2[TextureFormat2["R32I"] = 33333] = "R32I";
18
+ TextureFormat2[TextureFormat2["R32UI"] = 33334] = "R32UI";
19
+ TextureFormat2[TextureFormat2["R8"] = 33321] = "R8";
20
+ TextureFormat2[TextureFormat2["R8_SNORM"] = 36756] = "R8_SNORM";
21
+ TextureFormat2[TextureFormat2["R8I"] = 33329] = "R8I";
22
+ TextureFormat2[TextureFormat2["R8UI"] = 33330] = "R8UI";
23
+ TextureFormat2[TextureFormat2["RED"] = 6403] = "RED";
24
+ TextureFormat2[TextureFormat2["RED_INTEGER"] = 36244] = "RED_INTEGER";
25
+ TextureFormat2[TextureFormat2["RG"] = 33319] = "RG";
26
+ TextureFormat2[TextureFormat2["RG_INTEGER"] = 33320] = "RG_INTEGER";
27
+ TextureFormat2[TextureFormat2["RG16F"] = 33327] = "RG16F";
28
+ TextureFormat2[TextureFormat2["RG16I"] = 33337] = "RG16I";
29
+ TextureFormat2[TextureFormat2["RG16UI"] = 33338] = "RG16UI";
30
+ TextureFormat2[TextureFormat2["RG32F"] = 33328] = "RG32F";
31
+ TextureFormat2[TextureFormat2["RG32I"] = 33339] = "RG32I";
32
+ TextureFormat2[TextureFormat2["RG32UI"] = 33340] = "RG32UI";
33
+ TextureFormat2[TextureFormat2["RG8"] = 33323] = "RG8";
34
+ TextureFormat2[TextureFormat2["RG8_SNORM"] = 36757] = "RG8_SNORM";
35
+ TextureFormat2[TextureFormat2["RG8I"] = 33335] = "RG8I";
36
+ TextureFormat2[TextureFormat2["RG8UI"] = 33336] = "RG8UI";
37
+ TextureFormat2[TextureFormat2["RGB"] = 6407] = "RGB";
38
+ TextureFormat2[TextureFormat2["RGB_INTEGER"] = 36248] = "RGB_INTEGER";
39
+ TextureFormat2[TextureFormat2["RGB10_A2"] = 32857] = "RGB10_A2";
40
+ TextureFormat2[TextureFormat2["RGB10_A2UI"] = 36975] = "RGB10_A2UI";
41
+ TextureFormat2[TextureFormat2["RGB16F"] = 34843] = "RGB16F";
42
+ TextureFormat2[TextureFormat2["RGB16I"] = 36233] = "RGB16I";
43
+ TextureFormat2[TextureFormat2["RGB16UI"] = 36215] = "RGB16UI";
44
+ TextureFormat2[TextureFormat2["RGB32F"] = 34837] = "RGB32F";
45
+ TextureFormat2[TextureFormat2["RGB32I"] = 36227] = "RGB32I";
46
+ TextureFormat2[TextureFormat2["RGB32UI"] = 36209] = "RGB32UI";
47
+ TextureFormat2[TextureFormat2["RGB5_A1"] = 32855] = "RGB5_A1";
48
+ TextureFormat2[TextureFormat2["RGB565"] = 36194] = "RGB565";
49
+ TextureFormat2[TextureFormat2["RGB8"] = 32849] = "RGB8";
50
+ TextureFormat2[TextureFormat2["RGB8_SNORM"] = 36758] = "RGB8_SNORM";
51
+ TextureFormat2[TextureFormat2["RGB8I"] = 36239] = "RGB8I";
52
+ TextureFormat2[TextureFormat2["RGB8UI"] = 36221] = "RGB8UI";
53
+ TextureFormat2[TextureFormat2["RGB9_E5"] = 35901] = "RGB9_E5";
54
+ TextureFormat2[TextureFormat2["RGBA"] = 6408] = "RGBA";
55
+ TextureFormat2[TextureFormat2["RGBA_INTEGER"] = 36249] = "RGBA_INTEGER";
56
+ TextureFormat2[TextureFormat2["RGBA16F"] = 34842] = "RGBA16F";
57
+ TextureFormat2[TextureFormat2["RGBA16I"] = 36232] = "RGBA16I";
58
+ TextureFormat2[TextureFormat2["RGBA16UI"] = 36214] = "RGBA16UI";
59
+ TextureFormat2[TextureFormat2["RGBA32F"] = 34836] = "RGBA32F";
60
+ TextureFormat2[TextureFormat2["RGBA32I"] = 36226] = "RGBA32I";
61
+ TextureFormat2[TextureFormat2["RGBA32UI"] = 36208] = "RGBA32UI";
62
+ TextureFormat2[TextureFormat2["RGBA4"] = 32854] = "RGBA4";
63
+ TextureFormat2[TextureFormat2["RGBA8"] = 32856] = "RGBA8";
64
+ TextureFormat2[TextureFormat2["RGBA8_SNORM"] = 36759] = "RGBA8_SNORM";
65
+ TextureFormat2[TextureFormat2["RGBA8I"] = 36238] = "RGBA8I";
66
+ TextureFormat2[TextureFormat2["RGBA8UI"] = 36220] = "RGBA8UI";
67
+ TextureFormat2[TextureFormat2["SRGB8"] = 35905] = "SRGB8";
68
+ TextureFormat2[TextureFormat2["SRGB8_ALPHA8"] = 35907] = "SRGB8_ALPHA8";
69
+ return TextureFormat2;
70
+ })(TextureFormat || {});
71
+ var TextureType = /* @__PURE__ */ ((TextureType2) => {
72
+ TextureType2[TextureType2["BYTE"] = 5120] = "BYTE";
73
+ TextureType2[TextureType2["UNSIGNED_BYTE"] = 5121] = "UNSIGNED_BYTE";
74
+ TextureType2[TextureType2["SHORT"] = 5122] = "SHORT";
75
+ TextureType2[TextureType2["UNSIGNED_SHORT"] = 5123] = "UNSIGNED_SHORT";
76
+ TextureType2[TextureType2["INT"] = 5124] = "INT";
77
+ TextureType2[TextureType2["UNSIGNED_INT"] = 5125] = "UNSIGNED_INT";
78
+ TextureType2[TextureType2["FLOAT"] = 5126] = "FLOAT";
79
+ TextureType2[TextureType2["HALF_FLOAT"] = 5131] = "HALF_FLOAT";
80
+ TextureType2[TextureType2["UNSIGNED_SHORT_4_4_4_4"] = 32819] = "UNSIGNED_SHORT_4_4_4_4";
81
+ TextureType2[TextureType2["UNSIGNED_SHORT_5_5_5_1"] = 32820] = "UNSIGNED_SHORT_5_5_5_1";
82
+ TextureType2[TextureType2["UNSIGNED_SHORT_5_6_5"] = 33635] = "UNSIGNED_SHORT_5_6_5";
83
+ TextureType2[TextureType2["UNSIGNED_INT_2_10_10_10_REV"] = 33640] = "UNSIGNED_INT_2_10_10_10_REV";
84
+ TextureType2[TextureType2["UNSIGNED_INT_24_8"] = 34042] = "UNSIGNED_INT_24_8";
85
+ TextureType2[TextureType2["UNSIGNED_INT_10F_11F_11F_REV"] = 35899] = "UNSIGNED_INT_10F_11F_11F_REV";
86
+ TextureType2[TextureType2["UNSIGNED_INT_5_9_9_9_REV"] = 35902] = "UNSIGNED_INT_5_9_9_9_REV";
87
+ TextureType2[TextureType2["HALF_FLOAT_OES"] = 36193] = "HALF_FLOAT_OES";
88
+ TextureType2[TextureType2["FLOAT_32_UNSIGNED_INT_24_8_REV"] = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV";
89
+ return TextureType2;
90
+ })(TextureType || {});
91
+ var TextureTarget = /* @__PURE__ */ ((TextureTarget2) => {
92
+ TextureTarget2[TextureTarget2["TEXTURE_2D"] = 3553] = "TEXTURE_2D";
93
+ TextureTarget2[TextureTarget2["TEXTURE_3D"] = 32879] = "TEXTURE_3D";
94
+ TextureTarget2[TextureTarget2["TEXTURE_CUBE_MAP"] = 34067] = "TEXTURE_CUBE_MAP";
95
+ TextureTarget2[TextureTarget2["TEXTURE_2D_ARRAY"] = 35866] = "TEXTURE_2D_ARRAY";
96
+ return TextureTarget2;
97
+ })(TextureTarget || {});
98
+ var TextureFilter = /* @__PURE__ */ ((TextureFilter2) => {
99
+ TextureFilter2[TextureFilter2["LINEAR"] = 9729] = "LINEAR";
100
+ TextureFilter2[TextureFilter2["NEAREST"] = 9728] = "NEAREST";
101
+ TextureFilter2[TextureFilter2["NEAREST_MIPMAP_NEAREST"] = 9984] = "NEAREST_MIPMAP_NEAREST";
102
+ TextureFilter2[TextureFilter2["LINEAR_MIPMAP_NEAREST"] = 9985] = "LINEAR_MIPMAP_NEAREST";
103
+ TextureFilter2[TextureFilter2["NEAREST_MIPMAP_LINEAR"] = 9986] = "NEAREST_MIPMAP_LINEAR";
104
+ TextureFilter2[TextureFilter2["LINEAR_MIPMAP_LINEAR"] = 9987] = "LINEAR_MIPMAP_LINEAR";
105
+ return TextureFilter2;
106
+ })(TextureFilter || {});
107
+ var TextureRepeat = /* @__PURE__ */ ((TextureRepeat2) => {
108
+ TextureRepeat2[TextureRepeat2["REPEAT"] = 10497] = "REPEAT";
109
+ TextureRepeat2[TextureRepeat2["CLAMP"] = 33071] = "CLAMP";
110
+ TextureRepeat2[TextureRepeat2["REPEAT_MIRROR"] = 33648] = "REPEAT_MIRROR";
111
+ return TextureRepeat2;
112
+ })(TextureRepeat || {});
113
113
  const $ = (format, types, num, render = false, filter = false, renderExt = render) => ({
114
- format,
115
- types,
116
- render,
117
- renderExt,
118
- filter,
119
- num,
114
+ format,
115
+ types,
116
+ render,
117
+ renderExt,
118
+ filter,
119
+ num
120
120
  });
121
- export const TEX_FORMATS = {
122
- [TextureFormat.ALPHA]: $(TextureFormat.ALPHA, [
123
- TextureType.UNSIGNED_BYTE,
124
- 1,
125
- TextureType.HALF_FLOAT,
126
- 2,
127
- TextureType.HALF_FLOAT_OES,
128
- 2,
129
- TextureType.FLOAT,
130
- 4,
131
- ], 1, true, true),
132
- [TextureFormat.DEPTH_COMPONENT]: $(TextureFormat.DEPTH_COMPONENT, [TextureType.UNSIGNED_SHORT, 2, TextureType.UNSIGNED_INT, 4], 1, true),
133
- [TextureFormat.DEPTH_COMPONENT16]: $(TextureFormat.DEPTH_COMPONENT, [TextureType.UNSIGNED_SHORT, 2, TextureType.UNSIGNED_INT, 4], 1, true),
134
- [TextureFormat.DEPTH_COMPONENT24]: $(TextureFormat.DEPTH_COMPONENT, [TextureType.UNSIGNED_INT, 4], 1, true),
135
- [TextureFormat.DEPTH_COMPONENT32F]: $(TextureFormat.DEPTH_COMPONENT, [TextureType.FLOAT, 4], 1, true),
136
- [TextureFormat.DEPTH_STENCIL]: $(TextureFormat.DEPTH_STENCIL, [TextureType.UNSIGNED_INT_24_8, 4], 1, true),
137
- [TextureFormat.DEPTH24_STENCIL8]: $(TextureFormat.DEPTH_STENCIL, [TextureType.UNSIGNED_INT_24_8, 4], 1, true),
138
- [TextureFormat.DEPTH32F_STENCIL8]: $(TextureFormat.DEPTH_STENCIL, [TextureType.FLOAT_32_UNSIGNED_INT_24_8_REV, 4], 1, true),
139
- [TextureFormat.LUMINANCE_ALPHA]: $(TextureFormat.LUMINANCE_ALPHA, [
140
- TextureType.UNSIGNED_BYTE,
141
- 2,
142
- TextureType.HALF_FLOAT,
143
- 4,
144
- TextureType.HALF_FLOAT_OES,
145
- 4,
146
- TextureType.FLOAT,
147
- 8,
148
- ], 2, true, true),
149
- [TextureFormat.LUMINANCE]: $(TextureFormat.LUMINANCE, [
150
- TextureType.UNSIGNED_BYTE,
151
- 1,
152
- TextureType.HALF_FLOAT,
153
- 2,
154
- TextureType.HALF_FLOAT_OES,
155
- 2,
156
- TextureType.FLOAT,
157
- 4,
158
- ], 1, true, true),
159
- [TextureFormat.R11F_G11F_B10F]: $(TextureFormat.RGB, [
160
- TextureType.FLOAT,
161
- 12,
162
- TextureType.HALF_FLOAT,
163
- 6,
164
- TextureType.UNSIGNED_INT_10F_11F_11F_REV,
165
- 4,
166
- ], 3, false, true, true),
167
- [TextureFormat.R16F]: $(TextureFormat.RED, [TextureType.FLOAT, 4, TextureType.HALF_FLOAT, 2], 1, false, true, true),
168
- [TextureFormat.R16I]: $(TextureFormat.RED_INTEGER, [TextureType.SHORT, 2], 1, true),
169
- [TextureFormat.R16UI]: $(TextureFormat.RED_INTEGER, [TextureType.UNSIGNED_SHORT, 2], 1, true),
170
- [TextureFormat.R32F]: $(TextureFormat.RED, [TextureType.FLOAT, 4], 1, false, false, true),
171
- [TextureFormat.R32I]: $(TextureFormat.RED_INTEGER, [TextureType.INT, 4], 1, true),
172
- [TextureFormat.R32UI]: $(TextureFormat.RED_INTEGER, [TextureType.UNSIGNED_INT, 4], 1, true),
173
- [TextureFormat.R8_SNORM]: $(TextureFormat.RED, [TextureType.BYTE, 1], 1, false, true),
174
- [TextureFormat.R8]: $(TextureFormat.RED, [TextureType.UNSIGNED_BYTE, 1], 1, true, true),
175
- [TextureFormat.R8I]: $(TextureFormat.RED_INTEGER, [TextureType.BYTE, 1], 1, true),
176
- [TextureFormat.R8UI]: $(TextureFormat.RED_INTEGER, [TextureType.UNSIGNED_BYTE, 1], 1, true),
177
- [TextureFormat.RG16F]: $(TextureFormat.RG, [TextureType.FLOAT, 8, TextureType.HALF_FLOAT, 4], 2, false, true, true),
178
- [TextureFormat.RG16I]: $(TextureFormat.RG_INTEGER, [TextureType.SHORT, 4], 2, true),
179
- [TextureFormat.RG16UI]: $(TextureFormat.RG_INTEGER, [TextureType.UNSIGNED_SHORT, 4], 2, true),
180
- [TextureFormat.RG32F]: $(TextureFormat.RG, [TextureType.FLOAT, 8], 2, false, false, true),
181
- [TextureFormat.RG32I]: $(TextureFormat.RG_INTEGER, [TextureType.INT, 8], 2, true),
182
- [TextureFormat.RG32UI]: $(TextureFormat.RG_INTEGER, [TextureType.UNSIGNED_INT, 8], 2, true),
183
- [TextureFormat.RG8_SNORM]: $(TextureFormat.RG, [TextureType.BYTE, 2], 2, false, true),
184
- [TextureFormat.RG8]: $(TextureFormat.RG, [TextureType.UNSIGNED_BYTE, 2], 2, true, true),
185
- [TextureFormat.RG8I]: $(TextureFormat.RG_INTEGER, [TextureType.BYTE, 2], 2, true),
186
- [TextureFormat.RG8UI]: $(TextureFormat.RG_INTEGER, [TextureType.UNSIGNED_BYTE, 2], 2, true),
187
- [TextureFormat.RGB]: $(TextureFormat.RGB, [
188
- TextureType.UNSIGNED_BYTE,
189
- 3,
190
- TextureType.HALF_FLOAT,
191
- 6,
192
- TextureType.HALF_FLOAT_OES,
193
- 6,
194
- TextureType.FLOAT,
195
- 12,
196
- TextureType.UNSIGNED_SHORT_5_6_5,
197
- 2,
198
- ], 3, true, true),
199
- [TextureFormat.RGB10_A2]: $(TextureFormat.RGBA, [TextureType.UNSIGNED_INT_2_10_10_10_REV, 4], 4, true, true),
200
- [TextureFormat.RGB10_A2UI]: $(TextureFormat.RGBA_INTEGER, [TextureType.UNSIGNED_INT_2_10_10_10_REV, 4], 4, true),
201
- [TextureFormat.RGB16F]: $(TextureFormat.RGB, [TextureType.FLOAT, 12, TextureType.HALF_FLOAT, 6], 3, false, true),
202
- [TextureFormat.RGB16I]: $(TextureFormat.RGB_INTEGER, [TextureType.SHORT, 6], 3),
203
- [TextureFormat.RGB16UI]: $(TextureFormat.RGB_INTEGER, [TextureType.UNSIGNED_SHORT, 6], 3),
204
- [TextureFormat.RGB32F]: $(TextureFormat.RGB, [TextureType.FLOAT, 12], 3),
205
- [TextureFormat.RGB32I]: $(TextureFormat.RGB_INTEGER, [TextureType.INT, 12], 3),
206
- [TextureFormat.RGB32UI]: $(TextureFormat.RGB_INTEGER, [TextureType.UNSIGNED_INT, 12], 3),
207
- [TextureFormat.RGB5_A1]: $(TextureFormat.RGBA, [
208
- TextureType.UNSIGNED_BYTE,
209
- 4,
210
- TextureType.UNSIGNED_SHORT_5_5_5_1,
211
- 2,
212
- TextureType.UNSIGNED_INT_2_10_10_10_REV,
213
- 4,
214
- ], 4, true, true),
215
- [TextureFormat.RGB565]: $(TextureFormat.RGB, [TextureType.UNSIGNED_BYTE, 3, TextureType.UNSIGNED_SHORT_5_6_5, 2], 3, true, true),
216
- [TextureFormat.RGB8_SNORM]: $(TextureFormat.RGB, [TextureType.BYTE, 3], 3, false, true),
217
- [TextureFormat.RGB8]: $(TextureFormat.RGB, [TextureType.UNSIGNED_BYTE, 3], 3, true, true),
218
- [TextureFormat.RGB8I]: $(TextureFormat.RGB_INTEGER, [TextureType.BYTE, 3], 3),
219
- [TextureFormat.RGB8UI]: $(TextureFormat.RGB_INTEGER, [TextureType.UNSIGNED_BYTE, 3], 3),
220
- [TextureFormat.RGB9_E5]: $(TextureFormat.RGB, [
221
- TextureType.FLOAT,
222
- 12,
223
- TextureType.HALF_FLOAT,
224
- 6,
225
- TextureType.UNSIGNED_INT_5_9_9_9_REV,
226
- 4,
227
- ], 3, false, true),
228
- [TextureFormat.RGBA]: $(TextureFormat.RGBA, [
229
- TextureType.UNSIGNED_BYTE,
230
- 4,
231
- TextureType.HALF_FLOAT,
232
- 8,
233
- TextureType.HALF_FLOAT_OES,
234
- 8,
235
- TextureType.FLOAT,
236
- 16,
237
- TextureType.UNSIGNED_SHORT_4_4_4_4,
238
- 2,
239
- TextureType.UNSIGNED_SHORT_5_5_5_1,
240
- 2,
241
- ], 4, true, true),
242
- [TextureFormat.RGBA16F]: $(TextureFormat.RGBA, [TextureType.FLOAT, 16, TextureType.HALF_FLOAT, 8], 4, false, true, true),
243
- [TextureFormat.RGBA16I]: $(TextureFormat.RGBA_INTEGER, [TextureType.SHORT, 8], 4, true),
244
- [TextureFormat.RGBA16UI]: $(TextureFormat.RGBA_INTEGER, [TextureType.UNSIGNED_SHORT, 8], 4, true),
245
- [TextureFormat.RGBA32F]: $(TextureFormat.RGBA, [TextureType.FLOAT, 16], 4, false, false, true),
246
- [TextureFormat.RGBA32I]: $(TextureFormat.RGBA_INTEGER, [TextureType.INT, 16], 4, true),
247
- [TextureFormat.RGBA32UI]: $(TextureFormat.RGBA_INTEGER, [TextureType.UNSIGNED_INT, 16], 4, true),
248
- [TextureFormat.RGBA4]: $(TextureFormat.RGBA, [TextureType.UNSIGNED_BYTE, 4, TextureType.UNSIGNED_SHORT_4_4_4_4, 2], 4, true, true),
249
- [TextureFormat.RGBA8_SNORM]: $(TextureFormat.RGBA, [TextureType.BYTE, 4], 4, false, true),
250
- [TextureFormat.RGBA8]: $(TextureFormat.RGBA, [TextureType.UNSIGNED_BYTE, 4], 4, true, true),
251
- [TextureFormat.RGBA8I]: $(TextureFormat.RGBA_INTEGER, [TextureType.BYTE, 4], 4, true),
252
- [TextureFormat.RGBA8UI]: $(TextureFormat.RGBA_INTEGER, [TextureType.UNSIGNED_BYTE, 4], 4, true),
253
- [TextureFormat.SRGB8_ALPHA8]: $(TextureFormat.RGBA, [TextureType.UNSIGNED_BYTE, 4], 4, true, true),
254
- [TextureFormat.SRGB8]: $(TextureFormat.RGB, [TextureType.UNSIGNED_BYTE, 3], 3, false, true),
121
+ const TEX_FORMATS = {
122
+ [6406 /* ALPHA */]: $(
123
+ 6406 /* ALPHA */,
124
+ [
125
+ 5121 /* UNSIGNED_BYTE */,
126
+ 1,
127
+ 5131 /* HALF_FLOAT */,
128
+ 2,
129
+ 36193 /* HALF_FLOAT_OES */,
130
+ 2,
131
+ 5126 /* FLOAT */,
132
+ 4
133
+ ],
134
+ 1,
135
+ true,
136
+ true
137
+ ),
138
+ [6402 /* DEPTH_COMPONENT */]: $(
139
+ 6402 /* DEPTH_COMPONENT */,
140
+ [5123 /* UNSIGNED_SHORT */, 2, 5125 /* UNSIGNED_INT */, 4],
141
+ 1,
142
+ true
143
+ ),
144
+ [33189 /* DEPTH_COMPONENT16 */]: $(
145
+ 6402 /* DEPTH_COMPONENT */,
146
+ [5123 /* UNSIGNED_SHORT */, 2, 5125 /* UNSIGNED_INT */, 4],
147
+ 1,
148
+ true
149
+ ),
150
+ [33190 /* DEPTH_COMPONENT24 */]: $(
151
+ 6402 /* DEPTH_COMPONENT */,
152
+ [5125 /* UNSIGNED_INT */, 4],
153
+ 1,
154
+ true
155
+ ),
156
+ [36012 /* DEPTH_COMPONENT32F */]: $(
157
+ 6402 /* DEPTH_COMPONENT */,
158
+ [5126 /* FLOAT */, 4],
159
+ 1,
160
+ true
161
+ ),
162
+ [34041 /* DEPTH_STENCIL */]: $(
163
+ 34041 /* DEPTH_STENCIL */,
164
+ [34042 /* UNSIGNED_INT_24_8 */, 4],
165
+ 1,
166
+ true
167
+ ),
168
+ [35056 /* DEPTH24_STENCIL8 */]: $(
169
+ 34041 /* DEPTH_STENCIL */,
170
+ [34042 /* UNSIGNED_INT_24_8 */, 4],
171
+ 1,
172
+ true
173
+ ),
174
+ [36013 /* DEPTH32F_STENCIL8 */]: $(
175
+ 34041 /* DEPTH_STENCIL */,
176
+ [36269 /* FLOAT_32_UNSIGNED_INT_24_8_REV */, 4],
177
+ 1,
178
+ true
179
+ ),
180
+ [6410 /* LUMINANCE_ALPHA */]: $(
181
+ 6410 /* LUMINANCE_ALPHA */,
182
+ [
183
+ 5121 /* UNSIGNED_BYTE */,
184
+ 2,
185
+ 5131 /* HALF_FLOAT */,
186
+ 4,
187
+ 36193 /* HALF_FLOAT_OES */,
188
+ 4,
189
+ 5126 /* FLOAT */,
190
+ 8
191
+ ],
192
+ 2,
193
+ true,
194
+ true
195
+ ),
196
+ [6409 /* LUMINANCE */]: $(
197
+ 6409 /* LUMINANCE */,
198
+ [
199
+ 5121 /* UNSIGNED_BYTE */,
200
+ 1,
201
+ 5131 /* HALF_FLOAT */,
202
+ 2,
203
+ 36193 /* HALF_FLOAT_OES */,
204
+ 2,
205
+ 5126 /* FLOAT */,
206
+ 4
207
+ ],
208
+ 1,
209
+ true,
210
+ true
211
+ ),
212
+ [35898 /* R11F_G11F_B10F */]: $(
213
+ 6407 /* RGB */,
214
+ [
215
+ 5126 /* FLOAT */,
216
+ 12,
217
+ 5131 /* HALF_FLOAT */,
218
+ 6,
219
+ 35899 /* UNSIGNED_INT_10F_11F_11F_REV */,
220
+ 4
221
+ ],
222
+ 3,
223
+ false,
224
+ true,
225
+ true
226
+ ),
227
+ [33325 /* R16F */]: $(
228
+ 6403 /* RED */,
229
+ [5126 /* FLOAT */, 4, 5131 /* HALF_FLOAT */, 2],
230
+ 1,
231
+ false,
232
+ true,
233
+ true
234
+ ),
235
+ [33331 /* R16I */]: $(
236
+ 36244 /* RED_INTEGER */,
237
+ [5122 /* SHORT */, 2],
238
+ 1,
239
+ true
240
+ ),
241
+ [33332 /* R16UI */]: $(
242
+ 36244 /* RED_INTEGER */,
243
+ [5123 /* UNSIGNED_SHORT */, 2],
244
+ 1,
245
+ true
246
+ ),
247
+ [33326 /* R32F */]: $(
248
+ 6403 /* RED */,
249
+ [5126 /* FLOAT */, 4],
250
+ 1,
251
+ false,
252
+ false,
253
+ true
254
+ ),
255
+ [33333 /* R32I */]: $(
256
+ 36244 /* RED_INTEGER */,
257
+ [5124 /* INT */, 4],
258
+ 1,
259
+ true
260
+ ),
261
+ [33334 /* R32UI */]: $(
262
+ 36244 /* RED_INTEGER */,
263
+ [5125 /* UNSIGNED_INT */, 4],
264
+ 1,
265
+ true
266
+ ),
267
+ [36756 /* R8_SNORM */]: $(
268
+ 6403 /* RED */,
269
+ [5120 /* BYTE */, 1],
270
+ 1,
271
+ false,
272
+ true
273
+ ),
274
+ [33321 /* R8 */]: $(
275
+ 6403 /* RED */,
276
+ [5121 /* UNSIGNED_BYTE */, 1],
277
+ 1,
278
+ true,
279
+ true
280
+ ),
281
+ [33329 /* R8I */]: $(
282
+ 36244 /* RED_INTEGER */,
283
+ [5120 /* BYTE */, 1],
284
+ 1,
285
+ true
286
+ ),
287
+ [33330 /* R8UI */]: $(
288
+ 36244 /* RED_INTEGER */,
289
+ [5121 /* UNSIGNED_BYTE */, 1],
290
+ 1,
291
+ true
292
+ ),
293
+ [33327 /* RG16F */]: $(
294
+ 33319 /* RG */,
295
+ [5126 /* FLOAT */, 8, 5131 /* HALF_FLOAT */, 4],
296
+ 2,
297
+ false,
298
+ true,
299
+ true
300
+ ),
301
+ [33337 /* RG16I */]: $(
302
+ 33320 /* RG_INTEGER */,
303
+ [5122 /* SHORT */, 4],
304
+ 2,
305
+ true
306
+ ),
307
+ [33338 /* RG16UI */]: $(
308
+ 33320 /* RG_INTEGER */,
309
+ [5123 /* UNSIGNED_SHORT */, 4],
310
+ 2,
311
+ true
312
+ ),
313
+ [33328 /* RG32F */]: $(
314
+ 33319 /* RG */,
315
+ [5126 /* FLOAT */, 8],
316
+ 2,
317
+ false,
318
+ false,
319
+ true
320
+ ),
321
+ [33339 /* RG32I */]: $(
322
+ 33320 /* RG_INTEGER */,
323
+ [5124 /* INT */, 8],
324
+ 2,
325
+ true
326
+ ),
327
+ [33340 /* RG32UI */]: $(
328
+ 33320 /* RG_INTEGER */,
329
+ [5125 /* UNSIGNED_INT */, 8],
330
+ 2,
331
+ true
332
+ ),
333
+ [36757 /* RG8_SNORM */]: $(
334
+ 33319 /* RG */,
335
+ [5120 /* BYTE */, 2],
336
+ 2,
337
+ false,
338
+ true
339
+ ),
340
+ [33323 /* RG8 */]: $(
341
+ 33319 /* RG */,
342
+ [5121 /* UNSIGNED_BYTE */, 2],
343
+ 2,
344
+ true,
345
+ true
346
+ ),
347
+ [33335 /* RG8I */]: $(
348
+ 33320 /* RG_INTEGER */,
349
+ [5120 /* BYTE */, 2],
350
+ 2,
351
+ true
352
+ ),
353
+ [33336 /* RG8UI */]: $(
354
+ 33320 /* RG_INTEGER */,
355
+ [5121 /* UNSIGNED_BYTE */, 2],
356
+ 2,
357
+ true
358
+ ),
359
+ [6407 /* RGB */]: $(
360
+ 6407 /* RGB */,
361
+ [
362
+ 5121 /* UNSIGNED_BYTE */,
363
+ 3,
364
+ 5131 /* HALF_FLOAT */,
365
+ 6,
366
+ 36193 /* HALF_FLOAT_OES */,
367
+ 6,
368
+ 5126 /* FLOAT */,
369
+ 12,
370
+ 33635 /* UNSIGNED_SHORT_5_6_5 */,
371
+ 2
372
+ ],
373
+ 3,
374
+ true,
375
+ true
376
+ ),
377
+ [32857 /* RGB10_A2 */]: $(
378
+ 6408 /* RGBA */,
379
+ [33640 /* UNSIGNED_INT_2_10_10_10_REV */, 4],
380
+ 4,
381
+ true,
382
+ true
383
+ ),
384
+ [36975 /* RGB10_A2UI */]: $(
385
+ 36249 /* RGBA_INTEGER */,
386
+ [33640 /* UNSIGNED_INT_2_10_10_10_REV */, 4],
387
+ 4,
388
+ true
389
+ ),
390
+ [34843 /* RGB16F */]: $(
391
+ 6407 /* RGB */,
392
+ [5126 /* FLOAT */, 12, 5131 /* HALF_FLOAT */, 6],
393
+ 3,
394
+ false,
395
+ true
396
+ ),
397
+ [36233 /* RGB16I */]: $(
398
+ 36248 /* RGB_INTEGER */,
399
+ [5122 /* SHORT */, 6],
400
+ 3
401
+ ),
402
+ [36215 /* RGB16UI */]: $(
403
+ 36248 /* RGB_INTEGER */,
404
+ [5123 /* UNSIGNED_SHORT */, 6],
405
+ 3
406
+ ),
407
+ [34837 /* RGB32F */]: $(6407 /* RGB */, [5126 /* FLOAT */, 12], 3),
408
+ [36227 /* RGB32I */]: $(
409
+ 36248 /* RGB_INTEGER */,
410
+ [5124 /* INT */, 12],
411
+ 3
412
+ ),
413
+ [36209 /* RGB32UI */]: $(
414
+ 36248 /* RGB_INTEGER */,
415
+ [5125 /* UNSIGNED_INT */, 12],
416
+ 3
417
+ ),
418
+ [32855 /* RGB5_A1 */]: $(
419
+ 6408 /* RGBA */,
420
+ [
421
+ 5121 /* UNSIGNED_BYTE */,
422
+ 4,
423
+ 32820 /* UNSIGNED_SHORT_5_5_5_1 */,
424
+ 2,
425
+ 33640 /* UNSIGNED_INT_2_10_10_10_REV */,
426
+ 4
427
+ ],
428
+ 4,
429
+ true,
430
+ true
431
+ ),
432
+ [36194 /* RGB565 */]: $(
433
+ 6407 /* RGB */,
434
+ [5121 /* UNSIGNED_BYTE */, 3, 33635 /* UNSIGNED_SHORT_5_6_5 */, 2],
435
+ 3,
436
+ true,
437
+ true
438
+ ),
439
+ [36758 /* RGB8_SNORM */]: $(
440
+ 6407 /* RGB */,
441
+ [5120 /* BYTE */, 3],
442
+ 3,
443
+ false,
444
+ true
445
+ ),
446
+ [32849 /* RGB8 */]: $(
447
+ 6407 /* RGB */,
448
+ [5121 /* UNSIGNED_BYTE */, 3],
449
+ 3,
450
+ true,
451
+ true
452
+ ),
453
+ [36239 /* RGB8I */]: $(
454
+ 36248 /* RGB_INTEGER */,
455
+ [5120 /* BYTE */, 3],
456
+ 3
457
+ ),
458
+ [36221 /* RGB8UI */]: $(
459
+ 36248 /* RGB_INTEGER */,
460
+ [5121 /* UNSIGNED_BYTE */, 3],
461
+ 3
462
+ ),
463
+ [35901 /* RGB9_E5 */]: $(
464
+ 6407 /* RGB */,
465
+ [
466
+ 5126 /* FLOAT */,
467
+ 12,
468
+ 5131 /* HALF_FLOAT */,
469
+ 6,
470
+ 35902 /* UNSIGNED_INT_5_9_9_9_REV */,
471
+ 4
472
+ ],
473
+ 3,
474
+ false,
475
+ true
476
+ ),
477
+ [6408 /* RGBA */]: $(
478
+ 6408 /* RGBA */,
479
+ [
480
+ 5121 /* UNSIGNED_BYTE */,
481
+ 4,
482
+ 5131 /* HALF_FLOAT */,
483
+ 8,
484
+ 36193 /* HALF_FLOAT_OES */,
485
+ 8,
486
+ 5126 /* FLOAT */,
487
+ 16,
488
+ 32819 /* UNSIGNED_SHORT_4_4_4_4 */,
489
+ 2,
490
+ 32820 /* UNSIGNED_SHORT_5_5_5_1 */,
491
+ 2
492
+ ],
493
+ 4,
494
+ true,
495
+ true
496
+ ),
497
+ [34842 /* RGBA16F */]: $(
498
+ 6408 /* RGBA */,
499
+ [5126 /* FLOAT */, 16, 5131 /* HALF_FLOAT */, 8],
500
+ 4,
501
+ false,
502
+ true,
503
+ true
504
+ ),
505
+ [36232 /* RGBA16I */]: $(
506
+ 36249 /* RGBA_INTEGER */,
507
+ [5122 /* SHORT */, 8],
508
+ 4,
509
+ true
510
+ ),
511
+ [36214 /* RGBA16UI */]: $(
512
+ 36249 /* RGBA_INTEGER */,
513
+ [5123 /* UNSIGNED_SHORT */, 8],
514
+ 4,
515
+ true
516
+ ),
517
+ [34836 /* RGBA32F */]: $(
518
+ 6408 /* RGBA */,
519
+ [5126 /* FLOAT */, 16],
520
+ 4,
521
+ false,
522
+ false,
523
+ true
524
+ ),
525
+ [36226 /* RGBA32I */]: $(
526
+ 36249 /* RGBA_INTEGER */,
527
+ [5124 /* INT */, 16],
528
+ 4,
529
+ true
530
+ ),
531
+ [36208 /* RGBA32UI */]: $(
532
+ 36249 /* RGBA_INTEGER */,
533
+ [5125 /* UNSIGNED_INT */, 16],
534
+ 4,
535
+ true
536
+ ),
537
+ [32854 /* RGBA4 */]: $(
538
+ 6408 /* RGBA */,
539
+ [5121 /* UNSIGNED_BYTE */, 4, 32819 /* UNSIGNED_SHORT_4_4_4_4 */, 2],
540
+ 4,
541
+ true,
542
+ true
543
+ ),
544
+ [36759 /* RGBA8_SNORM */]: $(
545
+ 6408 /* RGBA */,
546
+ [5120 /* BYTE */, 4],
547
+ 4,
548
+ false,
549
+ true
550
+ ),
551
+ [32856 /* RGBA8 */]: $(
552
+ 6408 /* RGBA */,
553
+ [5121 /* UNSIGNED_BYTE */, 4],
554
+ 4,
555
+ true,
556
+ true
557
+ ),
558
+ [36238 /* RGBA8I */]: $(
559
+ 36249 /* RGBA_INTEGER */,
560
+ [5120 /* BYTE */, 4],
561
+ 4,
562
+ true
563
+ ),
564
+ [36220 /* RGBA8UI */]: $(
565
+ 36249 /* RGBA_INTEGER */,
566
+ [5121 /* UNSIGNED_BYTE */, 4],
567
+ 4,
568
+ true
569
+ ),
570
+ [35907 /* SRGB8_ALPHA8 */]: $(
571
+ 6408 /* RGBA */,
572
+ [5121 /* UNSIGNED_BYTE */, 4],
573
+ 4,
574
+ true,
575
+ true
576
+ ),
577
+ [35905 /* SRGB8 */]: $(
578
+ 6407 /* RGB */,
579
+ [5121 /* UNSIGNED_BYTE */, 3],
580
+ 3,
581
+ false,
582
+ true
583
+ )
584
+ };
585
+ export {
586
+ TEX_FORMATS,
587
+ TextureFilter,
588
+ TextureFormat,
589
+ TextureRepeat,
590
+ TextureTarget,
591
+ TextureType
255
592
  };