Quellcode durchsuchen

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

Signed-off-by: rgba16f <[email protected]>
rgba16f vor 2 Jahren
Ursprung
Commit
1998a04ecb
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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/Factory.h>
 #include <Atom/RHI/RHISystemInterface.h>
 #include <Atom/RHI/RHISystemInterface.h>
+#include <Atom/RHI/RHIMemoryStatisticsInterface.h>
 #include <Atom/RHI/RHIUtils.h>
 #include <Atom/RHI/RHIUtils.h>
 #include <Atom/RHI.Reflect/AliasedHeapEnums.h>
 #include <Atom/RHI.Reflect/AliasedHeapEnums.h>
 
 
@@ -1180,7 +1181,7 @@ namespace AtomSampleViewer
 
 
     void SampleComponentManager::ShowTransientAttachmentProfilerWindow()
     void SampleComponentManager::ShowTransientAttachmentProfilerWindow()
     {
     {
-        auto* transientStats = AZ::RHI::RHISystemInterface::Get()->GetTransientAttachmentStatistics();
+        auto* transientStats = AZ::RHI::RHIMemoryStatisticsInterface::Get()->GetTransientAttachmentStatistics();
         if (transientStats)
         if (transientStats)
         {
         {
             m_showTransientAttachmentProfiler = m_imguiTransientAttachmentProfiler.Draw(*transientStats);
             m_showTransientAttachmentProfiler = m_imguiTransientAttachmentProfiler.Draw(*transientStats);