windows::Win32::Graphics::Dxgi

Trait IDXGIFactory_Impl

pub trait IDXGIFactory_Impl: IDXGIObject_Impl {
    // Required methods
    fn EnumAdapters(&self, adapter: u32) -> Result<IDXGIAdapter>;
    fn MakeWindowAssociation(
        &self,
        windowhandle: HWND,
        flags: DXGI_MWA_FLAGS,
    ) -> Result<()>;
    fn GetWindowAssociation(&self) -> Result<HWND>;
    fn CreateSwapChain(
        &self,
        pdevice: Ref<'_, IUnknown>,
        pdesc: *const DXGI_SWAP_CHAIN_DESC,
        ppswapchain: OutRef<'_, IDXGISwapChain>,
    ) -> HRESULT;
    fn CreateSoftwareAdapter(&self, module: HMODULE) -> Result<IDXGIAdapter>;
}

Required Methods§

fn EnumAdapters(&self, adapter: u32) -> Result<IDXGIAdapter>

fn MakeWindowAssociation( &self, windowhandle: HWND, flags: DXGI_MWA_FLAGS, ) -> Result<()>

fn GetWindowAssociation(&self) -> Result<HWND>

fn CreateSwapChain( &self, pdevice: Ref<'_, IUnknown>, pdesc: *const DXGI_SWAP_CHAIN_DESC, ppswapchain: OutRef<'_, IDXGISwapChain>, ) -> HRESULT

fn CreateSoftwareAdapter(&self, module: HMODULE) -> Result<IDXGIAdapter>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§