From e536b02248f370971716b744968776f6880528be Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 22 Dec 2024 17:12:09 +0100 Subject: Renderer: rewrite render scheduling (#8683) This rewrites renderer scheduling. Occlusion is now unified in a new Pass type. --- src/render/pass/ShadowPassElement.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/render/pass/ShadowPassElement.hpp (limited to 'src/render/pass/ShadowPassElement.hpp') diff --git a/src/render/pass/ShadowPassElement.hpp b/src/render/pass/ShadowPassElement.hpp new file mode 100644 index 00000000..715e7bfb --- /dev/null +++ b/src/render/pass/ShadowPassElement.hpp @@ -0,0 +1,26 @@ +#pragma once +#include "PassElement.hpp" + +class CHyprDropShadowDecoration; + +class CShadowPassElement : public IPassElement { + public: + struct SShadowData { + CHyprDropShadowDecoration* deco = nullptr; + float a = 1.F; + }; + + CShadowPassElement(const SShadowData& data_); + virtual ~CShadowPassElement() = default; + + virtual void draw(const CRegion& damage); + virtual bool needsLiveBlur(); + virtual bool needsPrecomputeBlur(); + + virtual const char* passName() { + return "CShadowPassElement"; + } + + private: + SShadowData data; +}; \ No newline at end of file -- cgit v1.2.3