UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SceneTextureReductions.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "PixelFormat.h"
6#include "RenderGraphFwd.h"
7#include "RHIFwd.h"
8#include "Math/Vector4.h"
9
10namespace Froxel
11{
12 struct FViewData;
13}
14
19
20static constexpr EPixelFormat BuildHZBDefaultPixelFormat = PF_R16F;
21
23{
25 float SceneDepthBias = 0.0f;
26 bool bLevel0Unscaled = false;
27};
28
29void BuildHZB(
30 FRDGBuilder& GraphBuilder,
33 const FIntRect ViewRect,
34 ERHIFeatureLevel::Type FeatureLevel,
35 EShaderPlatform ShaderPlatform,
36 const TCHAR* ClosestHZBName,
40 EPixelFormat Format = BuildHZBDefaultPixelFormat,
42 const Froxel::FViewData* OutFroxelData = nullptr,
44
45
46// Build only the furthest HZB
48 FRDGBuilder& GraphBuilder,
51 const FIntRect ViewRect,
52 ERHIFeatureLevel::Type FeatureLevel,
53 EShaderPlatform ShaderPlatform,
56 EPixelFormat Format = BuildHZBDefaultPixelFormat,
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::Math::TVector4< float > FVector4f
Definition MathFwd.h:75
EPixelFormat
Definition PixelFormat.h:16
@ PF_R16F
Definition PixelFormat.h:38
EShaderPlatform
Definition RHIShaderPlatform.h:11
void BuildHZB(FRDGBuilder &GraphBuilder, FRDGTextureRef SceneDepth, FRDGTextureRef VisBufferTexture, const FIntRect ViewRect, ERHIFeatureLevel::Type FeatureLevel, EShaderPlatform ShaderPlatform, const TCHAR *ClosestHZBName, FRDGTextureRef *OutClosestHZBTexture, const TCHAR *FurthestHZBName, FRDGTextureRef *OutFurthestHZBTexture, EPixelFormat Format=BuildHZBDefaultPixelFormat, const FBuildHZBAsyncComputeParams *AsyncComputeParams=nullptr, const Froxel::FViewData *OutFroxelData=nullptr, FExtraParameters ExtraParameters={})
Definition SceneTextureReductions.cpp:118
void BuildHZBFurthest(FRDGBuilder &GraphBuilder, FRDGTextureRef SceneDepth, FRDGTextureRef VisBufferTexture, const FIntRect ViewRect, ERHIFeatureLevel::Type FeatureLevel, EShaderPlatform ShaderPlatform, const TCHAR *FurthestHZBName, FRDGTextureRef *OutFurthestHZBTexture, EPixelFormat Format=BuildHZBDefaultPixelFormat, const FBuildHZBAsyncComputeParams *AsyncComputeParams=nullptr, FExtraParameters ExtraParameters={})
Definition SceneTextureReductions.cpp:378
Definition RenderGraphBuilder.h:49
Definition RenderGraphPass.h:217
Definition RenderGraphResources.h:571
Type
Definition RHIFeatureLevel.h:20
Definition DeferredShadingRenderer.h:73
Definition SceneTextureReductions.h:16
FRDGPassRef Prerequisite
Definition SceneTextureReductions.h:17
Definition SceneTextureReductions.h:23
float SceneDepthBias
Definition SceneTextureReductions.h:25
FVector4f InvDeviceZToWorldZTransform
Definition SceneTextureReductions.h:24
bool bLevel0Unscaled
Definition SceneTextureReductions.h:26
Definition Froxel.h:54