Merge pull request #205 from expipiplus1/ellie-typedef

Add typedefs for virtual allocation structs in ordinary identifier namespace
This commit is contained in:
Adam Sawicki 2021-11-03 10:02:49 +01:00 committed by GitHub
commit c7564fed98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2183,7 +2183,7 @@ typedef enum VmaVirtualBlockCreateFlagBits {
typedef VkFlags VmaVirtualBlockCreateFlags;
/// Parameters of created #VmaVirtualBlock object to be passed to vmaCreateVirtualBlock().
struct VmaVirtualBlockCreateInfo
typedef struct VmaVirtualBlockCreateInfo
{
/** \brief Total size of the virtual block.
@ -2201,7 +2201,7 @@ struct VmaVirtualBlockCreateInfo
Optional, can be null. When specified, they will be used for all CPU-side memory allocations.
*/
const VkAllocationCallbacks* VMA_NULLABLE pAllocationCallbacks;
};
} VmaVirtualBlockCreateInfo;
/// Flags to be passed as VmaVirtualAllocationCreateInfo::flags.
typedef enum VmaVirtualAllocationCreateFlagBits {
@ -2231,7 +2231,7 @@ typedef enum VmaVirtualAllocationCreateFlagBits {
typedef VkFlags VmaVirtualAllocationCreateFlags;
/// Parameters of created virtual allocation to be passed to vmaVirtualAllocate().
struct VmaVirtualAllocationCreateInfo
typedef struct VmaVirtualAllocationCreateInfo
{
/** \brief Size of the allocation.
@ -2251,10 +2251,10 @@ struct VmaVirtualAllocationCreateInfo
It can be any value and can be used for user-defined purposes. It can be fetched or changed later.
*/
void* VMA_NULLABLE pUserData;
};
} VmaVirtualAllocationCreateInfo;
/// Parameters of an existing virtual allocation, returned by vmaGetVirtualAllocationInfo().
struct VmaVirtualAllocationInfo
typedef struct VmaVirtualAllocationInfo
{
/** \brief Size of the allocation.
@ -2266,7 +2266,7 @@ struct VmaVirtualAllocationInfo
Same value as passed in VmaVirtualAllocationCreateInfo::pUserData or to vmaSetVirtualAllocationUserData().
*/
void* VMA_NULLABLE pUserData;
};
} VmaVirtualAllocationInfo;
/** \struct VmaVirtualBlock
\brief Handle to a virtual block object that allows to use core allocation algorithm without allocating any real GPU memory.