Made assets::data_stores thread safe.

This commit is contained in:
zy4n
2025-03-31 20:13:26 +02:00
parent 144126ee7a
commit 0acfe36118
39 changed files with 1772 additions and 1069 deletions

View File

@@ -10,6 +10,8 @@ namespace assets::mesh_vertex_components
using position = z3d::vec3;
using normal = z3d::vec3;
using tangent = z3d::vec3;
using bi_tangent = z3d::vec3;
using tex_coord = z3d::vec2;
using color = z3d::vec3;
using reflectance = z3d::f32;
@@ -20,6 +22,8 @@ enum : z3d::size
{
position,
normal,
tangent,
bi_tangent,
tex_coord,
color,
reflectance
@@ -31,6 +35,8 @@ enum class flags : z3d::u8
none = 0,
position = 1 << indices::position,
normal = 1 << indices::normal,
tangent = 1 << indices::tangent,
bi_tangent = 1 << indices::bi_tangent,
tex_coord = 1 << indices::tex_coord,
color = 1 << indices::color,
reflectance = 1 << indices::reflectance