RPISystemDescriptor.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <Atom/RPI.Reflect/RPISystemDescriptor.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. #include <AzCore/Serialization/EditContext.h>
  11. namespace AZ
  12. {
  13. namespace RPI
  14. {
  15. void RPISystemDescriptor::Reflect(AZ::ReflectContext* context)
  16. {
  17. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  18. {
  19. serializeContext->Class<DynamicDrawSystemDescriptor>()
  20. ->Version(0)
  21. ->Field("DynamicBufferPoolSize", &DynamicDrawSystemDescriptor::m_dynamicBufferPoolSize)
  22. ;
  23. serializeContext->Class<RPISystemDescriptor>()
  24. ->Version(7) // ATOM-16237
  25. ->Field("CommonSrgsShaderAssetPath", &RPISystemDescriptor::m_commonSrgsShaderAssetPath)
  26. ->Field("ImageSystemDescriptor", &RPISystemDescriptor::m_imageSystemDescriptor)
  27. ->Field("GpuQuerySystemDescriptor", &RPISystemDescriptor::m_gpuQuerySystemDescriptor)
  28. ->Field("DynamicDrawSystemDescriptor", &RPISystemDescriptor::m_dynamicDrawSystemDescriptor)
  29. ->Field("NullRenderer", &RPISystemDescriptor::m_isNullRenderer)
  30. ;
  31. }
  32. }
  33. } // namespace RPI
  34. } // namespace AZ