Browse Source

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 2 năm trước cách đây
mục cha
commit
67380d0cf2
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);
     }