ExposureControlComponentConfig.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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/ExposureControl/ExposureControlComponentConfig.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. #include <AzCore/Serialization/EditContext.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. void ExposureControlComponentConfig::Reflect(ReflectContext* context)
  16. {
  17. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  18. {
  19. serializeContext->Class<ExposureControlComponentConfig, ComponentConfig>()
  20. ->Version(1)
  21. // Auto-gen serialize context code...
  22. #define SERIALIZE_CLASS ExposureControlComponentConfig
  23. #include <Atom/Feature/ParamMacros/StartParamSerializeContext.inl>
  24. #include <Atom/Feature/PostProcess/ExposureControl/ExposureControlParams.inl>
  25. #include <Atom/Feature/ParamMacros/EndParams.inl>
  26. #undef SERIALIZE_CLASS
  27. ;
  28. }
  29. }
  30. void ExposureControlComponentConfig::CopySettingsFrom(ExposureControlSettingsInterface* settings)
  31. {
  32. if (!settings)
  33. {
  34. return;
  35. }
  36. #define COPY_SOURCE settings
  37. #include <Atom/Feature/ParamMacros/StartParamCopySettingsFrom.inl>
  38. #include <Atom/Feature/PostProcess/ExposureControl/ExposureControlParams.inl>
  39. #include <Atom/Feature/ParamMacros/EndParams.inl>
  40. #undef COPY_SOURCE
  41. }
  42. void ExposureControlComponentConfig::CopySettingsTo(ExposureControlSettingsInterface* settings)
  43. {
  44. if (!settings)
  45. {
  46. return;
  47. }
  48. #define COPY_TARGET settings
  49. #include <Atom/Feature/ParamMacros/StartParamCopySettingsTo.inl>
  50. #include <Atom/Feature/PostProcess/ExposureControl/ExposureControlParams.inl>
  51. #include <Atom/Feature/ParamMacros/EndParams.inl>
  52. #undef COPY_TARGET
  53. }
  54. } // namespace Render
  55. } // namespace AZ