lots of updates
This commit is contained in:
@@ -32,6 +32,7 @@ DECLARE_VULKAN_COMMAND(Begin)
|
||||
{
|
||||
VkRenderingInfo stRenderingInfo = {};
|
||||
CUtlVector<VkRenderingAttachmentInfo> attachments = {};
|
||||
VkRenderingAttachmentInfo depthAttachment = {};
|
||||
for (auto i: images)
|
||||
{
|
||||
VkRenderingAttachmentInfo a = {};
|
||||
@@ -46,6 +47,16 @@ DECLARE_VULKAN_COMMAND(Begin)
|
||||
a.imageView = ((CVkImage*)VulkanGetObject(i.m_stImage, iCurrentFrame))->m_imageView;
|
||||
attachments.AppendTail(a);
|
||||
}
|
||||
if (bDepthEnabled)
|
||||
{
|
||||
depthAttachment.sType = VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO;
|
||||
depthAttachment.imageLayout = VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL;
|
||||
depthAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
|
||||
depthAttachment.clearValue.depthStencil.depth = stDepthImage.m_fClearDepth;
|
||||
depthAttachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
||||
depthAttachment.imageView = ((CVkImage*)VulkanGetObject(stDepthImage.m_stImage, iCurrentFrame))->m_imageView;
|
||||
stRenderingInfo.pDepthAttachment = &depthAttachment;
|
||||
}
|
||||
|
||||
stRenderingInfo.sType = VK_STRUCTURE_TYPE_RENDERING_INFO;
|
||||
stRenderingInfo.layerCount = 1;
|
||||
|
||||
Reference in New Issue
Block a user