pub trait ShaderEffect: 'static {
const WGSL: &'static str;
const INPUTS: Inputs;
const CLOCK: Option<usize> = None;
// Provided methods
fn uniforms(&self, _uniforms: &mut [f32; 16]) { ... }
fn margin(&self) -> f32 { ... }
fn content_blur(&self) -> f32 { ... }
fn backdrop_blur(&self) -> f32 { ... }
fn backdrop_reach(&self) -> Option<f32> { ... }
}Required Associated Constants§
Provided Associated Constants§
Provided Methods§
fn uniforms(&self, _uniforms: &mut [f32; 16])
fn margin(&self) -> f32
fn content_blur(&self) -> f32
fn backdrop_blur(&self) -> f32
fn backdrop_reach(&self) -> Option<f32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".