Finished basic Vulkan setup

This commit is contained in:
Pasha Bibko
2025-11-16 17:06:24 +00:00
parent 8ca07fc723
commit 038396338e
6 changed files with 125 additions and 14 deletions

View File

@@ -25,6 +25,9 @@ namespace PB::Renderer
class VulkanManager
{
public:
VulkanManager() = delete;
~VulkanManager() = delete;
static bool InitAll(GLFWwindow* window);
static std::optional<VkInstance> Init();
static bool Cleanup();
@@ -38,6 +41,9 @@ namespace PB::Renderer
static bool CreateFramebuffer();
static bool CreateGraphicsPipeline();
static bool CreateCommandBuffers();
static void CreateSemaphores();
static bool RenderPass(GLFWwindow* window);
private:
static bool IsDeviceSuitable(VkPhysicalDevice device, VkSurfaceKHR surface);
@@ -76,5 +82,8 @@ namespace PB::Renderer
static VkCommandPool s_CommandPool;
static std::vector<VkCommandBuffer> s_CommandBuffers;
static VkSemaphore s_ImageAvailableSemaphore;
static VkSemaphore s_RenderFinishedSemaphore;
};
}