Init parallelrdp on EmuThread thread (so that the console doesnt get spammed with error logs)

This commit is contained in:
Simone
2024-05-14 15:31:47 +02:00
parent 83fc2b583c
commit e61dc1bfc4
4 changed files with 8 additions and 9 deletions

View File

@@ -33,7 +33,9 @@ void ParallelRDP::LoadWSIPlatform(Vulkan::InstanceFactory* instanceFactory, std:
windowInfo = std::move(newWindowInfo);
}
void ParallelRDP::Init(const u8* rdram) {
void ParallelRDP::Init(Vulkan::InstanceFactory* factory, std::unique_ptr<Vulkan::WSIPlatform>&& wsiPlatform, std::unique_ptr<WindowInfo>&& newWindowInfo, const u8* rdram) {
LoadWSIPlatform(factory, std::move(wsiPlatform), std::move(newWindowInfo));
ResourceLayout vertLayout;
ResourceLayout fragLayout;
@@ -78,10 +80,6 @@ void ParallelRDP::Init(const u8* rdram) {
}
}
ParallelRDP::ParallelRDP(Vulkan::InstanceFactory* factory, std::unique_ptr<Vulkan::WSIPlatform>&& wsi_platform, std::unique_ptr<WindowInfo>&& newWindowInfo) {
LoadWSIPlatform(factory, std::move(wsi_platform), std::move(newWindowInfo));
}
void ParallelRDP::DrawFullscreenTexturedQuad(Util::IntrusivePtr<Image> image, Util::IntrusivePtr<CommandBuffer> cmd) {
cmd->set_texture(0, 0, image->get_view(), Vulkan::StockSampler::LinearClamp);
cmd->set_program(fullscreen_quad_program);