Yeah
This commit is contained in:
5
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
5
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
@@ -11,7 +11,6 @@ using namespace Vulkan;
|
||||
using namespace RDP;
|
||||
|
||||
static CommandProcessor* command_processor;
|
||||
static WSI* wsi;
|
||||
static std::unique_ptr<ParallelRdpWindowInfo> windowInfo;
|
||||
|
||||
VkQueue GetGraphicsQueue() {
|
||||
@@ -125,13 +124,13 @@ private:
|
||||
|
||||
Program* fullscreen_quad_program;
|
||||
|
||||
WSI* LoadWSIPlatform(Vulkan::WSIPlatform* wsi_platform, std::unique_ptr<ParallelRdpWindowInfo>&& newWindowInfo) {
|
||||
WSI* LoadWSIPlatform(Vulkan::InstanceFactory* instanceFactory, Vulkan::WSIPlatform* wsi_platform, std::unique_ptr<ParallelRdpWindowInfo>&& newWindowInfo) {
|
||||
wsi = new WSI();
|
||||
wsi->set_backbuffer_srgb(false);
|
||||
wsi->set_platform(wsi_platform);
|
||||
wsi->set_present_mode(PresentMode::SyncToVBlank);
|
||||
Context::SystemHandles handles;
|
||||
if (!wsi->init_simple(1, handles)) {
|
||||
if (!wsi->init_simple(instanceFactory, 1, handles)) {
|
||||
Util::panic("Failed to initialize WSI!");
|
||||
}
|
||||
|
||||
|
||||
4
external/parallel-rdp/ParallelRDPWrapper.hpp
vendored
4
external/parallel-rdp/ParallelRDPWrapper.hpp
vendored
@@ -23,6 +23,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static Vulkan::WSI* wsi;
|
||||
|
||||
VkRenderPass GetVkRenderPass();
|
||||
VkQueue GetGraphicsQueue();
|
||||
VkInstance GetVkInstance();
|
||||
@@ -33,7 +35,7 @@ VkFormat GetVkFormat();
|
||||
VkCommandBuffer GetVkCommandBuffer();
|
||||
void SubmitRequestedVkCommandBuffer();
|
||||
void LoadParallelRDP(const u8* rdram);
|
||||
Vulkan::WSI* LoadWSIPlatform(Vulkan::WSIPlatform* wsi_platform, std::unique_ptr<ParallelRdpWindowInfo>&& newWindowInfo);
|
||||
Vulkan::WSI* LoadWSIPlatform(Vulkan::InstanceFactory*, Vulkan::WSIPlatform* wsi_platform, std::unique_ptr<ParallelRdpWindowInfo>&& newWindowInfo);
|
||||
void UpdateScreenParallelRdp(n64::Core& core, n64::VI& vi);
|
||||
void ParallelRdpEnqueueCommand(int command_length, u32* buffer);
|
||||
void ParallelRdpOnFullSync();
|
||||
|
||||
Reference in New Issue
Block a user