From ba9587bb47313bf200ebc296a203358c27cd89af Mon Sep 17 00:00:00 2001 From: cary <39078800+caryliu1999@users.noreply.github.com> Date: Tue, 26 Jan 2021 16:05:38 +0800 Subject: [PATCH] Remove the dependency of planar shadow on forward pipeline. (#3248) --- native/cocos/renderer/pipeline/PlanarShadowQueue.cpp | 3 +-- native/cocos/renderer/pipeline/PlanarShadowQueue.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp index 1efda94e7f..d0d93ee1d2 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp @@ -33,7 +33,6 @@ THE SOFTWARE. #include "RenderInstancedQueue.h" #include "gfx/GFXCommandBuffer.h" #include "helper/SharedMemory.h" -#include "forward/ForwardPipeline.h" #include "gfx/GFXDescriptorSet.h" #include "gfx/GFXDevice.h" #include "gfx/GFXShader.h" @@ -42,7 +41,7 @@ namespace cc { namespace pipeline { PlanarShadowQueue::PlanarShadowQueue(RenderPipeline *pipeline) -:_pipeline(static_cast(pipeline)){ +:_pipeline(pipeline){ _instancedQueue = CC_NEW(RenderInstancedQueue); } diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.h b/native/cocos/renderer/pipeline/PlanarShadowQueue.h index d5a039f2ce..0c13faf36d 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.h +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.h @@ -33,7 +33,6 @@ class Shader; } // namespace gfx namespace pipeline { class RenderPipeline; -class ForwardPipeline; struct ModelView; struct SubModelView; struct PassView; @@ -61,7 +60,7 @@ public: void destroy(); private: - ForwardPipeline *_pipeline = nullptr; + RenderPipeline *_pipeline = nullptr; RenderInstancedQueue *_instancedQueue = nullptr; std::vector _pendingModels; };