Better structure again (whoohoo)!
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user