2023-01-29 18:58:59 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "RenderPass.h"
|
2023-10-26 18:37:29 +02:00
|
|
|
#include "Graphics/Resources.h"
|
2023-01-29 18:58:59 +01:00
|
|
|
#include "Component/Skybox.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
DECLARE_REF(CameraActor)
|
|
|
|
|
DECLARE_REF(Scene)
|
|
|
|
|
DECLARE_REF(Viewport)
|
2023-10-24 15:01:09 +02:00
|
|
|
class SkyboxRenderPass : public RenderPass
|
2023-01-29 18:58:59 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2023-10-26 18:37:29 +02:00
|
|
|
SkyboxRenderPass(Gfx::PGraphics graphics, PScene scene);
|
2023-01-29 18:58:59 +01:00
|
|
|
virtual ~SkyboxRenderPass();
|
|
|
|
|
virtual void beginFrame(const Component::Camera& cam) override;
|
|
|
|
|
virtual void render() override;
|
|
|
|
|
virtual void endFrame() override;
|
|
|
|
|
virtual void publishOutputs() override;
|
|
|
|
|
virtual void createRenderPass() override;
|
|
|
|
|
private:
|
|
|
|
|
Gfx::PVertexBuffer cubeBuffer;
|
|
|
|
|
Gfx::PUniformBuffer viewParamsBuffer;
|
|
|
|
|
Gfx::PDescriptorLayout descriptorLayout;
|
|
|
|
|
Gfx::PDescriptorSet descriptorSet;
|
|
|
|
|
Gfx::PPipelineLayout pipelineLayout;
|
|
|
|
|
Gfx::PGraphicsPipeline pipeline;
|
2023-02-01 22:13:04 +01:00
|
|
|
Gfx::PSamplerState skyboxSampler;
|
2023-10-26 18:37:29 +02:00
|
|
|
Component::Skybox skybox;
|
2023-01-29 18:58:59 +01:00
|
|
|
};
|
|
|
|
|
DEFINE_REF(SkyboxRenderPass)
|
|
|
|
|
} // namespace Seele
|