summaryrefslogtreecommitdiff
path: root/src/render/pass/RectPassElement.hpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-07 13:27:47 +0300
committerGitHub <noreply@github.com>2026-03-07 10:27:47 +0000
commit32e75e3e320fb66ab517a378df645f3d29b3a209 (patch)
tree4212f4cf197fc961161de7a9e57b85735257184a /src/render/pass/RectPassElement.hpp
parent36b19075f3a644a4095352d778e6d03e103bb334 (diff)
renderer: refactor render elements (#13438)
Part 2 of renderer refactors
Diffstat (limited to 'src/render/pass/RectPassElement.hpp')
-rw-r--r--src/render/pass/RectPassElement.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render/pass/RectPassElement.hpp b/src/render/pass/RectPassElement.hpp
index c83d52ec..b6d310ad 100644
--- a/src/render/pass/RectPassElement.hpp
+++ b/src/render/pass/RectPassElement.hpp
@@ -1,5 +1,6 @@
#pragma once
#include "PassElement.hpp"
+#include <hyprutils/math/Region.hpp>
class CRectPassElement : public IPassElement {
public:
@@ -16,7 +17,6 @@ class CRectPassElement : public IPassElement {
CRectPassElement(const SRectData& data);
virtual ~CRectPassElement() = default;
- virtual void draw(const CRegion& damage);
virtual bool needsLiveBlur();
virtual bool needsPrecomputeBlur();
virtual std::optional<CBox> boundingBox();
@@ -26,6 +26,9 @@ class CRectPassElement : public IPassElement {
return "CRectPassElement";
}
- private:
+ virtual ePassElementType type() {
+ return EK_RECT;
+ };
+
SRectData m_data;
};