DepthOfFieldParentPass.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/RPI.Public/Pass/ParentPass.h>
  10. namespace AZ
  11. {
  12. namespace Render
  13. {
  14. //! Parent pass for all Depth of Field related passes.
  15. //! The only difference between this and ParentPass is that this will check for available depth of field settings
  16. //! and disable itself if no settings are found. See the IsEnabled override.
  17. class DepthOfFieldParentPass final
  18. : public RPI::ParentPass
  19. {
  20. AZ_RPI_PASS(DepthOfFieldParentPass);
  21. public:
  22. AZ_RTTI(AZ::Render::DepthOfFieldParentPass, "{6033066A-CA95-422E-9BF2-8C203171C1A8}", AZ::RPI::ParentPass);
  23. AZ_CLASS_ALLOCATOR(DepthOfFieldParentPass, SystemAllocator);
  24. virtual ~DepthOfFieldParentPass() = default;
  25. //! Creates a DepthOfFieldParentPass
  26. static RPI::Ptr<DepthOfFieldParentPass> Create(const RPI::PassDescriptor& descriptor);
  27. bool IsEnabled() const override;
  28. private:
  29. DepthOfFieldParentPass(const RPI::PassDescriptor& descriptor);
  30. };
  31. } // namespace Render
  32. } // namespace AZ