summaryrefslogtreecommitdiff
path: root/src/render/pass/PassElement.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2024-12-22 17:12:09 +0100
committerGitHub <noreply@github.com>2024-12-22 17:12:09 +0100
commite536b02248f370971716b744968776f6880528be (patch)
tree5e5755b7894eb44f9259cfe0e1d97899148a8a60 /src/render/pass/PassElement.hpp
parent1cc1a46c2e154a27750b81307040d3bf7ff0f64f (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/PassElement.hpp')
-rw-r--r--src/render/pass/PassElement.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/render/pass/PassElement.hpp b/src/render/pass/PassElement.hpp
new file mode 100644
index 00000000..025840f4
--- /dev/null
+++ b/src/render/pass/PassElement.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "../../defines.hpp"
+#include <optional>
+
+class IPassElement {
+ public:
+ virtual ~IPassElement() = default;
+
+ virtual void draw(const CRegion& damage) = 0;
+ virtual bool needsLiveBlur() = 0;
+ virtual bool needsPrecomputeBlur() = 0;
+ virtual const char* passName() = 0;
+ virtual void discard();
+ virtual std::optional<CBox> boundingBox();
+ virtual CRegion opaqueRegion();
+ virtual bool disableSimplification();
+};