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