pub enum PrimitiveTopology {
PointList,
LineList,
LineStrip,
TriangleList,
TriangleStrip,
}Expand description
How the vertex stage assembles the stream of vertices into primitives.
Variants§
PointList
One independent point per vertex.
LineList
One independent line segment per pair of vertices.
LineStrip
One connected polyline through every vertex.
TriangleList
One independent triangle per three vertices. The default, and the only topology an indexed mesh needs.
TriangleStrip
One connected triangle strip through every vertex.
Trait Implementations§
Source§impl Clone for PrimitiveTopology
impl Clone for PrimitiveTopology
impl Copy for PrimitiveTopology
Source§impl Debug for PrimitiveTopology
impl Debug for PrimitiveTopology
Source§impl Default for PrimitiveTopology
impl Default for PrimitiveTopology
impl Eq for PrimitiveTopology
Source§impl Hash for PrimitiveTopology
impl Hash for PrimitiveTopology
Source§impl PartialEq for PrimitiveTopology
impl PartialEq for PrimitiveTopology
impl StructuralPartialEq for PrimitiveTopology
Auto Trait Implementations§
impl Freeze for PrimitiveTopology
impl RefUnwindSafe for PrimitiveTopology
impl Send for PrimitiveTopology
impl Sync for PrimitiveTopology
impl Unpin for PrimitiveTopology
impl UnsafeUnpin for PrimitiveTopology
impl UnwindSafe for PrimitiveTopology
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