Creating depth buffer for Vulkan

This commit is contained in:
2022-03-01 23:24:55 -08:00
parent 00eeb8bcb4
commit adfaf21cda
3 changed files with 94 additions and 1 deletions

View File

@@ -70,6 +70,10 @@ public:
VkExtent2D m_swapChainExtent;
std::vector<VkImageView> m_swapChainImageViews;
std::vector<VkFramebuffer> m_swapChainFramebuffers;
VkFormat m_depthImageFormat;
VkImage m_depthImage;
VmaAllocation m_depthImageAllocation;
VkImageView m_depthImageView;
VkSemaphore m_imageAvailableSemaphore;
VkSemaphore m_renderFinishedSemaphore;