vulkanCreateQueues

This commit is contained in:
georgemoralis 2023-09-21 18:20:13 +03:00
parent b1d812bb32
commit 3c4716ba5f
3 changed files with 42 additions and 0 deletions

View file

@ -1,13 +1,24 @@
#pragma once
#include <types.h>
#include <vulkan/vulkan_core.h>
#include <emulator.h>
#include "Lib/Threads.h"
namespace HLE::Libs::Graphics {
struct VulkanQueueInfo {
Lib::Mutex* mutex = nullptr;
u32 family = static_cast<u32>(-1);
u32 index = static_cast<u32>(-1);
VkQueue vk_queue = nullptr;
};
struct GraphicCtx {
u32 screen_width = 0;
u32 screen_height = 0;
VkInstance m_instance = nullptr;
VkPhysicalDevice m_physical_device = nullptr;
VkDevice m_device = nullptr;
VulkanQueueInfo queues[11]; //VULKAN_QUEUES_NUM
};
} // namespace HLE::Libs::Graphics