12 try_save(ar, ser20::make_nvp(
"shaders", obj.get_shaders()));
19 std::vector<asset_handle<gfx::shader>> shaders;
21 try_load(ar, ser20::make_nvp(
"shaders", shaders));
23 for(
const auto& shader : shaders)
25 obj.attach_shader(shader);
Class representing a GPU program.
BinaryInputArchive iarchive_binary_t
simd::JSONOutputArchive oarchive_associative_t
BinaryOutputArchive oarchive_binary_t
simd::JSONInputArchive iarchive_associative_t
#define SAVE_INSTANTIATE(cls, Archive)
auto try_save(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define LOAD_INSTANTIATE(cls, Archive)
auto try_load(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool