Struct gfx::texture::SamplerInfo []

pub struct SamplerInfo {
    pub filter: FilterMethod,
    pub wrap_mode: (WrapMode, WrapMode, WrapMode),
    pub lod_bias: Lod,
    pub lod_range: (Lod, Lod),
    pub comparison: Option<Comparison>,
    pub border: PackedColor,
}

Specifies how to sample from a texture.

Fields

Filter method to use.

Wrapping mode for each of the U, V, and W axis (S, T, and R in OpenGL speak).

This bias is added to every computed mipmap level (N + lod_bias). For example, if it would select mipmap level 2 and lod_bias is 1, it will use mipmap level 3.

This range is used to clamp LOD level used for sampling.

Comparison mode, used primary for a shadow map.

Border color is used when one of the wrap modes is set to border.

Methods

impl SamplerInfo

Create a new sampler description with a given filter method and wrapping mode, using no LOD modifications.

Trait Implementations

impl Debug for SamplerInfo

Formats the value using the given formatter.

impl PartialOrd<SamplerInfo> for SamplerInfo

impl PartialEq<SamplerInfo> for SamplerInfo

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for SamplerInfo

impl Eq for SamplerInfo

impl Copy for SamplerInfo

impl Clone for SamplerInfo

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more