pub struct MetalDeviceLease {
pub device: *mut c_void,
pub queue: *mut c_void,
pub generation: u64,
pub keep_alive: Arc<dyn Any + Send + Sync>,
}Expand description
vue-native fork: the Metal device and a command queue the renderer draws
with (id<MTLDevice>, id<MTLCommandQueue>), retained by keep_alive.
generation changes when a renderer comes up on another device.
Fields§
§device: *mut c_voidid<MTLDevice>.
queue: *mut c_voidid<MTLCommandQueue> of the first renderer on that device.
generation: u64Starts at 1.
keep_alive: Arc<dyn Any + Send + Sync>Retains both objects.
Trait Implementations§
Source§impl Clone for MetalDeviceLease
impl Clone for MetalDeviceLease
impl Send for MetalDeviceLease
impl Sync for MetalDeviceLease
Auto Trait Implementations§
impl !RefUnwindSafe for MetalDeviceLease
impl !UnwindSafe for MetalDeviceLease
impl Forget for MetalDeviceLease
impl Freeze for MetalDeviceLease
impl Move for MetalDeviceLease
impl Unpin for MetalDeviceLease
impl UnsafeUnpin for MetalDeviceLease
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more