pub struct CompositeBlendPipelines {
pub pipeline: RenderPipeline,
pub params_layout: BindGroupLayout,
pub tex_layout: BindGroupLayout,
pub sampler: Sampler,
}Expand description
Pipelines for compositing an isolated fg texture over a captured dst region.
§Examples
use ailloli_ui_render_wgpu::composite_blend::CompositeBlendPipelines;
let _: usize = std::mem::size_of::<CompositeBlendPipelines>();Fields§
§pipeline: RenderPipelineRender pipeline implementing normal, multiply, and screen equations.
params_layout: BindGroupLayoutUniform layout for shader mode and clamped opacity.
tex_layout: BindGroupLayoutShared texture-plus-sampler layout for foreground and background.
sampler: SamplerLinear sampler used for both captured textures.
Implementations§
Source§impl CompositeBlendPipelines
impl CompositeBlendPipelines
Sourcepub fn new(device: &Device, surface_format: TextureFormat) -> Self
pub fn new(device: &Device, surface_format: TextureFormat) -> Self
Builds blend resources for one exact output format.
§Examples
use ailloli_ui_render_wgpu::composite_blend::CompositeBlendPipelines;
fn build(device: &wgpu::Device) -> CompositeBlendPipelines {
CompositeBlendPipelines::new(device, wgpu::TextureFormat::Bgra8UnormSrgb)
}Auto Trait Implementations§
impl Freeze for CompositeBlendPipelines
impl !RefUnwindSafe for CompositeBlendPipelines
impl Send for CompositeBlendPipelines
impl Sync for CompositeBlendPipelines
impl Unpin for CompositeBlendPipelines
impl !UnwindSafe for CompositeBlendPipelines
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