mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
The way to Unity, pt.3 (#1681)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "common/io_file.h"
|
||||
#include "common/polyfill_thread.h"
|
||||
#include "common/stb.h"
|
||||
#include "common/thread.h"
|
||||
#include "imgui_impl_vulkan.h"
|
||||
#include "texture_manager.h"
|
||||
|
||||
@@ -81,6 +82,7 @@ RefCountedTexture::~RefCountedTexture() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RefCountedTexture::Image RefCountedTexture::GetTexture() const {
|
||||
if (inner == nullptr) {
|
||||
return {};
|
||||
@@ -91,6 +93,7 @@ RefCountedTexture::Image RefCountedTexture::GetTexture() const {
|
||||
.height = inner->height,
|
||||
};
|
||||
}
|
||||
|
||||
RefCountedTexture::operator bool() const {
|
||||
return inner != nullptr && inner->texture_id != nullptr;
|
||||
}
|
||||
@@ -130,6 +133,7 @@ Inner::~Inner() {
|
||||
}
|
||||
|
||||
void WorkerLoop() {
|
||||
Common::SetCurrentThreadName("shadPS4:ImGuiTextureManager");
|
||||
std::mutex mtx;
|
||||
while (g_is_worker_running) {
|
||||
std::unique_lock lk{mtx};
|
||||
|
||||
Reference in New Issue
Block a user