Language:
Discover
By Skill Level
By Category

FBufferAllocation

Choose your OS:

Inheritance Hierarchy

FSubresourceAllocator

FBufferAllocation

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

VkBufferUsageFl...

 

BufferUsageFlags

Protected variable

int32

 

PoolSizeIndex

Constructors

Name Description

Public function

FBufferAllocation

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

Destructors

Name Description

Public function Virtual

~FBufferAllocation()

Functions

Name Description

Public function

VkBuffer

 

GetHandle()

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
)

References

Module

VulkanRHI

Header

Runtime/VulkanRHI/Public/VulkanMemory.h