[−][src]Struct rendy_core::hal::image::SamplerDesc
Specifies how to sample from an image. These are all the parameters available that alter how the GPU goes from a coordinate in an image to producing an actual value from the texture, including filtering/ scaling, wrap mode, etc.
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.
normalized: bool
Specifies whether the texture coordinates are normalized.
anisotropic: Anisotropic
Anisotropic filtering.
Implementations
impl SamplerDesc
[src]
pub fn new(filter: Filter, wrap: WrapMode) -> SamplerDesc
[src]
Create a new sampler description with a given filter method for all filtering operations and a wrapping mode, using no LOD modifications.
Trait Implementations
impl Clone for SamplerDesc
[src]
fn clone(&self) -> SamplerDesc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SamplerDesc
[src]
impl Eq for SamplerDesc
[src]
impl Hash for SamplerDesc
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SamplerDesc> for SamplerDesc
[src]
fn eq(&self, other: &SamplerDesc) -> bool
[src]
fn ne(&self, other: &SamplerDesc) -> bool
[src]
impl StructuralEq for SamplerDesc
[src]
impl StructuralPartialEq for SamplerDesc
[src]
Auto Trait Implementations
impl RefUnwindSafe for SamplerDesc
impl Send for SamplerDesc
impl Sync for SamplerDesc
impl Unpin for SamplerDesc
impl UnwindSafe for SamplerDesc
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<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>,