GPU: Make VRAM a global object

This commit is contained in:
Stenzek
2023-12-23 16:53:15 +10:00
parent 7340324ed9
commit 411213d6a0
10 changed files with 50 additions and 69 deletions

View File

@ -22,12 +22,11 @@ public:
GPUBackend();
virtual ~GPUBackend();
ALWAYS_INLINE u16* GetVRAM() const { return m_vram_ptr; }
ALWAYS_INLINE const Threading::Thread* GetThread() const { return m_use_gpu_thread ? &m_gpu_thread : nullptr; }
virtual bool Initialize(bool force_thread);
virtual void UpdateSettings();
virtual void Reset(bool clear_vram);
virtual void Reset();
virtual void Shutdown();
GPUBackendFillVRAMCommand* NewFillVRAMCommand();
@ -64,8 +63,6 @@ protected:
void HandleCommand(const GPUBackendCommand* cmd);
u16* m_vram_ptr = nullptr;
Common::Rectangle<u32> m_drawing_area{};
Threading::KernelSemaphore m_sync_semaphore;