![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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< IPooledRenderTarget > | CreateRenderTarget (FRHITexture *Texture, const TCHAR *Name) |
| bool | CacheRenderTarget (FRHITexture *Texture, const TCHAR *Name, TRefCountPtr< IPooledRenderTarget > &OutPooledRenderTarget) |
| RENDERCORE_API void | DumpRenderTargetPoolMemory (FOutputDevice &OutputDevice) |
Variables | |
| TGlobalResource< FRenderTargetPool > | GRenderTargetPool |
| 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.
| TRefCountPtr< IPooledRenderTarget > CreateRenderTarget | ( | FRHITexture * | Texture, |
| const TCHAR * | Name | ||
| ) |
Creates an untracked pooled render target from an RHI texture.
| CSV_DEFINE_CATEGORY | ( | RenderTargetPool | , |
| ! | UE_SERVER | ||
| ) |
| DEFINE_LOG_CATEGORY_STATIC | ( | LogRenderTargetPool | , |
| Warning | , | ||
| All | |||
| ) |
| RENDERCORE_API void DumpRenderTargetPoolMemory | ( | FOutputDevice & | OutputDevice | ) |
| TRACE_DECLARE_INT_COUNTER | ( | RenderTargetPoolCount | , |
| TEXT("RenderTargetPool/Count") | |||
| ) |
| TRACE_DECLARE_MEMORY_COUNTER | ( | RenderTargetPoolSize | , |
| TEXT("RenderTargetPool/Size") | |||
| ) |
| TGlobalResource<FRenderTargetPool> GRenderTargetPool |
The global render targets pool.