Pipeline创建增加对多ColorAttachment支持
This commit is contained in:
parent
e8877ad3d6
commit
7f3a193676
@ -42,6 +42,7 @@ public:
|
|||||||
|
|
||||||
operator VkRenderPass(){return render_pass;}
|
operator VkRenderPass(){return render_pass;}
|
||||||
|
|
||||||
|
const uint GetColorCount()const{return color_formats.GetCount();}
|
||||||
const List<VkFormat> & GetColorFormat()const{return color_formats;}
|
const List<VkFormat> & GetColorFormat()const{return color_formats;}
|
||||||
const VkFormat GetDepthFormat()const{return depth_format;}
|
const VkFormat GetDepthFormat()const{return depth_format;}
|
||||||
};//class RenderPass
|
};//class RenderPass
|
||||||
|
@ -145,7 +145,7 @@ PipelineCreater::PipelineCreater(Device *dev,const Material *material,RenderPass
|
|||||||
cba.srcAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
cba.srcAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
||||||
cba.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
cba.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
||||||
|
|
||||||
colorBlendAttachments.Add(cba);
|
colorBlendAttachments.Add(cba,rp->GetColorCount()); //这个需要和subpass中的color attachment数量相等,所以添加多份
|
||||||
|
|
||||||
alpha_blend=false;
|
alpha_blend=false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user