[][src]Trait dxplr::dxgi::IFactory2

pub trait IFactory2: IFactory1 {
    fn create_swap_chain_for_composition<T: Interface>(
        &self,
        device: &T,
        desc: &SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>,
        restrict_to_output: Option<&Output>
    ) -> Result<SwapChain1, HResult>;
fn create_swap_chain_for_core_window<T: Interface, U: Interface>(
        &self,
        device: &T,
        window: &U,
        desc: &SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>,
        restrict_to_output: Option<&Output>
    ) -> Result<SwapChain1, HResult>;
fn create_swap_chain_for_hwnd<T: Interface>(
        &self,
        device: &T,
        hwnd: &impl WindowHandle,
        desc: &SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>,
        fullscreen_desc: Option<&SwapChainFullscreenDesc>,
        restrict_to_output: Option<&Output>
    ) -> Result<SwapChain1, HResult>;
fn get_shared_resource_adapter_luid(
        &self,
        resource: HANDLE
    ) -> Result<Luid, HResult>;
fn is_windowed_stereo_enabled(&self) -> bool;
fn register_occlusion_status_event(
        &self,
        hevent: HANDLE
    ) -> Result<u32, HResult>;
fn register_occlusion_status_window(
        &self,
        hwnd: &impl WindowHandle,
        msg: UINT
    ) -> Result<u32, HResult>;
fn register_stereo_status_event(
        &self,
        hevent: HANDLE
    ) -> Result<u32, HResult>;
fn register_stereo_status_window(
        &self,
        hwnd: &impl WindowHandle,
        msg: UINT
    ) -> Result<u32, HResult>;
fn unregister_occlusion_status(&self, cookie: u32);
fn unregister_stereo_status(&self, cookie: u32); }

Required methods

fn create_swap_chain_for_composition<T: Interface>(
    &self,
    device: &T,
    desc: &SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>,
    restrict_to_output: Option<&Output>
) -> Result<SwapChain1, HResult>

fn create_swap_chain_for_core_window<T: Interface, U: Interface>(
    &self,
    device: &T,
    window: &U,
    desc: &SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>,
    restrict_to_output: Option<&Output>
) -> Result<SwapChain1, HResult>

fn create_swap_chain_for_hwnd<T: Interface>(
    &self,
    device: &T,
    hwnd: &impl WindowHandle,
    desc: &SwapChainDesc1<u32, u32, Format, Usage, u32, SwapEffect>,
    fullscreen_desc: Option<&SwapChainFullscreenDesc>,
    restrict_to_output: Option<&Output>
) -> Result<SwapChain1, HResult>

fn get_shared_resource_adapter_luid(
    &self,
    resource: HANDLE
) -> Result<Luid, HResult>

fn is_windowed_stereo_enabled(&self) -> bool

fn register_occlusion_status_event(
    &self,
    hevent: HANDLE
) -> Result<u32, HResult>

fn register_occlusion_status_window(
    &self,
    hwnd: &impl WindowHandle,
    msg: UINT
) -> Result<u32, HResult>

fn register_stereo_status_event(&self, hevent: HANDLE) -> Result<u32, HResult>

fn register_stereo_status_window(
    &self,
    hwnd: &impl WindowHandle,
    msg: UINT
) -> Result<u32, HResult>

fn unregister_occlusion_status(&self, cookie: u32)

fn unregister_stereo_status(&self, cookie: u32)

Loading content...

Implementors

impl IFactory2 for Factory2[src]

impl IFactory2 for Factory3[src]

impl IFactory2 for Factory4[src]

impl IFactory2 for Factory5[src]

impl IFactory2 for Factory6[src]

Loading content...