UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMetalGPUProfiler Struct Reference

#include <MetalProfiler.h>

+ Inheritance diagram for FMetalGPUProfiler:

Public Member Functions

 FMetalGPUProfiler (FMetalRHICommandContext &InContext)
 
virtual ~FMetalGPUProfiler ()
 
virtual FGPUProfilerEventNode * CreateEventNode (const TCHAR *InName, FGPUProfilerEventNode *InParent) override
 
void Cleanup ()
 
virtual void PushEvent (const TCHAR *Name, FColor Color) override
 
virtual void PopEvent () override
 
void BeginFrame ()
 
void EndFrame ()
 

Public Attributes

TIndirectArray< FMetalEventNodeFrameGPUHitchEventNodeFrames
 
FMetalGPUTiming TimingSupport
 
FMetalRHICommandContextContext
 

Detailed Description

Encapsulates GPU profiling logic and data. There's only one global instance of this struct so it should only contain global data, nothing specific to a frame.

Constructor & Destructor Documentation

◆ FMetalGPUProfiler()

FMetalGPUProfiler::FMetalGPUProfiler ( FMetalRHICommandContext InContext)
inline

◆ ~FMetalGPUProfiler()

virtual FMetalGPUProfiler::~FMetalGPUProfiler ( )
inlinevirtual

Member Function Documentation

◆ BeginFrame()

void FMetalGPUProfiler::BeginFrame ( )

◆ Cleanup()

void FMetalGPUProfiler::Cleanup ( )

◆ CreateEventNode()

FGPUProfilerEventNode * FMetalGPUProfiler::CreateEventNode ( const TCHAR InName,
FGPUProfilerEventNode *  InParent 
)
overridevirtual

◆ EndFrame()

void FMetalGPUProfiler::EndFrame ( )

◆ PopEvent()

void FMetalGPUProfiler::PopEvent ( )
overridevirtual

Reimplemented in FMetalProfiler.

◆ PushEvent()

void FMetalGPUProfiler::PushEvent ( const TCHAR Name,
FColor  Color 
)
overridevirtual

Reimplemented in FMetalProfiler.

Member Data Documentation

◆ Context

FMetalRHICommandContext& FMetalGPUProfiler::Context

◆ GPUHitchEventNodeFrames

TIndirectArray<FMetalEventNodeFrame> FMetalGPUProfiler::GPUHitchEventNodeFrames

GPU hitch profile histories

◆ TimingSupport

FMetalGPUTiming FMetalGPUProfiler::TimingSupport

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