pub struct Sampler {
pub mag_filter: Option<Checked<MagFilter>>,
pub min_filter: Option<Checked<MinFilter>>,
pub name: Option<String>,
pub wrap_s: Checked<WrappingMode>,
pub wrap_t: Checked<WrappingMode>,
pub extensions: Option<Sampler>,
pub extras: Extras,
}
Expand description
Texture sampler properties for filtering and wrapping modes.
Fields§
§mag_filter: Option<Checked<MagFilter>>
Magnification filter.
min_filter: Option<Checked<MinFilter>>
Minification filter.
name: Option<String>
Optional user-defined name for this object.
wrap_s: Checked<WrappingMode>
s
wrapping mode.
wrap_t: Checked<WrappingMode>
t
wrapping mode.
extensions: Option<Sampler>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sampler
impl<'de> Deserialize<'de> for Sampler
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
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