OpenXRVkModule.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <OpenXRVk/OpenXRVkSystemComponent.h>
  11. namespace OpenXRVk
  12. {
  13. //! This module is in charge of loading system components related to Openxrvk.
  14. class Module
  15. : public AZ::Module
  16. {
  17. public:
  18. AZ_RTTI(Module, "{C34AA64E-0983-4D30-A33C-0D7C7676A20E}", AZ::Module);
  19. AZ_CLASS_ALLOCATOR(Module, AZ::SystemAllocator, 0);
  20. Module()
  21. : AZ::Module()
  22. {
  23. m_descriptors.insert(m_descriptors.end(), {
  24. SystemComponent::CreateDescriptor(),
  25. });
  26. }
  27. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  28. {
  29. return
  30. {
  31. azrtti_typeid<OpenXRVk::SystemComponent>()
  32. };
  33. }
  34. };
  35. }
  36. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  37. // The first parameter should be GemName_GemIdLower
  38. // The second should be the fully qualified name of the class above
  39. AZ_DECLARE_MODULE_CLASS(Gem_OpenXRVk, OpenXRVk::Module)