3
0

EditorStateParentPass.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <Pass/State/EditorStateParentPass.h>
  10. #include <Pass/State/EditorStateParentPassData.h>
  11. #include <Atom/RPI.Public/Pass/FullscreenTrianglePass.h>
  12. #include <Atom/RPI.Public/Pass/PassUtils.h>
  13. #include <Atom/RPI.Public/Pass/ParentPass.h>
  14. namespace AZ::Render
  15. {
  16. //! Parent pass for editor state effect parent pass classes.
  17. class EditorStateParentPass : public AZ::RPI::ParentPass
  18. {
  19. public:
  20. AZ_RTTI(EditorStateParentPass, "{C66D2D82-B1A2-4CDF-8E4A-C5C733F34E32}", AZ::RPI::ParentPass);
  21. AZ_CLASS_ALLOCATOR(EditorStateParentPass, SystemAllocator);
  22. virtual ~EditorStateParentPass() = default;
  23. //! Creates a EditorModeFeedbackParentPass
  24. static RPI::Ptr<EditorStateParentPass> Create(const RPI::PassDescriptor& descriptor);
  25. protected:
  26. EditorStateParentPass(const RPI::PassDescriptor& descriptor);
  27. //! Enables/disables the editor state effect parent pass instance.
  28. bool IsEnabled() const override;
  29. private:
  30. RPI::PassDescriptor m_passDescriptor;
  31. };
  32. } // namespace AZ::Render