[][src]Struct wgpu::SamplerDescriptorBase

pub struct SamplerDescriptorBase<L> {
    pub label: L,
    pub address_mode_u: AddressMode,
    pub address_mode_v: AddressMode,
    pub address_mode_w: AddressMode,
    pub mag_filter: FilterMode,
    pub min_filter: FilterMode,
    pub mipmap_filter: FilterMode,
    pub lod_min_clamp: f32,
    pub lod_max_clamp: f32,
    pub compare: Option<CompareFunction>,
    pub anisotropy_clamp: Option<u8>,
    pub _non_exhaustive: NonExhaustive,
}

Fields

label: Laddress_mode_u: AddressModeaddress_mode_v: AddressModeaddress_mode_w: AddressModemag_filter: FilterModemin_filter: FilterModemipmap_filter: FilterModelod_min_clamp: f32lod_max_clamp: f32compare: Option<CompareFunction>anisotropy_clamp: Option<u8>

Anisotropic filtering extension must be enabled if this value is anything other than 0 or 1.

Valid values: 1, 2, 4, 8, and 16.

_non_exhaustive: NonExhaustive

Methods

impl<L> SamplerDescriptor<L>[src]

pub fn map_label<K>(&self, fun: impl FnOnce(&L) -> K) -> SamplerDescriptor<K>[src]

Trait Implementations

impl<L> Clone for SamplerDescriptor<L> where
    L: Clone
[src]

impl<L> Debug for SamplerDescriptor<L> where
    L: Debug
[src]

impl<L> Default for SamplerDescriptor<L> where
    L: Default
[src]

impl<L> PartialEq<SamplerDescriptor<L>> for SamplerDescriptor<L> where
    L: PartialEq<L>, 
[src]

impl<L> Serialize for SamplerDescriptor<L> where
    L: Serialize
[src]

impl<L> StructuralPartialEq for SamplerDescriptor<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for SamplerDescriptor<L> where
    L: RefUnwindSafe

impl<L> Send for SamplerDescriptor<L> where
    L: Send

impl<L> Sync for SamplerDescriptor<L> where
    L: Sync

impl<L> Unpin for SamplerDescriptor<L> where
    L: Unpin

impl<L> UnwindSafe for SamplerDescriptor<L> where
    L: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.