Expand description
Vertex buffer with dynamic layout. See VertexBuffer
docs for more info and usage examples.
Structs§
- Attribute
View Ref - A typed attribute view for a specific vertex attribute in a vertex buffer.
- Attribute
View RefMut - A typed attribute view for a specific vertex attribute in a vertex buffer.
- Bytes
Storage - Bytes storage of a vertex buffer.
- Triangle
Buffer - A buffer for data that defines connections between vertices.
- Triangle
Buffer RefMut - See VertexBuffer::modify for more info.
- Vertex
Attribute - Vertex attribute is a simple “bridge” between raw data and its interpretation. In other words it defines how to treat raw data in vertex shader.
- Vertex
Attribute Descriptor - Input vertex attribute descriptor used to construct layouts and feed vertex buffer.
- Vertex
Buffer - Vertex buffer with dynamic layout. It is used to store multiple vertices of a single type, that implements
VertexTrait
. Different vertex types used to for efficient memory usage. For example, you could have a simple vertex with only position expressed as Vector3 and it will be enough for simple cases, when only position is required. However, if you want to draw a mesh with skeletal animation, that also supports texturing, lighting, you need to provide a lot more data (bone indices, bone weights, normals, tangents, texture coordinates). - Vertex
Buffer RefMut - See VertexBuffer::modify for more info.
- Vertex
View Mut - Read/write accessor for a vertex with some layout.
- Vertex
View Ref - Read accessor for a vertex with some layout.
Enums§
- Validation
Error - An error that may occur during input data and layout validation.
- Vertex
Attribute Data Type - Data type for a vertex attribute component.
- Vertex
Attribute Usage - An usage for vertex attribute. It is a fixed set, but there are plenty
room for any custom data - it may be fit into
TexCoordN
attributes. - Vertex
Fetch Error - An error that may occur during fetching using vertex read/write accessor.
Traits§
- Vertex
Read Trait - A trait for read-only vertex data accessor.
- Vertex
Trait - A common trait for all vertex types. IMPORTANT: Implementors must use
#[repr(C)]
attribute, otherwise the compiler is free to reorder fields and you might get weird results, because definition order will be different from memory order! See examples inVertexBuffer
docs. - Vertex
Write Trait - A trait for read/write vertex data accessor.