Struct thindx::d3d9::SamplerStateType
source · [−]#[repr(transparent)]pub struct SamplerStateType(_);
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
sourceimpl 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_inner(self) -> D3DSAMPLERSTATETYPE
pub const fn into_inner(self) -> D3DSAMPLERSTATETYPE
Convert back into an underlying [winapi] D3D...
type.
sourceimpl SamplerStateType
impl SamplerStateType
pub const AddressU: SamplerStateType = SamplerStateType(D3DSAMP_ADDRESSU)
pub const AddressV: SamplerStateType = SamplerStateType(D3DSAMP_ADDRESSV)
pub const AddressW: SamplerStateType = SamplerStateType(D3DSAMP_ADDRESSW)
pub const BorderColor: SamplerStateType = SamplerStateType(D3DSAMP_BORDERCOLOR)
pub const MagFilter: SamplerStateType = SamplerStateType(D3DSAMP_MAGFILTER)
pub const MinFilter: SamplerStateType = SamplerStateType(D3DSAMP_MINFILTER)
pub const MipFilter: SamplerStateType = SamplerStateType(D3DSAMP_MIPFILTER)
pub const MipMapLODBias: SamplerStateType = SamplerStateType(D3DSAMP_MIPMAPLODBIAS)
pub const MaxMipLevel: SamplerStateType = SamplerStateType(D3DSAMP_MAXMIPLEVEL)
pub const MaxAnisotropy: SamplerStateType = SamplerStateType(D3DSAMP_MAXANISOTROPY)
pub const SRGBTexture: SamplerStateType = SamplerStateType(D3DSAMP_SRGBTEXTURE)
pub const ElementIndex: SamplerStateType = SamplerStateType(D3DSAMP_ELEMENTINDEX)
pub const DMapOffset: SamplerStateType = SamplerStateType(D3DSAMP_DMAPOFFSET)
Trait Implementations
sourceimpl Clone for SamplerStateType
impl Clone for SamplerStateType
sourcefn clone(&self) -> SamplerStateType
fn clone(&self) -> SamplerStateType
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 From<SamplerStateType> for D3DSAMPLERSTATETYPE
impl From<SamplerStateType> for D3DSAMPLERSTATETYPE
sourceimpl Hash for SamplerStateType
impl Hash for SamplerStateType
sourceimpl Ord for SamplerStateType
impl Ord for SamplerStateType
sourceimpl PartialEq<SamplerStateType> for SamplerStateType
impl PartialEq<SamplerStateType> for SamplerStateType
sourcefn eq(&self, other: &SamplerStateType) -> bool
fn eq(&self, other: &SamplerStateType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SamplerStateType) -> bool
fn ne(&self, other: &SamplerStateType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SamplerStateType> for SamplerStateType
impl PartialOrd<SamplerStateType> for SamplerStateType
sourcefn partial_cmp(&self, other: &SamplerStateType) -> Option<Ordering>
fn partial_cmp(&self, other: &SamplerStateType) -> 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
sourceimpl Zeroable for SamplerStateType
impl Zeroable for SamplerStateType
impl Copy for SamplerStateType
impl Eq for SamplerStateType
impl Pod for SamplerStateType
impl StructuralEq for SamplerStateType
impl StructuralPartialEq for SamplerStateType
Auto Trait Implementations
impl RefUnwindSafe for SamplerStateType
impl Send for SamplerStateType
impl Sync for SamplerStateType
impl Unpin for SamplerStateType
impl UnwindSafe for SamplerStateType
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