pub struct CVMetalTextureCache(/* private fields */);Available on crate feature
cv only.Expand description
Owned wrapper around CVMetalTextureCacheRef.
Implementations§
Source§impl CVMetalTextureCache
impl CVMetalTextureCache
Sourcepub fn system_default() -> Option<Self>
pub fn system_default() -> Option<Self>
Create a texture cache using the system-default Metal device.
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Adopts a +1 retained CVMetalTextureCacheRef and returns None for null.
§Safety
A non-null ptr must be a live CVMetalTextureCacheRef of the exact
type carrying one retain transferred to this wrapper. The caller must
not release or separately adopt that transferred retain.
Sourcepub unsafe fn from_raw_borrowed(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_borrowed(ptr: *mut c_void) -> Option<Self>
Retains a +0 borrowed cache pointer and returns an owned wrapper.
§Safety
A non-null ptr must be a live CVMetalTextureCacheRef of the exact
type for the duration of the retain call.
Trait Implementations§
Source§impl Clone for CVMetalTextureCache
impl Clone for CVMetalTextureCache
Source§impl Debug for CVMetalTextureCache
impl Debug for CVMetalTextureCache
Source§impl Drop for CVMetalTextureCache
impl Drop for CVMetalTextureCache
impl Eq for CVMetalTextureCache
Source§impl Hash for CVMetalTextureCache
impl Hash for CVMetalTextureCache
Auto Trait Implementations§
impl !Send for CVMetalTextureCache
impl !Sync for CVMetalTextureCache
impl Freeze for CVMetalTextureCache
impl RefUnwindSafe for CVMetalTextureCache
impl Unpin for CVMetalTextureCache
impl UnsafeUnpin for CVMetalTextureCache
impl UnwindSafe for CVMetalTextureCache
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