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

40 lines
1.0 KiB
C++
Raw Normal View History

2020-06-02 11:46:18 +02:00
#pragma once
#include "MinimalEngine.h"
#include "MeshProcessor.h"
2020-06-02 11:46:18 +02:00
namespace Seele
{
class BasePassMeshProcessor : public MeshProcessor
{
public:
BasePassMeshProcessor(const PScene scene, Gfx::PGraphics graphics, uint8 translucentBasePass);
virtual ~BasePassMeshProcessor();
virtual void addMeshBatch(
const MeshBatch& batch,
const PPrimitiveComponent primitiveComponent,
const Gfx::PRenderPass renderPass,
int32 staticMeshId = -1) override;
Array<Gfx::PRenderCommand> getRenderCommands();
void clearCommands();
private:
Array<Gfx::PRenderCommand> renderCommands;
uint8 translucentBasePass;
};
DEFINE_REF(BasePassMeshProcessor);
2020-06-02 11:46:18 +02:00
class BasePass
{
public:
BasePass(const PScene scene, Gfx::PGraphics graphics, Gfx::PViewport viewport);
2020-06-02 11:46:18 +02:00
~BasePass();
void render();
2020-06-02 11:46:18 +02:00
private:
Gfx::PRenderPass renderPass;
Gfx::PTexture2D depthBuffer;
const PScene scene;
UPBasePassMeshProcessor processor;
Gfx::PGraphics graphics;
2020-06-02 11:46:18 +02:00
};
DEFINE_REF(BasePass);
2020-06-02 11:46:18 +02:00
} // namespace Seele