Parcourir la source

Bugfix for the device index of root pass. (#18466)

This is necessary for the BRDFTexturePipeline to run on all devices when
the root pass gets recreated.

Signed-off-by: Joerg H. Mueller <[email protected]>
jhmueller-huawei il y a 8 mois
Parent
commit
d62f1104ae
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp

+ 1 - 0
Gems/Atom/RPI/Code/Source/RPI.Public/RenderPipeline.cpp

@@ -604,6 +604,7 @@ namespace AZ
                 Ptr<ParentPass> newRoot = azrtti_cast<ParentPass*>(m_passTree.m_rootPass->Recreate().get());
                 newRoot->SetRenderPipeline(this);
                 newRoot->m_flags.m_isPipelineRoot = true;
+                newRoot->SetDeviceIndex(m_passTree.m_rootPass->GetDeviceIndex());
                 newRoot->ManualPipelineBuildAndInitialize();
 
                 // Validate the new root