GpuTopology¶
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.
TriangleList¶
Every three vertices form a separate triangle.
TriangleStrip¶
Each vertex after the first two forms a triangle with the previous two.
LineList¶
Every two vertices form a separate line.
LineStrip¶
Each vertex after the first forms a line with the previous one.
PointList¶
Each vertex is a single point.