Avara3D 0.2.0
C++ API reference
VertexLayout.h
1//
2// VertexLayout.h
3// avara3d
4//
5// Created by Morgan Davis on 1/4/26.
6// Copyright © 2026 Morgan K Davis. All rights reserved.
7//
8
9#ifndef AVARA3D_MESH_VERTEXLAYOUT_H
10#define AVARA3D_MESH_VERTEXLAYOUT_H
11
12#include <cstdint>
13
14namespace a3d {
15
16 // [Internal Types]
17
18 using VertexLayoutKey = uint32_t;
19
20 enum class VertexLayout : uint32_t {
21 None = 0,
22 PNT = 1, // Position/Normal/UV0
23 PC = 2 // Position/Color
24 // PNTT - Position/Normal/UV0/Tangent
25 // PNTC - Position/Normal/UV0/Color
26 // PNT2 - Position/Normal/UV0/UV1
27 // SkinnedPNT - joints + weights
28 // InstancedPNT - per-instance transform stream
29 // MorphPNT - multiple position/normal deltas
30 };
31
32}
33
34#endif // AVARA3D_MESH_VERTEXLAYOUT_H