pub struct EffectPipelines {
pub blur: RenderPipeline,
pub blur_params_layout: BindGroupLayout,
pub blur_tex_layout: BindGroupLayout,
pub sampler: Sampler,
pub fullscreen_buf: Buffer,
}Expand description
Blur helper pipelines.
§Examples
use ailloli_ui_render_wgpu::effect_chain::EffectPipelines;
let _: usize = std::mem::size_of::<EffectPipelines>();Fields§
§blur: RenderPipelineSeparable blur render pipeline.
blur_params_layout: BindGroupLayoutUniform layout for direction, texture size, and radius.
blur_tex_layout: BindGroupLayoutSource texture and sampler layout.
sampler: SamplerLinear sampler for blur taps.
fullscreen_buf: BufferSix-vertex full-screen quad reused by both blur axes.
Implementations§
Source§impl EffectPipelines
impl EffectPipelines
Sourcepub fn new(device: &Device, surface_format: TextureFormat) -> Self
pub fn new(device: &Device, surface_format: TextureFormat) -> Self
Builds blur resources for one exact render-target format.
§Examples
use ailloli_ui_render_wgpu::effect_chain::EffectPipelines;
fn build(device: &wgpu::Device) -> EffectPipelines {
EffectPipelines::new(device, wgpu::TextureFormat::Rgba8Unorm)
}Auto Trait Implementations§
impl !Freeze for EffectPipelines
impl !RefUnwindSafe for EffectPipelines
impl Send for EffectPipelines
impl Sync for EffectPipelines
impl Unpin for EffectPipelines
impl !UnwindSafe for EffectPipelines
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more