diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-12-22 17:12:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-22 17:12:09 +0100 |
| commit | e536b02248f370971716b744968776f6880528be (patch) | |
| tree | 5e5755b7894eb44f9259cfe0e1d97899148a8a60 /src/render/pass/ShadowPassElement.cpp | |
| parent | 1cc1a46c2e154a27750b81307040d3bf7ff0f64f (diff) | |
Renderer: rewrite render scheduling (#8683)
This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
Diffstat (limited to 'src/render/pass/ShadowPassElement.cpp')
| -rw-r--r-- | src/render/pass/ShadowPassElement.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/render/pass/ShadowPassElement.cpp b/src/render/pass/ShadowPassElement.cpp new file mode 100644 index 00000000..22910c96 --- /dev/null +++ b/src/render/pass/ShadowPassElement.cpp @@ -0,0 +1,19 @@ +#include "ShadowPassElement.hpp" +#include "../OpenGL.hpp" +#include "../decorations/CHyprDropShadowDecoration.hpp" + +CShadowPassElement::CShadowPassElement(const CShadowPassElement::SShadowData& data_) : data(data_) { + ; +} + +void CShadowPassElement::draw(const CRegion& damage) { + data.deco->render(g_pHyprOpenGL->m_RenderData.pMonitor.lock(), data.a); +} + +bool CShadowPassElement::needsLiveBlur() { + return false; +} + +bool CShadowPassElement::needsPrecomputeBlur() { + return false; +}
\ No newline at end of file |
