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

27 lines
870 B
C++
Raw Normal View History

2024-06-07 21:55:22 +02:00
#pragma once
2024-07-10 21:07:10 +02:00
#include "Graphics/Graphics.h"
2024-06-07 21:55:22 +02:00
#include "RenderPass.h"
2024-06-09 12:20:04 +02:00
namespace Seele {
class RayTracingPass : public RenderPass {
public:
2024-06-09 10:44:24 +02:00
RayTracingPass(Gfx::PGraphics graphics, PScene scene);
RayTracingPass(RayTracingPass&& other) = default;
RayTracingPass& operator=(RayTracingPass&& other) = default;
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-07-10 21:07:10 +02:00
Gfx::ODescriptorLayout paramsLayout;
Gfx::OPipelineLayout pipelineLayout;
Gfx::OTexture2D texture;
2024-07-12 13:33:52 +02:00
Gfx::ORayGenShader rayGen;
Gfx::OClosestHitShader closestHit;
Gfx::OMissShader miss;
Gfx::OShaderBuffer directionBuffer;
Gfx::OShaderBuffer originBuffer;
2024-06-07 21:55:22 +02:00
};
2024-06-09 12:20:04 +02:00
} // namespace Seele