MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Serialize

Method Serialize

Source/Engine/Graphics/PostProcessSettings.cpp:273–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void PostProcessSettings::Serialize(SerializeStream& stream, const void* otherObj)
274{
275 SERIALIZE_GET_OTHER_OBJ(PostProcessSettings);
276
277 stream.JKEY("AO");
278 stream.Object(&AmbientOcclusion, other ? &other->AmbientOcclusion : nullptr);
279
280 stream.JKEY("GI");
281 stream.Object(&GlobalIllumination, other ? &other->GlobalIllumination : nullptr);
282
283 stream.JKEY("Bloom");
284 stream.Object(&Bloom, other ? &other->Bloom : nullptr);
285
286 stream.JKEY("ToneMapping");
287 stream.Object(&ToneMapping, other ? &other->ToneMapping : nullptr);
288
289 stream.JKEY("ColorGrading");
290 stream.Object(&ColorGrading, other ? &other->ColorGrading : nullptr);
291
292 stream.JKEY("EyeAdaptation");
293 stream.Object(&EyeAdaptation, other ? &other->EyeAdaptation : nullptr);
294
295 stream.JKEY("CameraArtifacts");
296 stream.Object(&CameraArtifacts, other ? &other->CameraArtifacts : nullptr);
297
298 stream.JKEY("LensFlares");
299 stream.Object(&LensFlares, other ? &other->LensFlares : nullptr);
300
301 stream.JKEY("DepthOfField");
302 stream.Object(&DepthOfField, other ? &other->DepthOfField : nullptr);
303
304 stream.JKEY("MotionBlur");
305 stream.Object(&MotionBlur, other ? &other->MotionBlur : nullptr);
306
307 stream.JKEY("SSR");
308 stream.Object(&ScreenSpaceReflections, other ? &other->ScreenSpaceReflections : nullptr);
309
310 stream.JKEY("AA");
311 stream.Object(&AntiAliasing, other ? &other->AntiAliasing : nullptr);
312
313 stream.JKEY("PostFxMaterials");
314 stream.Object(&PostFxMaterials, other ? &other->PostFxMaterials : nullptr);
315}
316
317void PostProcessSettings::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
318{

Callers

nothing calls this directly

Calls 1

ObjectMethod · 0.45

Tested by

no test coverage detected