[][src]Crate rendy_mesh

This crates provides means to deal with vertex buffers and meshes.

Attribute and VertexFormat allow vertex structure to declare semantics. Mesh can be created from typed vertex structures and provides mechanism to bind vertex attributes required by shader interface.

Structs

Color

Type for color attribute of vertex

Incompatible

failure::Error type returned by Mesh::bind in case of mesh's vertex buffers are incompatible with requested vertex formats.

IndexBuffer

Index buffer with it's type

Mesh

Single mesh is a collection of buffers that provides available attributes. Exactly one mesh is used per drawing call in common.

MeshBuilder

Generics-free mesh builder. Useful for creating mesh from non-predefined set of data. Like from glTF.

Normal

Type for texture coord attribute of vertex

PosColor

Vertex format with position and RGBA8 color attributes.

PosColorNorm

Vertex format with position, color and normal attributes.

PosNorm

Vertex format with position and normal attributes.

PosNormTangTex

Vertex format with position, normal, tangent, and UV texture coordinate attributes.

PosNormTex

Vertex format with position, normal and UV texture coordinate attributes.

PosTex

Vertex format with position and UV texture coordinate attributes.

Position

Type for position attribute of vertex.

Tangent

Type for tangent attribute of vertex

TexCoord

Type for texture coord attribute of vertex

Transform

Full vertex transformation attribute. Typically provided on per-instance basis. It takes 4 attribute locations.

VertexBuffer

Vertex buffer with it's format

VertexFormat

Vertex format contains information to initialize graphics pipeline Attributes must be sorted by offset.

Enums

Indices

Abstracts over two types of indices and their absence.

Traits

AsAttribute

Trait for vertex attributes to implement

AsVertex

Trait implemented by all valid vertex formats.

Query

Allows to query specific Attributes of AsVertex

WithAttribute

Trait implemented by all valid vertex formats for each field

Type Definitions

Attribute

Vertex attribute type.