LookModificationTransformPass.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 <AzCore/Memory/SystemAllocator.h>
  10. #include <AzCore/std/containers/unordered_map.h>
  11. #include <Atom/RHI/CommandList.h>
  12. #include <Atom/RHI/DeviceDrawItem.h>
  13. #include <Atom/RHI/ScopeProducer.h>
  14. #include <Atom/RPI.Reflect/Shader/ShaderVariantKey.h>
  15. #include <Atom/RPI.Public/Pass/ParentPass.h>
  16. #include <Atom/RPI.Public/Pass/FullscreenTrianglePass.h>
  17. #include <Atom/RPI.Public/Shader/Shader.h>
  18. #include <Atom/RPI.Public/Shader/ShaderResourceGroup.h>
  19. #include <Atom/Feature/ACES/AcesDisplayMapperFeatureProcessor.h>
  20. #include <PostProcessing/PostProcessingShaderOptionBase.h>
  21. namespace AZ
  22. {
  23. namespace Render
  24. {
  25. /**
  26. * The look modification transform pass.
  27. */
  28. class LookModificationPass
  29. : public RPI::ParentPass
  30. {
  31. public:
  32. AZ_RTTI(LookModificationPass, "{68C3A664-FB97-40ED-9638-21938D6692B3}", RPI::ParentPass);
  33. AZ_CLASS_ALLOCATOR(LookModificationPass, SystemAllocator);
  34. virtual ~LookModificationPass() = default;
  35. //! Creates a LookModificationPass
  36. static RPI::Ptr<LookModificationPass> Create(const RPI::PassDescriptor& descriptor);
  37. protected:
  38. LookModificationPass(const RPI::PassDescriptor& descriptor);
  39. //! Pass overrides ...
  40. void FrameBeginInternal(FramePrepareParams params) override;
  41. void BuildInternal() override;
  42. private:
  43. const RPI::PassAttachmentBinding* m_pipelineOutput = nullptr;
  44. RHI::Format m_displayBufferFormat = RHI::Format::Unknown;
  45. OutputDeviceTransformType m_outputDeviceTransformType = OutputDeviceTransformType_48Nits;
  46. ShaperParams m_shaperParams;
  47. };
  48. } // namespace Render
  49. } // namespace AZ