Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- TResourcePool
- TRenderResourcePool
- FBoneBufferPool
- FClothBufferPool
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/ResourcePool.h |
| Include | #include "ResourcePool.h" |
Syntax
template<typename ResourceType, class ResourcePoolPolicy, class ResourceCreationArguments>
class TResourcePool
Remarks
A templated pool for resources that can only be freed at a 'safe' point in the frame.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor | |||
TResourcePool
(
ResourcePoolPolicy InPolicy |
Constructor with policy argument |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ResourceType | CreatePooledResource
(
ResourceCreationArguments Args |
Creates a pooled resource. | |
| void | DrainPool
(
bool bForceDrainAll |
Drain the pool of freed resources that need to be culled or prepared for reuse. | |
| uint32 | PooledSizeForCreationArguments
(
ResourceCreationArguments Args |
Gets the size a pooled object will use when constructed from the pool. | |
| void | ReleasePooledResource
(
const ResourceType& Resource |
Release a resource back into the pool. |