3
0

Module.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  31. // The first parameter should be GemName_GemIdLower
  32. // The second should be the fully qualified name of the class above
  33. AZ_DECLARE_MODULE_CLASS(Gem_Atom_RPI_Private, AZ::RPI::Module);
  34. #endif // RPI_EDITOR