ResourcePoolDescriptor.cpp 718 B

1234567891011121314151617181920212223
  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/ResourcePoolDescriptor.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. namespace AZ::RHI
  11. {
  12. void ResourcePoolDescriptor::Reflect(AZ::ReflectContext* context)
  13. {
  14. if (SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context))
  15. {
  16. serializeContext->Class<ResourcePoolDescriptor>()
  17. ->Version(1)
  18. ->Field("m_budgetInBytes", &ResourcePoolDescriptor::m_budgetInBytes);
  19. }
  20. }
  21. }