pub struct MetalTextureFrame {
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub slot: u32,
pub texture: *mut c_void,
pub device: *mut c_void,
pub pixel_format: u64,
}Expand description
The Metal texture of an acquired frame.
See mln_metal_texture_frame in the
C API reference.
Fields§
§width: u32§height: u32§scale_factor: f64§slot: u32The texture’s index in the descriptor’s textures.
texture: *mut c_voidThe MTLTexture.
device: *mut c_voidThe texture’s MTLDevice.
pixel_format: u64The texture’s MTLPixelFormat.
Trait Implementations§
Source§impl Clone for MetalTextureFrame
impl Clone for MetalTextureFrame
Source§fn clone(&self) -> MetalTextureFrame
fn clone(&self) -> MetalTextureFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetalTextureFrame
Source§impl Debug for MetalTextureFrame
impl Debug for MetalTextureFrame
Source§impl Default for MetalTextureFrame
impl Default for MetalTextureFrame
Source§fn default() -> MetalTextureFrame
fn default() -> MetalTextureFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetalTextureFrame
impl PartialEq for MetalTextureFrame
impl StructuralPartialEq for MetalTextureFrame
Auto Trait Implementations§
impl !Send for MetalTextureFrame
impl !Sync for MetalTextureFrame
impl Freeze for MetalTextureFrame
impl RefUnwindSafe for MetalTextureFrame
impl Unpin for MetalTextureFrame
impl UnsafeUnpin for MetalTextureFrame
impl UnwindSafe for MetalTextureFrame
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> 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