RenderDebugComponent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <AzFramework/Components/ComponentAdapter.h>
  11. #include <AtomLyIntegration/CommonFeatures/Debug/RenderDebugComponentConfig.h>
  12. #include <Atom/Feature/Debug/RenderDebugConstants.h>
  13. #include <Debug/RenderDebugComponentController.h>
  14. namespace AZ::Render
  15. {
  16. namespace RenderDebug
  17. {
  18. inline constexpr AZ::TypeId RenderDebugComponentTypeId{ "{98A72F68-3DA3-451A-BC79-707370EE4AC0}" };
  19. }
  20. class RenderDebugComponent final
  21. : public AzFramework::Components::ComponentAdapter<RenderDebugComponentController, RenderDebugComponentConfig>
  22. {
  23. public:
  24. using BaseClass = AzFramework::Components::ComponentAdapter<RenderDebugComponentController, RenderDebugComponentConfig>;
  25. AZ_COMPONENT(AZ::Render::RenderDebugComponent, RenderDebug::RenderDebugComponentTypeId , BaseClass);
  26. RenderDebugComponent() = default;
  27. RenderDebugComponent(const RenderDebugComponentConfig& config);
  28. static void Reflect(AZ::ReflectContext* context);
  29. };
  30. }