mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add with_alpha() to shader and shadow element
This commit is contained in:
@@ -175,6 +175,11 @@ impl ShadowRenderElement {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn with_alpha(mut self, alpha: f32) -> Self {
|
||||
self.inner = self.inner.with_alpha(alpha);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn has_shader(renderer: &mut impl NiriRenderer) -> bool {
|
||||
Shaders::get(renderer)
|
||||
.program(ProgramType::Shadow)
|
||||
|
||||
Reference in New Issue
Block a user