Struct gfx_hal::image::SamplerInfo
source · pub struct SamplerInfo {
pub min_filter: Filter,
pub mag_filter: Filter,
pub mip_filter: Filter,
pub wrap_mode: (WrapMode, WrapMode, WrapMode),
pub lod_bias: Lod,
pub lod_range: Range<Lod>,
pub comparison: Option<Comparison>,
pub border: PackedColor,
pub anisotropic: Anisotropic,
}
Expand description
Specifies how to sample from an image.
Fields
min_filter: Filter
Minification filter method to use.
mag_filter: Filter
Magnification filter method to use.
mip_filter: Filter
Mip filter method to use.
wrap_mode: (WrapMode, WrapMode, WrapMode)
Wrapping mode for each of the U, V, and W axis (S, T, and R in OpenGL speak).
lod_bias: Lod
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.
lod_range: Range<Lod>
This range is used to clamp LOD level used for sampling.
comparison: Option<Comparison>
Comparison mode, used primary for a shadow map.
border: PackedColor
Border color is used when one of the wrap modes is set to border.
anisotropic: Anisotropic
Anisotropic filtering.
Implementations
Trait Implementations
sourceimpl Clone for SamplerInfo
impl Clone for SamplerInfo
sourcefn clone(&self) -> SamplerInfo
fn clone(&self) -> SamplerInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SamplerInfo
impl Debug for SamplerInfo
sourceimpl Hash for SamplerInfo
impl Hash for SamplerInfo
sourceimpl PartialEq<SamplerInfo> for SamplerInfo
impl PartialEq<SamplerInfo> for SamplerInfo
sourcefn eq(&self, other: &SamplerInfo) -> bool
fn eq(&self, other: &SamplerInfo) -> bool
impl Eq for SamplerInfo
impl StructuralEq for SamplerInfo
impl StructuralPartialEq for SamplerInfo
Auto Trait Implementations
impl RefUnwindSafe for SamplerInfo
impl Send for SamplerInfo
impl Sync for SamplerInfo
impl Unpin for SamplerInfo
impl UnwindSafe for SamplerInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more