pub struct GpuSamplerDescriptor { /* private fields */ }Expand description
A sampler descriptor for create_sampler.
Defaults produce a non-filtering clamp-to-edge sampler. Override fields after constructing to enable linear filtering, repeat addressing, or depth comparison.
Implementations§
Source§impl GpuSamplerDescriptor
Default-construction helper for GpuSamplerDescriptor.
impl GpuSamplerDescriptor
Default-construction helper for GpuSamplerDescriptor.
Sourcepub fn default_sampler() -> Self
pub fn default_sampler() -> Self
Returns a descriptor with the most common defaults applied: nearest filtering and clamp-to-edge addressing on all axes.
Source§impl GpuSamplerDescriptor
impl GpuSamplerDescriptor
pub fn get_mag_filter(&self) -> &'static str
pub fn get_min_filter(&self) -> &'static str
pub fn get_mipmap_filter(&self) -> &'static str
pub fn get_address_mode_u(&self) -> &'static str
pub fn get_address_mode_v(&self) -> &'static str
pub fn get_address_mode_w(&self) -> &'static str
pub fn get_compare(&self) -> bool
Trait Implementations§
Source§impl Clone for GpuSamplerDescriptor
impl Clone for GpuSamplerDescriptor
Source§fn clone(&self) -> GpuSamplerDescriptor
fn clone(&self) -> GpuSamplerDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GpuSamplerDescriptor
impl RefUnwindSafe for GpuSamplerDescriptor
impl Send for GpuSamplerDescriptor
impl Sync for GpuSamplerDescriptor
impl Unpin for GpuSamplerDescriptor
impl UnsafeUnpin for GpuSamplerDescriptor
impl UnwindSafe for GpuSamplerDescriptor
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