watchu think, maybe initialize the WSI platform?

This commit is contained in:
CocoSimone
2022-08-05 21:33:23 +02:00
parent d580dc6cdd
commit ef29e4797c
4 changed files with 8 additions and 3 deletions

View File

@@ -9,7 +9,6 @@
using namespace Vulkan;
using namespace RDP;
using std::unique_ptr;
static CommandProcessor* command_processor;
static WSI* wsi;
@@ -110,7 +109,7 @@ public:
Program* fullscreen_quad_program;
void LoadParallelRDP(const u8* rdram) {
void LoadWSIPlatform() {
wsi = new WSI();
wsi->set_backbuffer_srgb(false);
wsi->set_platform(new SDLWSIPlatform());
@@ -118,7 +117,9 @@ void LoadParallelRDP(const u8* rdram) {
if (!wsi->init_context_from_platform(1, handles)) {
util::panic("Failed to initialize WSI!");
}
}
void LoadParallelRDP(const u8* rdram) {
ResourceLayout vertLayout;
ResourceLayout fragLayout;

View File

@@ -16,6 +16,7 @@ uint32_t GetVkGraphicsQueueFamily();
VkFormat GetVkFormat();
VkCommandBuffer GetVkCommandBuffer();
void SubmitRequestedVkCommandBuffer();
void LoadWSIPlatform();
void LoadParallelRDP(const u8* rdram);
void UpdateScreenParallelRdp(Window& imguiWindow, const n64::VI& vi);
void ParallelRdpEnqueueCommand(int command_length, u32* buffer);