Browse Source

Build fix for ASV, use the new RHIMemoryStatisticsInterface to get the transient attachment stats (#609)

Signed-off-by: rgba16f <[email protected]>
rgba16f 2 năm trước cách đây
mục cha
commit
1998a04ecb
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Gem/Code/Source/SampleComponentManager.cpp

+ 2 - 1
Gem/Code/Source/SampleComponentManager.cpp

@@ -34,6 +34,7 @@
 
 #include <Atom/RHI/Factory.h>
 #include <Atom/RHI/RHISystemInterface.h>
+#include <Atom/RHI/RHIMemoryStatisticsInterface.h>
 #include <Atom/RHI/RHIUtils.h>
 #include <Atom/RHI.Reflect/AliasedHeapEnums.h>
 
@@ -1180,7 +1181,7 @@ namespace AtomSampleViewer
 
     void SampleComponentManager::ShowTransientAttachmentProfilerWindow()
     {
-        auto* transientStats = AZ::RHI::RHISystemInterface::Get()->GetTransientAttachmentStatistics();
+        auto* transientStats = AZ::RHI::RHIMemoryStatisticsInterface::Get()->GetTransientAttachmentStatistics();
         if (transientStats)
         {
             m_showTransientAttachmentProfiler = m_imguiTransientAttachmentProfiler.Draw(*transientStats);