Struct winsafe::IDXGIResource
source · pub struct IDXGIResource(/* private fields */);
Available on crate feature
dxgi
only.Expand description
IDXGIResource
COM interface over IDXGIResourceVT
.
Automatically calls
Release
when the object goes out of scope.
Trait Implementations§
source§impl Clone for IDXGIResource
impl Clone for IDXGIResource
source§impl Drop for IDXGIResource
impl Drop for IDXGIResource
source§impl dxgi_IDXGIDeviceSubObject for IDXGIResource
impl dxgi_IDXGIDeviceSubObject for IDXGIResource
source§fn GetDevice<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn GetDevice<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
IDXGIDeviceSubObject::GetDevice
method.source§impl dxgi_IDXGIObject for IDXGIResource
impl dxgi_IDXGIObject for IDXGIResource
source§fn GetParent<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn GetParent<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
IDXGIObject::GetParent
method.source§fn SetPrivateData<T>(&self, name: &GUID, data: &T) -> HrResult<()>where
T: Sized,
fn SetPrivateData<T>(&self, name: &GUID, data: &T) -> HrResult<()>where
T: Sized,
IDXGIObject::SetPrivateData
method. Read moresource§fn SetPrivateDataInterface<T>(&self, obj: &T) -> HrResult<()>where
T: ole_IUnknown,
fn SetPrivateDataInterface<T>(&self, obj: &T) -> HrResult<()>where
T: ole_IUnknown,
source§impl dxgi_IDXGIResource for IDXGIResource
impl dxgi_IDXGIResource for IDXGIResource
source§fn GetEvictionPriority(&self) -> HrResult<DXGI_RESOURCE_PRIORITY>
fn GetEvictionPriority(&self) -> HrResult<DXGI_RESOURCE_PRIORITY>
IDXGIResource::GetSharedHandle
method.source§fn GetUsage(&self) -> HrResult<DXGI_USAGE>
fn GetUsage(&self) -> HrResult<DXGI_USAGE>
IDXGIResource::GetUsage
method.source§fn SetEvictionPriority(
&self,
eviction_priority: DXGI_RESOURCE_PRIORITY
) -> HrResult<()>
fn SetEvictionPriority( &self, eviction_priority: DXGI_RESOURCE_PRIORITY ) -> HrResult<()>
source§impl ole_IUnknown for IDXGIResource
impl ole_IUnknown for IDXGIResource
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.impl Send for IDXGIResource
Auto Trait Implementations§
impl Freeze for IDXGIResource
impl RefUnwindSafe for IDXGIResource
impl !Sync for IDXGIResource
impl Unpin for IDXGIResource
impl UnwindSafe for IDXGIResource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more