mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 00:24:35 +00:00
Add missing nullability macros
This commit is contained in:
parent
fd82bc7b6d
commit
32f74c51e0
@ -2366,7 +2366,7 @@ VMA_CALL_PRE VkBool32 VMA_CALL_POST vmaIsVirtualBlockEmpty(
|
|||||||
*/
|
*/
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaGetVirtualAllocationInfo(
|
VMA_CALL_PRE void VMA_CALL_POST vmaGetVirtualAllocationInfo(
|
||||||
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
VmaVirtualAllocation allocation, VmaVirtualAllocationInfo* VMA_NOT_NULL pVirtualAllocInfo);
|
VmaVirtualAllocation VMA_NOT_NULL_NON_DISPATCHABLE allocation, VmaVirtualAllocationInfo* VMA_NOT_NULL pVirtualAllocInfo);
|
||||||
|
|
||||||
/** \brief Allocates new virtual allocation inside given #VmaVirtualBlock.
|
/** \brief Allocates new virtual allocation inside given #VmaVirtualBlock.
|
||||||
|
|
||||||
@ -2382,7 +2382,7 @@ If the allocation fails due to not enough free space available, `VK_ERROR_OUT_OF
|
|||||||
VMA_CALL_PRE VkResult VMA_CALL_POST vmaVirtualAllocate(
|
VMA_CALL_PRE VkResult VMA_CALL_POST vmaVirtualAllocate(
|
||||||
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
const VmaVirtualAllocationCreateInfo* VMA_NOT_NULL pCreateInfo,
|
const VmaVirtualAllocationCreateInfo* VMA_NOT_NULL pCreateInfo,
|
||||||
VmaVirtualAllocation* VMA_NOT_NULL pAllocation,
|
VmaVirtualAllocation VMA_NULLABLE_NON_DISPATCHABLE* VMA_NOT_NULL pAllocation,
|
||||||
VkDeviceSize* VMA_NULLABLE pOffset);
|
VkDeviceSize* VMA_NULLABLE pOffset);
|
||||||
|
|
||||||
/** \brief Frees virtual allocation inside given #VmaVirtualBlock.
|
/** \brief Frees virtual allocation inside given #VmaVirtualBlock.
|
||||||
@ -2391,7 +2391,7 @@ It is correct to call this function with `allocation == VK_NULL_HANDLE` - it doe
|
|||||||
*/
|
*/
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaVirtualFree(
|
VMA_CALL_PRE void VMA_CALL_POST vmaVirtualFree(
|
||||||
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
VmaVirtualAllocation allocation);
|
VmaVirtualAllocation VMA_NULLABLE_NON_DISPATCHABLE allocation);
|
||||||
|
|
||||||
/** \brief Frees all virtual allocations inside given #VmaVirtualBlock.
|
/** \brief Frees all virtual allocations inside given #VmaVirtualBlock.
|
||||||
|
|
||||||
@ -2408,7 +2408,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaClearVirtualBlock(
|
|||||||
*/
|
*/
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaSetVirtualAllocationUserData(
|
VMA_CALL_PRE void VMA_CALL_POST vmaSetVirtualAllocationUserData(
|
||||||
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
VmaVirtualAllocation allocation,
|
VmaVirtualAllocation VMA_NOT_NULL_NON_DISPATCHABLE allocation,
|
||||||
void* VMA_NULLABLE pUserData);
|
void* VMA_NULLABLE pUserData);
|
||||||
|
|
||||||
/** \brief Calculates and returns statistics about virtual allocations and memory usage in given #VmaVirtualBlock.
|
/** \brief Calculates and returns statistics about virtual allocations and memory usage in given #VmaVirtualBlock.
|
||||||
@ -17835,7 +17835,7 @@ VMA_CALL_PRE VkBool32 VMA_CALL_POST vmaIsVirtualBlockEmpty(VmaVirtualBlock VMA_N
|
|||||||
}
|
}
|
||||||
|
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaGetVirtualAllocationInfo(VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VMA_CALL_PRE void VMA_CALL_POST vmaGetVirtualAllocationInfo(VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
VmaVirtualAllocation allocation, VmaVirtualAllocationInfo* VMA_NOT_NULL pVirtualAllocInfo)
|
VmaVirtualAllocation VMA_NOT_NULL_NON_DISPATCHABLE allocation, VmaVirtualAllocationInfo* VMA_NOT_NULL pVirtualAllocInfo)
|
||||||
{
|
{
|
||||||
VMA_ASSERT(virtualBlock != VK_NULL_HANDLE && pVirtualAllocInfo != VMA_NULL);
|
VMA_ASSERT(virtualBlock != VK_NULL_HANDLE && pVirtualAllocInfo != VMA_NULL);
|
||||||
VMA_DEBUG_LOG("vmaGetVirtualAllocationInfo");
|
VMA_DEBUG_LOG("vmaGetVirtualAllocationInfo");
|
||||||
@ -17844,7 +17844,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaGetVirtualAllocationInfo(VmaVirtualBlock VMA_
|
|||||||
}
|
}
|
||||||
|
|
||||||
VMA_CALL_PRE VkResult VMA_CALL_POST vmaVirtualAllocate(VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VMA_CALL_PRE VkResult VMA_CALL_POST vmaVirtualAllocate(VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
const VmaVirtualAllocationCreateInfo* VMA_NOT_NULL pCreateInfo, VmaVirtualAllocation* VMA_NOT_NULL pAllocation,
|
const VmaVirtualAllocationCreateInfo* VMA_NOT_NULL pCreateInfo, VmaVirtualAllocation VMA_NULLABLE_NON_DISPATCHABLE* VMA_NOT_NULL pAllocation,
|
||||||
VkDeviceSize* VMA_NULLABLE pOffset)
|
VkDeviceSize* VMA_NULLABLE pOffset)
|
||||||
{
|
{
|
||||||
VMA_ASSERT(virtualBlock != VK_NULL_HANDLE && pCreateInfo != VMA_NULL && pAllocation != VMA_NULL);
|
VMA_ASSERT(virtualBlock != VK_NULL_HANDLE && pCreateInfo != VMA_NULL && pAllocation != VMA_NULL);
|
||||||
@ -17853,7 +17853,7 @@ VMA_CALL_PRE VkResult VMA_CALL_POST vmaVirtualAllocate(VmaVirtualBlock VMA_NOT_N
|
|||||||
return virtualBlock->Allocate(*pCreateInfo, *pAllocation, pOffset);
|
return virtualBlock->Allocate(*pCreateInfo, *pAllocation, pOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaVirtualFree(VmaVirtualBlock VMA_NOT_NULL virtualBlock, VmaVirtualAllocation allocation)
|
VMA_CALL_PRE void VMA_CALL_POST vmaVirtualFree(VmaVirtualBlock VMA_NOT_NULL virtualBlock, VmaVirtualAllocation VMA_NULLABLE_NON_DISPATCHABLE allocation)
|
||||||
{
|
{
|
||||||
if(allocation != VK_NULL_HANDLE)
|
if(allocation != VK_NULL_HANDLE)
|
||||||
{
|
{
|
||||||
@ -17873,7 +17873,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaClearVirtualBlock(VmaVirtualBlock VMA_NOT_NUL
|
|||||||
}
|
}
|
||||||
|
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaSetVirtualAllocationUserData(VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
VMA_CALL_PRE void VMA_CALL_POST vmaSetVirtualAllocationUserData(VmaVirtualBlock VMA_NOT_NULL virtualBlock,
|
||||||
VmaVirtualAllocation allocation, void* VMA_NULLABLE pUserData)
|
VmaVirtualAllocation VMA_NOT_NULL_NON_DISPATCHABLE allocation, void* VMA_NULLABLE pUserData)
|
||||||
{
|
{
|
||||||
VMA_ASSERT(virtualBlock != VK_NULL_HANDLE);
|
VMA_ASSERT(virtualBlock != VK_NULL_HANDLE);
|
||||||
VMA_DEBUG_LOG("vmaSetVirtualAllocationUserData");
|
VMA_DEBUG_LOG("vmaSetVirtualAllocationUserData");
|
||||||
|
Loading…
Reference in New Issue
Block a user