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