[Fix] (MG_Test/Backend/DirectVulkan): more swapchain logic encapsulated, fix compilation

This commit is contained in:
2026-02-16 10:47:42 +08:00
parent 1a4fde893f
commit 0ac4d8658d
4 changed files with 62 additions and 361 deletions
@@ -28,7 +28,8 @@ namespace MobileGL::MG_Backend::DirectVulkan {
static VkSurfaceFormatKHR ChooseSwapchainSurfaceFormat(const Vector<VkSurfaceFormatKHR>& availableFormats);
static VkPresentModeKHR ChooseSwapchainPresentMode(const Vector<VkPresentModeKHR>& availablePresentModes);
void Create(VkDevice device, const VkSwapchainCreateInfoKHR& createInfo);
void Create(VkDevice device, VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, Uint32 graphicsQueueFamily,
Uint32 presentQueueFamily, Uint32 minImageCountHint);
void Shutdown(VkDevice device);
VkSwapchainKHR GetHandle() const { return m_swapchain; }