pub struct SamplerDescriptor {
pub mag_filter: Filter,
pub min_filter: Filter,
pub anisotropy_enable: bool,
pub max_anisotropy: f32,
pub address_mode_u: SamplerAddressMode,
pub address_mode_v: SamplerAddressMode,
pub address_mode_w: SamplerAddressMode,
pub border_color: BorderColor,
pub unnormalized_coordinates: bool,
pub compare_enable: bool,
pub mipmap_mode: SamplerMipmapMode,
}Fields§
§mag_filter: Filter§min_filter: Filter§anisotropy_enable: bool§max_anisotropy: f32§address_mode_u: SamplerAddressMode§address_mode_v: SamplerAddressMode§address_mode_w: SamplerAddressMode§border_color: BorderColor§unnormalized_coordinates: bool§compare_enable: bool§mipmap_mode: SamplerMipmapModeImplementations§
Source§impl SamplerDescriptor
impl SamplerDescriptor
pub fn default() -> Self
pub fn with_address_modes( self, u: SamplerAddressMode, v: SamplerAddressMode, w: SamplerAddressMode, ) -> Self
pub fn with_anisotropy(self, enable: bool, max_anisotropy: f32) -> Self
pub fn with_filters(self, mag_filter: Filter, min_filter: Filter) -> Self
pub fn with_border_color(self, border_color: BorderColor) -> Self
pub fn with_unnormalized_coordinates(self, unnormalized: bool) -> Self
pub fn with_compare_enable(self, compare_enable: bool) -> Self
pub fn with_mipmap_mode(self, mipmap_mode: SamplerMipmapMode) -> Self
Auto Trait Implementations§
impl Freeze for SamplerDescriptor
impl RefUnwindSafe for SamplerDescriptor
impl Send for SamplerDescriptor
impl Sync for SamplerDescriptor
impl Unpin for SamplerDescriptor
impl UnsafeUnpin for SamplerDescriptor
impl UnwindSafe for SamplerDescriptor
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