Explorar o código

Fixed an issue where the behavior in the MainPipeline and DeferredPipeline was inconsistent. I had to enable modifications on the DeferredPipeline. I suspect the issue was somehow introduced or revealed in https://github.com/o3de/o3de/pull/12700 but I'm not sure how exactly. Anyway, it's working as expected again.

Signed-off-by: santorac <[email protected]>
santorac %!s(int64=2) %!d(string=hai) anos
pai
achega
67380d0cf2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Gem/Code/Source/MeshExampleComponent.cpp

+ 1 - 0
Gem/Code/Source/MeshExampleComponent.cpp

@@ -105,6 +105,7 @@ namespace AtomSampleViewer
         pipelineDesc.m_name = "DeferredPipeline";
         pipelineDesc.m_rootPassTemplate = "DeferredPipelineTemplate";
         pipelineDesc.m_renderSettings.m_multisampleState.m_samples = 4;
+        pipelineDesc.m_allowModification = true; // MainPipeline allows modifications, so the DeferredPipeline must as well, to get a consistent result.
 
         m_deferredPipeline = AZ::RPI::RenderPipeline::CreateRenderPipelineForWindow(pipelineDesc, *m_windowContext);
     }