#[repr(u32)]pub enum Primitive {
Points = 0,
Lines = 1,
LineStrip = 3,
Triangles = 4,
TriangleStrip = 5,
LinesAdjacency = 10,
LinesStripAdjacency = 11,
TrianglesAdjacency = 12,
TrianglesStripAdjacency = 13,
Patches = 14,
}
Expand description
Primitve topology.
Specifies how the input assembler (fixed-function) of the graphics pipeline will assemble primitives based on the incoming vertex data.
Variants§
Points = 0
Independent vertex points.
One vertex corresponds to one point. The size of a point can be changed dynamically in the vertex, geometry or tessellation evaluation stage. A point is rendered as square.
GLSL: gl_PointSize
.
Lines = 1
Lines segment list.
Every two consecutive vertices will form a line segment.
LineStrip = 3
Lines segment strip.
The vertices will build a connected list of line segments.
Triangles = 4
Triangle list.
Three consecutive vertices will form triangle.
TriangleStrip = 5
LinesAdjacency = 10
LinesStripAdjacency = 11
TrianglesAdjacency = 12
TrianglesStripAdjacency = 13
Patches = 14
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Primitive
impl RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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