mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-05 18:23:16 +00:00
The way to Unity, pt.3 (#1681)
This commit is contained in:
parent
1793fd4df0
commit
fea2593ab4
17 changed files with 256 additions and 50 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue