watchu think, maybe initialize the WSI platform?
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,3 +7,5 @@ roms/
|
||||
*.bin
|
||||
*.sh
|
||||
.cache/
|
||||
.vscode/
|
||||
vgcore.*
|
||||
5
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
5
external/parallel-rdp/ParallelRDPWrapper.cpp
vendored
@@ -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;
|
||||
|
||||
|
||||
1
external/parallel-rdp/ParallelRDPWrapper.hpp
vendored
1
external/parallel-rdp/ParallelRDPWrapper.hpp
vendored
@@ -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);
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
Window::Window(std::shared_ptr<BaseCore> core) : core(std::move(core)) {
|
||||
InitSDL();
|
||||
LoadWSIPlatform();
|
||||
InitImgui();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user