DisplayMapperComponentConfig.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  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/DisplayMapper/DisplayMapperComponentConfig.h>
  9. #include <AzCore/Asset/AssetSerializer.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. #include <AzCore/Serialization/EditContext.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. void DisplayMapperComponentConfig::Reflect(ReflectContext* context)
  17. {
  18. AcesParameterOverrides::Reflect(context);
  19. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  20. {
  21. serializeContext->Class<DisplayMapperComponentConfig, ComponentConfig>()
  22. ->Version(1)
  23. ->Field("DisplayMapperOperationType", &DisplayMapperComponentConfig::m_displayMapperOperation)
  24. ->Field("LdrColorGradingLutEnabled", &DisplayMapperComponentConfig::m_ldrColorGradingLutEnabled)
  25. ->Field("LdrColorGradingLut", &DisplayMapperComponentConfig::m_ldrColorGradingLut)
  26. ->Field("AcesParameterOverrides", &DisplayMapperComponentConfig::m_acesParameterOverrides)
  27. ;
  28. }
  29. }
  30. } // namespace Render
  31. } // namespace AZ