WhiteBalancePass.h 1.2 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 <Atom/RPI.Public/Pass/ComputePass.h>
  10. namespace AZ
  11. {
  12. namespace Render
  13. {
  14. // Class for controlling White Balance effect
  15. class WhiteBalancePass final : public RPI::ComputePass
  16. {
  17. AZ_RPI_PASS(WhiteBalancePass);
  18. public:
  19. AZ_RTTI(WhiteBalancePass, "{15AAF070-3258-4376-9911-CF4E9C7FAF4A}", AZ::RPI::ComputePass);
  20. AZ_CLASS_ALLOCATOR(WhiteBalancePass, SystemAllocator, 0);
  21. ~WhiteBalancePass() = default;
  22. static RPI::Ptr<WhiteBalancePass> Create(const RPI::PassDescriptor& descriptor);
  23. bool IsEnabled() const override;
  24. protected:
  25. // Behavior functions override...
  26. void FrameBeginInternal(FramePrepareParams params) override;
  27. private:
  28. WhiteBalancePass(const RPI::PassDescriptor& descriptor);
  29. AZ::RHI::ShaderInputNameIndex m_constantsIndex = "m_constants";
  30. };
  31. } // namespace Render
  32. } // namespace AZ