Enum grr::Primitive

source ·
#[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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.