ChromaticAberrationComponentConfig.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AtomLyIntegration/CommonFeatures/PostProcess/ChromaticAberration/ChromaticAberrationComponentConfig.h>
  9. #include <AzCore/Serialization/EditContext.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. void ChromaticAberrationComponentConfig::Reflect(ReflectContext* context)
  16. {
  17. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  18. {
  19. serializeContext->Class<ChromaticAberrationComponentConfig, ComponentConfig>()->Version(0)
  20. // Auto-gen serialize context code...
  21. #define SERIALIZE_CLASS ChromaticAberrationComponentConfig
  22. #include <Atom/Feature/ParamMacros/StartParamSerializeContext.inl>
  23. #include <Atom/Feature/PostProcess/ChromaticAberration/ChromaticAberrationParams.inl>
  24. #include <Atom/Feature/ParamMacros/EndParams.inl>
  25. #undef SERIALIZE_CLASS
  26. ;
  27. }
  28. }
  29. void ChromaticAberrationComponentConfig::CopySettingsFrom(ChromaticAberrationSettingsInterface* settings)
  30. {
  31. if (!settings)
  32. {
  33. return;
  34. }
  35. #define COPY_SOURCE settings
  36. #include <Atom/Feature/ParamMacros/StartParamCopySettingsFrom.inl>
  37. #include <Atom/Feature/PostProcess/ChromaticAberration/ChromaticAberrationParams.inl>
  38. #include <Atom/Feature/ParamMacros/EndParams.inl>
  39. #undef COPY_SOURCE
  40. }
  41. void ChromaticAberrationComponentConfig::CopySettingsTo(ChromaticAberrationSettingsInterface* settings)
  42. {
  43. if (!settings)
  44. {
  45. return;
  46. }
  47. #define COPY_TARGET settings
  48. #include <Atom/Feature/ParamMacros/StartParamCopySettingsTo.inl>
  49. #include <Atom/Feature/PostProcess/ChromaticAberration/ChromaticAberrationParams.inl>
  50. #include <Atom/Feature/ParamMacros/EndParams.inl>
  51. #undef COPY_TARGET
  52. }
  53. } // namespace Render
  54. } // namespace AZ