修改renderpass默认将depth缓冲区在最后保留下来。
This commit is contained in:
parent
b8e332a109
commit
c5f971b660
@ -113,7 +113,7 @@ bool CreateAttachmentDescription(List<VkAttachmentDescription> &desc_list,const
|
|||||||
|
|
||||||
desc->finalLayout = depth_final_layout;
|
desc->finalLayout = depth_final_layout;
|
||||||
desc->format = depth_format;
|
desc->format = depth_format;
|
||||||
desc->storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; //深度缓冲区不用于显示也不用于下一帧,所以结束后不用保存
|
desc->storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user