pub trait PostProcessEffect {
// Required methods
fn effect_name(&self) -> &'static str;
fn render(
&mut self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
source_view: &TextureView,
target_view: &TextureView,
);
fn resize(
&mut self,
device: &Device,
queue: &Queue,
config: &SurfaceConfiguration,
scale_factor: f32,
);
}Required Methods§
Sourcefn effect_name(&self) -> &'static str
fn effect_name(&self) -> &'static str
Unique name used to identify the effect type for toggling (e.g. “scanline”).