mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
Shadergen: Fix UBO uploads and optimize shader caching (#538)
* Hotfix UBO binding * Shadergen: Optimize caching * Shadergen: Remove trailing newlines
This commit is contained in:
parent
6bef278f43
commit
801d14e463
3 changed files with 18 additions and 13 deletions
|
@ -24,8 +24,9 @@ namespace PICA {
|
|||
u32 texUnitConfig;
|
||||
u32 texEnvUpdateBuffer;
|
||||
|
||||
// There's 6 TEV stages, and each one is configured via 5 word-sized registers
|
||||
std::array<u32, 5 * 6> tevConfigs;
|
||||
// There's 6 TEV stages, and each one is configured via 4 word-sized registers
|
||||
// (+ the constant color register, which we don't include here, otherwise we'd generate too many shaders)
|
||||
std::array<u32, 4 * 6> tevConfigs;
|
||||
};
|
||||
|
||||
// Config used for identifying unique fragment pipeline configurations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue