pub struct DevicePointer(/* private fields */);Expand description
Raw mutable pointer to the API’s root handle.
For example, this could be a pointer to an ID3D11Device, HGLRC/GLXContext,
ID3D12Device, etc.
Trait Implementations§
Source§impl Clone for DevicePointer
impl Clone for DevicePointer
Source§fn clone(&self) -> DevicePointer
fn clone(&self) -> DevicePointer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DevicePointer
impl Debug for DevicePointer
Source§impl<'a, T: AsRawContext> From<&'a T> for DevicePointer
impl<'a, T: AsRawContext> From<&'a T> for DevicePointer
Source§impl From<*mut ID3D11Device> for DevicePointer
impl From<*mut ID3D11Device> for DevicePointer
Source§fn from(ctx: *mut ID3D11Device) -> Self
fn from(ctx: *mut ID3D11Device) -> Self
Converts to this type from the input type.
Source§impl From<*mut ID3D12Device> for DevicePointer
impl From<*mut ID3D12Device> for DevicePointer
Source§fn from(ctx: *mut ID3D12Device) -> Self
fn from(ctx: *mut ID3D12Device) -> Self
Converts to this type from the input type.
Source§impl From<ComPtr<ID3D11Device>> for DevicePointer
impl From<ComPtr<ID3D11Device>> for DevicePointer
Source§fn from(ctx: ComPtr<ID3D11Device>) -> Self
fn from(ctx: ComPtr<ID3D11Device>) -> Self
Converts to this type from the input type.
Source§impl From<ComPtr<ID3D12Device>> for DevicePointer
impl From<ComPtr<ID3D12Device>> for DevicePointer
Source§fn from(ctx: ComPtr<ID3D12Device>) -> Self
fn from(ctx: ComPtr<ID3D12Device>) -> Self
Converts to this type from the input type.
Source§impl Hash for DevicePointer
impl Hash for DevicePointer
Source§impl PartialEq for DevicePointer
impl PartialEq for DevicePointer
impl Eq for DevicePointer
impl StructuralPartialEq for DevicePointer
Auto Trait Implementations§
impl Freeze for DevicePointer
impl RefUnwindSafe for DevicePointer
impl !Send for DevicePointer
impl !Sync for DevicePointer
impl Unpin for DevicePointer
impl UnwindSafe for DevicePointer
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