Explorar el Código

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 hace 10 meses
padre
commit
d62f1104ae
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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());
                 Ptr<ParentPass> newRoot = azrtti_cast<ParentPass*>(m_passTree.m_rootPass->Recreate().get());
                 newRoot->SetRenderPipeline(this);
                 newRoot->SetRenderPipeline(this);
                 newRoot->m_flags.m_isPipelineRoot = true;
                 newRoot->m_flags.m_isPipelineRoot = true;
+                newRoot->SetDeviceIndex(m_passTree.m_rootPass->GetDeviceIndex());
                 newRoot->ManualPipelineBuildAndInitialize();
                 newRoot->ManualPipelineBuildAndInitialize();
 
 
                 // Validate the new root
                 // Validate the new root