Fix parallel-rdp integration and reset whole state upon loading rom

This commit is contained in:
CocoSimone
2022-08-13 11:44:35 +02:00
parent ed34d9c9ba
commit e2313c212c
41 changed files with 250 additions and 92 deletions

View File

@@ -92,11 +92,11 @@ public:
}
uint32_t get_surface_width() override {
return 800;
return 640;
}
uint32_t get_surface_height() override {
return 600;
return 480;
}
bool alive(Vulkan::WSI &wsi_) override {
@@ -106,6 +106,15 @@ public:
void poll_input() override { }
void event_frame_tick(double frame, double elapsed) override { }
const VkApplicationInfo *get_application_info() override {
return &appInfo;
}
VkApplicationInfo appInfo {
.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,
.apiVersion = VK_API_VERSION_1_1
};
};
Program* fullscreen_quad_program;

View File

@@ -1,5 +1,4 @@
#pragma once
#define VULKAN_DEBUG
#include <Core.hpp>
#include <wsi.hpp>
#include <SDL2/SDL.h>
@@ -26,7 +25,6 @@ class SDLParallelRdpWindowInfo : public ParallelRdpWindowInfo {
}
};
static u32 windowID;
VkQueue GetGraphicsQueue();
VkInstance GetVkInstance();
VkPhysicalDevice GetVkPhysicalDevice();