From 8d15acb11d7e1cc6471f55fb0f1ae4e8600c4858 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 29 Sep 2020 01:34:04 -0400 Subject: [PATCH] CCameraFilter: Disable depth_write for FilterPipelines --- Runtime/Camera/CCameraFilter.hpp | 21 ++++++++++++------- .../Graphics/Shaders/CCameraBlurFilter.cpp | 4 ++-- 2 files changed, 16 insertions(+), 9 deletions(-) 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) {