Files
UnrealEngineUWP/Engine/Source/Runtime/Renderer/Private/PostProcess/PostProcessHistogramReduce.h
Matthew Griffin bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00

28 lines
1.0 KiB
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
PostProcessHistogramReduce.h: Post processing histogram reduce implementation.
=============================================================================*/
#pragma once
#include "RenderingCompositionGraph.h"
#include "PostProcessHistogram.h"
// derives from TRenderingCompositePassBase<InputCount, OutputCount>
class FRCPassPostProcessHistogramReduce : public TRenderingCompositePassBase<1, 1>
{
public:
// interface FRenderingCompositePass ---------
virtual void Process(FRenderingCompositePassContext& Context) override;
virtual void Release() override { delete this; }
virtual FPooledRenderTargetDesc ComputeOutputDesc(EPassOutputId InPassOutputId) const override;
static const uint32 ThreadGroupSizeX = FRCPassPostProcessHistogram::HistogramTexelCount;
static const uint32 ThreadGroupSizeY = 4;
private:
static uint32 ComputeLoopSize(FIntPoint PixelExtent);
};