Files
o3de/Gems/Atom/Feature/Common/Code/Source/PostProcessing/SMAANeighborhoodBlendingPass.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

53 lines
2.1 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/Feature/PostProcessing/SMAAFeatureProcessorInterface.h>
#include <PostProcessing/SMAABasePass.h>
namespace AZ
{
namespace Render
{
static const char* const SMAANeighborhoodBlendingPassTemplateName = "SMAANeighborhoodBlendingTemplate";
//! The SMAA neighborhood blending pass implementation. The third pass of the SMAA applies anti-aliasing by blending with neighborhood pixels
//! using the blending weight texture output from previous pass.
class SMAANeighborhoodBlendingPass final
: public SMAABasePass
{
public:
AZ_RTTI(SMAANeighborhoodBlendingPass, "{EED89560-137F-4666-8E43-FF8A004F82A5}", SMAABasePass);
AZ_CLASS_ALLOCATOR(SMAANeighborhoodBlendingPass, SystemAllocator, 0);
virtual ~SMAANeighborhoodBlendingPass() = default;
//! Creates a SMAANeighborhoodBlendingPass
static RPI::Ptr<SMAANeighborhoodBlendingPass> Create(const RPI::PassDescriptor& descriptor);
void SetOutputMode(SMAAOutputMode mode);
private:
SMAANeighborhoodBlendingPass(const RPI::PassDescriptor& descriptor);
// Pass behavior overrides
void InitializeInternal() override;
// SMAABasePass functions...
void UpdateSRG() override;
void GetCurrentShaderOption(AZ::RPI::ShaderOptionGroup& shaderOption) const override;
RHI::ShaderInputNameIndex m_renderTargetMetricsShaderInputIndex = "m_renderTargetMetrics";
const AZ::Name m_blendingOutputModeOptionName;
// [GFX TODO][ATOM-3977] Since these parameters don't have control method, they are fixed at the moment. They will be controlled by feature processor in the future.
SMAAOutputMode m_outputMode = SMAAOutputMode::BlendResultWithProvisionalTonemap;
};
} // namespace Render
} // namespace AZ