#[non_exhaustive]
pub enum SampV {
Show 13 variants
AddressU(TextureAddress),
AddressV(TextureAddress),
AddressW(TextureAddress),
BorderColor(Color),
MagFilter(TextureFilterType),
MinFilter(TextureFilterType),
MipFilter(TextureFilterType),
MipMapLODBias(u32),
MaxMipLevel(u32),
MaxAnisotropy(u32),
SRGBTexture(bool),
ElementIndex(u32),
DMapOffset(u32),
}
Expand description
[docs.microsoft.com] D3DSAMPLERSTATETYPE + Value
Sampler states define texture sampling operations such as texture addressing and texture filtering. Some sampler states set-up vertex processing, and some set-up pixel processing. Sampler states can be saved and restored using stateblocks (see State Blocks Save and Restore State (Direct3D 9)).
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AddressU(TextureAddress)
AddressV(TextureAddress)
AddressW(TextureAddress)
BorderColor(Color)
MagFilter(TextureFilterType)
MinFilter(TextureFilterType)
MipFilter(TextureFilterType)
MipMapLODBias(u32)
MaxMipLevel(u32)
MaxAnisotropy(u32)
SRGBTexture(bool)
ElementIndex(u32)
DMapOffset(u32)
Implementations
sourceimpl SamplerStateValue
impl SamplerStateValue
pub fn ty(&self) -> SamplerStateType
pub fn value(&self) -> u32
pub fn ty_value(&self) -> (SamplerStateType, u32)
Trait Implementations
sourceimpl Clone for SamplerStateValue
impl Clone for SamplerStateValue
sourcefn clone(&self) -> SamplerStateValue
fn clone(&self) -> SamplerStateValue
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 more
sourceimpl Debug for SamplerStateValue
impl Debug for SamplerStateValue
sourceimpl Hash for SamplerStateValue
impl Hash for SamplerStateValue
sourceimpl Ord for SamplerStateValue
impl Ord for SamplerStateValue
sourceimpl PartialEq<SamplerStateValue> for SamplerStateValue
impl PartialEq<SamplerStateValue> for SamplerStateValue
sourcefn eq(&self, other: &SamplerStateValue) -> bool
fn eq(&self, other: &SamplerStateValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SamplerStateValue) -> bool
fn ne(&self, other: &SamplerStateValue) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SamplerStateValue> for SamplerStateValue
impl PartialOrd<SamplerStateValue> for SamplerStateValue
sourcefn partial_cmp(&self, other: &SamplerStateValue) -> Option<Ordering>
fn partial_cmp(&self, other: &SamplerStateValue) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SamplerStateValue
impl Eq for SamplerStateValue
impl StructuralEq for SamplerStateValue
impl StructuralPartialEq for SamplerStateValue
Auto Trait Implementations
impl RefUnwindSafe for SamplerStateValue
impl Send for SamplerStateValue
impl Sync for SamplerStateValue
impl Unpin for SamplerStateValue
impl UnwindSafe for SamplerStateValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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