Trait winsafe::prelude::dxgi_IDXGIDevice

source ·
pub trait dxgi_IDXGIDevice: dxgi_IDXGIObject {
    // Provided methods
    fn CreateSurface(
        &self,
        desc: &DXGI_SURFACE_DESC,
        num_surfaces: u32,
        usage: DXGI_USAGE,
        shared_resource: Option<&DXGI_SHARED_RESOURCE>
    ) -> HrResult<IDXGISurface> { ... }
    fn GetAdapter(&self) -> HrResult<IDXGIAdapter> { ... }
    fn GetGPUThreadPriority(&self) -> HrResult<i8> { ... }
    fn SetGPUThreadPriority(&self, priority: i8) -> HrResult<()> { ... }
}
Available on crate features kernel and dxgi only.
Expand description

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

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§