瀏覽代碼

Fix for development rebase.

Signed-off-by: Joerg H. Mueller <[email protected]>
Joerg H. Mueller 1 年之前
父節點
當前提交
c28dfee6ad

+ 1 - 1
Gem/Code/Source/RHI/IndirectRenderingExampleComponent.h

@@ -196,7 +196,7 @@ namespace AtomSampleViewer
 
         AZ::RHI::Ptr<AZ::RHI::IndirectBufferWriter> m_indirectDispatchWriter;
 
-        AZ::RHI::MultiDeviceDrawIndirect m_drawIndirect;
+        AZ::RHI::DrawIndirect m_drawIndirect;
         AZ::RHI::CopyBufferDescriptor m_copyDescriptor;
 
         ImGuiSidebar m_imguiSidebar;

+ 2 - 2
Gem/Code/Source/RHI/MultiGPUExampleComponent.cpp

@@ -546,7 +546,7 @@ namespace AtomSampleViewer
                     descriptor.m_attachmentId = m_imageAttachmentIds[0];
                     descriptor.m_loadStoreAction.m_loadAction = RHI::AttachmentLoadAction::Load;
                     descriptor.m_loadStoreAction.m_storeAction = RHI::AttachmentStoreAction::DontCare;
-                    frameGraph.UseShaderAttachment(descriptor, RHI::ScopeAttachmentAccess::Read);
+                    frameGraph.UseShaderAttachment(descriptor, RHI::ScopeAttachmentAccess::Read, RHI::ScopeAttachmentStage::FragmentShader);
                 }
 
                 {
@@ -554,7 +554,7 @@ namespace AtomSampleViewer
                     descriptor.m_attachmentId = m_imageAttachmentIds[1];
                     descriptor.m_loadStoreAction.m_loadAction = RHI::AttachmentLoadAction::Load;
                     descriptor.m_loadStoreAction.m_storeAction = RHI::AttachmentStoreAction::DontCare;
-                    frameGraph.UseShaderAttachment(descriptor, RHI::ScopeAttachmentAccess::Read);
+                    frameGraph.UseShaderAttachment(descriptor, RHI::ScopeAttachmentAccess::Read, RHI::ScopeAttachmentStage::FragmentShader);
                 }
 
                 {