Skip to content

Commit

Permalink
feat: add STENCIL_INDEX8
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshibo committed Jun 12, 2024
1 parent 9dd163a commit 8278fe3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webgl-memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@

const SRGB_ALPHA_EXT = 0x8C42;

const STENCIL_INDEX8 = 0x8D48;

/**
* @typedef {Object} TextureFormatDetails
* @property {number} textureFormat format to pass texImage2D and similar functions.
Expand Down Expand Up @@ -162,6 +164,8 @@
t[DEPTH24_STENCIL8] = { bytesPerElement: [4], };
t[DEPTH32F_STENCIL8] = { bytesPerElement: [4], };

t[STENCIL_INDEX8] = { bytesPerElement: [1], };

s_textureInternalFormatInfo = t;
}
return s_textureInternalFormatInfo[internalFormat];
Expand Down

0 comments on commit 8278fe3

Please sign in to comment.