ConvertibleSource.cpp 881 B

123456789101112131415161718192021222324252627282930313233
  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/RPI.Edit/Common/ConvertibleSource.h>
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. namespace AZ
  11. {
  12. namespace RPI
  13. {
  14. void ConvertibleSource::Reflect(ReflectContext* context)
  15. {
  16. if (auto* serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  17. {
  18. serializeContext->Class<ConvertibleSource>()
  19. ->SerializeWithNoData()
  20. ;
  21. }
  22. }
  23. bool ConvertibleSource::Convert([[maybe_unused]] TypeId& outTypeId, [[maybe_unused]] AZStd::shared_ptr<void>& outData) const
  24. {
  25. return false;
  26. }
  27. }
  28. }