mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 02:31:48 +00:00
Improved documentation of VmaAllocatorCreateInfo::pHeapSizeLimit.
This commit is contained in:
parent
495cb16fa3
commit
50cc36fbfc
@ -211,8 +211,9 @@ Public Attributes</h2></td></tr>
|
|||||||
<p>If there is a limit defined for a heap:</p>
|
<p>If there is a limit defined for a heap:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>If user tries to allocate more memory from that heap using this allocator, the allocation fails with <code>VK_ERROR_OUT_OF_DEVICE_MEMORY</code>.</li>
|
<li>If user tries to allocate more memory from that heap using this allocator, the allocation fails with <code>VK_ERROR_OUT_OF_DEVICE_MEMORY</code>.</li>
|
||||||
<li>If the limit is smaller than heap size reported in <code>VkMemoryHeap::size</code>, the value of this limit will be reported instead when using <a class="el" href="vk__mem__alloc_8h.html#ab88db292a17974f911182543fda52d19">vmaGetMemoryProperties()</a>. </li>
|
<li>If the limit is smaller than heap size reported in <code>VkMemoryHeap::size</code>, the value of this limit will be reported instead when using <a class="el" href="vk__mem__alloc_8h.html#ab88db292a17974f911182543fda52d19">vmaGetMemoryProperties()</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p>Warning! Using this feature may not be equivalent to installing a GPU with smaller amount of memory, because graphics driver doesn't necessary fail new allocations with <code>VK_ERROR_OUT_OF_DEVICE_MEMORY</code> result when memory capacity is exceeded. It may return success and just silently migrate some device memory blocks to system RAM. </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -738,6 +738,12 @@ typedef struct VmaAllocatorCreateInfo
|
|||||||
the allocation fails with `VK_ERROR_OUT_OF_DEVICE_MEMORY`.
|
the allocation fails with `VK_ERROR_OUT_OF_DEVICE_MEMORY`.
|
||||||
- If the limit is smaller than heap size reported in `VkMemoryHeap::size`, the
|
- If the limit is smaller than heap size reported in `VkMemoryHeap::size`, the
|
||||||
value of this limit will be reported instead when using vmaGetMemoryProperties().
|
value of this limit will be reported instead when using vmaGetMemoryProperties().
|
||||||
|
|
||||||
|
Warning! Using this feature may not be equivalent to installing a GPU with
|
||||||
|
smaller amount of memory, because graphics driver doesn't necessary fail new
|
||||||
|
allocations with `VK_ERROR_OUT_OF_DEVICE_MEMORY` result when memory capacity is
|
||||||
|
exceeded. It may return success and just silently migrate some device memory
|
||||||
|
blocks to system RAM.
|
||||||
*/
|
*/
|
||||||
const VkDeviceSize* pHeapSizeLimit;
|
const VkDeviceSize* pHeapSizeLimit;
|
||||||
/** \brief Pointers to Vulkan functions. Can be null if you leave define `VMA_STATIC_VULKAN_FUNCTIONS 1`.
|
/** \brief Pointers to Vulkan functions. Can be null if you leave define `VMA_STATIC_VULKAN_FUNCTIONS 1`.
|
||||||
|
Loading…
Reference in New Issue
Block a user