pub struct WgpuBlur { /* private fields */ }Expand description
The wgpu implementation of BackdropBlur. Holds the fixed pipeline machinery (bind-group
layout, sampler, Gaussian/downsample/upsample pipelines) and the per-(size) scratch
(Gaussian ping-pong + dual-Kawase pyramid) + per-target-format composite caches, so repeated
frosted surfaces reuse them.
Implementations§
Trait Implementations§
Source§impl BackdropBlur for WgpuBlur
impl BackdropBlur for WgpuBlur
Source§type Queue = Queue
type Queue = Queue
The upload queue (
wgpu::Queue; () for glow, which uploads via the context).Source§type Encoder = CommandEncoder
type Encoder = CommandEncoder
The command sink (
wgpu::CommandEncoder; glow::Context, the immediate-mode handle).Source§type SourceTexture = SourceView
type SourceTexture = SourceView
A sampleable backdrop (
wgpu::TextureView; glow::Texture). Own-loop backends receive
it from the host; grab-pass backends produce it via GrabPass::grab_source.Source§type Target = TextureView
type Target = TextureView
The composite destination (
wgpu::TextureView; a glow framebuffer).Source§type TargetFormat = TextureFormat
type TargetFormat = TextureFormat
The target’s color format (
wgpu::TextureFormat; a GLES internal-format enum). Passed
to prepare because wgpu bakes the fragment-target format into the composite pipeline
at creation, so the pipeline is cached per format.Source§type Prepared = WgpuPrepared
type Prepared = WgpuPrepared
An owned, opaque per-call handle carrying the resolved payload (kernel offsets,
tint,
ResolvedMask, target rect, and the resource keys) from
prepare to record. Owned — it borrows nothing from the blurrer.Source§fn prepare(
&mut self,
device: &Self::Device,
_queue: &Self::Queue,
source: &Self::SourceTexture,
target_format: Self::TargetFormat,
request: &BlurRequest,
) -> Result<Option<Self::Prepared>, BlurError>
fn prepare( &mut self, device: &Self::Device, _queue: &Self::Queue, source: &Self::SourceTexture, target_format: Self::TargetFormat, request: &BlurRequest, ) -> Result<Option<Self::Prepared>, BlurError>
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuBlur
impl !UnwindSafe for WgpuBlur
impl Freeze for WgpuBlur
impl Send for WgpuBlur
impl Sync for WgpuBlur
impl Unpin for WgpuBlur
impl UnsafeUnpin for WgpuBlur
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