Cleaned up code

This commit is contained in:
Pasha Bibko
2025-11-16 17:25:03 +00:00
parent f4e77e30a8
commit e887b2b393
4 changed files with 57 additions and 42 deletions

View File

@@ -43,12 +43,12 @@ namespace PB::Renderer
static bool CreateCommandBuffers();
static void CreateSemaphores();
static bool RenderPass(GLFWwindow* window);
static bool RenderPass();
private:
static bool IsDeviceSuitable(VkPhysicalDevice device, VkSurfaceKHR surface);
static QueueFamilyIndices FindQueueFamilies(VkPhysicalDevice device, VkSurfaceKHR surface);
static bool CheckDeviceExtensionSupport(VkPhysicalDevice device);
static bool IsDeviceSuitable(const VkPhysicalDevice& device);
static QueueFamilyIndices FindQueueFamilies(const VkPhysicalDevice& device);
static bool CheckDeviceExtensionSupport(const VkPhysicalDevice& device);
static SwapChainSupportDetails QuerySwapChainSupport();
static VkSurfaceFormatKHR ChooseSurfaceFormat(const std::vector<VkSurfaceFormatKHR>& availableFormats);