Struct gltf::texture::Sampler [−][src]
pub struct Sampler<'a> { /* fields omitted */ }
Expand description
Texture sampler properties for filtering and wrapping modes.
Implementations
impl<'a> Sampler<'a>
[src]
impl<'a> Sampler<'a>
[src]pub fn index(&self) -> Option<usize>
[src]
pub fn index(&self) -> Option<usize>
[src]Returns the internal JSON index if this Sampler
was explicity defined.
This function returns None
if the Sampler
is the default sampler.
pub fn mag_filter(&self) -> Option<MagFilter>
[src]
pub fn mag_filter(&self) -> Option<MagFilter>
[src]Magnification filter.
pub fn min_filter(&self) -> Option<MinFilter>
[src]
pub fn min_filter(&self) -> Option<MinFilter>
[src]Minification filter.
pub fn wrap_s(&self) -> WrappingMode
[src]
pub fn wrap_s(&self) -> WrappingMode
[src]s
wrapping mode.
pub fn wrap_t(&self) -> WrappingMode
[src]
pub fn wrap_t(&self) -> WrappingMode
[src]t
wrapping mode.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more