Files
o3de/Gems/Atom/RHI/Code/Source/Module.cpp
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

53 lines
1.8 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Atom/RHI.Reflect/ReflectSystemComponent.h>
#include <RHI.Private/FactoryManagerSystemComponent.h>
#include <RHI.Private/FactoryRegistrationFinalizerSystemComponent.h>
#include <AzCore/Module/Module.h>
namespace AZ
{
namespace RHI
{
/**
* This module is in charge of loading the RHI reflection descriptor and the
* system components in charge of managing the different factory backends.
*/
class PlatformModule
: public AZ::Module
{
public:
AZ_RTTI(PlatformModule, "{C34AA64E-0983-4D30-A33C-0D7C7676A20E}", Module);
PlatformModule()
{
m_descriptors.insert(m_descriptors.end(), {
ReflectSystemComponent::CreateDescriptor(),
FactoryManagerSystemComponent::CreateDescriptor(),
FactoryRegistrationFinalizerSystemComponent::CreateDescriptor()
});
}
~PlatformModule() override = default;
AZ::ComponentTypeList GetRequiredSystemComponents() const override
{
return AZ::ComponentTypeList
{
azrtti_typeid<FactoryManagerSystemComponent>(),
azrtti_typeid<FactoryRegistrationFinalizerSystemComponent>()
};
}
};
}
}
// DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
// The first parameter should be GemName_GemIdLower
// The second should be the fully qualified name of the class above
AZ_DECLARE_MODULE_CLASS(Gem_Atom_RHI_Private, AZ::RHI::PlatformModule)