3 #include "core/cl/scene_structs.h" 5 #include "cereal/types/map.hpp" 6 #include "cereal/types/vector.hpp" 10 template <
typename Archive>
11 void serialize(Archive& archive, wayverb::core::bands_type& m) {
12 cereal::size_type s = wayverb::core::simulation_bands;
13 archive(cereal::make_size_tag(s));
14 if (s != wayverb::core::simulation_bands) {
15 throw std::runtime_error(
"Volume array length is incorrect.");
17 std::for_each(std::begin(m.s), std::end(m.s), [&archive](
auto& i) {
22 template <
typename Archive,
size_t Bands>
24 archive(cereal::make_nvp(
"absorption", m.absorption),
25 cereal::make_nvp(
"scattering", m.scattering));
Definition: scene_structs.h:28