3
0

PostProcessBase.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/RTTI/RTTI.h>
  10. #include <AzCore/Memory/SystemAllocator.h>
  11. #include <AtomCore/Instance/Instance.h>
  12. #include <Atom/RPI.Public/Base.h>
  13. #include <Atom/RPI.Public/Shader/ShaderResourceGroup.h>
  14. namespace AZ
  15. {
  16. namespace Render
  17. {
  18. class PostProcessFeatureProcessor;
  19. // Base class for post process settings and sub-settings classes
  20. // Provides helper functions for getting the scene, default view and render pipeline
  21. class PostProcessBase
  22. {
  23. friend class PostProcessFeatureProcessor;
  24. public:
  25. AZ_RTTI(AZ::Render::PostProcessBase, "{DDA620D0-12AB-471A-82F8-701BCD1A00D8}");
  26. AZ_CLASS_ALLOCATOR(PostProcessBase, SystemAllocator);
  27. PostProcessBase(PostProcessFeatureProcessor* featureProcessor);
  28. protected:
  29. RPI::ShaderResourceGroup* GetSceneSrg() const;
  30. RPI::Scene* GetParentScene() const;
  31. AZ::Data::Instance<AZ::RPI::ShaderResourceGroup> GetDefaultViewSrg() const;
  32. PostProcessFeatureProcessor* m_featureProcessor = nullptr;
  33. };
  34. }
  35. }