You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 62559eb569015afc27ac1833 #jira UE-148598 #rb eric.mcdaniel [CL 19784660 by benjamin rouveyrol in ue5-main branch]
31 lines
1014 B
C
31 lines
1014 B
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "PostProcess/PostProcessEyeAdaptation.h"
|
|
#include "ScreenPass.h"
|
|
#include "OverridePassSequence.h"
|
|
#include "Math/Halton.h"
|
|
|
|
BEGIN_SHADER_PARAMETER_STRUCT(FDeviceEncodingOnlyOutputDeviceParameters, )
|
|
SHADER_PARAMETER(FVector3f, InverseGamma)
|
|
SHADER_PARAMETER(uint32, OutputDevice)
|
|
SHADER_PARAMETER(uint32, OutputGamut)
|
|
END_SHADER_PARAMETER_STRUCT()
|
|
|
|
FDeviceEncodingOnlyOutputDeviceParameters GetDeviceEncodingOnlyOutputDeviceParameters(const FSceneViewFamily& Family);
|
|
|
|
struct FDeviceEncodingOnlyInputs
|
|
{
|
|
// [Optional] Render to the specified output. If invalid, a new texture is created and returned.
|
|
FScreenPassRenderTarget OverrideOutput;
|
|
|
|
// [Required] HDR scene color to tonemap.
|
|
FScreenPassTexture SceneColor;
|
|
|
|
// Whether to leave the final output in HDR.
|
|
bool bOutputInHDR = false;
|
|
};
|
|
|
|
FScreenPassTexture AddDeviceEncodingOnlyPass(FRDGBuilder& GraphBuilder, const FViewInfo& View, const FDeviceEncodingOnlyInputs& Inputs);
|