#[repr(i32)]pub enum PrimitiveTopology {
PointList = 0,
LineList = 1,
LineStrip = 2,
TriangleList = 3,
TriangleStrip = 4,
TriangleFan = 5,
LineListWithAdjacency = 6,
LineStripWithAdjacency = 7,
TriangleListWithAdjacency = 8,
TriangleStripWithAdjacency = 9,
PatchList = 10,
}Expand description
Supported primitive topologies
Variants§
PointList = 0
A series of separate point primitives
LineList = 1
A series of separate line primitives
LineStrip = 2
A series of connected line primitives with consecutive lines sharing a vertex
TriangleList = 3
A series of separate triangle primitives
TriangleStrip = 4
A series of connected triangle primitives with consecutive triangles sharing an edge
TriangleFan = 5
A series of connected triangle primitives with all triangles sharing a common vertex
LineListWithAdjacency = 6
A series of separate line primitives with adjacency
LineStripWithAdjacency = 7
A series of connected line primitives with adjacency with consecutive primitives sharing three vertices
TriangleListWithAdjacency = 8
A series of separate triangle primitives with adjacency
TriangleStripWithAdjacency = 9
Connected triangle primitives with adjacency with consecutive triangles sharing an edge
PatchList = 10
Trait Implementations§
Source§impl Clone for PrimitiveTopology
impl Clone for PrimitiveTopology
Source§fn clone(&self) -> PrimitiveTopology
fn clone(&self) -> PrimitiveTopology
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 PrimitiveTopology
impl Debug for PrimitiveTopology
Source§impl Hash for PrimitiveTopology
impl Hash for PrimitiveTopology
Source§impl PartialEq for PrimitiveTopology
impl PartialEq for PrimitiveTopology
impl Copy for PrimitiveTopology
impl Eq 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 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