mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
VideoCommon: refactor PixelShaderManager setters
The old way was to use a dirty flag per setter. Now we just update the const buffer per setter directly. The old optimization isn't needed any more as the setters don't call the backend any more. The follow parts are rewritten: Alpha ZTextureType zbias FogParam FogColor Color TexDim IndMatrix MaterialColor FogRangeAdjust Lights
This commit is contained in:
parent
15ed0ea9cf
commit
cc6c454898
6 changed files with 157 additions and 358 deletions
|
@ -643,7 +643,7 @@ void VertexShaderManager::SetProjectionChanged()
|
|||
bProjectionChanged = true;
|
||||
}
|
||||
|
||||
void VertexShaderManager::SetMaterialColorChanged(int index)
|
||||
void VertexShaderManager::SetMaterialColorChanged(int index, u32 color)
|
||||
{
|
||||
nMaterialsChanged |= (1 << index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue