[][src]Struct dxplr::dxgi::SwapChainDesc

pub struct SwapChainDesc<B, U, C, O, W, S> {
    pub buffer_desc: B,
    pub sample_desc: SampleDesc,
    pub buffer_usage: U,
    pub buffer_count: C,
    pub output_window: O,
    pub windowed: W,
    pub swap_effect: S,
    pub flags: Option<SwapChainFlag>,
}

Fields

buffer_desc: Bsample_desc: SampleDescbuffer_usage: Ubuffer_count: Coutput_window: Owindowed: Wswap_effect: Sflags: Option<SwapChainFlag>

Implementations

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

pub fn new() -> Self[src]

impl<B, U, C, O, W, S> SwapChainDesc<B, U, C, O, W, S>[src]

pub fn buffer_desc(
    self,
    buffer_desc: ModeDesc<u32, u32, Rational, Format>
) -> SwapChainDesc<ModeDesc<u32, u32, Rational, Format>, U, C, O, W, S>
[src]

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

pub fn buffer_usage(
    self,
    buffer_usage: Usage
) -> SwapChainDesc<B, Usage, C, O, W, S>
[src]

pub fn buffer_count(
    self,
    buffer_count: u32
) -> SwapChainDesc<B, U, u32, O, W, S>
[src]

pub fn output_window(
    self,
    output_window: &impl WindowHandle
) -> SwapChainDesc<B, U, C, *const c_void, W, S>
[src]

pub fn windowed(self, windowed: bool) -> SwapChainDesc<B, U, C, O, bool, S>[src]

pub fn swap_effect(
    self,
    swap_effect: SwapEffect
) -> SwapChainDesc<B, U, C, O, W, SwapEffect>
[src]

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

Trait Implementations

impl<B: Clone, U: Clone, C: Clone, O: Clone, W: Clone, S: Clone> Clone for SwapChainDesc<B, U, C, O, W, S>[src]

impl<B: Debug, U: Debug, C: Debug, O: Debug, W: Debug, S: Debug> Debug for SwapChainDesc<B, U, C, O, W, S>[src]

impl From<DXGI_SWAP_CHAIN_DESC> for SwapChainDesc<ModeDesc<u32, u32, Rational, Format>, Usage, u32, *const c_void, bool, SwapEffect>[src]

Auto Trait Implementations

impl<B, U, C, O, W, S> RefUnwindSafe for SwapChainDesc<B, U, C, O, W, S> where
    B: RefUnwindSafe,
    C: RefUnwindSafe,
    O: RefUnwindSafe,
    S: RefUnwindSafe,
    U: RefUnwindSafe,
    W: RefUnwindSafe

impl<B, U, C, O, W, S> Send for SwapChainDesc<B, U, C, O, W, S> where
    B: Send,
    C: Send,
    O: Send,
    S: Send,
    U: Send,
    W: Send

impl<B, U, C, O, W, S> Sync for SwapChainDesc<B, U, C, O, W, S> where
    B: Sync,
    C: Sync,
    O: Sync,
    S: Sync,
    U: Sync,
    W: Sync

impl<B, U, C, O, W, S> Unpin for SwapChainDesc<B, U, C, O, W, S> where
    B: Unpin,
    C: Unpin,
    O: Unpin,
    S: Unpin,
    U: Unpin,
    W: Unpin

impl<B, U, C, O, W, S> UnwindSafe for SwapChainDesc<B, U, C, O, W, S> where
    B: UnwindSafe,
    C: UnwindSafe,
    O: UnwindSafe,
    S: UnwindSafe,
    U: 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.