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§
sourcefn CreateSurface(
&self,
desc: &DXGI_SURFACE_DESC,
num_surfaces: u32,
usage: DXGI_USAGE,
shared_resource: Option<&DXGI_SHARED_RESOURCE>
) -> HrResult<IDXGISurface>
fn CreateSurface( &self, desc: &DXGI_SURFACE_DESC, num_surfaces: u32, usage: DXGI_USAGE, shared_resource: Option<&DXGI_SHARED_RESOURCE> ) -> HrResult<IDXGISurface>
IDXGIDevice::CreateSurface
method.
sourcefn GetAdapter(&self) -> HrResult<IDXGIAdapter>
fn GetAdapter(&self) -> HrResult<IDXGIAdapter>
IDXGIDevice::GetAdapter
method.
sourcefn GetGPUThreadPriority(&self) -> HrResult<i8>
fn GetGPUThreadPriority(&self) -> HrResult<i8>
sourcefn SetGPUThreadPriority(&self, priority: i8) -> HrResult<()>
fn SetGPUThreadPriority(&self, priority: i8) -> HrResult<()>
Object Safety§
This trait is not object safe.