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§
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 more