added GetGranularity at RenderPass

This commit is contained in:
2021-09-29 20:53:03 +08:00
parent 3bf1f53d4f
commit 1217edccf3
2 changed files with 16 additions and 8 deletions

View File

@@ -19,6 +19,8 @@ class RenderPass
List<VkFormat> color_formats;
VkFormat depth_format;
VkExtent2D granularity;
protected:
ObjectList<Pipeline> pipeline_list;
@@ -27,14 +29,7 @@ private:
friend class DeviceRenderPassManage;
RenderPass(VkDevice d,VkPipelineCache pc,VkRenderPass rp,const List<VkFormat> &cf,VkFormat df)
{
device=d;
pipeline_cache=pc;
render_pass=rp;
color_formats=cf;
depth_format=df;
}
RenderPass(VkDevice d,VkPipelineCache pc,VkRenderPass rp,const List<VkFormat> &cf,VkFormat df);
public:
@@ -53,6 +48,8 @@ public:
}
const VkFormat GetDepthFormat()const{return depth_format;}
const VkExtent2D & GetGranularity()const{return granularity;}
public:
Pipeline *CreatePipeline(const Material *, PipelineData *);