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

27 lines
799 B
C++
Raw Normal View History

2021-05-06 17:02:10 +02:00
#pragma once
#include "MinimalEngine.h"
#include "RenderPass.h"
2024-06-09 12:20:04 +02:00
namespace Seele {
class DepthPrepass : public RenderPass {
public:
2023-10-24 15:01:09 +02:00
DepthPrepass(Gfx::PGraphics graphics, PScene scene);
2023-11-05 10:36:01 +01:00
DepthPrepass(DepthPrepass&&) = default;
DepthPrepass& operator=(DepthPrepass&&) = default;
virtual ~DepthPrepass();
2022-11-17 16:47:42 +01:00
virtual void beginFrame(const Component::Camera& cam) override;
2022-04-15 23:45:44 +02:00
virtual void render() override;
virtual void endFrame() override;
2021-05-06 17:02:10 +02:00
virtual void publishOutputs() override;
virtual void createRenderPass() override;
2024-06-09 12:20:04 +02:00
private:
2024-02-01 10:21:36 +01:00
Gfx::RenderTargetAttachment depthAttachment;
Gfx::RenderTargetAttachment visibilityAttachment;
2023-11-01 23:12:30 +01:00
Gfx::OPipelineLayout depthPrepassLayout;
2024-06-07 09:19:47 +02:00
Gfx::PShaderBuffer cullingBuffer;
2021-05-06 17:02:10 +02:00
};
DEFINE_REF(DepthPrepass)
} // namespace Seele