#pragma once #include "config/primitives.hpp" #include #include #include "util/enum_bitfield_operators.hpp" namespace assets::point_cloud_vertex_components { using position = z3d::vec3; using normal = z3d::vec3; using color = z3d::vec3; using reflectance = z3d::f32; namespace indices { enum : z3d::size { position, normal, color, reflectance }; } // namespace indices enum class flags : z3d::u8 { none = 0, position = 1 << indices::position, normal = 1 << indices::normal, color = 1 << indices::color, reflectance = 1 << indices::reflectance }; using all = z3d::structure< position, normal, color, reflectance >; constexpr inline auto count = std::tuple_size_v; } // namespace point_cloud_vertex_components DEFINE_ENUM_BITFIELD_OPERATORS(assets::point_cloud_vertex_components::flags)