#[repr(u16)]pub enum Primitive {
Triangles = 0,
TriangleStrip = 256,
TriangleFan = 512,
GeometryPrim = 768,
}
Expand description
The geometric primitive to draw (i.e. what shapes the buffer data describes).
Variants§
Triangles = 0
Draw triangles (3 vertices per triangle).
TriangleStrip = 256
Draw a triangle strip (each vertex shared by 1-3 triangles).
TriangleFan = 512
Draw a triangle fan (first vertex shared by all triangles).
GeometryPrim = 768
Geometry primitive. Can be used for more complex use cases like geometry shaders that output custom primitives.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more