mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
VideoCommon: move xf state management to its own class, so changes can be detected in places other than VertexShaderManager
This commit is contained in:
parent
1a2d0882d0
commit
849a0c13b5
16 changed files with 470 additions and 299 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "VideoCommon/PixelEngine.h"
|
||||
#include "VideoCommon/PixelShaderManager.h"
|
||||
#include "VideoCommon/VertexShaderManager.h"
|
||||
#include "VideoCommon/XFStateManager.h"
|
||||
|
||||
namespace Core
|
||||
{
|
||||
|
@ -77,6 +78,7 @@ struct System::Impl
|
|||
SerialInterface::SerialInterfaceManager m_serial_interface;
|
||||
Sram m_sram;
|
||||
VertexShaderManager m_vertex_shader_manager;
|
||||
XFStateManager m_xf_state_manager;
|
||||
VideoInterface::VideoInterfaceManager m_video_interface;
|
||||
Interpreter m_interpreter;
|
||||
JitInterface m_jit_interface;
|
||||
|
@ -261,6 +263,11 @@ VertexShaderManager& System::GetVertexShaderManager() const
|
|||
return m_impl->m_vertex_shader_manager;
|
||||
}
|
||||
|
||||
XFStateManager& System::GetXFStateManager() const
|
||||
{
|
||||
return m_impl->m_xf_state_manager;
|
||||
}
|
||||
|
||||
VideoInterface::VideoInterfaceManager& System::GetVideoInterface() const
|
||||
{
|
||||
return m_impl->m_video_interface;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue