UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HZB.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "RendererInterface.h"
8#include "ScreenPass.h"
9
10class FViewInfo;
11
12// Include "HZB.ush" on the shader side to declare and use these shader parameters
13
15 // Default HZB (furthest depth)
19
20 // Closest depth HZB
23
24 // Furthest depth HZB
27
28 // Common parameters
43
45{
46 Dummy = 0,
47 ClosestHZB = 1,
48 FurthestHZB = 2,
50};
51
56
57bool IsHZBValid(const FViewInfo& View, EHZBType InHZBTypes, bool bCheckIfProduced=false);
59
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool IsPreviousHZBValid(const FViewInfo &View, EHZBType InHZBTypes)
Definition HZB.cpp:133
FRDGTextureRef GetHZBTexture(const FViewInfo &View, EHZBType InHZBTypes)
Definition HZB.cpp:151
FHZBParameters GetDummyHZBParameters(FRDGBuilder &GraphBuilder)
Definition HZB.cpp:111
bool IsHZBValid(const FViewInfo &View, EHZBType InHZBTypes, bool bCheckIfProduced=false)
Definition HZB.cpp:116
EHZBType
Definition HZB.h:45
FHZBParameters GetHZBParameters(FRDGBuilder &GraphBuilder, const FViewInfo &View, EHZBType InHZBTypes, FRDGTextureRef InClosestHZB, FRDGTextureRef InFurthestHZB)
Definition HZB.cpp:53
#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
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RenderGraphBuilder.h:49
Definition RenderGraphResources.h:571
Definition SceneRendering.h:1132