Struct thindx::d3d9::SamplerTextureType
source · [−]#[repr(transparent)]pub struct SamplerTextureType(_);
Expand description
[docs.microsoft.com] D3DSAMPLER_TEXTURE_TYPE
Defines the sampler texture types for vertex shaders.
Implementations
sourceimpl STT
impl STT
sourcepub const fn from_unchecked(d3d: D3DSAMPLER_TEXTURE_TYPE) -> Self
pub const fn from_unchecked(d3d: D3DSAMPLER_TEXTURE_TYPE) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DSAMPLER_TEXTURE_TYPE
pub const fn into_inner(self) -> D3DSAMPLER_TEXTURE_TYPE
Convert back into an underlying [winapi] D3D...
type.
sourceimpl SamplerTextureType
impl SamplerTextureType
pub const Unknown: SamplerTextureType = SamplerTextureType(D3DSTT_UNKNOWN)
pub const _2D: SamplerTextureType = SamplerTextureType(D3DSTT_2D)
pub const Regular: SamplerTextureType = SamplerTextureType(D3DSTT_2D)
pub const Cube: SamplerTextureType = SamplerTextureType(D3DSTT_CUBE)
pub const Volume: SamplerTextureType = SamplerTextureType(D3DSTT_VOLUME)
Trait Implementations
sourceimpl Clone for SamplerTextureType
impl Clone for SamplerTextureType
sourcefn clone(&self) -> SamplerTextureType
fn clone(&self) -> SamplerTextureType
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<SamplerTextureType> for D3DSAMPLER_TEXTURE_TYPE
impl From<SamplerTextureType> for D3DSAMPLER_TEXTURE_TYPE
sourceimpl Hash for SamplerTextureType
impl Hash for SamplerTextureType
sourceimpl Ord for SamplerTextureType
impl Ord for SamplerTextureType
sourceimpl PartialEq<SamplerTextureType> for SamplerTextureType
impl PartialEq<SamplerTextureType> for SamplerTextureType
sourcefn eq(&self, other: &SamplerTextureType) -> bool
fn eq(&self, other: &SamplerTextureType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SamplerTextureType) -> bool
fn ne(&self, other: &SamplerTextureType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SamplerTextureType> for SamplerTextureType
impl PartialOrd<SamplerTextureType> for SamplerTextureType
sourcefn partial_cmp(&self, other: &SamplerTextureType) -> Option<Ordering>
fn partial_cmp(&self, other: &SamplerTextureType) -> 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 SamplerTextureType
impl Zeroable for SamplerTextureType
impl Copy for SamplerTextureType
impl Eq for SamplerTextureType
impl Pod for SamplerTextureType
impl StructuralEq for SamplerTextureType
impl StructuralPartialEq for SamplerTextureType
Auto Trait Implementations
impl RefUnwindSafe for SamplerTextureType
impl Send for SamplerTextureType
impl Sync for SamplerTextureType
impl Unpin for SamplerTextureType
impl UnwindSafe for SamplerTextureType
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