mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Merge pull request #313 from veka0/sceGuClutMode-docs-improvement
Clarify csa parameter in sceGuClutMode documentation
This commit is contained in:
@@ -1413,10 +1413,12 @@ void sceGuClutLoad(int num_blocks, const void* cbp);
|
||||
* - GU_PSM_4444
|
||||
* - GU_PSM_8888
|
||||
*
|
||||
* @note Final color index is computed by GE in the following way: `((pixelValue >> shift) & mask) | (csa << 4)`
|
||||
*
|
||||
* @param cpsm - Which pixel format to use for the palette
|
||||
* @param shift - Shifts color index by that many bits to the right
|
||||
* @param mask - Masks the color index with this bitmask after the shift (0-0xFF)
|
||||
* @param csa - Read-out start location (16-palette units)
|
||||
* @param csa - This value is shifted to the left by 4 bits and bitwise ORed with color index after applying mask
|
||||
**/
|
||||
void sceGuClutMode(unsigned int cpsm, unsigned int shift, unsigned int mask, unsigned int csa);
|
||||
|
||||
|
Reference in New Issue
Block a user