forked from Dynamitos/Seele
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
#pragma once
|
|||
|
|
#include "MinimalEngine.h"
|
||
|
|
#include "Graphics/GraphicsResources.h"
|
||
|
|
|
||
|
|
namespace Seele
|
||
|
|
{
|
||
|
|
DECLARE_REF(ViewFrame)
|
||
|
|
|
||
|
|
class RenderGraphResources
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
RenderGraphResources();
|
||
|
|
~RenderGraphResources();
|
||
|
|
Gfx::PRenderTargetAttachment requestRenderTarget(const std::string& outputName);
|
||
|
|
Gfx::PTexture requestTexture(const std::string& outputName);
|
||
|
|
Gfx::PStructuredBuffer requestBuffer(const std::string& outputName);
|
||
|
|
Gfx::PUniformBuffer requestUniform(const std::string& outputName);
|
||
|
|
void registerRenderPassOutput(const std::string& outputName, Gfx::PRenderTargetAttachment attachment);
|
||
|
|
void registerTextureOutput(const std::string& outputName, Gfx::PTexture buffer);
|
||
|
|
void registerBufferOutput(const std::string& outputName, Gfx::PStructuredBuffer buffer);
|
||
|
|
void registerUniformOutput(const std::string& outputName, Gfx::PUniformBuffer buffer);
|
||
|
|
protected:
|
||
|
|
Map<std::string, Gfx::PRenderTargetAttachment> registeredAttachments;
|
||
|
|
Map<std::string, Gfx::PTexture> registeredTextures;
|
||
|
|
Map<std::string, Gfx::PStructuredBuffer> registeredBuffers;
|
||
|
|
Map<std::string, Gfx::PUniformBuffer> registeredUniforms;
|
||
|
|
};
|
||
|
|
DEFINE_REF(RenderGraphResources)
|
||
|
|
} // namespace Seele
|