Renderer: rewrite render scheduling (#8683)
This rewrites renderer scheduling. Occlusion is now unified in a new Pass type.
This commit is contained in:
parent
1cc1a46c2e
commit
e536b02248
42 changed files with 1576 additions and 775 deletions
26
src/render/pass/ClearPassElement.cpp
Normal file
26
src/render/pass/ClearPassElement.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include "ClearPassElement.hpp"
|
||||
#include "../OpenGL.hpp"
|
||||
|
||||
CClearPassElement::CClearPassElement(const CClearPassElement::SClearData& data_) : data(data_) {
|
||||
;
|
||||
}
|
||||
|
||||
void CClearPassElement::draw(const CRegion& damage) {
|
||||
g_pHyprOpenGL->clear(data.color);
|
||||
}
|
||||
|
||||
bool CClearPassElement::needsLiveBlur() {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CClearPassElement::needsPrecomputeBlur() {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::optional<CBox> CClearPassElement::boundingBox() {
|
||||
return CBox{{}, {INT16_MAX, INT16_MAX}};
|
||||
}
|
||||
|
||||
CRegion CClearPassElement::opaqueRegion() {
|
||||
return *boundingBox();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue