Graphics: RegisterDebugDrawPipelinePass
This commit is contained in:
parent
db58921cc4
commit
949573636d
|
|
@ -35,7 +35,7 @@ namespace Nz
|
||||||
debugDrawPass.SetDepthStencilInput(inputOuputs.depthStencilInput);
|
debugDrawPass.SetDepthStencilInput(inputOuputs.depthStencilInput);
|
||||||
|
|
||||||
if (inputOuputs.depthStencilOutput != InvalidAttachmentIndex)
|
if (inputOuputs.depthStencilOutput != InvalidAttachmentIndex)
|
||||||
debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilInput);
|
debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilOutput);
|
||||||
|
|
||||||
debugDrawPass.SetExecutionCallback([&]
|
debugDrawPass.SetExecutionCallback([&]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
#include <Nazara/Graphics/Graphics.hpp>
|
#include <Nazara/Graphics/Graphics.hpp>
|
||||||
#include <Nazara/Core/AppFilesystemComponent.hpp>
|
#include <Nazara/Core/AppFilesystemComponent.hpp>
|
||||||
#include <Nazara/Core/CommandLineParameters.hpp>
|
#include <Nazara/Core/CommandLineParameters.hpp>
|
||||||
|
#include <Nazara/Graphics/DebugDrawPipelinePass.hpp>
|
||||||
#include <Nazara/Graphics/DepthPipelinePass.hpp>
|
#include <Nazara/Graphics/DepthPipelinePass.hpp>
|
||||||
#include <Nazara/Graphics/ForwardPipelinePass.hpp>
|
#include <Nazara/Graphics/ForwardPipelinePass.hpp>
|
||||||
#include <Nazara/Graphics/GuillotineTextureAtlas.hpp>
|
#include <Nazara/Graphics/GuillotineTextureAtlas.hpp>
|
||||||
|
|
@ -469,6 +470,7 @@ namespace Nz
|
||||||
void Graphics::RegisterPipelinePasses()
|
void Graphics::RegisterPipelinePasses()
|
||||||
{
|
{
|
||||||
m_pipelinePassRegistry.RegisterPass<DepthPipelinePass>("Depth", {}, {});
|
m_pipelinePassRegistry.RegisterPass<DepthPipelinePass>("Depth", {}, {});
|
||||||
|
m_pipelinePassRegistry.RegisterPass<DebugDrawPipelinePass>("DebugDraw", { "Input" }, { "Output" });
|
||||||
m_pipelinePassRegistry.RegisterPass<ForwardPipelinePass>("Forward", {}, { "Output" });
|
m_pipelinePassRegistry.RegisterPass<ForwardPipelinePass>("Forward", {}, { "Output" });
|
||||||
m_pipelinePassRegistry.RegisterPass<PostProcessPipelinePass>("PostProcess", { "Input" }, { "Output" });
|
m_pipelinePassRegistry.RegisterPass<PostProcessPipelinePass>("PostProcess", { "Input" }, { "Output" });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue