mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 00:24:35 +00:00
fix typos
This commit is contained in:
parent
a6bfc23725
commit
825d3d850a
@ -71,7 +71,7 @@ $(function() {
|
|||||||
<div class="contents">
|
<div class="contents">
|
||||||
<div class="textblock"><h1><a class="anchor" id="allocation_user_data"></a>
|
<div class="textblock"><h1><a class="anchor" id="allocation_user_data"></a>
|
||||||
Allocation user data</h1>
|
Allocation user data</h1>
|
||||||
<p >You can annotate allocations with your own information, e.g. for debugging purposes. To do that, fill <a class="el" href="struct_vma_allocation_create_info.html#a8259e85c272683434f4abb4ddddffe19" title="Custom general-purpose pointer that will be stored in VmaAllocation, can be read as VmaAllocationInfo...">VmaAllocationCreateInfo::pUserData</a> field when creating an allocation. It is an opaque <code>void*</code> pointer. You can use it e.g. as a pointer, some handle, index, key, ordinal number or any other value that would associate the allocation with your custom metadata. It it useful to identify appropriate data structures in your engine given <a class="el" href="struct_vma_allocation.html" title="Represents single memory allocation.">VmaAllocation</a>, e.g. when doing <a class="el" href="defragmentation.html">Defragmentation</a>.</p>
|
<p >You can annotate allocations with your own information, e.g. for debugging purposes. To do that, fill <a class="el" href="struct_vma_allocation_create_info.html#a8259e85c272683434f4abb4ddddffe19" title="Custom general-purpose pointer that will be stored in VmaAllocation, can be read as VmaAllocationInfo...">VmaAllocationCreateInfo::pUserData</a> field when creating an allocation. It is an opaque <code>void*</code> pointer. You can use it e.g. as a pointer, some handle, index, key, ordinal number or any other value that would associate the allocation with your custom metadata. It is useful to identify appropriate data structures in your engine given <a class="el" href="struct_vma_allocation.html" title="Represents single memory allocation.">VmaAllocation</a>, e.g. when doing <a class="el" href="defragmentation.html">Defragmentation</a>.</p>
|
||||||
<div class="fragment"><div class="line">VkBufferCreateInfo bufCreateInfo = ...</div>
|
<div class="fragment"><div class="line">VkBufferCreateInfo bufCreateInfo = ...</div>
|
||||||
<div class="line"> </div>
|
<div class="line"> </div>
|
||||||
<div class="line">MyBufferMetadata* pMetadata = CreateBufferMetadata();</div>
|
<div class="line">MyBufferMetadata* pMetadata = CreateBufferMetadata();</div>
|
||||||
|
@ -1799,7 +1799,7 @@ Functions</h2></td></tr>
|
|||||||
<div class="fragment"><div class="line">vkDestroyBuffer(device, buffer, allocationCallbacks);</div>
|
<div class="fragment"><div class="line">vkDestroyBuffer(device, buffer, allocationCallbacks);</div>
|
||||||
<div class="line"><a class="code hl_function" href="group__group__alloc.html#ga5fea5518972ae9094b1526cbcb19b05f">vmaFreeMemory</a>(allocator, allocation);</div>
|
<div class="line"><a class="code hl_function" href="group__group__alloc.html#ga5fea5518972ae9094b1526cbcb19b05f">vmaFreeMemory</a>(allocator, allocation);</div>
|
||||||
<div class="ttc" id="agroup__group__alloc_html_ga5fea5518972ae9094b1526cbcb19b05f"><div class="ttname"><a href="group__group__alloc.html#ga5fea5518972ae9094b1526cbcb19b05f">vmaFreeMemory</a></div><div class="ttdeci">void vmaFreeMemory(VmaAllocator allocator, const VmaAllocation allocation)</div><div class="ttdoc">Frees memory previously allocated using vmaAllocateMemory(), vmaAllocateMemoryForBuffer(),...</div></div>
|
<div class="ttc" id="agroup__group__alloc_html_ga5fea5518972ae9094b1526cbcb19b05f"><div class="ttname"><a href="group__group__alloc.html#ga5fea5518972ae9094b1526cbcb19b05f">vmaFreeMemory</a></div><div class="ttdeci">void vmaFreeMemory(VmaAllocator allocator, const VmaAllocation allocation)</div><div class="ttdoc">Frees memory previously allocated using vmaAllocateMemory(), vmaAllocateMemoryForBuffer(),...</div></div>
|
||||||
</div><!-- fragment --><p >It it safe to pass null as buffer and/or allocation. </p>
|
</div><!-- fragment --><p >It is safe to pass null as buffer and/or allocation. </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -1839,7 +1839,7 @@ Functions</h2></td></tr>
|
|||||||
<p >This is just a convenience function equivalent to:</p>
|
<p >This is just a convenience function equivalent to:</p>
|
||||||
<div class="fragment"><div class="line">vkDestroyImage(device, image, allocationCallbacks);</div>
|
<div class="fragment"><div class="line">vkDestroyImage(device, image, allocationCallbacks);</div>
|
||||||
<div class="line"><a class="code hl_function" href="group__group__alloc.html#ga5fea5518972ae9094b1526cbcb19b05f">vmaFreeMemory</a>(allocator, allocation);</div>
|
<div class="line"><a class="code hl_function" href="group__group__alloc.html#ga5fea5518972ae9094b1526cbcb19b05f">vmaFreeMemory</a>(allocator, allocation);</div>
|
||||||
</div><!-- fragment --><p >It it safe to pass null as image and/or allocation. </p>
|
</div><!-- fragment --><p >It is safe to pass null as image and/or allocation. </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2360,7 +2360,7 @@ vkDestroyBuffer(device, buffer, allocationCallbacks);
|
|||||||
vmaFreeMemory(allocator, allocation);
|
vmaFreeMemory(allocator, allocation);
|
||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
It it safe to pass null as buffer and/or allocation.
|
It is safe to pass null as buffer and/or allocation.
|
||||||
*/
|
*/
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaDestroyBuffer(
|
VMA_CALL_PRE void VMA_CALL_POST vmaDestroyBuffer(
|
||||||
VmaAllocator VMA_NOT_NULL allocator,
|
VmaAllocator VMA_NOT_NULL allocator,
|
||||||
@ -2392,7 +2392,7 @@ vkDestroyImage(device, image, allocationCallbacks);
|
|||||||
vmaFreeMemory(allocator, allocation);
|
vmaFreeMemory(allocator, allocation);
|
||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
It it safe to pass null as image and/or allocation.
|
It is safe to pass null as image and/or allocation.
|
||||||
*/
|
*/
|
||||||
VMA_CALL_PRE void VMA_CALL_POST vmaDestroyImage(
|
VMA_CALL_PRE void VMA_CALL_POST vmaDestroyImage(
|
||||||
VmaAllocator VMA_NOT_NULL allocator,
|
VmaAllocator VMA_NOT_NULL allocator,
|
||||||
@ -18555,7 +18555,7 @@ To do that, fill VmaAllocationCreateInfo::pUserData field when creating
|
|||||||
an allocation. It is an opaque `void*` pointer. You can use it e.g. as a pointer,
|
an allocation. It is an opaque `void*` pointer. You can use it e.g. as a pointer,
|
||||||
some handle, index, key, ordinal number or any other value that would associate
|
some handle, index, key, ordinal number or any other value that would associate
|
||||||
the allocation with your custom metadata.
|
the allocation with your custom metadata.
|
||||||
It it useful to identify appropriate data structures in your engine given #VmaAllocation,
|
It is useful to identify appropriate data structures in your engine given #VmaAllocation,
|
||||||
e.g. when doing \ref defragmentation.
|
e.g. when doing \ref defragmentation.
|
||||||
|
|
||||||
\code
|
\code
|
||||||
|
Loading…
Reference in New Issue
Block a user