Updated documentation.

This commit is contained in:
Adam Sawicki 2017-07-11 14:42:45 +02:00
parent 2a22d61297
commit 4184ee53bd

View File

@ -118,7 +118,14 @@ When you want to create a buffer or image:
memReq.usage = VMA_MEMORY_USAGE_GPU_ONLY;
VkBuffer buffer;
vmaCreateBuffer(allocator, &bufferInfo, &memReq, &buffer, nullptr, nullptr);
VmaAllocation allocation;
vmaCreateBuffer(allocator, &bufferInfo, &memReq, &buffer, &allocation, nullptr);
Don't forget to destroy your objects:
vmaDestroyBuffer(allocator, buffer, allocation);
vmaDestroyAllocator(allocator);
\section configuration Configuration