mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 02:45:00 +00:00
almost finished vulkan init
This commit is contained in:
parent
3c4716ba5f
commit
0859964888
4 changed files with 176 additions and 57 deletions
|
@ -43,6 +43,17 @@ struct VulkanQueues {
|
|||
std::vector<u32> family_used;
|
||||
};
|
||||
|
||||
struct VulkanSwapchain {
|
||||
VkSwapchainKHR swapchain = nullptr;
|
||||
VkFormat swapchain_format = VK_FORMAT_UNDEFINED;
|
||||
VkExtent2D swapchain_extent = {};
|
||||
VkImage* swapchain_images = nullptr;
|
||||
VkImageView* swapchain_image_views = nullptr;
|
||||
u32 swapchain_images_count = 0;
|
||||
VkSemaphore present_complete_semaphore = nullptr;
|
||||
VkFence present_complete_fence = nullptr;
|
||||
u32 current_index = 0;
|
||||
};
|
||||
|
||||
struct WindowCtx {
|
||||
HLE::Libs::Graphics::GraphicCtx m_graphic_ctx;
|
||||
|
@ -53,6 +64,7 @@ struct WindowCtx {
|
|||
bool is_window_hidden = true;
|
||||
VkSurfaceKHR m_surface = nullptr;
|
||||
VulkanSurfaceCapabilities* m_surface_capabilities = nullptr;
|
||||
VulkanSwapchain* swapchain = nullptr;
|
||||
};
|
||||
|
||||
struct EmuPrivate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue