Finished basic Vulkan setup
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user