pub struct MetalTexture { /* private fields */ }Expand description
A Metal texture
This is a wrapper around MTLTexture that provides safe access.
Implementations§
Source§impl MetalTexture
impl MetalTexture
Sourcepub fn pixel_format(&self) -> MetalPixelFormat
pub fn pixel_format(&self) -> MetalPixelFormat
Get the pixel format of this texture
Trait Implementations§
Source§impl Clone for MetalTexture
impl Clone for MetalTexture
Source§impl Debug for MetalTexture
impl Debug for MetalTexture
Source§impl Drop for MetalTexture
impl Drop for MetalTexture
impl Send for MetalTexture
impl Sync for MetalTexture
Auto Trait Implementations§
impl Freeze for MetalTexture
impl RefUnwindSafe for MetalTexture
impl Unpin for MetalTexture
impl UnwindSafe for MetalTexture
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