mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
VideoBackends:Vulkan: Set up VMA
Co-authored-by: iwubcode <iwubcode@users.noreply.github.com>
This commit is contained in:
@ -26,7 +26,7 @@ public:
|
||||
|
||||
// Helper method to create a Vulkan instance.
|
||||
static VkInstance CreateVulkanInstance(WindowSystemType wstype, bool enable_debug_report,
|
||||
bool enable_validation_layer);
|
||||
bool enable_validation_layer, u32* out_vk_api_version);
|
||||
|
||||
// Returns a list of Vulkan-compatible GPUs.
|
||||
using GPUList = std::vector<VkPhysicalDevice>;
|
||||
@ -47,7 +47,7 @@ public:
|
||||
// been called for the specified VideoConfig.
|
||||
static std::unique_ptr<VulkanContext> Create(VkInstance instance, VkPhysicalDevice gpu,
|
||||
VkSurfaceKHR surface, bool enable_debug_reports,
|
||||
bool enable_validation_layer);
|
||||
bool enable_validation_layer, u32 api_version);
|
||||
|
||||
// Enable/disable debug message runtime.
|
||||
bool EnableDebugReports();
|
||||
@ -113,6 +113,8 @@ public:
|
||||
// Returns true if exclusive fullscreen is supported for the given surface.
|
||||
bool SupportsExclusiveFullscreen(const WindowSystemInfo& wsi, VkSurfaceKHR surface);
|
||||
|
||||
VmaAllocator GetMemoryAllocator() const { return m_allocator; }
|
||||
|
||||
#ifdef WIN32
|
||||
// Returns the platform-specific exclusive fullscreen structure.
|
||||
VkSurfaceFullScreenExclusiveWin32InfoEXT
|
||||
@ -127,10 +129,12 @@ private:
|
||||
bool CreateDevice(VkSurfaceKHR surface, bool enable_validation_layer);
|
||||
void InitDriverDetails();
|
||||
void PopulateShaderSubgroupSupport();
|
||||
bool CreateAllocator(u32 vk_api_version);
|
||||
|
||||
VkInstance m_instance = VK_NULL_HANDLE;
|
||||
VkPhysicalDevice m_physical_device = VK_NULL_HANDLE;
|
||||
VkDevice m_device = VK_NULL_HANDLE;
|
||||
VmaAllocator m_allocator = VK_NULL_HANDLE;
|
||||
|
||||
VkQueue m_graphics_queue = VK_NULL_HANDLE;
|
||||
u32 m_graphics_queue_family_index = 0;
|
||||
|
Reference in New Issue
Block a user