mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 19:34:59 +00:00
vulkanCreateQueues
This commit is contained in:
parent
b1d812bb32
commit
3c4716ba5f
3 changed files with 42 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue