瀏覽代碼

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 年之前
父節點
當前提交
67380d0cf2
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);
     }