You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <Atom/RPI.Public/Pass/Pass.h>
|
|
#include <Atom/RPI.Public/Pass/FullscreenTrianglePass.h>
|
|
|
|
namespace AZ
|
|
{
|
|
namespace Render
|
|
{
|
|
//! This pass downsamples the scene for use by the DiffuseProbeGridRenderPass.
|
|
class DiffuseProbeGridDownsamplePass
|
|
: public RPI::FullscreenTrianglePass
|
|
{
|
|
using Base = RPI::FullscreenTrianglePass;
|
|
AZ_RPI_PASS(DiffuseProbeGridDownsamplePass);
|
|
|
|
public:
|
|
AZ_RTTI(Render::DiffuseProbeGridDownsamplePass, "{B3331B68-F974-44D6-806B-2CFFB4B6B563}", Base);
|
|
AZ_CLASS_ALLOCATOR(Render::DiffuseProbeGridDownsamplePass, SystemAllocator, 0);
|
|
|
|
//! Creates a new pass without a PassTemplate
|
|
static RPI::Ptr<DiffuseProbeGridDownsamplePass> Create(const RPI::PassDescriptor& descriptor);
|
|
|
|
private:
|
|
explicit DiffuseProbeGridDownsamplePass(const RPI::PassDescriptor& descriptor);
|
|
|
|
// Pass behavior overrides...
|
|
bool IsEnabled() const override;
|
|
};
|
|
} // namespace RPI
|
|
} // namespace AZ
|