UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RayTracingGeometryManagerInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
5
6#include "RHI.h"
7#include "RHIResources.h"
8#include "RHICommandList.h"
9
10#if RHI_RAYTRACING
11
16
17namespace RayTracing
18{
20 using GeometryGroupHandle UE_DEPRECATED(5.6, "Use FGeometryGroupHandle instead.") = FGeometryGroupHandle;
21}
22
24{
25public:
26
28 using BuildRequestIndex UE_DEPRECATED(5.6, "Use FBuildRequestIndex instead.") = FBuildRequestIndex;
29
30 using FGeometryHandle = int32;
31 using RayTracingGeometryHandle UE_DEPRECATED(5.6, "Use FGeometryHandle instead.") = FGeometryHandle;
32
33 virtual ~IRayTracingGeometryManager() = default;
34
36
38 {
40 }
41
42 virtual void RemoveBuildRequest(FBuildRequestIndex InRequestIndex) = 0;
43 virtual void BoostPriority(FBuildRequestIndex InRequestIndex, float InBoostValue) = 0;
46
49
50 /*
51 * RayTracing::FGeometryGroupHandle is used to group multiple FRayTracingGeometry that are associated with the same asset.
52 * For example, the FRayTracingGeometry of all the LODs of UStaticMesh should use the same RayTracing::FGeometryGroupHandle.
53 * This grouping is useful to keep track which proxies need to be invalidated when a FRayTracingGeometry is built or made resident.
54 */
55 virtual RayTracing::FGeometryGroupHandle RegisterRayTracingGeometryGroup(uint32 NumLODs, uint32 CurrentFirstLODIdx = 0) = 0;
57
58 virtual void RequestUpdateCachedRenderState(RayTracing::FGeometryGroupHandle InRayTracingGeometryGroupHandle) = 0;
59
61
62 virtual void PreRender() = 0;
63 virtual void Tick(FRHICommandList& RHICmdList) = 0;
64
65 virtual bool IsGeometryVisible(FGeometryHandle GeometryHandle) const = 0;
67};
68
70
71#endif // RHI_RAYTRACING
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
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
EAccelerationStructureBuildMode
Definition RHIContext.h:579
ERTAccelerationStructureBuildPriority
Definition RayTracingGeometry.h:21
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition RHICommandList.h:3819
Definition RHICommandList.h:2735
Definition RayTracingGeometry.h:31
Definition ArrayView.h:139
Definition SceneManagement.h:73
int32 FGeometryGroupHandle
Definition SceneManagement.h:74