Skip to main content

gltforge_unity/
unity_indices.rs

1/// Index buffer format, selected per primitive based on vertex count.
2pub enum UnityIndices {
3    /// Used when `vertex_count <= 65535`. Maps to Unity's `IndexFormat.UInt16`.
4    U16(Vec<u16>),
5    /// Used when `vertex_count > 65535`. Maps to Unity's `IndexFormat.UInt32`.
6    U32(Vec<u32>),
7}