![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ResourcePool.h>
Inheritance diagram for TResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >:Classes | |
| class | FLockScope |
Public Member Functions | |
| TResourcePool ()=default | |
| TResourcePool (ResourcePoolPolicy InPolicy) | |
| virtual | ~TResourcePool () |
| uint32 | PooledSizeForCreationArguments (ResourceCreationArguments Args) |
| ResourceType | CreatePooledResource (FRHICommandListBase &RHICmdList, ResourceCreationArguments Args) |
| void | ReleasePooledResource (ResourceType &&Resource) |
| void | DrainPool (bool bForceDrainAll) |
A templated pool for resources that can only be freed at a 'safe' point in the frame.
|
default |
|
inline |
Constructor with policy argument
| InPolicy | An initialised policy object |
|
inlinevirtual |
Destructor
|
inline |
Creates a pooled resource.
| Args | the argument object for construction. |
|
inline |
Drain the pool of freed resources that need to be culled or prepared for reuse.
| bForceDrainAll | Clear the pool of all free resources, rather than obeying the policy |
|
inline |
Gets the size a pooled object will use when constructed from the pool.
| Args | the argument object for construction. |
|
inline |
Release a resource back into the pool.
| Resource | The resource to return to the pool |