Files
Z3D/include/assets/data_views/generic/generic_mesh_view.hpp
2025-03-28 13:09:34 +01:00

24 lines
546 B
C++

#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;
};
}