pub struct SwapChainDesc(/* private fields */);
Expand description
Wrapper around DXGI_SWAP_CHAIN_DESC1 structure
Implementations§
Source§impl SwapChainDesc
impl SwapChainDesc
pub fn set_width(&mut self, width: u32) -> &mut Self
pub fn with_width(self, width: u32) -> Self
pub fn width(&self) -> u32
pub fn set_height(&mut self, height: u32) -> &mut Self
pub fn with_height(self, height: u32) -> Self
pub fn height(&self) -> u32
pub fn set_format(&mut self, format: Format) -> &mut Self
pub fn with_format(self, format: Format) -> Self
pub fn format(&self) -> Format
pub fn set_stereo(&mut self, stereo: bool) -> &mut Self
pub fn with_stereo(self, stereo: bool) -> Self
pub fn stereo(&self) -> bool
pub fn set_sample_desc(&mut self, sample_desc: SampleDesc) -> &mut Self
pub fn with_sample_desc(self, sample_desc: SampleDesc) -> Self
pub fn sample_desc(&self) -> SampleDesc
pub fn set_buffer_usage(&mut self, buffer_usage: Usage) -> &mut Self
pub fn with_buffer_usage(self, buffer_usage: Usage) -> Self
pub fn buffer_usage(&self) -> Usage
pub fn set_buffer_count(&mut self, buffer_count: u32) -> &mut Self
pub fn with_buffer_count(self, buffer_count: u32) -> Self
pub fn buffer_count(&self) -> u32
pub fn set_scaling(&mut self, scaling: Scaling) -> &mut Self
pub fn with_scaling(self, scaling: Scaling) -> Self
pub fn scaling(&self) -> Scaling
pub fn set_swap_effect(&mut self, swap_effect: SwapEffect) -> &mut Self
pub fn with_swap_effect(self, swap_effect: SwapEffect) -> Self
pub fn swap_effect(&self) -> SwapEffect
pub fn set_alpha_mode(&mut self, alpha_mode: AlphaMode) -> &mut Self
pub fn with_alpha_mode(self, alpha_mode: AlphaMode) -> Self
pub fn alpha_mode(&self) -> AlphaMode
pub fn set_flags(&mut self, flags: SwapChainFlags) -> &mut Self
pub fn with_flags(self, flags: SwapChainFlags) -> Self
pub fn flags(&self) -> SwapChainFlags
Trait Implementations§
Source§impl Clone for SwapChainDesc
impl Clone for SwapChainDesc
Source§fn clone(&self) -> SwapChainDesc
fn clone(&self) -> SwapChainDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SwapChainDesc
impl Debug for SwapChainDesc
Source§impl Default for SwapChainDesc
impl Default for SwapChainDesc
Source§impl Hash for SwapChainDesc
impl Hash for SwapChainDesc
Source§impl Ord for SwapChainDesc
impl Ord for SwapChainDesc
Source§fn cmp(&self, other: &SwapChainDesc) -> Ordering
fn cmp(&self, other: &SwapChainDesc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SwapChainDesc
impl PartialEq for SwapChainDesc
Source§impl PartialOrd for SwapChainDesc
impl PartialOrd for SwapChainDesc
impl Eq for SwapChainDesc
impl StructuralPartialEq for SwapChainDesc
Auto Trait Implementations§
impl Freeze for SwapChainDesc
impl RefUnwindSafe for SwapChainDesc
impl Send for SwapChainDesc
impl Sync for SwapChainDesc
impl Unpin for SwapChainDesc
impl UnwindSafe for SwapChainDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more