FVulkanAllocation

Holds a reference to -any- vulkan gpu allocation !Intentionally not reference counted !User must call Free exactly once

Windows
MacOS
Linux

References

Module

VulkanRHI

Header

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

Include

#include "VulkanMemory.h"

Syntax

class FVulkanAllocation

Remarks

Holds a reference to -any- vulkan gpu allocation !Intentionally not reference counted !User must call Free exactly once

Variables

Name Description

Public variable

uint32: ALLOCA...

 

AllocationIndex

Public variable

uint32: ALLOCA...

 

AllocatorIndex

Public variable

uint8

 

bHasOwnership

Public variable

int32

 

HandleId

Public variable

EVulkanAllocati...

 

MetaType

Public variable

uint32

 

Offset

Public variable

uint32

 

Size

Public variable

EVulkanAllocati...

 

Type

Public variable

uint64

 

VulkanHandle

Constructors

Name Description

Public function

FVulkanAllocation()

Destructors

Name Description

Public function

~FVulkanAllocation()

Functions

Name Description

Public function

void

 

BindBuffer

(
    FVulkanDevice* Device,
    VkBuffer Buffer
)

Public function

void

 

BindImage

(
    FVulkanDevice* Device,
    VkImage Image
)

Public function

void

 

Disown()

Public function

void

 

FlushMappedMemory

(
    FVulkanDevice* Device
)

Public function

void

 

Free

(
    FVulkanDevice& Device
)

Public function Const

uint32

 

GetBufferAlignment

(
    FVulkanDevice* Device
)

Public function Const

VkBuffer

 

GetBufferHandle()

Public function Const

VkDeviceMemo...

 

GetDeviceMemoryHandle

(
    FVulkanDevice* Device
)

Public function

void *

 

GetMappedPointer

(
    FVulkanDevice* Device
)

Helper functions

Public function Const

FVulkanSubre...

 

GetSubresourceAllocator

(
    FVulkanDevice* Device
)

Public function

bool

 

HasAllocation()

Public function

void

 

Init

(
    EVulkanAllocationType Type,
    EVulkanAllocationMetaType MetaType,
    uint64 Handle,
    uint32 InSize,
    uint32 AlignedOffset,
    uint32 AllocatorIndex,
    uint32 AllocationIndex,
    uint32 BufferId
)

Public function

void

 

InvalidateMappedMemory

(
    FVulkanDevice* Device
)

Public function Const

bool

 

IsValid()

Public function

void

 

Own()

Public function

void

 

Reference

(
    const FVulkanAllocation& Other
)

Public function

void

 

Swap

(
    FVulkanAllocation& Other
)

Constants

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