3
0

ChromaticAberrationPass.h 1.2 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/ComputePass.h>
  10. namespace AZ
  11. {
  12. namespace Render
  13. {
  14. class ChromaticAberrationPass final : public RPI::ComputePass
  15. {
  16. AZ_RPI_PASS(ChromaticAberrationPass);
  17. public:
  18. AZ_RTTI(ChromaticAberrationPass, "{557EF771-7D60-4EF1-BD61-E2446237B85B}", AZ::RPI::ComputePass);
  19. AZ_CLASS_ALLOCATOR(ChromaticAberrationPass, SystemAllocator);
  20. ~ChromaticAberrationPass() = default;
  21. static RPI::Ptr<ChromaticAberrationPass> Create(const RPI::PassDescriptor& descriptor);
  22. bool IsEnabled() const override;
  23. protected:
  24. // Behavior functions override...
  25. void FrameBeginInternal(FramePrepareParams params) override;
  26. private:
  27. ChromaticAberrationPass(const RPI::PassDescriptor& descriptor);
  28. AZ::RHI::ShaderInputNameIndex m_constantsIndex = "m_constants";
  29. };
  30. } // namespace Render
  31. } // namespace AZ