TRenderResourcePool

A resource pool that automatically handles render-thread resources

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public function

TRenderResourcePool()

Constructor

Public function

TRenderResourcePool

(
    ResourcePoolPolicy InPolicy
)

Constructor with policy argument

Destructors

Name Description

Public function Virtual

~TRenderResourcePool()

Destructor

Functions

Name Description

Public function

ResourceType

 

CreatePooledResource

(
    ResourceCreationArguments Args
)

Creates a pooled resource.

Public function

void

 

ReleasePooledResource

(
    ResourceType Resource
)

Release a resource back into the pool.

Overridden from FTickableObjectRenderThread

Name Description

Public function Virtual Const

bool

 

IsTickable()

Pure virtual that must be overloaded by the inheriting class.

Public function Virtual Const

bool

 

NeedsRenderingResumedForRenderingThreadTick()

Used to determine if a rendering thread tickable object must have rendering in a non-suspended state during it's Tick function.

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

Pure virtual that must be overloaded by the inheriting class.

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

InitRHI()

Initializes the RHI resources used by this resource.

Public function Virtual

void

 

ReleaseRHI()

Releases the RHI resources used by this resource.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback