Language:
Discover
By Skill Level
By Category

FSubresourceAllocator

Choose your OS:

Inheritance Hierarchy

FSubresourceAllocator

FBufferAllocation

Syntax

class FSubresourceAllocator

Remarks

Generically mantains/manages sub-allocations; doesn't know what the object type is.

Variables

Name Description

Protected variable

uint32

 

Alignment

Protected variable

uint32

 

FrameFreed

Protected variable

TArray < FRange ...

 

FreeList

List of free ranges.

Protected variable

uint32

 

MaxSize

Protected variable

FDeviceMemoryAl ...

 

MemoryAllocation

Protected variable

VkMemoryPropert...

 

MemoryPropertyFlags

Protected variable

uint32

 

MemoryTypeIndex

Protected variable

FResourceHeapMa ...

 

Owner

Protected variable

TArray < FResour ...

 

Suballocations

Active sub-allocations.

Protected variable

int64

 

UsedSize

Constructors

Name Description

Public function

FSubresourceAllocator

(
    FResourceHeapManager * InOwner,
    FDeviceMemoryAllocation * InDev...,
    uint32 InMemoryTypeIndex,
    VkMemoryPropertyFlags InMemoryPrope...,
    uint32 InAlignment
)

Destructors

Name Description

Public function Virtual

~FSubresourceAllocator()

Functions

Name Description

Public function

FResourceSub ...

 

CreateSubAllocation

(
    uint32 Size,
    uint32 AlignedOffset,
    uint32 AllocatedSize,
    uint32 AllocatedOffset
)

Public function

void

 

Destroy

(
    FVulkanDevice* Device
)

Public function

uint32

 

GetAlignment()

Public function

void *

 

GetMappedPointer()

Protected function

bool

 

JoinFreeBlocks()

Public function

FResourceSub ...

 

TryAllocateLocking

(
    uint32 InSize,
    uint32 InAlignment,
    const char* File,
    uint32 Line
)

Public function

FResourceSub ...

 

TryAllocateNoLocking

(
    uint32 InSize,
    uint32 InAlignment,
    const char* File,
    uint32 Line
)

Constants

Name

Description

CS

References

Module

VulkanRHI

Header

Runtime/VulkanRHI/Public/VulkanMemory.h