Trait dxgi_IDXGISwapChain

Source
pub trait dxgi_IDXGISwapChain: dxgi_IDXGIDeviceSubObject {
    // Provided methods
    fn GetBuffer<T>(&self, buffer_index: u32) -> HrResult<T>
       where T: ole_IUnknown { ... }
    fn GetContainingOutput(&self) -> HrResult<IDXGIOutput> { ... }
    fn GetDesc(&self) -> HrResult<DXGI_SWAP_CHAIN_DESC> { ... }
    fn GetFrameStatistics(&self) -> HrResult<DXGI_FRAME_STATISTICS> { ... }
    fn GetFullscreenState(&self) -> HrResult<(bool, Option<IDXGIOutput>)> { ... }
    fn GetLastPresentCount(&self) -> HrResult<u32> { ... }
    fn Present(&self, sync_interval: u32, flags: DXGI_PRESENT) -> HrResult<()> { ... }
    fn ResizeBuffers(
        &self,
        buffer_count: u32,
        width: u32,
        height: u32,
        new_format: DXGI_FORMAT,
        swap_chain_flags: DXGI_SWAP_CHAIN_FLAG,
    ) -> HrResult<()> { ... }
    fn ResizeTarget(
        &self,
        new_target_parameters: &DXGI_MODE_DESC,
    ) -> HrResult<()> { ... }
    fn SetFullscreenState(
        &self,
        fullscreen: bool,
        target: Option<&impl dxgi_IDXGIOutput>,
    ) -> HrResult<()> { ... }
}
Available on crate features kernel and dxgi only.
Expand description

This trait is enabled with the dxgi feature, and provides methods for IDXGISwapChain.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

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§