Struct wgpu_hal::SamplerDescriptor
source · pub struct SamplerDescriptor<'a> {
pub label: Label<'a>,
pub address_modes: [AddressMode; 3],
pub mag_filter: FilterMode,
pub min_filter: FilterMode,
pub mipmap_filter: FilterMode,
pub lod_clamp: Range<f32>,
pub compare: Option<CompareFunction>,
pub anisotropy_clamp: u16,
pub border_color: Option<SamplerBorderColor>,
}
Fields§
§label: Label<'a>
§address_modes: [AddressMode; 3]
§mag_filter: FilterMode
§min_filter: FilterMode
§mipmap_filter: FilterMode
§lod_clamp: Range<f32>
§compare: Option<CompareFunction>
§anisotropy_clamp: u16
§border_color: Option<SamplerBorderColor>
Trait Implementations§
source§impl<'a> Clone for SamplerDescriptor<'a>
impl<'a> Clone for SamplerDescriptor<'a>
source§fn clone(&self) -> SamplerDescriptor<'a>
fn clone(&self) -> SamplerDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for SamplerDescriptor<'a>
impl<'a> Send for SamplerDescriptor<'a>
impl<'a> Sync for SamplerDescriptor<'a>
impl<'a> Unpin for SamplerDescriptor<'a>
impl<'a> UnwindSafe for SamplerDescriptor<'a>
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