Luna::RHI::PrimitiveTopology

enum PrimitiveTopology : u8
{
    point_list
    line_list
    line_strip
    triangle_list
    triangle_strip
}

Specifies the primitive type for the graphics pipeline to draw.

Options

  • point_list

    Draws point list, where every vertex in the vertex buffer specifies one point.

  • line_list

    Draws line list, where every two continious vertices in the vertex buffer specify two points of one line.

  • line_strip

    Draws line strip, where every vertex and its prior vertex in the vertex buffer specify two points of one line.

  • triangle_list

    Draws triangle list, where every three continious vertices in the vertex buffer specify three points of one triangle.

  • triangle_strip

    Draws line strip, where every vertex and its prior two vertices in the vertex buffer specify three points of one triangle.