UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RenderTargetPool.cpp File Reference
#include "RenderTargetPool.h"
#include "Hash/CityHash.h"
#include "Misc/CoreMisc.h"
#include "Trace/Trace.inl"
#include "ProfilingDebugging/CountersTrace.h"
#include "RHI.h"
#include "RenderCore.h"
#include "RHICommandList.h"

Classes

struct  FRenderTargetWithSize
 

Functions

 DEFINE_LOG_CATEGORY_STATIC (LogRenderTargetPool, Warning, All)
 
 CSV_DEFINE_CATEGORY (RenderTargetPool, !UE_SERVER)
 
 TRACE_DECLARE_INT_COUNTER (RenderTargetPoolCount, TEXT("RenderTargetPool/Count"))
 
 TRACE_DECLARE_MEMORY_COUNTER (RenderTargetPoolSize, TEXT("RenderTargetPool/Size"))
 
TRefCountPtr< IPooledRenderTargetCreateRenderTarget (FRHITexture *Texture, const TCHAR *Name)
 
bool CacheRenderTarget (FRHITexture *Texture, const TCHAR *Name, TRefCountPtr< IPooledRenderTarget > &OutPooledRenderTarget)
 
RENDERCORE_API void DumpRenderTargetPoolMemory (FOutputDevice &OutputDevice)
 

Variables

TGlobalResource< FRenderTargetPoolGRenderTargetPool
 

Function Documentation

◆ CacheRenderTarget()

bool CacheRenderTarget ( FRHITexture Texture,
const TCHAR Name,
TRefCountPtr< IPooledRenderTarget > &  OutPooledRenderTarget 
)

Creates an untracked pooled render target from the RHI texture, but only if the pooled render target is empty or doesn't match the input texture. If the pointer already exists and points at the input texture, the function just returns. Useful to cache a pooled render target for an RHI texture. Returns true if the render target was created, or false if it was reused.

◆ CreateRenderTarget()

TRefCountPtr< IPooledRenderTarget > CreateRenderTarget ( FRHITexture Texture,
const TCHAR Name 
)

Creates an untracked pooled render target from an RHI texture.

◆ CSV_DEFINE_CATEGORY()

CSV_DEFINE_CATEGORY ( RenderTargetPool  ,
UE_SERVER 
)

◆ DEFINE_LOG_CATEGORY_STATIC()

DEFINE_LOG_CATEGORY_STATIC ( LogRenderTargetPool  ,
Warning  ,
All   
)

◆ DumpRenderTargetPoolMemory()

RENDERCORE_API void DumpRenderTargetPoolMemory ( FOutputDevice OutputDevice)

◆ TRACE_DECLARE_INT_COUNTER()

TRACE_DECLARE_INT_COUNTER ( RenderTargetPoolCount  ,
TEXT("RenderTargetPool/Count"  
)

◆ TRACE_DECLARE_MEMORY_COUNTER()

TRACE_DECLARE_MEMORY_COUNTER ( RenderTargetPoolSize  ,
TEXT("RenderTargetPool/Size"  
)

Variable Documentation

◆ GRenderTargetPool

TGlobalResource<FRenderTargetPool> GRenderTargetPool

The global render targets pool.