11 entt::meta_factory<tonemapping_method>{}
12 .type(
"tonemapping_method"_hs)
17 .data<tonemapping_method::none>(
"none"_hs)
22 .data<tonemapping_method::exponential>(
"exponential"_hs)
27 .data<tonemapping_method::reinhard>(
"reinhard"_hs)
32 .data<tonemapping_method::reinhard_lum>(
"reinhard_lum"_hs)
37 .data<tonemapping_method::duiker>(
"duiker"_hs)
42 .data<tonemapping_method::aces>(
"aces"_hs)
47 .data<tonemapping_method::aces_lum>(
"aces_lum"_hs)
52 .data<tonemapping_method::filmic>(
"filmic"_hs)
59 entt::meta_factory<tonemapping_pass::settings>{}
60 .type(
"tonemapping_settings"_hs)
65 .data<&tonemapping_pass::settings::exposure>(
"exposure"_hs)
72 .data<&tonemapping_pass::settings::method>(
"method"_hs)
81 try_save(ar, ser20::make_nvp(
"exposure", obj.exposure));
82 try_save(ar, ser20::make_nvp(
"method", obj.method));
89 try_load(ar, ser20::make_nvp(
"exposure", obj.exposure));
90 try_load(ar, ser20::make_nvp(
"method", obj.method));
97 entt::meta_factory<tonemapping_component>{}
98 .type(
"tonemapping_component"_hs)
115 .data<&tonemapping_component::settings>(
"settings"_hs)
125 try_save(ar, ser20::make_nvp(
"enabled", obj.enabled));
126 try_save(ar, ser20::make_nvp(
"settings", obj.settings));
133 try_load(ar, ser20::make_nvp(
"enabled", obj.enabled));
134 try_load(ar, ser20::make_nvp(
"settings", obj.settings));
bool enabled
Whether tonemapping is enabled.
attributes::value_type attribute
std::map< std::string, meta_any > attributes
BinaryInputArchive iarchive_binary_t
simd::JSONOutputArchive oarchive_associative_t
BinaryOutputArchive oarchive_binary_t
simd::JSONInputArchive iarchive_associative_t
#define REFLECT_INLINE(cls)
#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