Skip to content

Commit

Permalink
[Fix] Exposed PIXELFORMAT_R8 format for locking (#7177)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <[email protected]>
  • Loading branch information
2 people authored and slimbuck committed Dec 9, 2024
1 parent 1402d24 commit 38c33c7
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 38c33c7

Please sign in to comment.