[−][src]Struct rendy_resource::SamplerInfo
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.
Methods
impl SamplerInfo
[src]
pub fn new(filter: Filter, wrap: WrapMode) -> SamplerInfo
[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 SamplerInfo
[src]
fn clone(&self) -> SamplerInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Serialize for SamplerInfo
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl PartialEq<SamplerInfo> for SamplerInfo
[src]
fn eq(&self, other: &SamplerInfo) -> bool
[src]
fn ne(&self, other: &SamplerInfo) -> bool
[src]
impl Debug for SamplerInfo
[src]
impl<'de> Deserialize<'de> for SamplerInfo
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<SamplerInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<SamplerInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for SamplerInfo
[src]
impl Hash for SamplerInfo
[src]
Auto Trait Implementations
impl Unpin for SamplerInfo
impl Sync for SamplerInfo
impl Send for SamplerInfo
impl UnwindSafe for SamplerInfo
impl RefUnwindSafe for SamplerInfo
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.