pub struct SamplerDescriptor<'a> {Show 16 fields
pub name: &'a str,
pub mag_filter: Filter,
pub min_filter: Filter,
pub mipmap_mode: SamplerMipmapMode,
pub address_mode_u: SamplerAddressMode,
pub address_mode_v: SamplerAddressMode,
pub address_mode_w: SamplerAddressMode,
pub mip_lod_bias: SamplerMipmapMode,
pub anisotropy_enable: bool,
pub max_anisotropy: f32,
pub compare_op: Option<CompareOp>,
pub min_lod: f32,
pub max_lod: f32,
pub border_color: Option<BorderColor>,
pub unnormalized_coordinates: bool,
pub flags: Option<SamplerCreateFlags>,
}Expand description
Describes how a sampler should be configured.
Fields§
§name: &'a strName used for debugging.
mag_filter: FilterFilter used for magnification.
min_filter: FilterFilter used for minification.
mipmap_mode: SamplerMipmapModeMipmap mode.
address_mode_u: SamplerAddressModeAddress mode U.
address_mode_v: SamplerAddressModeAddress mode V.
address_mode_w: SamplerAddressModeAddress mode W.
mip_lod_bias: SamplerMipmapModeMipmap load bias.
anisotropy_enable: boolAnisotropy filtering enabled.
max_anisotropy: f32The anisotropy filter rate.
compare_op: Option<CompareOp>Optional Compare operation.
min_lod: f32Minimal LOD.
max_lod: f32Maximal LOD.
border_color: Option<BorderColor>Border color.
unnormalized_coordinates: boolUn-normalized coordinates.
flags: Option<SamplerCreateFlags>Optional flags.
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 duplicate 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 moreSource§impl<'a> Debug for SamplerDescriptor<'a>
impl<'a> Debug for SamplerDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for SamplerDescriptor<'a>
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