pub struct SamplerSpec { /* private fields */ }
Expand description
A description of a sampler. We cache the actual samplers as needed in the GlContext.
Implementations§
Source§impl SamplerSpec
impl SamplerSpec
Sourcepub fn new(min: FilterMode, mag: FilterMode, wrap: WrapMode) -> Self
pub fn new(min: FilterMode, mag: FilterMode, wrap: WrapMode) -> Self
Shortcut for creating a new SamplerSpec
.
Trait Implementations§
Source§impl Clone for SamplerSpec
impl Clone for SamplerSpec
Source§fn clone(&self) -> SamplerSpec
fn clone(&self) -> SamplerSpec
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 moreSource§impl Debug for SamplerSpec
impl Debug for SamplerSpec
Source§impl Default for SamplerSpec
impl Default for SamplerSpec
Source§impl Hash for SamplerSpec
impl Hash for SamplerSpec
Source§impl PartialEq for SamplerSpec
impl PartialEq for SamplerSpec
impl Copy for SamplerSpec
impl Eq for SamplerSpec
impl StructuralPartialEq for SamplerSpec
Auto Trait Implementations§
impl Freeze for SamplerSpec
impl RefUnwindSafe for SamplerSpec
impl Send for SamplerSpec
impl Sync for SamplerSpec
impl Unpin for SamplerSpec
impl UnwindSafe for SamplerSpec
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