add forward declaration for pipeline (#10082)

This commit is contained in:
mmyduckx
2022-02-14 09:31:00 +08:00
committed by GitHub
parent b21fc18f23
commit e52bb2bf06
67 changed files with 237 additions and 157 deletions
@@ -36,11 +36,13 @@
#include "gfx-base/GFXCommandBuffer.h"
#include "gfx-base/GFXDescriptorSet.h"
#include "gfx-base/GFXDevice.h"
#include "scene/Camera.h"
#include "scene/Shadow.h"
#include "scene/SpotLight.h"
namespace cc {
namespace pipeline {
ShadowMapBatchedQueue::ShadowMapBatchedQueue(RenderPipeline *pipeline)
: _phaseID(getPhaseID("shadow-caster")) {
_pipeline = pipeline;
@@ -49,6 +51,8 @@ ShadowMapBatchedQueue::ShadowMapBatchedQueue(RenderPipeline *pipeline)
_batchedQueue = CC_NEW(RenderBatchedQueue);
}
ShadowMapBatchedQueue::~ShadowMapBatchedQueue() = default;
void ShadowMapBatchedQueue::gatherLightPasses(const scene::Camera *camera, const scene::Light *light, gfx::CommandBuffer *cmdBuffer) {
clear();