Files
o3de/Gems/Atom/Feature/Common/Code/Source/PostProcessing/BloomParentPass.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

40 lines
1.4 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/ParentPass.h>
namespace AZ
{
namespace Render
{
//! Parent pass for all Bloom related passes.
//! The only difference between this and ParentPass is that this will check for available bloom settings
//! and disable itself if no settings are found. See the IsEnabled override.
class BloomParentPass final
: public RPI::ParentPass
{
AZ_RPI_PASS(BloomParentPass);
public:
AZ_RTTI(AZ::Render::BloomParentPass, "{072861A3-A87A-439D-BD8B-D2BDD8D31799}", AZ::RPI::ParentPass);
AZ_CLASS_ALLOCATOR(BloomParentPass, SystemAllocator, 0);
virtual ~BloomParentPass() = default;
//! Creates a BloomParentPass
static RPI::Ptr<BloomParentPass> Create(const RPI::PassDescriptor& descriptor);
//! Does a check for available BloomSettings, disable itself when the BloomSetting isn't available.
bool IsEnabled() const override;
private:
BloomParentPass(const RPI::PassDescriptor& descriptor);
};
} // namespace Render
} // namespace AZ