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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss