Trait winsafe::prelude::dxgi_IDXGIResource
source · pub trait dxgi_IDXGIResource: dxgi_IDXGIDeviceSubObject {
// Provided methods
fn GetEvictionPriority(&self) -> HrResult<DXGI_RESOURCE_PRIORITY> { ... }
fn GetSharedHandle(&self) -> HrResult<*mut c_void> { ... }
fn GetUsage(&self) -> HrResult<DXGI_USAGE> { ... }
fn SetEvictionPriority(
&self,
eviction_priority: DXGI_RESOURCE_PRIORITY
) -> HrResult<()> { ... }
}
Available on crate features
kernel
and dxgi
only.Expand description
This trait is enabled with the dxgi
feature, and provides methods for
IDXGIResource
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn GetEvictionPriority(&self) -> HrResult<DXGI_RESOURCE_PRIORITY>
fn GetEvictionPriority(&self) -> HrResult<DXGI_RESOURCE_PRIORITY>
IDXGIResource::GetSharedHandle
method.
sourcefn GetUsage(&self) -> HrResult<DXGI_USAGE>
fn GetUsage(&self) -> HrResult<DXGI_USAGE>
IDXGIResource::GetUsage
method.
sourcefn SetEvictionPriority(
&self,
eviction_priority: DXGI_RESOURCE_PRIORITY
) -> HrResult<()>
fn SetEvictionPriority( &self, eviction_priority: DXGI_RESOURCE_PRIORITY ) -> HrResult<()>
Object Safety§
This trait is not object safe.