Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Exposed PIXELFORMAT_R8 format for locking #7177

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/platform/graphics/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,15 +932,15 @@ export const PIXELFORMAT_R16F = 50;
export const PIXELFORMAT_RG16F = 51;

/**
* 8-bit per-channel unsigned integer (R) format.
* 8-bit per-channel (R) format.
*
* @type {number}
* @category Graphics
*/
export const PIXELFORMAT_R8 = 52;

/**
* 8-bit per-channel unsigned integer (RG) format.
* 8-bit per-channel (RG) format.
*
* @type {number}
* @category Graphics
Expand Down Expand Up @@ -1238,6 +1238,7 @@ export const getPixelFormatArrayType = (format) => {
case PIXELFORMAT_RGB16F:
case PIXELFORMAT_RGBA16F:
return Uint16Array;
case PIXELFORMAT_R8:
case PIXELFORMAT_R8I:
case PIXELFORMAT_RG8I:
case PIXELFORMAT_RGBA8I:
Expand Down
Loading