Language:
Discover
By Skill Level
By Category

FOldResourceHeap

Choose your OS:

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,
    const char* File,
    uint32 Line
)

Public function

void

 

FreePage

(
    FOldResourceHeapPage * InPage
)

Public function

uint32

 

GetMemoryTypeIndex()

Public function

FResourceHea ...

 

GetOwner()

Public function

bool

 

IsHostCachedSupported()

Public function

bool

 

IsLazilyAllocatedSupported()

Public function

void

 

ReleaseFreedPages

(
    bool bImmediately
)

Enums

Name

Description

Public enum

EType

References

Module

VulkanRHI

Header

Runtime/VulkanRHI/Public/VulkanMemory.h