mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 02:45:00 +00:00
even more vulkan init
This commit is contained in:
parent
ef6da6bddb
commit
78bafe88fa
4 changed files with 61 additions and 20 deletions
|
@ -2,8 +2,24 @@
|
|||
#include <Core/PS4/HLE/Graphics/graphics_ctx.h>
|
||||
#include <Lib/Threads.h>
|
||||
#include <SDL.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace Emulator {
|
||||
|
||||
struct VulkanExt {
|
||||
bool enable_validation_layers = false;
|
||||
|
||||
std::vector<const char*> required_extensions;
|
||||
std::vector<VkExtensionProperties> available_extensions;
|
||||
std::vector<const char*> required_layers;
|
||||
std::vector<VkLayerProperties> available_layers;
|
||||
};
|
||||
|
||||
struct VulkanSurfaceCapabilities {};
|
||||
|
||||
struct VulkanQueues {};
|
||||
|
||||
struct WindowCtx {
|
||||
HLE::Libs::Graphics::GraphicCtx m_graphic_ctx;
|
||||
Lib::Mutex m_mutex;
|
||||
|
@ -12,6 +28,7 @@ struct WindowCtx {
|
|||
SDL_Window* m_window = nullptr;
|
||||
bool is_window_hidden = true;
|
||||
VkSurfaceKHR m_surface = nullptr;
|
||||
VulkanSurfaceCapabilities* m_surface_capabilities = nullptr;
|
||||
};
|
||||
|
||||
struct EmuPrivate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue