3
0

EditorSsaoComponent.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  10. #include <Atom/Feature/PostProcess/Ssao/SsaoConstants.h>
  11. #include <PostProcess/Ssao/SsaoComponent.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. namespace Ssao
  17. {
  18. inline constexpr AZ::TypeId EditorSsaoComponentTypeId{ "{5A807489-4FB2-4421-A4D2-9D9E523ABF83}" };
  19. }
  20. class EditorSsaoComponent final
  21. : public AzToolsFramework::Components::EditorComponentAdapter<SsaoComponentController, SsaoComponent, SsaoComponentConfig>
  22. {
  23. public:
  24. using BaseClass = AzToolsFramework::Components::EditorComponentAdapter<SsaoComponentController, SsaoComponent, SsaoComponentConfig>;
  25. AZ_EDITOR_COMPONENT(AZ::Render::EditorSsaoComponent, Ssao::EditorSsaoComponentTypeId, BaseClass);
  26. static void Reflect(AZ::ReflectContext* context);
  27. EditorSsaoComponent() = default;
  28. EditorSsaoComponent(const SsaoComponentConfig& config);
  29. //! EditorRenderComponentAdapter overrides...
  30. AZ::u32 OnConfigurationChanged() override;
  31. };
  32. } // namespace Render
  33. } // namespace AZ