UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PathTracingSpatialTemporalDenoising.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "RHIDefinitions.h"
7
8#if RHI_RAYTRACING
9
10#include "RenderGraphFwd.h"
11#include "ScreenPass.h"
12
13class FRDGBuilder;
14class FScene;
15class FViewInfo;
16class FRDGTexture;
17
19{
21 FRDGTexture* AlbedoTexture = nullptr;
22 FRDGTexture* NormalTexture = nullptr;
23 FRDGTexture* DepthTexture = nullptr;
24 FRDGBuffer* VarianceBuffer = nullptr;
25
32
33 // Custom path tracing spacial temporal denoiser result, used by plugins
35
36 int FrameIndex;
37
38 static constexpr uint32 kNumberOfPixelShifts = 25;
39 static constexpr uint32 kNumberOfShiftsPerTexture = 4;
40 static constexpr uint32 kNumberOfPasses = 1;
41 static constexpr uint32 kNumberOfTexturesPerPass =
44
45 // Debug information
46 FRDGTexture* MotionVector = nullptr;
47 FRDGTexture* WarpedSource = nullptr;
48
49 // Utility texture
51};
52
53
58
59// Calculate the variance per-pixel.
61 FRDGBuilder& GraphBuilder,
62 const FViewInfo& View,
64 int MaxSPP,
66);
67
69 const FViewInfo& View,
70 int DenoiserMode,
73
75{
76 // [Optional] Render to the specified output. If invalid, a new texture is created and returned.
77 FScreenPassRenderTarget OverrideOutput;
81
83
85};
86
88
89#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ETextureCreateFlags
Definition RHIDefinitions.h:1091
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RenderGraphResources.h:1321
Definition RenderGraphBuilder.h:49
Definition RenderGraphResources.h:571
Definition ScenePrivate.h:2875
Definition ScreenPass.h:136
Definition SceneRendering.h:1132
Definition RenderGraphResources.h:251
Definition RefCounting.h:454
Definition ScreenPass.h:83
Definition ScreenPass.h:41