UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TranslucentRendering.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "HitProxies.h"
6#include "ShaderParameters.h"
7#include "GlobalShader.h"
8#include "SceneRendering.h"
9#include "VolumeRendering.h"
10#include "ScreenPass.h"
11#include "SystemTextures.h"
14
15#define DISTORTION_STENCIL_MASK_BIT STENCIL_SANDBOX_MASK
16
18{
23
25
26 // Extent of the separate translucency targets, if downsampled.
28
29 // Amount the view rects should be scaled to match the new separate translucency extent.
30 float Scale = 1.0f;
31
32 // The number of MSAA samples to use when creating separate translucency textures.
34};
35
37
40
43
46
49
52
55
57const FRDGTextureDesc GetPostDOFTranslucentTextureDesc(ETranslucencyPass::Type TranslucencyPass, const FSeparateTranslucencyDimensions& SeparateTranslucencyDimensions, bool bIsModulate, EShaderPlatform ShaderPlatform);
58
60FRDGTextureMSAA CreatePostDOFTranslucentTexture(FRDGBuilder& GraphBuilder, ETranslucencyPass::Type TranslucencyPass, const FSeparateTranslucencyDimensions& SeparateTranslucencyDimensions, bool bIsModulate, EShaderPlatform ShaderPlatform);
61
62
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EPixelFormat
Definition PixelFormat.h:16
@ PF_Unknown
Definition PixelFormat.h:17
EShaderPlatform
Definition RHIShaderPlatform.h:11
#define DECLARE_GPU_DRAWCALL_STAT_EXTERN(StatName)
Definition RealtimeGPUProfiler.h:257
FIntRect GetScaledRect(FIntRect Rect, FVector2D Multiplier)
Definition ScreenPass.inl:45
ETranslucencyView
Definition TranslucencyPass.h:8
ETranslucencyView GetTranslucencyView(const FViewInfo &View)
Definition TranslucentRendering.cpp:184
bool IsSeparateTranslucencyEnabled(ETranslucencyPass::Type TranslucencyPass, float DownsampleScale)
Definition TranslucentRendering.cpp:215
ETranslucencyView GetTranslucencyViews(TArrayView< const FViewInfo > Views)
Definition TranslucentRendering.cpp:194
FSeparateTranslucencyDimensions UpdateSeparateTranslucencyDimensions(const FSceneRenderer &SceneRenderer)
Definition TranslucentRendering.cpp:263
FRDGTextureMSAA CreatePostDOFTranslucentTexture(FRDGBuilder &GraphBuilder, ETranslucencyPass::Type TranslucencyPass, const FSeparateTranslucencyDimensions &SeparateTranslucencyDimensions, bool bIsModulate, EShaderPlatform ShaderPlatform)
Definition TranslucentRendering.cpp:927
EMeshPass::Type TranslucencyPassToMeshPass(ETranslucencyPass::Type TranslucencyPass)
Definition TranslucentRendering.cpp:164
const FRDGTextureDesc GetPostDOFTranslucentTextureDesc(ETranslucencyPass::Type TranslucencyPass, const FSeparateTranslucencyDimensions &SeparateTranslucencyDimensions, bool bIsModulate, EShaderPlatform ShaderPlatform)
Definition TranslucentRendering.cpp:904
FRDGTextureRef AddCopySceneColorPass(FRDGBuilder &GraphBuilder, TArrayView< const FViewInfo > Views, FRDGTextureMSAA SceneColor, bool WithAlpha=false, bool bSkipIfUnderwater=true)
Definition TranslucentRendering.cpp:321
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RenderGraphBuilder.h:49
Definition RenderGraphResources.h:571
Definition SceneRendering.h:2080
Definition ScreenPass.h:136
Definition SceneRendering.h:1132
Definition ArrayView.h:139
Type
Definition MeshPassProcessor.h:38
Type
Definition TranslucentPassResource.h:13
Definition LensDistortion.h:8
Definition RenderGraphDefinitions.h:627
Definition RenderGraphUtils.h:288
Definition ScreenPass.h:65
Definition ScreenPass.h:41
Definition TranslucentRendering.h:18
float Scale
Definition TranslucentRendering.h:30
FScreenPassTextureViewport GetViewport(FIntRect ViewRect) const
Definition TranslucentRendering.h:19
FIntPoint Extent
Definition TranslucentRendering.h:27
uint32 NumSamples
Definition TranslucentRendering.h:33
FScreenPassTextureViewport GetInstancedStereoViewport(const FViewInfo &View) const
Definition TranslucentRendering.cpp:883
Definition TranslucentRendering.h:65
FLensDistortionLUT LensDistortionLUT
Definition TranslucentRendering.h:84
EOperation Operation
Definition TranslucentRendering.h:74
FScreenPassTexture AddPass(FRDGBuilder &GraphBuilder, const FViewInfo &View, const FTranslucencyPassResources &TranslucencyTextures) const
Definition TranslucentRendering.cpp:578
bool bApplyModulateOnly
Definition TranslucentRendering.h:75
FScreenPassTextureViewport OutputViewport
Definition TranslucentRendering.h:80
EPixelFormat OutputPixelFormat
Definition TranslucentRendering.h:81
FScreenPassTexture SceneDepth
Definition TranslucentRendering.h:78
EOperation
Definition TranslucentRendering.h:67
FScreenPassTextureSlice SceneColor
Definition TranslucentRendering.h:77
Definition TranslucentPassResource.h:28
Definition IntPoint.h:25
static const TIntPoint ZeroValue
Definition IntPoint.h:45