DiffuseProbeGridDownsamplePass.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. //! This pass downsamples the scene for use by the DiffuseProbeGridRenderPass.
  16. class DiffuseProbeGridDownsamplePass
  17. : public RPI::FullscreenTrianglePass
  18. {
  19. using Base = RPI::FullscreenTrianglePass;
  20. AZ_RPI_PASS(DiffuseProbeGridDownsamplePass);
  21. public:
  22. AZ_RTTI(Render::DiffuseProbeGridDownsamplePass, "{B3331B68-F974-44D6-806B-2CFFB4B6B563}", Base);
  23. AZ_CLASS_ALLOCATOR(Render::DiffuseProbeGridDownsamplePass, SystemAllocator);
  24. //! Creates a new pass without a PassTemplate
  25. static RPI::Ptr<DiffuseProbeGridDownsamplePass> Create(const RPI::PassDescriptor& descriptor);
  26. private:
  27. explicit DiffuseProbeGridDownsamplePass(const RPI::PassDescriptor& descriptor);
  28. // Pass behavior overrides...
  29. bool IsEnabled() const override;
  30. };
  31. } // namespace RPI
  32. } // namespace AZ