mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Updated documentation.
This commit is contained in:
parent
2a22d61297
commit
4184ee53bd
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user