Merged stabilization/2106 -> development (resolved merge conflicts).
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
@@ -333,22 +333,16 @@ namespace AZ
|
||||
m_passSrg->Compile();
|
||||
m_passSrgChanged = false;
|
||||
}
|
||||
|
||||
// Read preview output
|
||||
if (m_readback)
|
||||
{
|
||||
m_readback->FrameBegin(params);
|
||||
m_readback = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
bool ImageAttachmentPreviewPass::ReadbackOutput(AZStd::shared_ptr<AttachmentReadback> readback)
|
||||
{
|
||||
if (m_outputColorAttachment)
|
||||
{
|
||||
m_readback = readback;
|
||||
m_readbackOption = PassAttachmentReadbackOption::Output;
|
||||
m_attachmentReadback = readback;
|
||||
AZStd::string readbackName = AZStd::string::format("%s_%s", m_outputColorAttachment->GetAttachmentId().GetCStr(), GetName().GetCStr());
|
||||
return m_readback->ReadPassAttachment(m_outputColorAttachment.get(), AZ::Name(readbackName));
|
||||
return m_attachmentReadback->ReadPassAttachment(m_outputColorAttachment.get(), AZ::Name(readbackName));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user