pub struct IOSurfaceInfo {
pub width: usize,
pub height: usize,
pub bytes_per_row: usize,
pub pixel_format: FourCharCode,
pub plane_count: usize,
pub planes: Vec<PlaneInfo>,
}Expand description
Information about an IOSurface for Metal texture creation
Fields§
§width: usizeWidth in pixels
height: usizeHeight in pixels
bytes_per_row: usizeBytes per row
pixel_format: FourCharCodePixel format
plane_count: usizeNumber of planes (0 for single-plane formats, 2 for YCbCr biplanar)
planes: Vec<PlaneInfo>Per-plane information
Trait Implementations§
Source§impl Clone for IOSurfaceInfo
impl Clone for IOSurfaceInfo
Source§fn clone(&self) -> IOSurfaceInfo
fn clone(&self) -> IOSurfaceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IOSurfaceInfo
impl RefUnwindSafe for IOSurfaceInfo
impl Send for IOSurfaceInfo
impl Sync for IOSurfaceInfo
impl Unpin for IOSurfaceInfo
impl UnwindSafe for IOSurfaceInfo
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