optic_render/asset/attr/mod.rs
1//! Vertex and instance attribute types.
2//!
3//! This module defines the [`DataType`] trait (implemented for all primitive
4//! numeric types and their fixed-size arrays), the [`ATTRInfo`] / [`ATTRName`]
5//! descriptors, and a set of concrete attribute containers:
6//!
7//! * [`Pos3DATTR`], [`Pos2DATTR`] — position
8//! * [`ColATTR`] — colour (RGBA)
9//! * [`UVMATTR`] — UV / texture coordinates
10//! * [`NrmATTR`] — normal vectors
11//! * [`IndATTR`] — index buffer
12//! * [`Rot3DATTR`], [`Rot2DATTR`] — rotation (quaternion / angle)
13//! * [`Scale3DATTR`], [`Scale2DATTR`] — scale
14//! * [`CustomATTR`] — user-defined arbitrary attribute data
15
16mod attr;
17mod typ;
18
19pub use attr::*;
20pub use typ::*;