mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 00:24:35 +00:00
Fixed minor documentation mistakes - issue #32 - thanks @dgough !
This commit is contained in:
parent
3d99a1ca66
commit
0d80dab2c0
@ -298,7 +298,7 @@ The library provides following functions for mapping of a specific #VmaAllocatio
|
||||
They are safer and more convenient to use than standard Vulkan functions.
|
||||
You can map an allocation multiple times simultaneously - mapping is reference-counted internally.
|
||||
You can also map different allocations simultaneously regardless of whether they use the same `VkDeviceMemory` block.
|
||||
They way it's implemented is that the library always maps entire memory block, not just region of the allocation.
|
||||
The way it's implemented is that the library always maps entire memory block, not just region of the allocation.
|
||||
For further details, see description of vmaMapMemory() function.
|
||||
Example:
|
||||
|
||||
@ -312,7 +312,7 @@ struct ConstantBuffer
|
||||
ConstantBuffer constantBufferData;
|
||||
|
||||
VmaAllocator allocator;
|
||||
VmaBuffer constantBuffer;
|
||||
VkBuffer constantBuffer;
|
||||
VmaAllocation constantBufferAllocation;
|
||||
|
||||
// You can map and fill your buffer using following code:
|
||||
|
Loading…
Reference in New Issue
Block a user