Struct thindx::d3d::PresentParameters
source · [−]#[repr(C)]pub struct PresentParameters<'w> {Show 14 fields
pub back_buffer_width: u32,
pub back_buffer_height: u32,
pub back_buffer_format: Format,
pub back_buffer_count: u32,
pub multi_sample_type: MultiSampleType,
pub multi_sample_quality: u32,
pub swap_effect: SwapEffect,
pub device_window: Option<SafeHWND<'w>>,
pub windowed: BOOL,
pub enable_auto_depth_stencil: BOOL,
pub auto_depth_stencil_format: Format,
pub flags: PresentFlag,
pub full_screen_refresh_rate_in_hz: u32,
pub presentation_interval: Present,
}
Expand description
[docs.microsoft.com] D3DPRESENT_PARAMETERS
Describes presentation parameters.
Fields
back_buffer_width: u32
back_buffer_height: u32
back_buffer_format: Format
back_buffer_count: u32
multi_sample_type: MultiSampleType
multi_sample_quality: u32
swap_effect: SwapEffect
device_window: Option<SafeHWND<'w>>
windowed: BOOL
enable_auto_depth_stencil: BOOL
auto_depth_stencil_format: Format
flags: PresentFlag
full_screen_refresh_rate_in_hz: u32
presentation_interval: Present
Implementations
sourceimpl PresentParameters<'_>
impl PresentParameters<'_>
Trait Implementations
sourceimpl AsRef<D3DPRESENT_PARAMETERS> for PresentParameters<'_>
impl AsRef<D3DPRESENT_PARAMETERS> for PresentParameters<'_>
sourceimpl<'w> Clone for PresentParameters<'w>
impl<'w> Clone for PresentParameters<'w>
sourcefn clone(&self) -> PresentParameters<'w>
fn clone(&self) -> PresentParameters<'w>
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<'w> Debug for PresentParameters<'w>
impl<'w> Debug for PresentParameters<'w>
sourceimpl Deref for PresentParameters<'_>
impl Deref for PresentParameters<'_>
sourceimpl From<PresentParameters<'_>> for D3DPRESENT_PARAMETERS
impl From<PresentParameters<'_>> for D3DPRESENT_PARAMETERS
sourcefn from(value: PresentParameters<'_>) -> Self
fn from(value: PresentParameters<'_>) -> Self
Converts to this type from the input type.
sourceimpl Zeroable for PresentParameters<'_>
impl Zeroable for PresentParameters<'_>
Auto Trait Implementations
impl<'w> RefUnwindSafe for PresentParameters<'w>
impl<'w> !Send for PresentParameters<'w>
impl<'w> !Sync for PresentParameters<'w>
impl<'w> Unpin for PresentParameters<'w>
impl<'w> UnwindSafe for PresentParameters<'w>
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