| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * 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 <AzCore/Module/Module.h>
- #include <RHI.Profiler/RenderDoc/RenderDocSystemComponent.h>
- namespace AZ::RHI
- {
- //! This module is in charge of loading the RenderDoc system component
- class RenderDocModule
- : public AZ::Module
- {
- public:
- AZ_RTTI(RenderDocModule, "{E977EF87-E738-4E15-9D01-C7663867E959}", Module);
- RenderDocModule()
- {
- m_descriptors.insert(m_descriptors.end(), {
- RenderDocSystemComponent::CreateDescriptor()
- });
- }
- ~RenderDocModule() override = default;
- AZ::ComponentTypeList GetRequiredSystemComponents() const override
- {
- return AZ::ComponentTypeList
- {
- azrtti_typeid<RenderDocSystemComponent>(),
- };
- }
- };
- }
- #if defined(O3DE_GEM_NAME)
- AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AZ::RHI::RenderDocModule)
- #else
- AZ_DECLARE_MODULE_CLASS(Gem_Atom_RHI_Profiler_RenderDoc, AZ::RHI::RenderDocModule)
- #endif
|