BufferPoolDescriptor.cpp 1.0 KB

123456789101112131415161718192021222324252627
  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/BufferPoolDescriptor.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. namespace AZ::RHI
  11. {
  12. void BufferPoolDescriptor::Reflect(AZ::ReflectContext* context)
  13. {
  14. if (SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context))
  15. {
  16. serializeContext->Class<BufferPoolDescriptor, ResourcePoolDescriptor>()
  17. ->Version(2)
  18. ->Field("m_heapMemoryLevel", &BufferPoolDescriptor::m_heapMemoryLevel)
  19. ->Field("m_hostMemoryAccess", &BufferPoolDescriptor::m_hostMemoryAccess)
  20. ->Field("m_bindFlags", &BufferPoolDescriptor::m_bindFlags)
  21. ->Field("m_largestPooledAllocationSizeInBytes", &BufferPoolDescriptor::m_largestPooledAllocationSizeInBytes)
  22. ;
  23. }
  24. }
  25. }