#[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: u32back_buffer_height: u32back_buffer_format: Formatback_buffer_count: u32multi_sample_type: MultiSampleTypemulti_sample_quality: u32swap_effect: SwapEffectdevice_window: Option<SafeHWND<'w>>windowed: BOOLenable_auto_depth_stencil: BOOLauto_depth_stencil_format: Formatflags: PresentFlagfull_screen_refresh_rate_in_hz: u32presentation_interval: Present

Implementations

⚠️ Safety ⚠️

Mostly safe, but this could be used to bypass device_window’s SafeHWND requirements.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Dereferences the value.

The resulting type after dereferencing.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.