From ca9854d06a401b400275ec26e5aa4adc0d371e76 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 8 Apr 2022 13:36:07 +0200 Subject: [PATCH] Graphics/FrameGraph: Fix pipeline barrier from output to input --- src/Nazara/Graphics/FrameGraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Nazara/Graphics/FrameGraph.cpp b/src/Nazara/Graphics/FrameGraph.cpp index 7d771b4c3..bce73f7c3 100644 --- a/src/Nazara/Graphics/FrameGraph.cpp +++ b/src/Nazara/Graphics/FrameGraph.cpp @@ -297,8 +297,8 @@ namespace Nz if (barrier.layout != TextureLayout::Undefined) throw std::runtime_error("layout mismatch"); - barrier.access |= MemoryAccess::ColorRead | MemoryAccess::ColorWrite; - barrier.stages |= PipelineStage::ColorOutput; + barrier.access |= MemoryAccess::ShaderRead; + barrier.stages |= PipelineStage::FragmentShader; barrier.layout = TextureLayout::ColorInput; } @@ -308,7 +308,7 @@ namespace Nz if (barrier.layout != TextureLayout::Undefined) throw std::runtime_error("layout mismatch"); - barrier.access |= MemoryAccess::ColorRead | MemoryAccess::ColorWrite; + barrier.access |= MemoryAccess::ColorWrite; barrier.stages |= PipelineStage::ColorOutput; barrier.layout = TextureLayout::ColorOutput; }