FBufferAllocation

Manages/maintains sub-allocations of a VkBuffer; assumes it was created elsewhere, but it does destroy it.

Windows
MacOS
Linux

Inheritance Hierarchy

FSubresourceAllocator

FBufferAllocation

References

Module

VulkanRHI

Header

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

Include

#include "VulkanMemory.h"

Syntax

class FBufferAllocation : public VulkanRHI::FSubresourceAllocator

Remarks

Manages/maintains sub-allocations of a VkBuffer; assumes it was created elsewhere, but it does destroy it.

Variables

Name Description

Protected variable

VkBuffer

 

Buffer

Protected variable

uint32

 

BufferId

Protected variable

VkBufferUsageFl...

 

BufferUsageFlags

Protected variable

int32

 

PoolSizeIndex

Constructors

Name Description

Public function

FBufferAllocation

(
    FResourceHeapManager* InOwner,
    FDeviceMemoryAllocation* InDev...,
    uint32 InMemoryTypeIndex,
    VkMemoryPropertyFlags InMemoryPrope...,
    uint32 InAlignment,
    VkBuffer InBuffer,
    uint32 InBufferId,
    VkBufferUsageFlags InBufferUsageFla...,
    int32 InPoolSizeIndex
)

Destructors

Name Description

Public function Virtual

~FBufferAllocation()

Functions

Name Description

Public function Const

VkBuffer

 

GetHandle()

Public function Const

uint32

 

GetHandleId()

Public function

void

 

Release

(
    FBufferSuballocation* Suballoc...
)

Overridden from FSubresourceAllocator

Name Description

Public function Virtual

FResourceSub...

 

CreateSubAllocation

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

Public function Virtual

void

 

Destroy

(
    FVulkanDevice* Device
)

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