[][src]Trait dxplr::dxgi::IFactory

pub trait IFactory: Interface {
    fn create_software_adapter(
        &self,
        module: HMODULE
    ) -> Result<Adapter, HResult>;
fn create_swap_chain<T: Interface>(
        &self,
        device: &T,
        desc: &SwapChainDesc<ModeDesc<u32, u32, Rational, Format>, Usage, u32, *const c_void, bool, SwapEffect>
    ) -> Result<SwapChain, HResult>;
fn enum_adapters(&self) -> Result<Vec<Adapter>, HResult>;
fn get_window_association(&self) -> Result<HWND, HResult>;
fn make_window_association(
        &self,
        hwnd: &impl WindowHandle,
        flags: Option<MakeWindowAssociationFlag>
    ) -> Result<(), HResult>; }

Required methods

fn create_software_adapter(&self, module: HMODULE) -> Result<Adapter, HResult>

fn create_swap_chain<T: Interface>(
    &self,
    device: &T,
    desc: &SwapChainDesc<ModeDesc<u32, u32, Rational, Format>, Usage, u32, *const c_void, bool, SwapEffect>
) -> Result<SwapChain, HResult>

fn enum_adapters(&self) -> Result<Vec<Adapter>, HResult>

fn get_window_association(&self) -> Result<HWND, HResult>

fn make_window_association(
    &self,
    hwnd: &impl WindowHandle,
    flags: Option<MakeWindowAssociationFlag>
) -> Result<(), HResult>

Loading content...

Implementors

impl IFactory for Factory[src]

impl IFactory for Factory1[src]

impl IFactory for Factory2[src]

impl IFactory for Factory3[src]

impl IFactory for Factory4[src]

impl IFactory for Factory5[src]

impl IFactory for Factory6[src]

Loading content...