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

35 lines
1.0 KiB
C++
Raw Normal View History

2023-01-21 18:43:21 +01:00
#pragma once
#include "Graphics/DebugVertex.h"
2024-01-26 09:58:01 +01:00
#include "Graphics/Pipeline.h"
2024-06-09 12:20:04 +02:00
#include "RenderPass.h"
#include "Scene/Scene.h"
2023-01-21 18:43:21 +01:00
2024-06-09 12:20:04 +02:00
namespace Seele {
2023-01-21 18:43:21 +01:00
DECLARE_REF(CameraActor)
DECLARE_REF(Scene)
DECLARE_REF(Viewport)
2024-06-09 12:20:04 +02:00
class DebugPass : public RenderPass {
public:
2023-11-05 10:36:01 +01:00
DebugPass(Gfx::PGraphics graphics, PScene scene);
DebugPass(DebugPass&&) = default;
DebugPass& operator=(DebugPass&&) = default;
2023-01-21 18:43:21 +01:00
virtual ~DebugPass();
virtual void beginFrame(const Component::Camera& cam) override;
virtual void render() override;
virtual void endFrame() override;
virtual void publishOutputs() override;
virtual void createRenderPass() override;
2024-06-09 12:20:04 +02:00
private:
2024-06-07 14:56:42 +02:00
Gfx::RenderTargetAttachment colorAttachment;
Gfx::RenderTargetAttachment depthAttachment;
2024-01-26 09:58:01 +01:00
Gfx::OVertexInput vertexInput;
2023-11-05 10:36:01 +01:00
Gfx::OVertexBuffer debugVertices;
2024-01-16 19:24:49 +01:00
Gfx::OVertexShader vertexShader;
Gfx::OFragmentShader fragmentShader;
Gfx::PGraphicsPipeline pipeline;
2024-04-19 18:23:36 +02:00
Gfx::OPipelineLayout pipelineLayout;
2023-01-21 18:43:21 +01:00
};
DEFINE_REF(DebugPass)
} // namespace Seele