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

35 lines
1.5 KiB
C++
Raw Normal View History

2022-11-17 16:47:42 +01:00
#pragma once
2024-06-09 12:20:04 +02:00
#include "Graphics/Buffer.h"
2024-06-15 21:47:20 +02:00
#include "Graphics/Query.h"
2023-10-26 18:37:29 +02:00
#include "Graphics/RenderTarget.h"
#include "Graphics/Texture.h"
2024-06-09 12:20:04 +02:00
#include "MinimalEngine.h"
2022-11-17 16:47:42 +01:00
2024-06-09 12:20:04 +02:00
namespace Seele {
2022-11-17 16:47:42 +01:00
DECLARE_REF(ViewFrame)
2024-06-09 12:20:04 +02:00
class RenderGraphResources {
public:
2022-11-17 16:47:42 +01:00
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-06-15 21:47:20 +02:00
Gfx::PPipelineStatisticsQuery requestQuery(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);
2024-06-15 21:47:20 +02:00
void registerQueryOutput(const std::string& outputName, Gfx::PPipelineStatisticsQuery query);
2024-06-09 12:20:04 +02:00
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;
2024-06-15 21:47:20 +02:00
Map<std::string, Gfx::PPipelineStatisticsQuery> registeredQueries;
2022-11-17 16:47:42 +01:00
};
DEFINE_REF(RenderGraphResources)
} // namespace Seele