[][src]Struct dxplr::dxgi::SwapChainDesc1

pub struct SwapChainDesc1<W, H, F, BU, BC, SE> {
    pub width: W,
    pub height: H,
    pub format: F,
    pub stereo: bool,
    pub sample_desc: SampleDesc,
    pub buffer_usage: BU,
    pub buffer_count: BC,
    pub scaling: Scaling,
    pub swap_effect: SE,
    pub alpha_mode: AlphaMode,
    pub flags: Option<SwapChainFlag>,
}

Fields

width: Wheight: Hformat: Fstereo: boolsample_desc: SampleDescbuffer_usage: BUbuffer_count: BCscaling: Scalingswap_effect: SEalpha_mode: AlphaModeflags: Option<SwapChainFlag>

Methods

impl SwapChainDesc1<(), (), (), (), (), ()>[src]

pub fn new() -> Self[src]

impl<W, H, F, BU, BC, SE> SwapChainDesc1<W, H, F, BU, BC, SE>[src]

pub fn width(self, width: u32) -> SwapChainDesc1<u32, H, F, BU, BC, SE>[src]

pub fn height(self, height: u32) -> SwapChainDesc1<W, u32, F, BU, BC, SE>[src]

pub fn format(self, format: Format) -> SwapChainDesc1<W, H, Format, BU, BC, SE>[src]

pub fn stereo(self, stereo: bool) -> Self[src]

pub fn sample_desc(self, desc: SampleDesc) -> Self[src]

pub fn buffer_usage(
    self,
    buffer_usage: Usage
) -> SwapChainDesc1<W, H, F, Usage, BC, SE>
[src]

pub fn buffer_count(
    self,
    buffer_count: u32
) -> SwapChainDesc1<W, H, F, BU, u32, SE>
[src]

pub fn scaling(self, scaling: Scaling) -> Self[src]

pub fn swap_effect(
    self,
    swap_effect: SwapEffect
) -> SwapChainDesc1<W, H, F, BU, BC, SwapEffect>
[src]

pub fn alpha_mode(self, alpha_mode: AlphaMode) -> Self[src]

pub fn flags(self, flags: SwapChainFlag) -> Self[src]

Trait Implementations

impl<W: Clone, H: Clone, F: Clone, BU: Clone, BC: Clone, SE: Clone> Clone for SwapChainDesc1<W, H, F, BU, BC, SE>[src]

impl<W: Debug, H: Debug, F: Debug, BU: Debug, BC: Debug, SE: Debug> Debug for SwapChainDesc1<W, H, F, BU, BC, SE>[src]

impl From<DXGI_SWAP_CHAIN_DESC1> for SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>[src]

Auto Trait Implementations

impl<W, H, F, BU, BC, SE> RefUnwindSafe for SwapChainDesc1<W, H, F, BU, BC, SE> where
    BC: RefUnwindSafe,
    BU: RefUnwindSafe,
    F: RefUnwindSafe,
    H: RefUnwindSafe,
    SE: RefUnwindSafe,
    W: RefUnwindSafe

impl<W, H, F, BU, BC, SE> Send for SwapChainDesc1<W, H, F, BU, BC, SE> where
    BC: Send,
    BU: Send,
    F: Send,
    H: Send,
    SE: Send,
    W: Send

impl<W, H, F, BU, BC, SE> Sync for SwapChainDesc1<W, H, F, BU, BC, SE> where
    BC: Sync,
    BU: Sync,
    F: Sync,
    H: Sync,
    SE: Sync,
    W: Sync

impl<W, H, F, BU, BC, SE> Unpin for SwapChainDesc1<W, H, F, BU, BC, SE> where
    BC: Unpin,
    BU: Unpin,
    F: Unpin,
    H: Unpin,
    SE: Unpin,
    W: Unpin

impl<W, H, F, BU, BC, SE> UnwindSafe for SwapChainDesc1<W, H, F, BU, BC, SE> where
    BC: UnwindSafe,
    BU: UnwindSafe,
    F: UnwindSafe,
    H: UnwindSafe,
    SE: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.