[−][src]Struct web_glitz::image::sampler::SamplerDescriptor
Provides the information necessary for the creation of a Sampler.
See RenderingContext::create_sampler for details.
Can be instantiated with default values through Default:
use web_glitz::image::sampler::{ SamplerDescriptor, NearestMipmapLinear, Linear, LODRange, Wrap }; assert_eq!(SamplerDescriptor::default(), SamplerDescriptor { minification_filter: NearestMipmapLinear, magnification_filter: Linear, lod_range: LODRange::default(), wrap_s: Wrap::Repeat, wrap_t: Wrap::Repeat, wrap_r: Wrap::Repeat, });
Fields
minification_filter: MinThe MinificationFilter that a sampler created from this descriptor will use.
See MinificationFilter for details.
magnification_filter: MagThe MagnificationFilter that a sampler created from this descriptor will use.
See MagnificationFilter for details.
lod_range: LODRangewrap_s: WrapThe wrapping method that a sampler created from this descriptor will use when sampling a
value at coordinates outside the range 0.0..=1.0 in the S ("width") direction in texture
space.
See Wrap for details.
wrap_t: WrapThe wrapping method that a sampler created from this descriptor will use when sampling a
value at coordinates outside the range 0.0..=1.0 in the T ("height") direction in
texture space.
See Wrap for details.
wrap_r: WrapThe wrapping algorithm that a sampler created from this descriptor will use when sampling
a value at coordinates outside the range 0.0..=1.0 in the R ("depth") direction in
texture space.
See Wrap for details.
Implementations
impl SamplerDescriptor<NearestMipmapLinear, Linear>[src]
Trait Implementations
impl<Min: Clone, Mag: Clone> Clone for SamplerDescriptor<Min, Mag>[src]
fn clone(&self) -> SamplerDescriptor<Min, Mag>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<Min: Debug, Mag: Debug> Debug for SamplerDescriptor<Min, Mag>[src]
impl Default for SamplerDescriptor<Nearest, Nearest>[src]
impl Default for SamplerDescriptor<Linear, Nearest>[src]
impl Default for SamplerDescriptor<LinearMipmapNearest, Linear>[src]
impl Default for SamplerDescriptor<LinearMipmapLinear, Linear>[src]
impl Default for SamplerDescriptor<NearestMipmapNearest, Nearest>[src]
impl Default for SamplerDescriptor<NearestMipmapLinear, Nearest>[src]
impl Default for SamplerDescriptor<LinearMipmapNearest, Nearest>[src]
impl Default for SamplerDescriptor<LinearMipmapLinear, Nearest>[src]
impl Default for SamplerDescriptor<Nearest, Linear>[src]
impl Default for SamplerDescriptor<Linear, Linear>[src]
impl Default for SamplerDescriptor<NearestMipmapNearest, Linear>[src]
impl Default for SamplerDescriptor<NearestMipmapLinear, Linear>[src]
impl<Min: PartialEq, Mag: PartialEq> PartialEq<SamplerDescriptor<Min, Mag>> for SamplerDescriptor<Min, Mag>[src]
fn eq(&self, other: &SamplerDescriptor<Min, Mag>) -> bool[src]
fn ne(&self, other: &SamplerDescriptor<Min, Mag>) -> bool[src]
impl<Min, Mag> StructuralPartialEq for SamplerDescriptor<Min, Mag>[src]
Auto Trait Implementations
impl<Min, Mag> RefUnwindSafe for SamplerDescriptor<Min, Mag> where
Mag: RefUnwindSafe,
Min: RefUnwindSafe,
Mag: RefUnwindSafe,
Min: RefUnwindSafe,
impl<Min, Mag> Send for SamplerDescriptor<Min, Mag> where
Mag: Send,
Min: Send,
Mag: Send,
Min: Send,
impl<Min, Mag> Sync for SamplerDescriptor<Min, Mag> where
Mag: Sync,
Min: Sync,
Mag: Sync,
Min: Sync,
impl<Min, Mag> Unpin for SamplerDescriptor<Min, Mag> where
Mag: Unpin,
Min: Unpin,
Mag: Unpin,
Min: Unpin,
impl<Min, Mag> UnwindSafe for SamplerDescriptor<Min, Mag> where
Mag: UnwindSafe,
Min: UnwindSafe,
Mag: UnwindSafe,
Min: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,