3
0

Module.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/RTTI/RTTI.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <RPI.Private/Module.h>
  11. #include <Atom/RPI.Public/Image/ImageTagSystemComponent.h>
  12. #include <Atom/RPI.Public/Model/ModelTagSystemComponent.h>
  13. #include <RPI.Private/RPISystemComponent.h>
  14. AZ::RPI::Module::Module()
  15. {
  16. m_descriptors.push_back(AZ::RPI::RPISystemComponent::CreateDescriptor());
  17. m_descriptors.push_back(AZ::RPI::ImageTagSystemComponent::CreateDescriptor());
  18. m_descriptors.push_back(AZ::RPI::ModelTagSystemComponent::CreateDescriptor());
  19. }
  20. AZ::ComponentTypeList AZ::RPI::Module::GetRequiredSystemComponents() const
  21. {
  22. return
  23. {
  24. azrtti_typeid<AZ::RPI::RPISystemComponent>(),
  25. azrtti_typeid<AZ::RPI::ImageTagSystemComponent>(),
  26. azrtti_typeid<AZ::RPI::ModelTagSystemComponent>()
  27. };
  28. }
  29. #ifndef RPI_EDITOR
  30. #if defined(O3DE_GEM_NAME)
  31. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Private), AZ::RPI::Module)
  32. #else
  33. AZ_DECLARE_MODULE_CLASS(Gem_Atom_RPI_Private, AZ::RPI::Module)
  34. #endif
  35. #endif // RPI_EDITOR