pub struct GraphDevice { /* private fields */ }Expand description
Owned wrapper for MPSGraphDevice.
Implementations§
Source§impl GraphDevice
impl GraphDevice
Sourcepub fn from_metal_device(device: &MetalDevice) -> Option<Self>
pub fn from_metal_device(device: &MetalDevice) -> Option<Self>
Create a graph device from an existing Metal device.
pub const fn as_ptr(&self) -> *mut c_void
Sourcepub fn device_type(&self) -> u32
pub fn device_type(&self) -> u32
Return the underlying MPSGraphDeviceType raw value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphDevice
impl RefUnwindSafe for GraphDevice
impl Unpin for GraphDevice
impl UnsafeUnpin for GraphDevice
impl UnwindSafe for GraphDevice
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