Files
Seele/src/Engine/Graphics/RenderPass/RenderGraphResources.h
T

31 lines
1.2 KiB
C++
Raw Normal View History

2022-11-17 16:47:42 +01:00
#pragma once
#include "MinimalEngine.h"
2023-10-26 18:37:29 +02:00
#include "Graphics/RenderTarget.h"
#include "Graphics/Texture.h"
#include "Graphics/Buffer.h"
2022-11-17 16:47:42 +01:00
namespace Seele
{
DECLARE_REF(ViewFrame)
class RenderGraphResources
{
public:
RenderGraphResources();
~RenderGraphResources();
2024-02-01 10:21:36 +01:00
Gfx::RenderTargetAttachment requestRenderTarget(const std::string& outputName);
2022-11-17 16:47:42 +01:00
Gfx::PTexture requestTexture(const std::string& outputName);
2023-08-28 21:23:13 +02:00
Gfx::PShaderBuffer requestBuffer(const std::string& outputName);
2022-11-17 16:47:42 +01:00
Gfx::PUniformBuffer requestUniform(const std::string& outputName);
2024-02-01 10:21:36 +01:00
void registerRenderPassOutput(const std::string& outputName, Gfx::RenderTargetAttachment attachment);
2022-11-17 16:47:42 +01:00
void registerTextureOutput(const std::string& outputName, Gfx::PTexture buffer);
2023-08-28 21:23:13 +02:00
void registerBufferOutput(const std::string& outputName, Gfx::PShaderBuffer buffer);
2022-11-17 16:47:42 +01:00
void registerUniformOutput(const std::string& outputName, Gfx::PUniformBuffer buffer);
protected:
2024-02-01 10:21:36 +01:00
Map<std::string, Gfx::RenderTargetAttachment> registeredAttachments;
2022-11-17 16:47:42 +01:00
Map<std::string, Gfx::PTexture> registeredTextures;
2023-08-28 21:23:13 +02:00
Map<std::string, Gfx::PShaderBuffer> registeredBuffers;
2022-11-17 16:47:42 +01:00
Map<std::string, Gfx::PUniformBuffer> registeredUniforms;
};
DEFINE_REF(RenderGraphResources)
} // namespace Seele