From 949573636d40c55f7a8ba5089a2da91b88f287ae Mon Sep 17 00:00:00 2001 From: SirLynix Date: Mon, 6 Nov 2023 19:16:53 +0100 Subject: [PATCH] Graphics: RegisterDebugDrawPipelinePass --- src/Nazara/Graphics/DebugDrawPipelinePass.cpp | 2 +- src/Nazara/Graphics/Graphics.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Nazara/Graphics/DebugDrawPipelinePass.cpp b/src/Nazara/Graphics/DebugDrawPipelinePass.cpp index f9dc471ea..75292f729 100644 --- a/src/Nazara/Graphics/DebugDrawPipelinePass.cpp +++ b/src/Nazara/Graphics/DebugDrawPipelinePass.cpp @@ -35,7 +35,7 @@ namespace Nz debugDrawPass.SetDepthStencilInput(inputOuputs.depthStencilInput); if (inputOuputs.depthStencilOutput != InvalidAttachmentIndex) - debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilInput); + debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilOutput); debugDrawPass.SetExecutionCallback([&] { diff --git a/src/Nazara/Graphics/Graphics.cpp b/src/Nazara/Graphics/Graphics.cpp index 980bba5af..37d888166 100644 --- a/src/Nazara/Graphics/Graphics.cpp +++ b/src/Nazara/Graphics/Graphics.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -469,6 +470,7 @@ namespace Nz void Graphics::RegisterPipelinePasses() { m_pipelinePassRegistry.RegisterPass("Depth", {}, {}); + m_pipelinePassRegistry.RegisterPass("DebugDraw", { "Input" }, { "Output" }); m_pipelinePassRegistry.RegisterPass("Forward", {}, { "Output" }); m_pipelinePassRegistry.RegisterPass("PostProcess", { "Input" }, { "Output" }); }