Trait windows::Win32::Graphics::Dxgi::IDXGISwapChain_Impl

pub trait IDXGISwapChain_Impl: Sized + IDXGIDeviceSubObject_Impl {
    // Required methods
    fn Present(&self, syncinterval: u32, flags: DXGI_PRESENT) -> HRESULT;
    fn GetBuffer(
        &self,
        buffer: u32,
        riid: *const GUID,
        ppsurface: *mut *mut c_void,
    ) -> Result<()>;
    fn SetFullscreenState(
        &self,
        fullscreen: BOOL,
        ptarget: Option<&IDXGIOutput>,
    ) -> Result<()>;
    fn GetFullscreenState(
        &self,
        pfullscreen: *mut BOOL,
        pptarget: *mut Option<IDXGIOutput>,
    ) -> Result<()>;
    fn GetDesc(&self) -> Result<DXGI_SWAP_CHAIN_DESC>;
    fn ResizeBuffers(
        &self,
        buffercount: u32,
        width: u32,
        height: u32,
        newformat: DXGI_FORMAT,
        swapchainflags: &DXGI_SWAP_CHAIN_FLAG,
    ) -> Result<()>;
    fn ResizeTarget(
        &self,
        pnewtargetparameters: *const DXGI_MODE_DESC,
    ) -> Result<()>;
    fn GetContainingOutput(&self) -> Result<IDXGIOutput>;
    fn GetFrameStatistics(
        &self,
        pstats: *mut DXGI_FRAME_STATISTICS,
    ) -> Result<()>;
    fn GetLastPresentCount(&self) -> Result<u32>;
}

Required Methods§

fn Present(&self, syncinterval: u32, flags: DXGI_PRESENT) -> HRESULT

fn GetBuffer( &self, buffer: u32, riid: *const GUID, ppsurface: *mut *mut c_void, ) -> Result<()>

fn SetFullscreenState( &self, fullscreen: BOOL, ptarget: Option<&IDXGIOutput>, ) -> Result<()>

fn GetFullscreenState( &self, pfullscreen: *mut BOOL, pptarget: *mut Option<IDXGIOutput>, ) -> Result<()>

fn GetDesc(&self) -> Result<DXGI_SWAP_CHAIN_DESC>

fn ResizeBuffers( &self, buffercount: u32, width: u32, height: u32, newformat: DXGI_FORMAT, swapchainflags: &DXGI_SWAP_CHAIN_FLAG, ) -> Result<()>

fn ResizeTarget( &self, pnewtargetparameters: *const DXGI_MODE_DESC, ) -> Result<()>

fn GetContainingOutput(&self) -> Result<IDXGIOutput>

fn GetFrameStatistics(&self, pstats: *mut DXGI_FRAME_STATISTICS) -> Result<()>

fn GetLastPresentCount(&self) -> Result<u32>

Object Safety§

This trait is not object safe.

Implementors§