Create image views and render passes

This commit is contained in:
Pasha Bibko
2025-11-15 22:54:04 +00:00
parent b2f33a76fb
commit c3aad0ebd1
2 changed files with 99 additions and 7 deletions

View File

@@ -33,6 +33,8 @@ namespace PB::Renderer
static bool PickPhysicalDevice();
static bool CreateLogicalDevice();
static bool CreateSwapChain(GLFWwindow* window);
static bool CreateImageViews();
static bool CreateRenderPass();
private:
static bool IsDeviceSuitable(VkPhysicalDevice device, VkSurfaceKHR surface);
@@ -60,5 +62,7 @@ namespace PB::Renderer
static std::vector<VkImageView> s_SwapChainImageViews;
static VkFormat s_SwapChainImageFormat;
static VkExtent2D s_SwapChainExtent;
static VkRenderPass s_RenderPass;
};
}