UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FOcclusionFeedback Class Reference

#include <ScenePrivate.h>

+ Inheritance diagram for FOcclusionFeedback:

Public Member Functions

 FOcclusionFeedback ()
 
 ~FOcclusionFeedback ()
 
virtual void InitRHI (FRHICommandListBase &RHICmdList) override
 
virtual void ReleaseRHI () override
 
void AddPrimitive (const FPrimitiveOcclusionHistoryKey &PrimitiveKey, const FVector &BoundsOrigin, const FVector &BoundsBoxExtent, FGlobalDynamicVertexBuffer &DynamicVertexBuffer)
 
void BeginOcclusionScope (FRDGBuilder &GraphBuilder)
 
void EndOcclusionScope (FRDGBuilder &GraphBuilder)
 
void SubmitOcclusionDraws (FRHICommandList &RHICmdList, FViewInfo &View)
 
void ReadbackResults (FRHICommandListImmediate &RHICmdList)
 
void AdvanceFrame (uint32 OcclusionFrameCounter)
 
FRDGBufferGetGPUFeedbackBuffer () const
 
bool IsOccluded (const FPrimitiveOcclusionHistoryKey &PrimitiveKey) const
 
- Public Member Functions inherited from FRenderResource
RENDERCORE_API FRenderResource ()
 
RENDERCORE_API FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 
RENDERCORE_API FRenderResource (const FRenderResource &)
 
RENDERCORE_API FRenderResource (FRenderResource &&)
 
RENDERCORE_API FRenderResourceoperator= (const FRenderResource &Other)
 
RENDERCORE_API FRenderResourceoperator= (FRenderResource &&Other)
 
virtual RENDERCORE_API ~FRenderResource ()
 
virtual RENDERCORE_API void InitResource (FRHICommandListBase &RHICmdList)
 
virtual RENDERCORE_API void ReleaseResource ()
 
RENDERCORE_API void UpdateRHI (FRHICommandListBase &RHICmdList)
 
virtual FString GetFriendlyName () const
 
bool IsInitialized () const
 
int32 GetListIndex () const
 
EInitPhase GetInitPhase () const
 
void SetOwnerName (FName InOwnerName)
 
FName GetOwnerName () const
 
void SetResourceName (FName InResourceName)
 
FName GetResourceName () const
 

Additional Inherited Members

- Public Types inherited from FRenderResource
enum class  EInitPhase : uint8 { Pre , Default , MAX }
 
- Static Public Member Functions inherited from FRenderResource
static RENDERCORE_API void ReleaseRHIForAllResources ()
 
static RENDERCORE_API void InitPreRHIResources ()
 
static RENDERCORE_API void ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel)
 
static RENDERCORE_API FName SetScopeName (FName Name)
 
- Public Attributes inherited from FRenderResource
ERenderResourceState ResourceState = ERenderResourceState::Default
 
- Protected Member Functions inherited from FRenderResource
void SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel)
 
const FStaticFeatureLevel GetFeatureLevel () const
 
bool HasValidFeatureLevel () const
 
template<typename T >
FBufferRHIRef CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName)
 
void SetInitPhase (EInitPhase InInitPhase)
 
- Static Protected Member Functions inherited from FRenderResource
static RENDERCORE_API FRHICommandListBaseGetImmediateCommandList ()
 

Constructor & Destructor Documentation

◆ FOcclusionFeedback()

FOcclusionFeedback::FOcclusionFeedback ( )

◆ ~FOcclusionFeedback()

FOcclusionFeedback::~FOcclusionFeedback ( )

Member Function Documentation

◆ AddPrimitive()

void FOcclusionFeedback::AddPrimitive ( const FPrimitiveOcclusionHistoryKey PrimitiveKey,
const FVector BoundsOrigin,
const FVector BoundsBoxExtent,
FGlobalDynamicVertexBuffer DynamicVertexBuffer 
)

◆ AdvanceFrame()

void FOcclusionFeedback::AdvanceFrame ( uint32  OcclusionFrameCounter)

◆ BeginOcclusionScope()

void FOcclusionFeedback::BeginOcclusionScope ( FRDGBuilder GraphBuilder)

◆ EndOcclusionScope()

void FOcclusionFeedback::EndOcclusionScope ( FRDGBuilder GraphBuilder)

◆ GetGPUFeedbackBuffer()

FRDGBuffer * FOcclusionFeedback::GetGPUFeedbackBuffer ( ) const
inline

◆ InitRHI()

void FOcclusionFeedback::InitRHI ( FRHICommandListBase RHICmdList)
overridevirtual

Initializes the RHI resources used by this resource. Called when entering the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

Reimplemented from FRenderResource.

◆ IsOccluded()

bool FOcclusionFeedback::IsOccluded ( const FPrimitiveOcclusionHistoryKey PrimitiveKey) const
inline

◆ ReadbackResults()

void FOcclusionFeedback::ReadbackResults ( FRHICommandListImmediate RHICmdList)

◆ ReleaseRHI()

void FOcclusionFeedback::ReleaseRHI ( )
overridevirtual

Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

Reimplemented from FRenderResource.

◆ SubmitOcclusionDraws()

void FOcclusionFeedback::SubmitOcclusionDraws ( FRHICommandList RHICmdList,
FViewInfo View 
)

Renders the current batch and resets the batch state.


The documentation for this class was generated from the following files: