2
0
Эх сурвалжийг харах

Do not add host buffers to FrameGraph

Signed-off-by: Martin Winter <[email protected]>
Martin Winter 7 сар өмнө
parent
commit
be7e07553e

+ 0 - 19
Gem/Code/Source/RHI/MultiGPUExampleComponent.cpp

@@ -634,15 +634,6 @@ namespace AtomSampleViewer
 
         const auto prepareFunction = [this]([[maybe_unused]] RHI::FrameGraphInterface frameGraph, [[maybe_unused]] ScopeData& scopeData)
         {
-            {
-                RHI::BufferScopeAttachmentDescriptor descriptor{};
-                descriptor.m_attachmentId = m_bufferAttachmentIds[1];
-                descriptor.m_bufferViewDescriptor = RHI::BufferViewDescriptor::CreateRaw(0, static_cast<uint32_t>(m_stagingBufferToGPU->GetDescriptor().m_byteCount));
-                descriptor.m_loadStoreAction.m_loadAction = RHI::AttachmentLoadAction::Load;
-                descriptor.m_loadStoreAction.m_storeAction = RHI::AttachmentStoreAction::DontCare;
-                frameGraph.UseCopyAttachment(descriptor, RHI::ScopeAttachmentAccess::Read);
-            }
-
             {
                 RHI::ImageScopeAttachmentDescriptor descriptor{};
                 descriptor.m_attachmentId = m_imageAttachmentIds[1];
@@ -684,16 +675,6 @@ namespace AtomSampleViewer
 
         const auto prepareFunction = [this]([[maybe_unused]] RHI::FrameGraphInterface frameGraph, [[maybe_unused]] ScopeData& scopeData)
         {
-            {
-                RHI::BufferScopeAttachmentDescriptor descriptor{};
-                descriptor.m_attachmentId = m_bufferAttachmentIds[0];
-                descriptor.m_bufferViewDescriptor =
-                    RHI::BufferViewDescriptor::CreateRaw(0, static_cast<uint32_t>(m_stagingBufferToCPU->GetDescriptor().m_byteCount));
-                descriptor.m_loadStoreAction.m_loadAction = RHI::AttachmentLoadAction::DontCare;
-                descriptor.m_loadStoreAction.m_storeAction = RHI::AttachmentStoreAction::Store;
-                frameGraph.UseCopyAttachment(descriptor, RHI::ScopeAttachmentAccess::Write);
-            }
-
             {
                 RHI::ImageScopeAttachmentDescriptor descriptor{};
                 descriptor.m_attachmentId = m_imageAttachmentIds[1];