LookupTableAsset.cpp 916 B

12345678910111213141516171819202122232425262728293031
  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 <AzCore/Serialization/SerializeContext.h>
  9. #include <LookupTable/LookupTableAsset.h>
  10. namespace AZ
  11. {
  12. namespace Render
  13. {
  14. void LookupTableAsset::Reflect(AZ::ReflectContext* context)
  15. {
  16. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  17. {
  18. serializeContext->Class<LookupTableAsset>()
  19. ->Version(1)
  20. ->Field("Name", &LookupTableAsset::m_name)
  21. ->Field("Intervals", &LookupTableAsset::m_intervals)
  22. ->Field("Values", &LookupTableAsset::m_values)
  23. ;
  24. }
  25. }
  26. } // namespace RPI
  27. } // namespace AZ