DeviceDescriptor.cpp 867 B

123456789101112131415161718192021222324252627282930
  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/RHI.Reflect/DeviceDescriptor.h>
  9. #include <Atom/RHI.Reflect/PlatformLimitsDescriptor.h>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. namespace AZ::RHI
  12. {
  13. void DeviceDescriptor::Reflect(AZ::ReflectContext* context)
  14. {
  15. if (SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context))
  16. {
  17. serializeContext->Class<DeviceDescriptor>()
  18. ->Version(2)
  19. ->Field("m_frameCountMax", &DeviceDescriptor::m_frameCountMax)
  20. ;
  21. }
  22. }
  23. DeviceDescriptor::~DeviceDescriptor()
  24. {
  25. m_platformLimitsDescriptor = nullptr;
  26. }
  27. }