|
1 |
| -/* webgl-memory@1.0.12, license MIT */ |
| 1 | +/* webgl-memory@1.0.13, license MIT */ |
2 | 2 | (function (factory) {
|
3 | 3 | typeof define === 'function' && define.amd ? define(factory) :
|
4 | 4 | factory();
|
|
78 | 78 | const HALF_FLOAT = 0x140B;
|
79 | 79 | const HALF_FLOAT_OES = 0x8D61; // Thanks Khronos for making this different >:(
|
80 | 80 |
|
| 81 | + const SRGB_ALPHA_EXT = 0x8C42; |
| 82 | + |
81 | 83 | /**
|
82 | 84 | * @typedef {Object} TextureFormatDetails
|
83 | 85 | * @property {number} textureFormat format to pass texImage2D and similar functions.
|
|
99 | 101 | t[LUMINANCE_ALPHA] = { bytesPerElement: [2, 4, 4, 8], type: [UNSIGNED_BYTE, HALF_FLOAT, HALF_FLOAT_OES, FLOAT], };
|
100 | 102 | t[RGB] = { bytesPerElement: [3, 6, 6, 12, 2], type: [UNSIGNED_BYTE, HALF_FLOAT, HALF_FLOAT_OES, FLOAT, UNSIGNED_SHORT_5_6_5], };
|
101 | 103 | 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], }; |
102 | 105 | t[DEPTH_COMPONENT] = { bytesPerElement: [2, 4], type: [UNSIGNED_INT, UNSIGNED_SHORT], };
|
103 | 106 | t[DEPTH_STENCIL] = { bytesPerElement: [4], };
|
104 | 107 |
|
|
0 commit comments