3
0

ReflectionScreenSpaceDownsampleDepthLinearPass.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/FullscreenTrianglePass.h>
  10. #include <Atom/RPI.Public/Pass/ParentPass.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. //! This pass downsamples the linear depth into a mip chain
  16. class ReflectionScreenSpaceDownsampleDepthLinearPass
  17. : public RPI::ParentPass
  18. {
  19. AZ_RPI_PASS(ReflectionScreenSpaceDownsampleDepthLinearPass);
  20. public:
  21. AZ_RTTI(Render::ReflectionScreenSpaceDownsampleDepthLinearPass, "{5A215A02-2154-48D8-908D-351063BDB372}", ParentPass);
  22. AZ_CLASS_ALLOCATOR(Render::ReflectionScreenSpaceDownsampleDepthLinearPass, SystemAllocator);
  23. //! Creates a new pass without a PassTemplate
  24. static RPI::Ptr<ReflectionScreenSpaceDownsampleDepthLinearPass> Create(const RPI::PassDescriptor& descriptor);
  25. private:
  26. explicit ReflectionScreenSpaceDownsampleDepthLinearPass(const RPI::PassDescriptor& descriptor);
  27. void CreateChildPassesInternal() override;
  28. // Pass Overrides...
  29. void ResetInternal() override;
  30. void BuildInternal() override;
  31. uint32_t m_mipLevels = 0;
  32. RHI::Size m_imageSize;
  33. };
  34. } // namespace RPI
  35. } // namespace AZ