mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Fix] (MG_Backend/DirectVulkan): create command pool and command buffer
This commit is contained in:
@@ -93,6 +93,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
||||
VkQueue m_graphicsQueue = VK_NULL_HANDLE;
|
||||
VkQueue m_presentQueue = VK_NULL_HANDLE;
|
||||
|
||||
VkCommandPool m_commandPool = VK_NULL_HANDLE;
|
||||
VkCommandBuffer m_commandBuffer = VK_NULL_HANDLE;
|
||||
|
||||
void CreateInstance();
|
||||
VkResult SetupDebugMessenger();
|
||||
VkResult DestroyDebugMessenger();
|
||||
@@ -102,6 +105,8 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
||||
void CreateLogicalDeviceAndQueues();
|
||||
void CreateSwapchain();
|
||||
void CreateSwapchainImageViews();
|
||||
void CreateCommandPool();
|
||||
void CreateCommandBuffer();
|
||||
|
||||
static Int GetPresentQueueFamilyIndex(
|
||||
const PhysicalDevice& physicalDevice, VkSurfaceKHR surface,
|
||||
|
||||
Reference in New Issue
Block a user