Skip to content

GpuTopology

1 min read

Import: import system.gpu;

This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.

GpuTopology

How a draw groups vertices into primitives.

public enum GpuTopology

TriangleList

Every three vertices form a separate triangle.

TriangleList = 0

TriangleStrip

Each vertex after the first two forms a triangle with the previous two.

TriangleStrip = 1

LineList

Every two vertices form a separate line.

LineList = 2

LineStrip

Each vertex after the first forms a line with the previous one.

LineStrip = 3

PointList

Each vertex is a single point.

PointList = 4