mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
VideoCommon: De-globalize VertexShaderManager class.
This commit is contained in:
parent
0900e68986
commit
50625728e0
19 changed files with 151 additions and 101 deletions
|
@ -264,12 +264,14 @@ void VertexManager::UploadUniforms()
|
|||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
|
||||
if (VertexShaderManager::dirty)
|
||||
auto& vertex_shader_manager = system.GetVertexShaderManager();
|
||||
if (vertex_shader_manager.dirty)
|
||||
{
|
||||
UpdateConstantBuffer(m_vertex_constant_buffer.Get(), &VertexShaderManager::constants,
|
||||
UpdateConstantBuffer(m_vertex_constant_buffer.Get(), &vertex_shader_manager.constants,
|
||||
sizeof(VertexShaderConstants));
|
||||
VertexShaderManager::dirty = false;
|
||||
vertex_shader_manager.dirty = false;
|
||||
}
|
||||
|
||||
if (GeometryShaderManager::dirty)
|
||||
{
|
||||
UpdateConstantBuffer(m_geometry_constant_buffer.Get(), &GeometryShaderManager::constants,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue