Enum metal::MTLVertexFormat
source · #[repr(u64)]pub enum MTLVertexFormat {
Show 52 variants
Invalid = 0,
UChar2 = 1,
UChar3 = 2,
UChar4 = 3,
Char2 = 4,
Char3 = 5,
Char4 = 6,
UChar2Normalized = 7,
UChar3Normalized = 8,
UChar4Normalized = 9,
Char2Normalized = 10,
Char3Normalized = 11,
Char4Normalized = 12,
UShort2 = 13,
UShort3 = 14,
UShort4 = 15,
Short2 = 16,
Short3 = 17,
Short4 = 18,
UShort2Normalized = 19,
UShort3Normalized = 20,
UShort4Normalized = 21,
Short2Normalized = 22,
Short3Normalized = 23,
Short4Normalized = 24,
Half2 = 25,
Half3 = 26,
Half4 = 27,
Float = 28,
Float2 = 29,
Float3 = 30,
Float4 = 31,
Int = 32,
Int2 = 33,
Int3 = 34,
Int4 = 35,
UInt = 36,
UInt2 = 37,
UInt3 = 38,
UInt4 = 39,
Int1010102Normalized = 40,
UInt1010102Normalized = 41,
UChar4Normalized_BGRA = 42,
UChar = 45,
Char = 46,
UCharNormalized = 47,
CharNormalized = 48,
UShort = 49,
Short = 50,
UShortNormalized = 51,
ShortNormalized = 52,
Half = 53,
}
Expand description
Variants§
Invalid = 0
UChar2 = 1
UChar3 = 2
UChar4 = 3
Char2 = 4
Char3 = 5
Char4 = 6
UChar2Normalized = 7
UChar3Normalized = 8
UChar4Normalized = 9
Char2Normalized = 10
Char3Normalized = 11
Char4Normalized = 12
UShort2 = 13
UShort3 = 14
UShort4 = 15
Short2 = 16
Short3 = 17
Short4 = 18
UShort2Normalized = 19
UShort3Normalized = 20
UShort4Normalized = 21
Short2Normalized = 22
Short3Normalized = 23
Short4Normalized = 24
Half2 = 25
Half3 = 26
Half4 = 27
Float = 28
Float2 = 29
Float3 = 30
Float4 = 31
Int = 32
Int2 = 33
Int3 = 34
Int4 = 35
UInt = 36
UInt2 = 37
UInt3 = 38
UInt4 = 39
Int1010102Normalized = 40
UInt1010102Normalized = 41
UChar4Normalized_BGRA = 42
UChar = 45
Char = 46
UCharNormalized = 47
CharNormalized = 48
UShort = 49
Short = 50
UShortNormalized = 51
ShortNormalized = 52
Half = 53
Trait Implementations§
source§impl Clone for MTLVertexFormat
impl Clone for MTLVertexFormat
source§fn clone(&self) -> MTLVertexFormat
fn clone(&self) -> MTLVertexFormat
Returns a copy 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 MTLVertexFormat
impl Debug for MTLVertexFormat
source§impl Hash for MTLVertexFormat
impl Hash for MTLVertexFormat
source§impl PartialEq for MTLVertexFormat
impl PartialEq for MTLVertexFormat
source§fn eq(&self, other: &MTLVertexFormat) -> bool
fn eq(&self, other: &MTLVertexFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MTLVertexFormat
impl Eq for MTLVertexFormat
impl StructuralPartialEq for MTLVertexFormat
Auto Trait Implementations§
impl Freeze for MTLVertexFormat
impl RefUnwindSafe for MTLVertexFormat
impl Send for MTLVertexFormat
impl Sync for MTLVertexFormat
impl Unpin for MTLVertexFormat
impl UnwindSafe for MTLVertexFormat
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)