FSubresourceAllocator

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

Windows
MacOS
Linux

Inheritance Hierarchy

FSubresourceAllocator

FBufferAllocation

References

Module

VulkanRHI

Header

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

Include

#include "VulkanMemory.h"

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

void

 

Flush

(
    VkDeviceSize Offset,
    VkDeviceSize AllocationSize
)

Public function Const

uint32

 

GetAlignment()

Public function

void *

 

GetMappedPointer()

Public function Const

uint32

 

GetMaxSize()

Protected function

bool

 

JoinFreeBlocks()

Public function

FResourceSub...

 

TryAllocate

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

Constants

Name

Description

CS

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