2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "RendererPrivate.h"
|
|
|
|
|
#include "ScenePrivate.h"
|
|
|
|
|
#include "PostProcessOutput.h"
|
|
|
|
|
|
|
|
|
|
FRCPassPostProcessOutput::FRCPassPostProcessOutput(TRefCountPtr<IPooledRenderTarget>* InExternalRenderTarget)
|
|
|
|
|
: ExternalRenderTarget(InExternalRenderTarget)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FRCPassPostProcessOutput::Process(FRenderingCompositePassContext& Context)
|
|
|
|
|
{
|
|
|
|
|
const FRenderingCompositeOutputRef* Input = GetInput(ePId_Input0);
|
|
|
|
|
|
|
|
|
|
if(!Input)
|
|
|
|
|
{
|
|
|
|
|
// input is not hooked up correctly
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// pass through
|
|
|
|
|
PassOutputs[0].PooledRenderTarget = Input->GetOutput()->PooledRenderTarget;
|
|
|
|
|
|
|
|
|
|
check(ExternalRenderTarget);
|
|
|
|
|
*ExternalRenderTarget = PassOutputs[0].PooledRenderTarget;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FPooledRenderTargetDesc FRCPassPostProcessOutput::ComputeOutputDesc(EPassOutputId InPassOutputId) const
|
|
|
|
|
{
|
2015-07-06 18:04:49 -04:00
|
|
|
FPooledRenderTargetDesc Ret = GetInput(ePId_Input0)->GetOutput()->RenderTargetDesc;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
Ret.DebugName = TEXT("PostProcessOutput");
|
|
|
|
|
|
|
|
|
|
return Ret;
|
|
|
|
|
}
|