summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-09 02:13:00 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-09 02:13:00 +0000
commitc2a16b234fbd087e3f076895f9ce6873ef7b3e29 (patch)
tree984f37a256e0a2d713ddc8175106151bfa6156ad /Graphics/GraphicsEngineVulkan
parentD3D12 backend: fixed load op for depth-stencil attachments (diff)
downloadDiligentCore-c2a16b234fbd087e3f076895f9ce6873ef7b3e29.tar.gz
DiligentCore-c2a16b234fbd087e3f076895f9ce6873ef7b3e29.zip
Vk backend: improved handling of RESOURCE_STATE_RESOLVE_DEST attachment state
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/RenderPassVkImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/RenderPassVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/RenderPassVkImpl.cpp
index 8858fb50..c010e460 100644
--- a/Graphics/GraphicsEngineVulkan/src/RenderPassVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/RenderPassVkImpl.cpp
@@ -58,8 +58,8 @@ RenderPassVkImpl::RenderPassVkImpl(IReferenceCounters* pRefCounters,
vkAttachment.storeOp = AttachmentStoreOpToVkAttachmentStoreOp(Attachment.StoreOp);
vkAttachment.stencilLoadOp = AttachmentLoadOpToVkAttachmentLoadOp(Attachment.StencilLoadOp);
vkAttachment.stencilStoreOp = AttachmentStoreOpToVkAttachmentStoreOp(Attachment.StencilStoreOp);
- vkAttachment.initialLayout = ResourceStateToVkImageLayout(Attachment.InitialState);
- vkAttachment.finalLayout = ResourceStateToVkImageLayout(Attachment.FinalState);
+ vkAttachment.initialLayout = ResourceStateToVkImageLayout(Attachment.InitialState, /*IsInsideRenderPass = */ false);
+ vkAttachment.finalLayout = ResourceStateToVkImageLayout(Attachment.FinalState, /*IsInsideRenderPass = */ true);
}
RenderPassCI.attachmentCount = Desc.AttachmentCount;
RenderPassCI.pAttachments = vkAttachments.data();