[][src]Struct luminance::texture::Sampler

pub struct Sampler {
    pub wrap_r: Wrap,
    pub wrap_s: Wrap,
    pub wrap_t: Wrap,
    pub min_filter: MinFilter,
    pub mag_filter: MagFilter,
    pub depth_comparison: Option<DepthComparison>,
}

A Sampler object gives hint on how a Texture should be sampled.

Fields

wrap_r: Wrap

How should we wrap around the r sampling coordinate?

wrap_s: Wrap

How should we wrap around the s sampling coordinate?

wrap_t: Wrap

How should we wrap around the t sampling coordinate?

min_filter: MinFilter

Minification filter.

mag_filter: MagFilter

Magnification filter.

depth_comparison: Option<DepthComparison>

For depth textures, should we perform depth comparison and if so, how?

Trait Implementations

impl Default for Sampler[src]

Default value is as following:

impl Clone for Sampler[src]

impl Copy for Sampler[src]

impl Debug for Sampler[src]

Auto Trait Implementations

impl Sync for Sampler

impl Send for Sampler

impl Unpin for Sampler

impl UnwindSafe for Sampler

impl RefUnwindSafe for Sampler

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]