Graphics/FramePass: Add SetReadInput method

This commit is contained in:
Jérôme Leclercq
2021-12-13 23:44:34 +01:00
parent dfa2a0040a
commit 90ab0e9438
4 changed files with 17 additions and 13 deletions

View File

@@ -658,7 +658,7 @@ namespace Nz
std::vector<RenderPass::SubpassDescription> subpassesDesc;
std::vector<RenderPass::SubpassDependency> subpassesDeps;
auto RegisterColorInput = [&](const FramePass::Input& input, PhysicalPassData::Subpass& subpass)
auto RegisterColorInputRead = [&](const FramePass::Input& input, PhysicalPassData::Subpass& subpass)
{
std::size_t textureId = Retrieve(m_pending.attachmentToTextures, input.attachmentId);
@@ -769,7 +769,10 @@ namespace Nz
colorAttachments.reserve(subpassOutputs.size());
for (const auto& input : subpassInputs)
RegisterColorInput(input, subpass);
{
if (input.doesRead)
RegisterColorInputRead(input, subpass);
}
for (const auto& output : subpassOutputs)
{