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

@@ -5,6 +5,17 @@
#include<hgl/graph/VKMaterial.h>
#include<hgl/graph/VKMaterialInstance.h>
VK_NAMESPACE_BEGIN
RenderPass::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;
vkGetRenderAreaGranularity(device,render_pass,&granularity);
}
RenderPass::~RenderPass()
{
pipeline_list.Clear();