diff --git a/Runtime/Camera/CCameraFilter.hpp b/Runtime/Camera/CCameraFilter.hpp index e3f8cbfda..1f5ffa78c 100644 --- a/Runtime/Camera/CCameraFilter.hpp +++ b/Runtime/Camera/CCameraFilter.hpp @@ -28,31 +28,38 @@ enum class EFilterType { }; template -struct FilterPipeline : hsh::pipeline::pipeline> {}; +struct FilterPipeline : hsh::pipeline::pipeline, + hsh::pipeline::depth_write> {}; template struct FilterPipeline -: hsh::pipeline::pipeline, hsh::pipeline::depth_compare> {}; +: hsh::pipeline::pipeline, hsh::pipeline::depth_compare, + hsh::pipeline::depth_write> {}; template struct FilterPipeline -: hsh::pipeline::pipeline, hsh::pipeline::depth_compare> {}; +: hsh::pipeline::pipeline, hsh::pipeline::depth_compare, + hsh::pipeline::depth_write> {}; template struct FilterPipeline -: hsh::pipeline::pipeline, hsh::pipeline::depth_compare> {}; +: hsh::pipeline::pipeline, hsh::pipeline::depth_compare, + hsh::pipeline::depth_write> {}; template struct FilterPipeline -: hsh::pipeline::pipeline, hsh::pipeline::depth_compare> {}; +: hsh::pipeline::pipeline, hsh::pipeline::depth_compare, + hsh::pipeline::depth_write> {}; template struct FilterPipeline -: hsh::pipeline::pipeline, hsh::pipeline::depth_compare> {}; +: hsh::pipeline::pipeline, hsh::pipeline::depth_compare, + hsh::pipeline::depth_write> {}; template struct FilterPipeline -: hsh::pipeline::pipeline, hsh::pipeline::depth_compare> {}; +: hsh::pipeline::pipeline, hsh::pipeline::depth_compare, + hsh::pipeline::depth_write> {}; enum class EFilterShape { Fullscreen, diff --git a/Runtime/Graphics/Shaders/CCameraBlurFilter.cpp b/Runtime/Graphics/Shaders/CCameraBlurFilter.cpp index eadaed822..33421d0be 100644 --- a/Runtime/Graphics/Shaders/CCameraBlurFilter.cpp +++ b/Runtime/Graphics/Shaders/CCameraBlurFilter.cpp @@ -1,9 +1,9 @@ #include "Runtime/Graphics/Shaders/CCameraBlurFilter.hpp" -#include #include #include +#include "Runtime/Camera/CCameraFilter.hpp" #include "Runtime/Graphics/CGraphics.hpp" #include "CCameraBlurFilter.cpp.hshhead" @@ -11,7 +11,7 @@ namespace urde { using namespace hsh::pipeline; -struct CCameraBlurFilterPipeline : pipeline, depth_write> { +struct CCameraBlurFilterPipeline : FilterPipeline { CCameraBlurFilterPipeline(hsh::vertex_buffer vbo, hsh::uniform_buffer ubo, hsh::render_texture2d tex) {