pub struct SamplerStateType(/* private fields */);Expand description
[docs.microsoft.com] D3DSAMPLERSTATETYPE
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)).
Implementations§
Source§impl Samp
impl Samp
Sourcepub const fn from_unchecked(d3d: D3DSAMPLERSTATETYPE) -> Self
pub const fn from_unchecked(d3d: D3DSAMPLERSTATETYPE) -> Self
Convert from an underlying winapi D3D... type.
This is probably safe… probably…
Sourcepub const fn into(self) -> D3DSAMPLERSTATETYPE
pub const fn into(self) -> D3DSAMPLERSTATETYPE
Convert back into an underlying winapi D3D... type.
Source§impl SamplerStateType
impl SamplerStateType
pub const AddressU: SamplerStateType
pub const AddressV: SamplerStateType
pub const AddressW: SamplerStateType
pub const BorderColor: SamplerStateType
pub const MagFilter: SamplerStateType
pub const MinFilter: SamplerStateType
pub const MipFilter: SamplerStateType
pub const MipMapLODBias: SamplerStateType
pub const MaxMipLevel: SamplerStateType
pub const MaxAnisotropy: SamplerStateType
pub const SRGBTexture: SamplerStateType
pub const ElementIndex: SamplerStateType
pub const DMapOffset: SamplerStateType
Trait Implementations§
Source§impl Clone for SamplerStateType
impl Clone for SamplerStateType
Source§fn clone(&self) -> SamplerStateType
fn clone(&self) -> SamplerStateType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<SamplerStateType> for D3DSAMPLERSTATETYPE
impl From<SamplerStateType> for D3DSAMPLERSTATETYPE
Source§impl Hash for SamplerStateType
impl Hash for SamplerStateType
Source§impl Ord for SamplerStateType
impl Ord for SamplerStateType
Source§fn cmp(&self, other: &SamplerStateType) -> Ordering
fn cmp(&self, other: &SamplerStateType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SamplerStateType
impl PartialEq for SamplerStateType
Source§impl PartialOrd for SamplerStateType
impl PartialOrd for SamplerStateType
impl Copy for SamplerStateType
impl Eq for SamplerStateType
impl StructuralPartialEq for SamplerStateType
Auto Trait Implementations§
impl Freeze for SamplerStateType
impl RefUnwindSafe for SamplerStateType
impl Send for SamplerStateType
impl Sync for SamplerStateType
impl Unpin for SamplerStateType
impl UnwindSafe for SamplerStateType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more