We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dd163a commit 6104eb5Copy full SHA for 6104eb5
webgl-memory.js
@@ -80,6 +80,8 @@
80
81
const SRGB_ALPHA_EXT = 0x8C42;
82
83
+ const STENCIL_INDEX8 = 0x8D48;
84
+
85
/**
86
* @typedef {Object} TextureFormatDetails
87
* @property {number} textureFormat format to pass texImage2D and similar functions.
@@ -162,6 +164,8 @@
162
164
t[DEPTH24_STENCIL8] = { bytesPerElement: [4], };
163
165
t[DEPTH32F_STENCIL8] = { bytesPerElement: [4], };
166
167
+ t[STENCIL_INDEX8] = { bytesPerElement: [1], };
168
169
s_textureInternalFormatInfo = t;
170
}
171
return s_textureInternalFormatInfo[internalFormat];
0 commit comments