Added VulkanHandle

This commit is contained in:
Pasha Bibko
2025-11-26 21:28:04 +00:00
parent 0b15b55520
commit bca88e51ed
7 changed files with 57 additions and 34 deletions

View File

@@ -92,7 +92,7 @@ namespace PB::Renderer
*/
static bool RenderPass(GLFWwindow* window);
static void CreateNewRenderObject(Color color, Mesh mesh);
static void CreateNewRenderObject(Color color, const Mesh& mesh);
private:
// === Internal helper structs === //
@@ -141,9 +141,9 @@ namespace PB::Renderer
// === Vulkan init helpers === //
static bool IsDeviceSuitable(const VkPhysicalDevice& device);
static QueueFamilyIndices FindQueueFamilies(const VkPhysicalDevice& device);
static bool CheckDeviceExtensionSupport(const VkPhysicalDevice& device);
static bool IsDeviceSuitable(VulkanHandle device);
static QueueFamilyIndices FindQueueFamilies(VulkanHandle device);
static bool CheckDeviceExtensionSupport(VulkanHandle device);
static SwapChainSupportDetails QuerySwapChainSupport();
static VkSurfaceFormatKHR ChooseSurfaceFormat(const std::vector<VkSurfaceFormatKHR>& availableFormats);