mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 17:49:01 +00:00
VideoCommon: De-globalize GeometryShaderManager class.
This commit is contained in:
parent
1bfecd8003
commit
cb0a603c72
15 changed files with 90 additions and 67 deletions
|
@ -848,7 +848,9 @@ void Metal::StateTracker::PrepareRender()
|
|||
if (!m_flags.has_gx_gs_uniform && pipe->UsesVertexBuffer(2))
|
||||
{
|
||||
m_flags.has_gx_gs_uniform = true;
|
||||
[m_current_render_encoder setVertexBytes:&GeometryShaderManager::constants
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& geometry_shader_manager = system.GetGeometryShaderManager();
|
||||
[m_current_render_encoder setVertexBytes:&geometry_shader_manager.constants
|
||||
length:sizeof(GeometryShaderConstants)
|
||||
atIndex:2];
|
||||
ADDSTAT(g_stats.this_frame.bytes_uniform_streamed, sizeof(GeometryShaderConstants));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue