TResourceArray

A array which allocates memory which can be used for UMA rendering resources.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/DynamicRHIResourceArray.h

Include

#include "Containers/DynamicRHIResourceArray.h"

Syntax

template<typename ElementType, uint32 Alignment>
class TResourceArray :
    public FResourceArrayInterface,
    public TArray< ElementType, TAlignedHeapAllocator< Alignment > >

Remarks

A array which allocates memory which can be used for UMA rendering resources. In the dynamically bound RHI, it isn't any different from the default array type, since none of the dynamically bound RHI implementations have UMA.

Constructors

Name Description

Public function

TResourceArray

(
    bool InNeedsCPUAccess
)

Constructor

Public function

TResourceArray

(
    TResourceArray&&
)

Public function

TResourceArray

(
    const TResourceArray&
)

Destructors

Name Description

Public function Virtual

~TResourceArray()

Functions

Name Description

Public function

void

 

BulkSerialize

(
    FArchive& Ar
)

Serialize data as a single block.

Overridden from FResourceArrayInterface

Name Description

Public function Virtual

void

 

Discard()

Called on non-UMA systems after the RHI has copied the resource data, and no longer needs the CPU's copy.

Public function Virtual Const

bool

 

GetAllowCPUAccess()

Public function Virtual Const

const void &...

 

GetResourceData()

Public function Virtual Const

uint32

 

GetResourceDataSize()

Public function Virtual Const

bool

 

IsStatic()

Public function Virtual

void

 

SetAllowCPUAccess

(
    bool bInNeedsCPUAccess
)

Sets whether the resource array will be accessed by CPU.

Operators

Name Description

Public function

TResourceArr...

 

operator=

(
    TResourceArray&&
)

Public function

TResourceArr...

 

operator=

(
    const TResourceArray&
)

Public function

TResourceArr...

 

operator=

(
    const Super& Other
)

Assignment operators.

Typedefs

Name

Description

Super

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