Navigation
API > API/Runtime > API/Runtime/Core
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.
| Name | TResourceArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/DynamicRHIResourceArray.h |
| Include Path | #include "Containers/DynamicRHIResourceArray.h" |
Syntax
template<typename ElementType, uint32 Alignment>
class TResourceArray :
public FResourceArrayInterface ,
public TArray< ElementType, TMemoryImageAllocator< DEFAULT_ALIGNMENT > >
Inheritance Hierarchy
- FResourceArrayUploadInterface → FResourceArrayInterface → TResourceArray
- TArray → TResourceArray
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TResourceArray
(
bool InNeedsCPUAccess |
Constructor | Containers/DynamicRHIResourceArray.h | |
TResourceArray
(
TResourceArray&& |
Containers/DynamicRHIResourceArray.h | ||
TResourceArray
(
const TResourceArray& |
Containers/DynamicRHIResourceArray.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TResourceArray() |
Containers/DynamicRHIResourceArray.h |
Structs
| Name | Remarks |
|---|---|
| InternalLinkType |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DerivedType | TResourceArray | Containers/DynamicRHIResourceArray.h | |
| ParentArrayType | TArray< ElementType, TMemoryImageAllocator< Alignment > > | Containers/DynamicRHIResourceArray.h | |
| Super | ParentArrayType | Containers/DynamicRHIResourceArray.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CounterBase | int | Containers/DynamicRHIResourceArray.h | |
| InterfaceType | ETypeLayoutInterface::Type | Containers/DynamicRHIResourceArray.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| boolbNeedsCPUAccess | True if this array needs to be accessed by the CPU. | Containers/DynamicRHIResourceArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BulkSerialize
(
FArchive& Ar, |
Serialize data as a single block. | Containers/DynamicRHIResourceArray.h |
Overridden from FResourceArrayInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool GetAllowCPUAccess() |
Containers/DynamicRHIResourceArray.h | ||
virtual const FTypeLayoutDesc & GetTypeLayout() |
Containers/DynamicRHIResourceArray.h | ||
virtual bool IsStatic() |
Containers/DynamicRHIResourceArray.h | ||
virtual void SetAllowCPUAccess
(
bool bInNeedsCPUAccess |
Sets whether the resource array will be accessed by CPU. | Containers/DynamicRHIResourceArray.h |
Overridden from FResourceArrayUploadInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Discard () |
Called on non-UMA systems after the RHI has copied the resource data, and no longer needs the CPU's copy. | Containers/DynamicRHIResourceArray.h | |
virtual const void * GetResourceData() |
Containers/DynamicRHIResourceArray.h | ||
virtual uint32 GetResourceDataSize() |
Containers/DynamicRHIResourceArray.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void InternalDestroy
(
void* Object, |
Containers/DynamicRHIResourceArray.h | ||
static void InternalInitializeBases
(
FTypeLayoutDesc& TypeDesc |
Containers/DynamicRHIResourceArray.h | ||
static FTypeLayoutDesc & StaticGetTypeLayout() |
Containers/DynamicRHIResourceArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TResourceArray & operator=
(
TResourceArray&& |
Containers/DynamicRHIResourceArray.h | ||
TResourceArray & operator=
(
const TResourceArray& |
Containers/DynamicRHIResourceArray.h | ||
TResourceArray & operator=
(
const Super& Other |
Assignment operators. | Containers/DynamicRHIResourceArray.h |