9#ifndef AVARA3D_MESH_VERTEXLAYOUTDESC_H
10#define AVARA3D_MESH_VERTEXLAYOUTDESC_H
15#include "a3d/mesh/VertexLayout.h"
19 enum class VertexAttribFormat : uint8_t {
27 enum class VertexSemantic : uint8_t {
34 struct VertexAttribDesc {
35 VertexSemantic semantic = VertexSemantic::Position;
37 VertexAttribFormat format = VertexAttribFormat::F32x3;
39 bool normalized =
false;
42 struct VertexLayoutDesc {
44 std::span<const VertexAttribDesc> attribs = {};
47 const VertexLayoutDesc& GetVertexLayoutDesc(VertexLayout layout);