pub struct SamplerDesc {
pub mag: Filter,
pub min: Filter,
pub mip: Filter,
pub address: [AddressMode; 3],
pub anisotropy: u16,
pub compare: Option<Compare>,
pub lod_min: f32,
pub lod_max: f32,
}Expand description
Device::create_sampler
Fields§
§mag: Filter§min: Filter§mip: Filter§address: [AddressMode; 3]u, v, w
anisotropy: u161 = off, up to Limits::max_anisotropy (needs Features::anisotropy)
compare: Option<Compare>a comparison sampler (shadow maps)
lod_min: f32§lod_max: f32Implementations§
Source§impl SamplerDesc
impl SamplerDesc
pub const LINEAR: SamplerDesc
pub const NEAREST: SamplerDesc
Trait Implementations§
Source§impl Clone for SamplerDesc
impl Clone for SamplerDesc
impl Copy for SamplerDesc
Auto Trait Implementations§
impl Forget for SamplerDesc
impl Freeze for SamplerDesc
impl RefUnwindSafe for SamplerDesc
impl Send for SamplerDesc
impl Sync for SamplerDesc
impl Unpin for SamplerDesc
impl UnsafeUnpin for SamplerDesc
impl UnwindSafe for SamplerDesc
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