Module.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/Memory/SystemAllocator.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <AzCore/RTTI/RTTI.h>
  11. #include "AtomRenderOptionsSystemComponent.h"
  12. namespace AZ::Render
  13. {
  14. class AtomRenderOptionsModule : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(AtomRenderOptionsModule, "{B6129302-BBC5-4020-BF21-5CC95FAB7941}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(AtomRenderOptionsModule, AZ::SystemAllocator);
  19. AtomRenderOptionsModule()
  20. : AZ::Module()
  21. {
  22. m_descriptors.insert(
  23. m_descriptors.end(),
  24. {
  25. AtomRenderOptionsSystemComponent::CreateDescriptor(),
  26. });
  27. }
  28. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  29. {
  30. return AZ::ComponentTypeList{
  31. azrtti_typeid<AtomRenderOptionsSystemComponent>(),
  32. };
  33. }
  34. };
  35. } // namespace AZ::Render
  36. #if defined(O3DE_GEM_NAME)
  37. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AZ::Render::AtomRenderOptionsModule)
  38. #else
  39. AZ_DECLARE_MODULE_CLASS(Gem_AtomViewportDisplayInfo, AZ::Render::AtomRenderOptionsModule)
  40. #endif