NAP
Public Member Functions | Public Attributes | List of all members
BufferData Struct Reference

#include <bufferdata.h>

Public Member Functions

 BufferData ()=default
 
void release ()
 

Public Attributes

VmaAllocation mAllocation = VK_NULL_HANDLE
 Vulkan memory allocation handle. More...
 
VmaAllocationInfo mAllocationInfo
 Vulkan allocation information. More...
 
VkBufferUsageFlags mUsage = 0
 Usage flags. More...
 
VkBuffer mBuffer = VK_NULL_HANDLE
 Vulkan buffer. More...
 

Description

Vulkan Buffer Data Structure Binds a buffer, usage information, memory allocation and allocation information together.

Constructor & Destructor Documentation

◆ BufferData()

BufferData ( )
default

Member Function Documentation

◆ release()

void release ( )

Releases the buffer, resetting all the handles to null. Does not delete it.

Member Data Documentation

◆ mAllocation

VmaAllocation mAllocation = VK_NULL_HANDLE

Vulkan memory allocation handle.

◆ mAllocationInfo

VmaAllocationInfo mAllocationInfo

Vulkan allocation information.

◆ mBuffer

VkBuffer mBuffer = VK_NULL_HANDLE

Vulkan buffer.

◆ mUsage

VkBufferUsageFlags mUsage = 0

Usage flags.