VideoCommon: De-globalize PixelShaderManager class.

This commit is contained in:
Admiral H. Curtiss committed 2022-12-27 20:13:24 +01:00
1 parent 529909fe90
commit 725bd64ec2
22 files changed
+197 -133

No files matched your search

+7
View File
@@ -21,6 +21,7 @@
#include "VideoCommon/CommandProcessor.h"
#include "VideoCommon/Fifo.h"
#include "VideoCommon/PixelEngine.h"
#include "VideoCommon/PixelShaderManager.h"
namespace Core
{
@@ -41,6 +42,7 @@ struct System::Impl
Memory::MemoryManager m_memory;
MemoryInterface::MemoryInterfaceState m_memory_interface_state;
PixelEngine::PixelEngineManager m_pixel_engine;
PixelShaderManager m_pixel_shader_manager;
SerialInterface::SerialInterfaceState m_serial_interface_state;
Sram m_sram;
VideoInterface::VideoInterfaceState m_video_interface_state;
@@ -144,6 +146,11 @@ PixelEngine::PixelEngineManager& System::GetPixelEngine() const
return m_impl->m_pixel_engine;
}
PixelShaderManager& System::GetPixelShaderManager() const
{
return m_impl->m_pixel_shader_manager;
}
SerialInterface::SerialInterfaceState& System::GetSerialInterfaceState() const
{
return m_impl->m_serial_interface_state;
+2
View File
@@ -5,6 +5,7 @@
#include <memory>
class PixelShaderManager;
class SoundStream;
struct Sram;
@@ -106,6 +107,7 @@ public:
Memory::MemoryManager& GetMemory() const;
MemoryInterface::MemoryInterfaceState& GetMemoryInterfaceState() const;
PixelEngine::PixelEngineManager& GetPixelEngine() const;
PixelShaderManager& GetPixelShaderManager() const;
SerialInterface::SerialInterfaceState& GetSerialInterfaceState() const;
Sram& GetSRAM() const;
VideoInterface::VideoInterfaceState& GetVideoInterfaceState() const;