PSPSDK 2025-08-29
Loading...
Searching...
No Matches
With

Set mask for which bits of the pixels to write.

Set mask for which bits of the pixels to write

Parameters
mask- Which bits to filter against writes
Note
The representation of the mask is in the format 0xAABBGGRR: 1-bits prevent writes to that bit, 0-bits allow writes.
If you have a draw format using less than 8 bits per channel, you need to mask the higher bits as less significant bits aren't used. a draw format of GU_PSM_5650: sceGuPixelMask(0x00000000); // All channels writable sceGuPixelMask(0x0000FCF8); // Only Blue (+Alpha) writable sceGuPixelMask(0x00F800F8); // Only Green (+Alpha) writable sceGuPixelMask(0x00F8FC00); // Only Red (+Alpha) writable