Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- TResourcePool
- FTickableObjectRenderThread
- FRenderResource
- 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 TRenderResourcePool :
public TResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >,
public FTickableObjectRenderThread,
public FRenderResource
Remarks
A resource pool that automatically handles render-thread resources
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor | |||
TRenderResourcePool
(
ResourcePoolPolicy InPolicy |
Constructor with policy argument |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ResourceType | CreatePooledResource
(
ResourceCreationArguments Args |
Creates a pooled resource. | |
| void | ReleasePooledResource
(
ResourceType Resource |
Release a resource back into the pool. |
Overridden from FTickableObjectRenderThread
| Type | Name | Description | |
|---|---|---|---|
| bool | IsTickable () |
Pure virtual that must be overloaded by the inheriting class. | |
| bool | Used to determine if a rendering thread tickable object must have rendering in a non-suspended state during it's Tick function. | ||
| void | Tick
(
float DeltaTime |
Pure virtual that must be overloaded by the inheriting class. |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. | |
| void | ReleaseRHI () |
Releases the RHI resources used by this resource. |