ReflectionScreenSpaceCompositePass.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 composites the screenspace reflection trace onto the reflection buffer.
  18. class ReflectionScreenSpaceCompositePass
  19. : public RPI::FullscreenTrianglePass
  20. {
  21. AZ_RPI_PASS(ReflectionScreenSpaceCompositePass);
  22. public:
  23. AZ_RTTI(Render::ReflectionScreenSpaceCompositePass, "{88739CC9-C3F1-413A-A527-9916C697D93A}", FullscreenTrianglePass);
  24. AZ_CLASS_ALLOCATOR(Render::ReflectionScreenSpaceCompositePass, SystemAllocator);
  25. //! Creates a new pass without a PassTemplate
  26. static RPI::Ptr<ReflectionScreenSpaceCompositePass> Create(const RPI::PassDescriptor& descriptor);
  27. private:
  28. explicit ReflectionScreenSpaceCompositePass(const RPI::PassDescriptor& descriptor);
  29. // Pass Overrides...
  30. void CompileResources(const RHI::FrameGraphCompileContext& context) override;
  31. RHI::ShaderInputNameIndex m_outputScaleNameIndex = "m_outputScale";
  32. RHI::ShaderInputNameIndex m_outputWidthNameIndex = "m_outputWidth";
  33. RHI::ShaderInputNameIndex m_outputHeightNameIndex = "m_outputHeight";
  34. RHI::ShaderInputNameIndex m_maxRoughnessNameIndex = "m_maxRoughness";
  35. };
  36. } // namespace RPI
  37. } // namespace AZ