mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 09:24:58 +00:00
gpumemory works
This commit is contained in:
parent
59efa477ce
commit
1f0beb0ec3
7 changed files with 45 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
|||
#include "emulator.h"
|
||||
|
||||
#include "Core/PS4/HLE/Graphics/video_out.h"
|
||||
#include <vulkan_util.h>
|
||||
#include <Util/Singleton.h>
|
||||
#include <vulkan_util.h>
|
||||
|
||||
#include "Core/PS4/HLE/Graphics/video_out.h"
|
||||
|
||||
namespace Emulator {
|
||||
|
||||
|
@ -91,4 +92,12 @@ void emuRun() {
|
|||
}
|
||||
std::exit(0);
|
||||
}
|
||||
|
||||
HLE::Libs::Graphics::GraphicCtx* getGraphicCtx() {
|
||||
auto* window_ctx = Singleton<Emulator::WindowCtx>::Instance();
|
||||
Lib::LockMutexGuard lock(window_ctx->m_mutex);
|
||||
|
||||
return &window_ctx->m_graphic_ctx;
|
||||
}
|
||||
|
||||
} // namespace Emulator
|
Loading…
Add table
Add a link
Reference in a new issue