GxmUniformSlot struct
One reflected sceGxm program parameter the draw path writes a uniform into.
ResourceIndex is where the value goes: sceGxm addresses a default uniform buffer in 32-bit components, so the bytes land at ResourceIndex * 4. That this is the whole story was confirmed on the console - a sprite's block members come back at component 32, 48, 52, 56 and 58, which times four are byte offsets 128, 192, 208, 224 and 232, i.e. exactly the engine's std140 offsets 0, 64, 80, 96 and 104 relative to the first. Resolving the parameters once at link time keeps sceGxmProgramFindParameterByName() - a linear scan over the program's parameter table - off the per-draw path.
Public variables
- const char* Name
-
std::
uint32_t ResourceIndex -
std::
uint32_t ByteSize