Module luminance::tess [] [src]

Tessellation features.

Tessellation mode

Tessellation is geometric information. Currently, several kinds of tessellation are supported:

  • point clouds;
  • lines;
  • line strips;
  • triangles;
  • triangle fans;
  • triangle strips.

Those kinds of tessellation are designated by the Mode type.

Tessellation creation

Creation is done via the Tess::new function. This function is polymorphing in the type of vertices you send. See the TessVertices type for further details.

Tessellation vertices mapping

It’s possible to map Tess’ vertices into your code. You’re provided with two types to do so:

  • BufferSlice, which gives you an immutable access to the vertices
  • BufferSliceMut, which gives you a mutable access to the vertices

You can retrieve those slices with the Tess::as_slice and Tess::as_slice_mut methods.

Tessellation render

In order to render a Tess, you have to use a TessRender object. You’ll be able to use that object in pipelines. See the pipeline module for further details.

Structs

Tess

GPU typed tessellation.

TessRender

Tessellation render.

Enums

Mode

Vertices can be connected via several modes.

TessMapError

Error that can occur while trying to map GPU tessellation to host code.

TessVertices

Accepted vertices for building tessellations.