#[repr(u64)]pub enum MTLPixelFormat {
Invalid = 0,
BGRA8Unorm = 80,
BGR10A2Unorm = 94,
R8Unorm = 10,
RG8Unorm = 30,
}Expand description
Pixel format
Variants§
Invalid = 0
Invalid format
BGRA8Unorm = 80
BGRA 8-bit unsigned normalized
BGR10A2Unorm = 94
BGR 10-bit, A 2-bit unsigned normalized
R8Unorm = 10
R 8-bit unsigned normalized
RG8Unorm = 30
RG 8-bit unsigned normalized
Implementations§
Trait Implementations§
Source§impl Clone for MTLPixelFormat
impl Clone for MTLPixelFormat
Source§fn clone(&self) -> MTLPixelFormat
fn clone(&self) -> MTLPixelFormat
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 MTLPixelFormat
impl Debug for MTLPixelFormat
Source§impl Default for MTLPixelFormat
impl Default for MTLPixelFormat
Source§fn default() -> MTLPixelFormat
fn default() -> MTLPixelFormat
Returns the “default value” for a type. Read more
impl Copy for MTLPixelFormat
Auto Trait Implementations§
impl Freeze for MTLPixelFormat
impl RefUnwindSafe for MTLPixelFormat
impl Send for MTLPixelFormat
impl Sync for MTLPixelFormat
impl Unpin for MTLPixelFormat
impl UnwindSafe for MTLPixelFormat
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