UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VulkanRHI::FVulkanAllocation Class Reference

#include <VulkanMemory.h>

Public Member Functions

 FVulkanAllocation ()
 
 ~FVulkanAllocation ()
 
void Init (EVulkanAllocationType Type, EVulkanAllocationMetaType MetaType, uint64 Handle, uint32 InSize, uint32 AlignedOffset, uint32 AllocatorIndex, uint32 AllocationIndex, uint32 BufferId)
 
void Free (FVulkanDevice &Device)
 
void Swap (FVulkanAllocation &Other)
 
void Reference (const FVulkanAllocation &Other)
 
bool HasAllocation () const
 
void Disown ()
 
void Own ()
 
bool IsValid () const
 
EVulkanAllocationType GetType () const
 
void SetType (EVulkanAllocationType InType)
 
voidGetMappedPointer (FVulkanDevice *Device)
 
void FlushMappedMemory (FVulkanDevice *Device)
 
void InvalidateMappedMemory (FVulkanDevice *Device)
 
VkBuffer GetBufferHandle () const
 
uint32 GetBufferAlignment (FVulkanDevice *Device) const
 
VkDeviceMemory GetDeviceMemoryHandle (FVulkanDevice *Device) const
 
FVulkanSubresourceAllocatorGetSubresourceAllocator (FVulkanDevice *Device) const
 
void BindBuffer (FVulkanDevice *Device, VkBuffer Buffer)
 
void BindImage (FVulkanDevice *Device, VkImage Image)
 

Public Attributes

uint64 VulkanHandle = 0
 
uint32 HandleId = 0
 
uint32 Size = 0
 
uint32 Offset = 0
 
uint32 AllocationIndex = 0
 
uint16 AllocatorIndex = 0
 
EVulkanAllocationMetaType MetaType = EVulkanAllocationMetaUnknown
 
uint8 Type: 6
 
uint8 bHasOwnership: 1
 
uint8 bTransient: 1
 

Constructor & Destructor Documentation

◆ FVulkanAllocation()

VulkanRHI::FVulkanAllocation::FVulkanAllocation ( )

◆ ~FVulkanAllocation()

VulkanRHI::FVulkanAllocation::~FVulkanAllocation ( )

Member Function Documentation

◆ BindBuffer()

void VulkanRHI::FVulkanAllocation::BindBuffer ( FVulkanDevice Device,
VkBuffer  Buffer 
)

◆ BindImage()

void VulkanRHI::FVulkanAllocation::BindImage ( FVulkanDevice Device,
VkImage  Image 
)

◆ Disown()

void VulkanRHI::FVulkanAllocation::Disown ( )

◆ FlushMappedMemory()

void VulkanRHI::FVulkanAllocation::FlushMappedMemory ( FVulkanDevice Device)

◆ Free()

void VulkanRHI::FVulkanAllocation::Free ( FVulkanDevice Device)

◆ GetBufferAlignment()

uint32 VulkanRHI::FVulkanAllocation::GetBufferAlignment ( FVulkanDevice Device) const

◆ GetBufferHandle()

VkBuffer VulkanRHI::FVulkanAllocation::GetBufferHandle ( ) const

◆ GetDeviceMemoryHandle()

VkDeviceMemory VulkanRHI::FVulkanAllocation::GetDeviceMemoryHandle ( FVulkanDevice Device) const

◆ GetMappedPointer()

void * VulkanRHI::FVulkanAllocation::GetMappedPointer ( FVulkanDevice Device)

◆ GetSubresourceAllocator()

FVulkanSubresourceAllocator * VulkanRHI::FVulkanAllocation::GetSubresourceAllocator ( FVulkanDevice Device) const

◆ GetType()

EVulkanAllocationType VulkanRHI::FVulkanAllocation::GetType ( ) const
inline

◆ HasAllocation()

bool VulkanRHI::FVulkanAllocation::HasAllocation ( ) const

◆ Init()

void VulkanRHI::FVulkanAllocation::Init ( EVulkanAllocationType  Type,
EVulkanAllocationMetaType  MetaType,
uint64  Handle,
uint32  InSize,
uint32  AlignedOffset,
uint32  AllocatorIndex,
uint32  AllocationIndex,
uint32  BufferId 
)

◆ InvalidateMappedMemory()

void VulkanRHI::FVulkanAllocation::InvalidateMappedMemory ( FVulkanDevice Device)

◆ IsValid()

bool VulkanRHI::FVulkanAllocation::IsValid ( ) const

◆ Own()

void VulkanRHI::FVulkanAllocation::Own ( )

◆ Reference()

void VulkanRHI::FVulkanAllocation::Reference ( const FVulkanAllocation Other)

◆ SetType()

void VulkanRHI::FVulkanAllocation::SetType ( EVulkanAllocationType  InType)
inline

◆ Swap()

void VulkanRHI::FVulkanAllocation::Swap ( FVulkanAllocation Other)

Member Data Documentation

◆ AllocationIndex

uint32 VulkanRHI::FVulkanAllocation::AllocationIndex = 0

◆ AllocatorIndex

uint16 VulkanRHI::FVulkanAllocation::AllocatorIndex = 0

◆ bHasOwnership

uint8 VulkanRHI::FVulkanAllocation::bHasOwnership

◆ bTransient

uint8 VulkanRHI::FVulkanAllocation::bTransient

◆ HandleId

uint32 VulkanRHI::FVulkanAllocation::HandleId = 0

◆ MetaType

EVulkanAllocationMetaType VulkanRHI::FVulkanAllocation::MetaType = EVulkanAllocationMetaUnknown

◆ Offset

uint32 VulkanRHI::FVulkanAllocation::Offset = 0

◆ Size

uint32 VulkanRHI::FVulkanAllocation::Size = 0

◆ Type

uint8 VulkanRHI::FVulkanAllocation::Type

◆ VulkanHandle

uint64 VulkanRHI::FVulkanAllocation::VulkanHandle = 0

The documentation for this class was generated from the following files: