Adding basic depth prepass

This commit is contained in:
Dynamitos
2021-05-06 17:02:10 +02:00
parent 4a078bd24c
commit 0cf13bcff5
52 changed files with 880 additions and 155 deletions
@@ -0,0 +1,21 @@
#pragma once
#include "MinimalEngine.h"
#include "Graphics/GraphicsResources.h"
#include "RenderPass.h"
namespace Seele
{
class RenderGraph
{
public:
RenderGraph();
~RenderGraph();
void setup();
Gfx::PRenderTargetAttachment requestRenderTarget(const std::string& outputName);
void registerRenderPassOutput(const std::string& ouputName, Gfx::PRenderTargetAttachment attachment);
private:
Map<std::string, Gfx::PRenderTargetAttachment> registeredAttachments;
List<PRenderPass> renderPasses;
};
DEFINE_REF(RenderGraph)
} // namespace Seele