EditorStateBufferCopyPass.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/ParentPass.h>
  13. #include <Atom/RPI.Public/Pass/PassUtils.h>
  14. namespace AZ::Render
  15. {
  16. //! Pass class for the EditorStateBufferCopy pass to copy over buffer contents.
  17. class EditorStateBufferCopyPass
  18. : public AZ::RPI::FullscreenTrianglePass
  19. {
  20. public:
  21. AZ_RTTI(EditorStateBufferCopyPass, "{03EE6F22-7A28-4D01-9D22-0CC04A66B54D}", AZ::RPI::FullscreenTrianglePass);
  22. AZ_CLASS_ALLOCATOR(EditorStateBufferCopyPass, SystemAllocator);
  23. virtual ~EditorStateBufferCopyPass() = default;
  24. //! Creates a EditorStateBufferCopyPass.
  25. static RPI::Ptr<EditorStateBufferCopyPass> Create(const RPI::PassDescriptor& descriptor);
  26. protected:
  27. EditorStateBufferCopyPass(const RPI::PassDescriptor& descriptor);
  28. //! Enables/disables this copy buffer pass.
  29. bool IsEnabled() const override;
  30. private:
  31. RPI::PassDescriptor m_passDescriptor;
  32. };
  33. } // namespace AZ::Render