Struct thindx::d3d9::StateBlockType
source · [−]#[repr(transparent)]pub struct StateBlockType(_);
Expand description
[docs.microsoft.com] D3DSTATEBLOCKTYPE
Predefined sets of pipeline state used by state blocks (see State Blocks Save and Restore State (Direct3D 9)).
Implementations
sourceimpl SBT
impl SBT
sourcepub const fn from_unchecked(d3d: D3DSTATEBLOCKTYPE) -> Self
pub const fn from_unchecked(d3d: D3DSTATEBLOCKTYPE) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DSTATEBLOCKTYPE
pub const fn into_inner(self) -> D3DSTATEBLOCKTYPE
Convert back into an underlying [winapi] D3D...
type.
sourceimpl StateBlockType
impl StateBlockType
sourcepub const All: StateBlockType = StateBlockType(D3DSBT_ALL)
pub const All: StateBlockType = StateBlockType(D3DSBT_ALL)
Capture the current device state.
sourcepub const PixelState: StateBlockType = StateBlockType(D3DSBT_PIXELSTATE)
pub const PixelState: StateBlockType = StateBlockType(D3DSBT_PIXELSTATE)
Capture the current pixel state.
sourcepub const VertexState: StateBlockType = StateBlockType(D3DSBT_VERTEXSTATE)
pub const VertexState: StateBlockType = StateBlockType(D3DSBT_VERTEXSTATE)
Capture the current vertex state.
Trait Implementations
sourceimpl Clone for StateBlockType
impl Clone for StateBlockType
sourcefn clone(&self) -> StateBlockType
fn clone(&self) -> StateBlockType
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<StateBlockType> for D3DSTATEBLOCKTYPE
impl From<StateBlockType> for D3DSTATEBLOCKTYPE
sourceimpl Hash for StateBlockType
impl Hash for StateBlockType
sourceimpl Ord for StateBlockType
impl Ord for StateBlockType
sourceimpl PartialEq<StateBlockType> for StateBlockType
impl PartialEq<StateBlockType> for StateBlockType
sourcefn eq(&self, other: &StateBlockType) -> bool
fn eq(&self, other: &StateBlockType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StateBlockType) -> bool
fn ne(&self, other: &StateBlockType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StateBlockType> for StateBlockType
impl PartialOrd<StateBlockType> for StateBlockType
sourcefn partial_cmp(&self, other: &StateBlockType) -> Option<Ordering>
fn partial_cmp(&self, other: &StateBlockType) -> 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 StateBlockType
impl Zeroable for StateBlockType
impl Copy for StateBlockType
impl Eq for StateBlockType
impl Pod for StateBlockType
impl StructuralEq for StateBlockType
impl StructuralPartialEq for StateBlockType
Auto Trait Implementations
impl RefUnwindSafe for StateBlockType
impl Send for StateBlockType
impl Sync for StateBlockType
impl Unpin for StateBlockType
impl UnwindSafe for StateBlockType
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