FRDGAllocator

Simple C++ object allocator which tracks and destructs objects allocated using the MemStack allocator.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderGraphDefinitions.h

Include

#include "RenderGraphDefinitions.h"

Syntax

class FRDGAllocator

Remarks

Simple C++ object allocator which tracks and destructs objects allocated using the MemStack allocator.

Constructors

Name Description

Public function

FRDGAllocator()

Destructors

Name Description

Public function

~FRDGAllocator()

Functions

Name Description

Public function

void *

 

Alloc

(
    uint32 SizeInBytes,
    uint32 AlignInBytes
)

Allocates raw memory.

Public function

ObjectType &...

 

AllocNoDestruct

(
    TArgs&&... Args
)

Allocates a C++ object with no destructor tracking (dangerous!).

Public function

ObjectType &...

 

AllocObject

(
    TArgs&&... Args
)

Allocates a C++ object with destructor tracking.

Public function

PODType *...

 

AllocPOD()

Allocates POD memory without destructor tracking.

Public function Const

int32

 

GetByteCount()

Public function

void

 

ReleaseAll()

Releases all allocations.

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