pub struct Samplers {
pub linear: Sampler,
pub nearest: Sampler,
pub shadow: Sampler,
}
Expand description
Container holding a variety of samplers.
Fields§
§linear: Sampler
Aniso 16 sampler
nearest: Sampler
Nearest neighbor sampler
shadow: Sampler
Bilinear greater-or-equal comparison sampler
Implementations§
Source§impl Samplers
impl Samplers
Sourcepub fn add_to_bgl(bglb: &mut BindGroupLayoutBuilder)
pub fn add_to_bgl(bglb: &mut BindGroupLayoutBuilder)
Add the samplers to the given bind group layout builder.
Sourcepub fn add_to_bg<'a>(&'a self, bgb: &mut BindGroupBuilder<'a>)
pub fn add_to_bg<'a>(&'a self, bgb: &mut BindGroupBuilder<'a>)
Add the samplers to the given bind group builder.
Auto Trait Implementations§
impl Freeze for Samplers
impl !RefUnwindSafe for Samplers
impl Send for Samplers
impl Sync for Samplers
impl Unpin for Samplers
impl !UnwindSafe for Samplers
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