3
0

ReflectionCopyFrameBufferPass.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/Pass.h>
  10. #include <Atom/RPI.Public/Pass/FullscreenTrianglePass.h>
  11. #include <Atom/RPI.Public/Shader/ShaderResourceGroup.h>
  12. #include <Atom/RPI.Public/Shader/Shader.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. //! This pass copies the frame buffer prior to the post-processing pass.
  18. class ReflectionCopyFrameBufferPass
  19. : public RPI::FullscreenTrianglePass
  20. {
  21. AZ_RPI_PASS(ReflectionScreenSpaceCopyFrameBufferPass);
  22. public:
  23. AZ_RTTI(Render::ReflectionCopyFrameBufferPass, "{8B0D4281-0913-4662-81ED-37CB890B5653}", FullscreenTrianglePass);
  24. AZ_CLASS_ALLOCATOR(Render::ReflectionCopyFrameBufferPass, SystemAllocator);
  25. //! Creates a new pass without a PassTemplate
  26. static RPI::Ptr<ReflectionCopyFrameBufferPass> Create(const RPI::PassDescriptor& descriptor);
  27. private:
  28. explicit ReflectionCopyFrameBufferPass(const RPI::PassDescriptor& descriptor);
  29. // Pass Overrides...
  30. void BuildInternal() override;
  31. };
  32. } // namespace RPI
  33. } // namespace AZ