FeatureProcessorDescriptor.cpp 1022 B

123456789101112131415161718192021222324252627282930313233
  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 <AzCore/Serialization/SerializeContext.h>
  9. #include <Atom/RPI.Reflect/FeatureProcessorDescriptor.h>
  10. namespace AZ
  11. {
  12. namespace RPI
  13. {
  14. /**
  15. * @brief Reflects the FeatureProcessorDescriptor struct to the Serialization system
  16. * @param[in] context The reflection context
  17. */
  18. void FeatureProcessorDescriptor::Reflect(AZ::ReflectContext* context)
  19. {
  20. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  21. {
  22. serializeContext->Class<FeatureProcessorDescriptor>()
  23. ->Version(0)
  24. ->Field("MaxRenderGraphLatency", &FeatureProcessorDescriptor::m_maxRenderGraphLatency)
  25. ;
  26. }
  27. }
  28. } // namespace RPI
  29. } // namespace AZ