PlatformLimitsDescriptor.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/Vulkan/PlatformLimitsDescriptor.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. namespace AZ
  11. {
  12. namespace Vulkan
  13. {
  14. void PlatformLimitsDescriptor::Reflect(AZ::ReflectContext* context)
  15. {
  16. FrameGraphExecuterData::Reflect(context);
  17. if (SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context))
  18. {
  19. serializeContext->Class<PlatformLimitsDescriptor, Base>()
  20. ->Version(1)
  21. ->Field("FrameGraphExecuterData", &PlatformLimitsDescriptor::m_frameGraphExecuterData)
  22. ;
  23. }
  24. }
  25. void FrameGraphExecuterData::Reflect(AZ::ReflectContext* context)
  26. {
  27. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  28. {
  29. serializeContext->Class<FrameGraphExecuterData>()
  30. ->Version(0)
  31. ->Field("ItemCost", &FrameGraphExecuterData::m_itemCost)
  32. ->Field("AttachmentCost", &FrameGraphExecuterData::m_attachmentCost)
  33. ->Field("SwapChainsPerCommandList", &FrameGraphExecuterData::m_swapChainsPerCommandList)
  34. ->Field("CommandListCostThresholdMin", &FrameGraphExecuterData::m_commandListCostThresholdMin)
  35. ->Field("CommandListsPerScopeMax", &FrameGraphExecuterData::m_commandListsPerScopeMax)
  36. ;
  37. }
  38. }
  39. }
  40. }