Better structure again (whoohoo)!

This commit is contained in:
2026-02-22 17:42:21 +00:00
parent 864c0247bb
commit d435be97e2
8 changed files with 23 additions and 7 deletions

View File

@@ -40,6 +40,11 @@ class CveSwapChain {
VkResult acquireNextImage(uint32_t *imageIndex);
VkResult submitCommandBuffers(const VkCommandBuffer *buffers, uint32_t *imageIndex);
bool compareSwapFormats(const CveSwapChain& swapChain) const {
return swapChain.swapChainDepthFormat == swapChainDepthFormat &&
swapChain.swapChainImageFormat == swapChainImageFormat;
};
private:
void init();
void createSwapChain();
@@ -57,6 +62,7 @@ class CveSwapChain {
VkExtent2D chooseSwapExtent(const VkSurfaceCapabilitiesKHR &capabilities);
VkFormat swapChainImageFormat;
VkFormat swapChainDepthFormat;
VkExtent2D swapChainExtent;
std::vector<VkFramebuffer> swapChainFramebuffers;