ChromaticAberrationComponent.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 <Atom/Feature/PostProcess/ChromaticAberration/ChromaticAberrationConstants.h>
  10. #include <PostProcess/ChromaticAberration/ChromaticAberrationComponentController.h>
  11. #include <AtomLyIntegration/CommonFeatures/PostProcess/ChromaticAberration/ChromaticAberrationComponentConfig.h>
  12. #include <AzCore/Component/Component.h>
  13. #include <AzFramework/Components/ComponentAdapter.h>
  14. namespace AZ
  15. {
  16. namespace Render
  17. {
  18. namespace ChromaticAberration
  19. {
  20. inline constexpr AZ::TypeId ChromaticAberrationComponentTypeId{ "{123FF51D-7234-429D-817B-FA89F436826B}" };
  21. }
  22. class ChromaticAberrationComponent final
  23. : public AzFramework::Components::ComponentAdapter<ChromaticAberrationComponentController, ChromaticAberrationComponentConfig>
  24. {
  25. public:
  26. using BaseClass = AzFramework::Components::ComponentAdapter<ChromaticAberrationComponentController, ChromaticAberrationComponentConfig>;
  27. AZ_COMPONENT(AZ::Render::ChromaticAberrationComponent, ChromaticAberration::ChromaticAberrationComponentTypeId, BaseClass);
  28. ChromaticAberrationComponent() = default;
  29. ChromaticAberrationComponent(const ChromaticAberrationComponentConfig& config);
  30. static void Reflect(AZ::ReflectContext* context);
  31. };
  32. } // namespace Render
  33. } // namespace AZ