pub struct CapturedTextures<T> {
pub plane0: T,
pub plane1: Option<T>,
pub pixel_format: FourCharCode,
pub width: usize,
pub height: usize,
}Expand description
Result of creating Metal textures from an IOSurface
Fields§
§plane0: TPrimary texture (BGRA/L10R for single-plane, Y plane for YCbCr)
plane1: Option<T>Secondary texture (CbCr plane for YCbCr formats)
pixel_format: FourCharCodeThe pixel format of the source surface
width: usizeWidth in pixels
height: usizeHeight in pixels
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CapturedTextures<T>where
T: Freeze,
impl<T> RefUnwindSafe for CapturedTextures<T>where
T: RefUnwindSafe,
impl<T> Send for CapturedTextures<T>where
T: Send,
impl<T> Sync for CapturedTextures<T>where
T: Sync,
impl<T> Unpin for CapturedTextures<T>where
T: Unpin,
impl<T> UnwindSafe for CapturedTextures<T>where
T: UnwindSafe,
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