Trait winsafe::prelude::dxgi_IDXGISurface
source · pub trait dxgi_IDXGISurface: dxgi_IDXGIDeviceSubObject {
// Provided methods
fn GetDesc(&self) -> HrResult<DXGI_SURFACE_DESC> { ... }
fn Map(&self, map_flags: DXGI_MAP) -> HrResult<DXGI_MAPPED_RECT> { ... }
fn Unmap(&self) -> HrResult<()> { ... }
}
Available on crate features
kernel
and dxgi
only.Expand description
This trait is enabled with the dxgi
feature, and provides methods for
IDXGISurface
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn GetDesc(&self) -> HrResult<DXGI_SURFACE_DESC>
fn GetDesc(&self) -> HrResult<DXGI_SURFACE_DESC>
IDXGISurface::GetDesc
method.
sourcefn Map(&self, map_flags: DXGI_MAP) -> HrResult<DXGI_MAPPED_RECT>
fn Map(&self, map_flags: DXGI_MAP) -> HrResult<DXGI_MAPPED_RECT>
IDXGISurface::Map
method.
sourcefn Unmap(&self) -> HrResult<()>
fn Unmap(&self) -> HrResult<()>
IDXGISurface::Unmap
method.
Object Safety§
This trait is not object safe.