Trait windows::Win32::Graphics::Dxgi::IDXGIDevice_Impl

pub trait IDXGIDevice_Impl: Sized + IDXGIObject_Impl {
    // Required methods
    fn GetAdapter(&self) -> Result<IDXGIAdapter>;
    fn CreateSurface(
        &self,
        pdesc: *const DXGI_SURFACE_DESC,
        numsurfaces: u32,
        usage: DXGI_USAGE,
        psharedresource: *const DXGI_SHARED_RESOURCE,
        ppsurface: *mut Option<IDXGISurface>,
    ) -> Result<()>;
    fn QueryResourceResidency(
        &self,
        ppresources: *const Option<IUnknown>,
        presidencystatus: *mut DXGI_RESIDENCY,
        numresources: u32,
    ) -> Result<()>;
    fn SetGPUThreadPriority(&self, priority: i32) -> Result<()>;
    fn GetGPUThreadPriority(&self) -> Result<i32>;
}

Required Methods§

fn GetAdapter(&self) -> Result<IDXGIAdapter>

fn CreateSurface( &self, pdesc: *const DXGI_SURFACE_DESC, numsurfaces: u32, usage: DXGI_USAGE, psharedresource: *const DXGI_SHARED_RESOURCE, ppsurface: *mut Option<IDXGISurface>, ) -> Result<()>

fn QueryResourceResidency( &self, ppresources: *const Option<IUnknown>, presidencystatus: *mut DXGI_RESIDENCY, numresources: u32, ) -> Result<()>

fn SetGPUThreadPriority(&self, priority: i32) -> Result<()>

fn GetGPUThreadPriority(&self) -> Result<i32>

Object Safety§

This trait is not object safe.

Implementors§