mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-16 06:55:58 +00:00
renderer: use a render pass for render modif in client render
fixes #8918
This commit is contained in:
25
src/render/pass/RendererHintsPassElement.hpp
Normal file
25
src/render/pass/RendererHintsPassElement.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include "PassElement.hpp"
|
||||
#include <optional>
|
||||
#include "../OpenGL.hpp"
|
||||
|
||||
class CRendererHintsPassElement : public IPassElement {
|
||||
public:
|
||||
struct SData {
|
||||
std::optional<SRenderModifData> renderModif;
|
||||
};
|
||||
|
||||
CRendererHintsPassElement(const SData& data);
|
||||
virtual ~CRendererHintsPassElement() = default;
|
||||
|
||||
virtual void draw(const CRegion& damage);
|
||||
virtual bool needsLiveBlur();
|
||||
virtual bool needsPrecomputeBlur();
|
||||
|
||||
virtual const char* passName() {
|
||||
return "CRendererHintsPassElement";
|
||||
}
|
||||
|
||||
private:
|
||||
SData data;
|
||||
};
|
Reference in New Issue
Block a user