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, TMemoryImageAllocator< 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,
    bool bForcePerElementSerialization
)

Serialize data as a single block.

Public function Static

FTypeLayoutD...

 

StaticGetTypeLayout()

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

const FTypeL...

 

GetTypeLayout()

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.

Classes

Name

Description

Public struct

InternalLinkType

Typedefs

Name

Description

DerivedType

ParentArrayType

Super

Constants

Name

Description

CounterBase

InterfaceType

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