Skip to content

Commit 0622a60

Browse files
committed
build
1 parent 817fdab commit 0622a60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webgl-memory.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* webgl-memory@1.0.12, license MIT */
1+
/* webgl-memory@1.0.13, license MIT */
22
(function (factory) {
33
typeof define === 'function' && define.amd ? define(factory) :
44
factory();
@@ -78,6 +78,8 @@
7878
const HALF_FLOAT = 0x140B;
7979
const HALF_FLOAT_OES = 0x8D61; // Thanks Khronos for making this different >:(
8080

81+
const SRGB_ALPHA_EXT = 0x8C42;
82+
8183
/**
8284
* @typedef {Object} TextureFormatDetails
8385
* @property {number} textureFormat format to pass texImage2D and similar functions.
@@ -99,6 +101,7 @@
99101
t[LUMINANCE_ALPHA] = { bytesPerElement: [2, 4, 4, 8], type: [UNSIGNED_BYTE, HALF_FLOAT, HALF_FLOAT_OES, FLOAT], };
100102
t[RGB] = { bytesPerElement: [3, 6, 6, 12, 2], type: [UNSIGNED_BYTE, HALF_FLOAT, HALF_FLOAT_OES, FLOAT, UNSIGNED_SHORT_5_6_5], };
101103
t[RGBA] = { bytesPerElement: [4, 8, 8, 16, 2, 2], type: [UNSIGNED_BYTE, HALF_FLOAT, HALF_FLOAT_OES, FLOAT, UNSIGNED_SHORT_4_4_4_4, UNSIGNED_SHORT_5_5_5_1], };
104+
t[SRGB_ALPHA_EXT] = { bytesPerElement: [4, 8, 8, 16, 2, 2], type: [UNSIGNED_BYTE, HALF_FLOAT, HALF_FLOAT_OES, FLOAT, UNSIGNED_SHORT_4_4_4_4, UNSIGNED_SHORT_5_5_5_1], };
102105
t[DEPTH_COMPONENT] = { bytesPerElement: [2, 4], type: [UNSIGNED_INT, UNSIGNED_SHORT], };
103106
t[DEPTH_STENCIL] = { bytesPerElement: [4], };
104107

0 commit comments

Comments
 (0)