pub struct Sampler<'a> { /* private fields */ }
Expand description
Texture sampler properties for filtering and wrapping modes.
Implementations§
source§impl<'a> Sampler<'a>
impl<'a> Sampler<'a>
sourcepub fn index(&self) -> Option<usize>
pub fn index(&self) -> Option<usize>
Returns the internal JSON index if this Sampler
was explicity defined.
This function returns None
if the Sampler
is the default sampler.
sourcepub fn mag_filter(&self) -> Option<MagFilter>
pub fn mag_filter(&self) -> Option<MagFilter>
Magnification filter.
sourcepub fn min_filter(&self) -> Option<MinFilter>
pub fn min_filter(&self) -> Option<MinFilter>
Minification filter.
sourcepub fn wrap_s(&self) -> WrappingMode
pub fn wrap_s(&self) -> WrappingMode
s
wrapping mode.
sourcepub fn wrap_t(&self) -> WrappingMode
pub fn wrap_t(&self) -> WrappingMode
t
wrapping mode.
sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
pub fn extensions(&self) -> Option<&Map<String, Value>>
Returns extension data unknown to this crate version.
sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Queries extension data unknown to this crate version.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Sampler<'a>
impl<'a> Send for Sampler<'a>
impl<'a> Sync for Sampler<'a>
impl<'a> Unpin for Sampler<'a>
impl<'a> UnwindSafe for Sampler<'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