#[repr(u32)]
pub enum Primitive {
Points,
Lines,
LineStrip,
Triangles,
TriangleStrip,
LinesAdjacency,
LinesStripAdjacency,
TrianglesAdjacency,
TrianglesStripAdjacency,
Patches,
}
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
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
Lines segment list.
Every two consecutive vertices will form a line segment.
LineStrip
Lines segment strip.
The vertices will build a connected list of line segments.
Triangles
Triangle list.
Three consecutive vertices will form triangle.
TriangleStrip
LinesAdjacency
LinesStripAdjacency
TrianglesAdjacency
TrianglesStripAdjacency
Patches
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more