FOldResourceHeap

A set of Device Allocations (Heap Pages) for a specific memory type.

Windows
MacOS
Linux

References

Module

VulkanRHI

Header

/Engine/Source/Runtime/VulkanRHI/Public/VulkanMemory.h

Include

#include "VulkanMemory.h"

Syntax

class FOldResourceHeap

Remarks

A set of Device Allocations (Heap Pages) for a specific memory type. This handles pooling allocations inside memory pages to avoid doing allocations directly off the device's heaps

Variables

Name Description

Protected variable

bool

 

bIsHostCachedSupported

Protected variable

bool

 

bIsLazilyAllocatedSupported

Protected variable

uint32

 

DefaultPageSize

Protected variable

TArray< FOldRes...

 

FreePages

Protected variable

uint32

 

MemoryTypeIndex

Protected variable

FResourceHeapMa...

 

Owner

Protected variable

uint32

 

PageIDCounter

Protected variable

uint32

 

PeakPageSize

Protected variable

TArray< FOldRes...

 

UsedBufferPages

Protected variable

TArray< FOldRes...

 

UsedImagePages

Protected variable

uint64

 

UsedMemory

Constructors

Name Description

Public function

FOldResourceHeap

(
    FResourceHeapManager* InOwner,
    uint32 InMemoryTypeIndex,
    uint32 InPageSize
)

Destructors

Name Description

Public function

~FOldResourceHeap()

Functions

Name Description

Protected function

FOldResource...

 

AllocateResource

(
    EType Type,
    uint32 Size,
    uint32 Alignment,
    bool bMapAllocation,
    bool bForceSeparateAllocation,
    const char* File,
    uint32 Line
)

Public function

void

 

FreePage

(
    FOldResourceHeapPage* InPage
)

Public function Const

uint32

 

GetMemoryTypeIndex()

Public function

FResourceHea...

 

GetOwner()

Public function Const

bool

 

IsHostCachedSupported()

Public function Const

bool

 

IsLazilyAllocatedSupported()

Public function

void

 

ReleaseFreedPages

(
    bool bImmediately
)

Enums

Name

Description

Public enum

EType

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