Graphics: RegisterDebugDrawPipelinePass

This commit is contained in:
SirLynix 2023-11-06 19:16:53 +01:00 committed by Jérôme Leclercq
parent db58921cc4
commit 949573636d
2 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace Nz
debugDrawPass.SetDepthStencilInput(inputOuputs.depthStencilInput);
if (inputOuputs.depthStencilOutput != InvalidAttachmentIndex)
debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilInput);
debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilOutput);
debugDrawPass.SetExecutionCallback([&]
{

View File

@ -5,6 +5,7 @@
#include <Nazara/Graphics/Graphics.hpp>
#include <Nazara/Core/AppFilesystemComponent.hpp>
#include <Nazara/Core/CommandLineParameters.hpp>
#include <Nazara/Graphics/DebugDrawPipelinePass.hpp>
#include <Nazara/Graphics/DepthPipelinePass.hpp>
#include <Nazara/Graphics/ForwardPipelinePass.hpp>
#include <Nazara/Graphics/GuillotineTextureAtlas.hpp>
@ -469,6 +470,7 @@ namespace Nz
void Graphics::RegisterPipelinePasses()
{
m_pipelinePassRegistry.RegisterPass<DepthPipelinePass>("Depth", {}, {});
m_pipelinePassRegistry.RegisterPass<DebugDrawPipelinePass>("DebugDraw", { "Input" }, { "Output" });
m_pipelinePassRegistry.RegisterPass<ForwardPipelinePass>("Forward", {}, { "Output" });
m_pipelinePassRegistry.RegisterPass<PostProcessPipelinePass>("PostProcess", { "Input" }, { "Output" });
}