#[repr(u64)]pub enum MetalPixelFormat {
BGRA8Unorm = 80,
BGR10A2Unorm = 94,
R8Unorm = 10,
RG8Unorm = 30,
}Expand description
Metal pixel format enum matching MTLPixelFormat values
This provides a Rust-native enum for common Metal pixel formats used in screen capture.
Variants§
BGRA8Unorm = 80
8-bit normalized unsigned integer per channel (BGRA order)
BGR10A2Unorm = 94
10-bit RGB with 2-bit alpha (BGR order)
R8Unorm = 10
8-bit normalized unsigned integer (single channel, for Y plane)
RG8Unorm = 30
8-bit normalized unsigned integer per channel (two channels, for CbCr plane)
Implementations§
Trait Implementations§
Source§impl Clone for MetalPixelFormat
impl Clone for MetalPixelFormat
Source§fn clone(&self) -> MetalPixelFormat
fn clone(&self) -> MetalPixelFormat
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 moreSource§impl Debug for MetalPixelFormat
impl Debug for MetalPixelFormat
Source§impl Hash for MetalPixelFormat
impl Hash for MetalPixelFormat
Source§impl PartialEq for MetalPixelFormat
impl PartialEq for MetalPixelFormat
impl Copy for MetalPixelFormat
impl Eq for MetalPixelFormat
impl StructuralPartialEq for MetalPixelFormat
Auto Trait Implementations§
impl Freeze for MetalPixelFormat
impl RefUnwindSafe for MetalPixelFormat
impl Send for MetalPixelFormat
impl Sync for MetalPixelFormat
impl Unpin for MetalPixelFormat
impl UnwindSafe for MetalPixelFormat
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