RenderDebugComponentConfig.cpp 1.8 KB

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