Struct luminance::tess::Tess[][src]

pub struct Tess<B, V, I = (), W = (), S = Interleaved> where
    B: ?Sized + TessBackend<V, I, W, S>,
    V: TessVertexData<S>,
    I: TessIndex,
    W: TessVertexData<S>,
    S: ?Sized
{ /* fields omitted */ }
Expand description

A GPU vertex set.

Vertex set are the only way to represent space data. The dimension you choose is up to you, but people will typically want to represent objects in 2D or 3D. A vertex is a point in such space and it carries properties — called “vertex attributes”. Those attributes are completely free to use. They must, however, be compatible with the Semantics and Vertex traits.

Tess are built with a TessBuilder and can be sliced to edit their content in-line — by mapping the GPU memory region and access data via slices.

Implementations

Get the number of vertices.

Get the number of vertex indices.

Get the number of instances.

Default number of vertices to render.

This number represents the number of vertices that will be rendered when not explicitly asked to render a given amount of vertices.

Default number of vertex instances to render.

This number represents the number of vertex instances that will be rendered when not explicitly asked to render a given amount of instances.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying index storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying index storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying vertex storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying vertex storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying instance storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying instance storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying vertex storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying vertex storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying instance storage.

Slice the Tess in order to read its content via usual slices.

This method gives access to the underlying instance storage.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified. Read more

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified. Read more

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified. Read more

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified. Read more

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified. Read more

Slice a tessellation object and yields a TessView according to the index range.

Slice a tesselation object and yields a TessView according to the index range with as many instances as specified. Read more

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

Performs the conversion.

Performs the conversion.

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.