UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PathTracing.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
8
9// this struct holds skylight parameters
17
18class FRDGBuilder;
19class FScene;
20class FViewInfo;
24
29
33
36
37namespace PathTracing
38{
39 bool ShouldCompilePathTracingShadersForProject(EShaderPlatform ShaderPlatform);
40 bool UsesDecals(const FSceneViewFamily& ViewFamily);
41 bool UsesReferenceAtmosphere(const FViewInfo& View);
42 bool UsesReferenceDOF(const FViewInfo& View);
43 bool NeedsAntiAliasing(const FViewInfo& View);
44 bool NeedsTonemapping();
46}
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
void PreparePathTracingRTPSO()
RENDERER_API FRHIRayTracingShader * GetPathTracingDefaultMissShader(const FGlobalShaderMap *ShaderMap)
RENDERER_API FRHIRayTracingShader * GetPathTracingDefaultOpaqueHitShader(const FGlobalShaderMap *ShaderMap)
RENDERER_API FRHIRayTracingShader * GetGPULightmassDefaultHiddenHitShader(const FGlobalShaderMap *ShaderMap)
RENDERER_API FRHIRayTracingShader * GetGPULightmassDefaultMissShader(const FGlobalShaderMap *ShaderMap)
RENDERER_API FRHIRayTracingShader * GetGPULightmassDefaultOpaqueHitShader(const FGlobalShaderMap *ShaderMap)
RENDERER_API FRHIRayTracingShader * GetPathTracingDefaultHiddenHitShader(const FGlobalShaderMap *ShaderMap)
bool PrepareSkyTexture(FRDGBuilder &GraphBuilder, FScene *Scene, const FViewInfo &View, bool SkylightEnabled, bool UseMISCompensation, FPathTracingSkylight *SkylightParameters)
void PreparePathTracingCloudMaterial(FRDGBuilder &GraphBuilder, FScene *Scene, TArrayView< FViewInfo > Views)
EShaderPlatform
Definition RHIShaderPlatform.h:11
#define SHADER_PARAMETER_RDG_TEXTURE(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1752
#define SHADER_PARAMETER_SAMPLER(ShaderType, MemberName)
Definition ShaderParameterMacros.h:1740
#define BEGIN_SHADER_PARAMETER_STRUCT(StructTypeName, DllStorage)
Definition ShaderParameterMacros.h:1482
#define END_SHADER_PARAMETER_STRUCT()
Definition ShaderParameterMacros.h:1485
#define SHADER_PARAMETER(MemberType, MemberName)
Definition ShaderParameterMacros.h:1684
Definition GlobalShader.h:173
Definition RenderGraphBuilder.h:49
Definition RHIResources.h:984
Definition SceneView.h:2212
Definition ScenePrivate.h:2875
Definition SceneRendering.h:1132
Definition ArrayView.h:139
Definition PathTracingOutputInvalidateReason.h:6
bool IsOutputInvalidateAllowed(EInvalidateReason InvalidateReason)
EInvalidateReason
Definition PathTracingOutputInvalidateReason.h:8