This commit is contained in:
ZY4N
2025-03-28 13:09:34 +01:00
parent 6f60cc11c8
commit d18b40a7fc
34 changed files with 393 additions and 272 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include "config/primitives.hpp"
#include "assets/components/mesh_vertex_components.hpp"
#include "assets/data_stores/material_store.hpp"
namespace assets::detail
{
template<typename T>
struct generic_mesh_view {};
template<typename... Ts>
struct generic_mesh_view<z3d::structure<Ts...>>
{
mesh_vertex_components::flags component_flags;
z3d::array_view<z3d::index_triangle> triangles;
z3d::structure<z3d::array_view<Ts>...> vertex_component_arrays;
z3d::vertex_index vertex_count;
material_store::id_type material_id;
};
}