Struct gltf::json::texture::Sampler
[−]
[src]
pub struct Sampler { pub mag_filter: Option<Checked<MagFilter>>, pub min_filter: Option<Checked<MinFilter>>, pub wrap_s: Checked<WrappingMode>, pub wrap_t: Checked<WrappingMode>, pub extensions: Sampler, pub extras: Extras, }
Texture sampler properties for filtering and wrapping modes.
Fields
mag_filter: Option<Checked<MagFilter>>
Magnification filter.
min_filter: Option<Checked<MinFilter>>
Minification filter.
wrap_s: Checked<WrappingMode>
s
wrapping mode.
wrap_t: Checked<WrappingMode>
t
wrapping mode.
extensions: Sampler
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
impl Clone for Sampler
[src]
fn clone(&self) -> Sampler
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Sampler
[src]
impl Validate for Sampler
[src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates only the invariants required for the library to function safely.
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification.