Struct thindx::d3d::PTextureCaps
source · [−]#[repr(transparent)]pub struct PTextureCaps(_);
Expand description
[docs.microsoft.com] D3DPTEXTURECAPS_*
Implementations
sourceimpl PTextureCaps
impl PTextureCaps
sourcepub const fn from_unchecked(d3d: DWORD) -> Self
pub const fn from_unchecked(d3d: DWORD) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> DWORD
pub const fn into_inner(self) -> DWORD
Convert back into an underlying [winapi] D3D...
type.
sourceimpl PTextureCaps
impl PTextureCaps
pub const None: PTextureCaps = PTextureCaps(0)
pub const Alpha: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_ALPHA)
pub const AlphaPalette: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_ALPHAPALETTE)
pub const CubeMap: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_CUBEMAP)
pub const CubeMapPow2: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_CUBEMAP_POW2)
pub const MipCubeMap: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_MIPCUBEMAP)
pub const MipMap: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_MIPMAP)
pub const MipVolumeMap: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_MIPVOLUMEMAP)
pub const NonPow2Conditional: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_NONPOW2CONDITIONAL)
pub const NoProjectedBumpEnv: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_NOPROJECTEDBUMPENV)
pub const Perspective: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_PERSPECTIVE)
pub const Pow2: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_POW2)
pub const Projected: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_PROJECTED)
pub const SquareOnly: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_SQUAREONLY)
pub const TexRepeatNotScaledBySize: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE)
pub const VolumeMap: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_VOLUMEMAP)
pub const VolumeMapPow2: PTextureCaps = PTextureCaps(D3DPTEXTURECAPS_VOLUMEMAP_POW2)
Trait Implementations
sourceimpl BitOr<PTextureCaps> for PTextureCaps
impl BitOr<PTextureCaps> for PTextureCaps
type Output = PTextureCaps
type Output = PTextureCaps
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<PTextureCaps> for PTextureCaps
impl BitOrAssign<PTextureCaps> for PTextureCaps
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the |=
operation. Read more
sourceimpl Clone for PTextureCaps
impl Clone for PTextureCaps
sourcefn clone(&self) -> PTextureCaps
fn clone(&self) -> PTextureCaps
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 PTextureCaps
impl Debug for PTextureCaps
sourceimpl Default for PTextureCaps
impl Default for PTextureCaps
sourceimpl From<PTextureCaps> for DWORD
impl From<PTextureCaps> for DWORD
sourcefn from(value: PTextureCaps) -> Self
fn from(value: PTextureCaps) -> Self
Converts to this type from the input type.
sourceimpl Hash for PTextureCaps
impl Hash for PTextureCaps
sourceimpl Ord for PTextureCaps
impl Ord for PTextureCaps
sourceimpl PartialEq<PTextureCaps> for PTextureCaps
impl PartialEq<PTextureCaps> for PTextureCaps
sourcefn eq(&self, other: &PTextureCaps) -> bool
fn eq(&self, other: &PTextureCaps) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PTextureCaps) -> bool
fn ne(&self, other: &PTextureCaps) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PTextureCaps> for PTextureCaps
impl PartialOrd<PTextureCaps> for PTextureCaps
sourcefn partial_cmp(&self, other: &PTextureCaps) -> Option<Ordering>
fn partial_cmp(&self, other: &PTextureCaps) -> 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 PTextureCaps
impl Zeroable for PTextureCaps
impl Copy for PTextureCaps
impl Eq for PTextureCaps
impl Pod for PTextureCaps
impl StructuralEq for PTextureCaps
impl StructuralPartialEq for PTextureCaps
Auto Trait Implementations
impl RefUnwindSafe for PTextureCaps
impl Send for PTextureCaps
impl Sync for PTextureCaps
impl Unpin for PTextureCaps
impl UnwindSafe for PTextureCaps
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