Struct thindx::d3d9::MultiSample
source · [−]#[repr(transparent)]pub struct MultiSample(_);
Expand description
[docs.microsoft.com] D3DMULTISAMPLE_TYPE
Implementations
sourceimpl MultiSample
impl MultiSample
sourcepub const fn from_samples(samples: u8) -> Option<Self>
pub const fn from_samples(samples: u8) -> Option<Self>
Convert a number of samples between 1 and 16 into a MultiSample
sourceimpl MultiSample
impl MultiSample
sourcepub const fn from_unchecked(d3d: D3DMULTISAMPLE_TYPE) -> Self
pub const fn from_unchecked(d3d: D3DMULTISAMPLE_TYPE) -> Self
Convert from an underlying [winapi] D3D...
type.
This is probably safe… probably…
sourcepub const fn into_inner(self) -> D3DMULTISAMPLE_TYPE
pub const fn into_inner(self) -> D3DMULTISAMPLE_TYPE
Convert back into an underlying [winapi] D3D...
type.
sourceimpl MultiSample
impl MultiSample
sourcepub const None: MultiSample = MultiSample(D3DMULTISAMPLE_NONE)
pub const None: MultiSample = MultiSample(D3DMULTISAMPLE_NONE)
No level of full-scene multisampling is available.
sourcepub const NonMaskable: MultiSample = MultiSample(D3DMULTISAMPLE_NONMASKABLE)
pub const NonMaskable: MultiSample = MultiSample(D3DMULTISAMPLE_NONMASKABLE)
Enables the multisample quality value.
pub const X2: MultiSample = MultiSample(D3DMULTISAMPLE_2_SAMPLES)
pub const X3: MultiSample = MultiSample(D3DMULTISAMPLE_3_SAMPLES)
pub const X4: MultiSample = MultiSample(D3DMULTISAMPLE_4_SAMPLES)
pub const X5: MultiSample = MultiSample(D3DMULTISAMPLE_5_SAMPLES)
pub const X6: MultiSample = MultiSample(D3DMULTISAMPLE_6_SAMPLES)
pub const X7: MultiSample = MultiSample(D3DMULTISAMPLE_7_SAMPLES)
pub const X8: MultiSample = MultiSample(D3DMULTISAMPLE_8_SAMPLES)
pub const X9: MultiSample = MultiSample(D3DMULTISAMPLE_9_SAMPLES)
pub const X10: MultiSample = MultiSample(D3DMULTISAMPLE_10_SAMPLES)
pub const X11: MultiSample = MultiSample(D3DMULTISAMPLE_11_SAMPLES)
pub const X12: MultiSample = MultiSample(D3DMULTISAMPLE_12_SAMPLES)
pub const X13: MultiSample = MultiSample(D3DMULTISAMPLE_13_SAMPLES)
pub const X14: MultiSample = MultiSample(D3DMULTISAMPLE_14_SAMPLES)
pub const X15: MultiSample = MultiSample(D3DMULTISAMPLE_15_SAMPLES)
pub const X16: MultiSample = MultiSample(D3DMULTISAMPLE_16_SAMPLES)
Trait Implementations
sourceimpl Clone for MultiSampleType
impl Clone for MultiSampleType
sourcefn clone(&self) -> MultiSampleType
fn clone(&self) -> MultiSampleType
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 MultiSample
impl Debug for MultiSample
sourceimpl Default for MultiSample
impl Default for MultiSample
sourceimpl From<MultiSampleType> for D3DMULTISAMPLE_TYPE
impl From<MultiSampleType> for D3DMULTISAMPLE_TYPE
sourcefn from(value: MultiSample) -> Self
fn from(value: MultiSample) -> Self
Converts to this type from the input type.
sourceimpl Hash for MultiSampleType
impl Hash for MultiSampleType
sourceimpl Ord for MultiSampleType
impl Ord for MultiSampleType
sourceimpl PartialEq<MultiSampleType> for MultiSampleType
impl PartialEq<MultiSampleType> for MultiSampleType
sourcefn eq(&self, other: &MultiSampleType) -> bool
fn eq(&self, other: &MultiSampleType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MultiSampleType) -> bool
fn ne(&self, other: &MultiSampleType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MultiSampleType> for MultiSampleType
impl PartialOrd<MultiSampleType> for MultiSampleType
sourcefn partial_cmp(&self, other: &MultiSampleType) -> Option<Ordering>
fn partial_cmp(&self, other: &MultiSampleType) -> 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 MultiSampleType
impl Zeroable for MultiSampleType
impl Copy for MultiSampleType
impl Eq for MultiSampleType
impl Pod for MultiSampleType
impl StructuralEq for MultiSampleType
impl StructuralPartialEq for MultiSampleType
Auto Trait Implementations
impl RefUnwindSafe for MultiSampleType
impl Send for MultiSampleType
impl Sync for MultiSampleType
impl Unpin for MultiSampleType
impl UnwindSafe for MultiSampleType
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