Skip to content

Commit 6104eb5

Browse files
wangshibogreggman
wangshibo
authored andcommitted
feat: add STENCIL_INDEX8
1 parent 9dd163a commit 6104eb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: webgl-memory.js

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080

8181
const SRGB_ALPHA_EXT = 0x8C42;
8282

83+
const STENCIL_INDEX8 = 0x8D48;
84+
8385
/**
8486
* @typedef {Object} TextureFormatDetails
8587
* @property {number} textureFormat format to pass texImage2D and similar functions.
@@ -162,6 +164,8 @@
162164
t[DEPTH24_STENCIL8] = { bytesPerElement: [4], };
163165
t[DEPTH32F_STENCIL8] = { bytesPerElement: [4], };
164166

167+
t[STENCIL_INDEX8] = { bytesPerElement: [1], };
168+
165169
s_textureInternalFormatInfo = t;
166170
}
167171
return s_textureInternalFormatInfo[internalFormat];

0 commit comments

Comments
 (0)