Skip to content

Commit a60c431

Browse files
committed
build
1 parent 175032a commit a60c431

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

webgl-memory.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* webgl-memory@1.0.11, license MIT */
1+
/* webgl-memory@1.0.12, license MIT */
22
(function (factory) {
33
typeof define === 'function' && define.amd ? define(factory) :
44
factory();
@@ -235,6 +235,16 @@
235235
const COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D;
236236
const COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E;
237237
const COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F;
238+
// EXT_texture_compression_bptc
239+
const COMPRESSED_RGBA_BPTC_UNORM_EXT = 0x8E8C;
240+
const COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = 0x8E8D;
241+
const COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = 0x8E8E;
242+
const COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = 0x8E8F;
243+
// EXT_texture_compression_rgtc
244+
const COMPRESSED_RED_RGTC1_EXT = 0x8DBB;
245+
const COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC;
246+
const COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD;
247+
const COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE;
238248

239249
const compressedTextureFunctions = new Map([
240250
[ COMPRESSED_RGB_S3TC_DXT1_EXT, makeComputeBlockRectSizeFunction(4, 4, 8) ],
@@ -294,6 +304,16 @@
294304
[ COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, makeComputeBlockRectSizeFunction(4, 4, 8) ],
295305
[ COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, makeComputeBlockRectSizeFunction(4, 4, 16) ],
296306
[ COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, makeComputeBlockRectSizeFunction(4, 4, 16) ],
307+
308+
[ COMPRESSED_RGBA_BPTC_UNORM_EXT, makeComputeBlockRectSizeFunction( 4, 4, 16 ) ],
309+
[ COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT, makeComputeBlockRectSizeFunction( 4, 4, 16 ) ],
310+
[ COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT, makeComputeBlockRectSizeFunction( 4, 4, 16 ) ],
311+
[ COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT, makeComputeBlockRectSizeFunction( 4, 4, 16 ) ],
312+
313+
[ COMPRESSED_RED_RGTC1_EXT, makeComputeBlockRectSizeFunction( 4, 4, 8 ) ],
314+
[ COMPRESSED_SIGNED_RED_RGTC1_EXT, makeComputeBlockRectSizeFunction( 4, 4, 8 ) ],
315+
[ COMPRESSED_RED_GREEN_RGTC2_EXT, makeComputeBlockRectSizeFunction( 4, 4, 16 ) ],
316+
[ COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT, makeComputeBlockRectSizeFunction( 4, 4, 16 ) ],
297317
]);
298318

299319
/**

0 commit comments

Comments
 (0)