#[repr(u64)]pub enum MTLPrimitiveType {
Point = 0,
Line = 1,
LineStrip = 2,
Triangle = 3,
TriangleStrip = 4,
}Expand description
Primitive type for drawing
Variants§
Point = 0
Points
Line = 1
Lines
LineStrip = 2
Line strip
Triangle = 3
Triangles
TriangleStrip = 4
Triangle strip
Implementations§
Trait Implementations§
Source§impl Clone for MTLPrimitiveType
impl Clone for MTLPrimitiveType
Source§fn clone(&self) -> MTLPrimitiveType
fn clone(&self) -> MTLPrimitiveType
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 MTLPrimitiveType
impl Debug for MTLPrimitiveType
Source§impl Default for MTLPrimitiveType
impl Default for MTLPrimitiveType
Source§fn default() -> MTLPrimitiveType
fn default() -> MTLPrimitiveType
Returns the “default value” for a type. Read more
impl Copy for MTLPrimitiveType
Auto Trait Implementations§
impl Freeze for MTLPrimitiveType
impl RefUnwindSafe for MTLPrimitiveType
impl Send for MTLPrimitiveType
impl Sync for MTLPrimitiveType
impl Unpin for MTLPrimitiveType
impl UnwindSafe for MTLPrimitiveType
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