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<'a> Get<Sampler> for Root[src]
impl<'a> Get<Sampler> for Rootfn get(&self, index: &Index<Sampler>) -> Option<&Sampler>[src]
fn get(&self, index: &Index<Sampler>) -> Option<&Sampler>Retrieves a single value at the given index.
impl Clone for Sampler[src]
impl Clone for Samplerfn clone(&self) -> Sampler[src]
fn clone(&self) -> SamplerReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Sampler[src]
impl Debug for Samplerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Sampler[src]
impl Default for Samplerimpl Validate for Sampler[src]
impl Validate for Samplerfn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), [src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
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), [src]
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), Validates the data against the glTF 2.0 specification. Read more