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: Option<Range<f32>>,
pub compare: Option<CompareFunction>,
pub anisotropy_clamp: Option<NonZeroU8>,
pub border_color: Option<SamplerBorderColor>,
}
Fields
label: Label<'a>
address_modes: [AddressMode; 3]
mag_filter: FilterMode
min_filter: FilterMode
mipmap_filter: FilterMode
lod_clamp: Option<Range<f32>>
compare: Option<CompareFunction>
anisotropy_clamp: Option<NonZeroU8>
border_color: Option<SamplerBorderColor>
Trait Implementations
sourceimpl<'a> Clone for SamplerDescriptor<'a>
impl<'a> Clone for SamplerDescriptor<'a>
sourcefn clone(&self) -> SamplerDescriptor<'a>
fn clone(&self) -> SamplerDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more