use image_count instead of color_count in Swapchain

This commit is contained in:
2024-11-11 01:18:28 +08:00
parent adc3c5bd81
commit 9f37373631
18 changed files with 106 additions and 89 deletions

View File

@@ -11,14 +11,14 @@ class Framebuffer
VkExtent2D extent;
uint32_t attachment_count;
uint32_t color_count;
uint32_t image_count;
bool has_depth;
private:
friend class TextureManager;
Framebuffer(VkDevice,VkFramebuffer,const VkExtent2D &,VkRenderPass,uint32_t color_count,bool depth);
Framebuffer(VkDevice,VkFramebuffer,const VkExtent2D &,VkRenderPass,uint32_t image_count,bool depth);
public:
@@ -32,7 +32,7 @@ public:
const VkExtent2D & GetExtent ()const{return extent;}
const uint32_t GetAttachmentCount ()const{return attachment_count;} ///<获取渲染目标成分数量
const uint32_t GetColorCount ()const{return color_count;} ///<取得颜色成分数量
const uint32_t GetColorCount ()const{return image_count;} ///<取得颜色成分数量
const bool HasDepth ()const{return has_depth;} ///<是否包含深度成分
};//class Framebuffer