pub struct IFrnMetalDevice { /* private fields */ }Implementations§
Source§impl IFrnMetalDevice
impl IFrnMetalDevice
Sourcepub fn from_impl<T: IFrnMetalDeviceImpl + 'static>(
value: T,
) -> ComPtr<IFrnMetalDevice>
pub fn from_impl<T: IFrnMetalDeviceImpl + 'static>( value: T, ) -> ComPtr<IFrnMetalDevice>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn get_device(&self) -> *mut c_void
pub fn get_device(&self) -> *mut c_void
IFrnMetalDevice::GetDevice
Sourcepub unsafe fn get_io_kit_registry_id(&self, value: *mut u64) -> bool
pub unsafe fn get_io_kit_registry_id(&self, value: *mut u64) -> bool
IFrnMetalDevice::GetIOKitRegistryId
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub unsafe fn import_io_surface(
&self,
handle: *mut c_void,
pixel_format: FrnPixelFormat,
) -> Result<Option<ComPtr<IFrnMetalTexture>>, HResult>
pub unsafe fn import_io_surface( &self, handle: *mut c_void, pixel_format: FrnPixelFormat, ) -> Result<Option<ComPtr<IFrnMetalTexture>>, HResult>
IFrnMetalDevice::ImportIOSurface
§Safety
Raw pointer arguments must satisfy the native method’s contract.
IFrnMetalDevice::ImportSharedEvent
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub fn submit_wait(
&self,
ev: Option<&IFrnMTLSharedEvent>,
value: u64,
) -> Result<(), HResult>
pub fn submit_wait( &self, ev: Option<&IFrnMTLSharedEvent>, value: u64, ) -> Result<(), HResult>
IFrnMetalDevice::SubmitWait
Sourcepub fn submit_signal(
&self,
ev: Option<&IFrnMTLSharedEvent>,
value: u64,
) -> Result<(), HResult>
pub fn submit_signal( &self, ev: Option<&IFrnMTLSharedEvent>, value: u64, ) -> Result<(), HResult>
IFrnMetalDevice::SubmitSignal
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFrnMetalDevice
impl Deref for IFrnMetalDevice
Source§impl<T: IFrnMetalDeviceImpl> ImplementedBy<T> for IFrnMetalDevice
impl<T: IFrnMetalDeviceImpl> ImplementedBy<T> for IFrnMetalDevice
const VTBL: &'static IFrnMetalDeviceVtbl
Source§impl Interface for IFrnMetalDevice
impl Interface for IFrnMetalDevice
type Vtbl = IFrnMetalDeviceVtbl
Source§fn matches_iid(iid: &Guid) -> bool
fn matches_iid(iid: &Guid) -> bool
true if iid names this interface or one of its bases (including
IUnknown). Both the IDL value and the value materialized by com.h
(see Guid::as_com_h_materialized) are accepted.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnMetalDevice
impl !Sync for IFrnMetalDevice
impl Freeze for IFrnMetalDevice
impl RefUnwindSafe for IFrnMetalDevice
impl Unpin for IFrnMetalDevice
impl UnsafeUnpin for IFrnMetalDevice
impl UnwindSafe for IFrnMetalDevice
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more