2019-11-02 14:24:33 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
2021-10-18 15:32:40 +00:00
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
< meta name = "generator" content = "Doxygen 1.9.2" / >
2019-11-02 14:24:33 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Vulkan Memory Allocator: VmaBudget Struct Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > Vulkan Memory Allocator
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-10-18 15:32:40 +00:00
<!-- Generated by Doxygen 1.9.2 -->
2019-11-02 14:24:33 +00:00
< script type = "text/javascript" >
2021-10-18 15:32:40 +00:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2019-11-02 14:24:33 +00:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2021-10-18 15:32:40 +00:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2019-11-02 14:24:33 +00:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-10-18 15:32:40 +00:00
/* @license-end */
< / script >
2019-11-02 14:24:33 +00:00
< div id = "main-nav" > < / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-attribs" > Public Attributes< / a > |
< a href = "struct_vma_budget-members.html" > List of all members< / a > < / div >
2022-01-20 16:00:33 +00:00
< div class = "headertitle" > < div class = "title" > VmaBudget Struct Reference< div class = "ingroups" > < a class = "el" href = "group__group__stats.html" > Statistics< / a > < / div > < / div > < / div >
2019-11-02 14:24:33 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > Statistics of current memory usage and available budget, in bytes, for specific memory heap.
< a href = "struct_vma_budget.html#details" > More...< / a > < / p >
< table class = "memberdecls" >
2021-10-18 15:32:40 +00:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-attribs" name = "pub-attribs" > < / a >
2019-11-02 14:24:33 +00:00
Public Attributes< / h2 > < / td > < / tr >
< tr class = "memitem:a58b492901baab685f466199124e514a0" > < td class = "memItemLeft" align = "right" valign = "top" > VkDeviceSize  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "struct_vma_budget.html#a58b492901baab685f466199124e514a0" > blockBytes< / a > < / td > < / tr >
< tr class = "memdesc:a58b492901baab685f466199124e514a0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sum size of all < code > VkDeviceMemory< / code > blocks allocated from particular heap, in bytes. < a href = "struct_vma_budget.html#a58b492901baab685f466199124e514a0" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a58b492901baab685f466199124e514a0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7e2a6583ebd63e194951c542563804d8" > < td class = "memItemLeft" align = "right" valign = "top" > VkDeviceSize  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "struct_vma_budget.html#a7e2a6583ebd63e194951c542563804d8" > allocationBytes< / a > < / td > < / tr >
< tr class = "memdesc:a7e2a6583ebd63e194951c542563804d8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sum size of all allocations created in particular heap, in bytes. < a href = "struct_vma_budget.html#a7e2a6583ebd63e194951c542563804d8" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a7e2a6583ebd63e194951c542563804d8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a84dd1ecca8b0110259eb206dbadb11f6" > < td class = "memItemLeft" align = "right" valign = "top" > VkDeviceSize  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "struct_vma_budget.html#a84dd1ecca8b0110259eb206dbadb11f6" > usage< / a > < / td > < / tr >
< tr class = "memdesc:a84dd1ecca8b0110259eb206dbadb11f6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Estimated current memory usage of the program, in bytes. < a href = "struct_vma_budget.html#a84dd1ecca8b0110259eb206dbadb11f6" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a84dd1ecca8b0110259eb206dbadb11f6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab82e1d1754c2d210d0bdf90220bc6cdd" > < td class = "memItemLeft" align = "right" valign = "top" > VkDeviceSize  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "struct_vma_budget.html#ab82e1d1754c2d210d0bdf90220bc6cdd" > budget< / a > < / td > < / tr >
< tr class = "memdesc:ab82e1d1754c2d210d0bdf90220bc6cdd" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Estimated amount of memory available to the program, in bytes. < a href = "struct_vma_budget.html#ab82e1d1754c2d210d0bdf90220bc6cdd" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ab82e1d1754c2d210d0bdf90220bc6cdd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2021-10-18 15:32:40 +00:00
< div class = "textblock" > < p > Statistics of current memory usage and available budget, in bytes, for specific memory heap. < / p >
2019-11-02 14:24:33 +00:00
< / div > < h2 class = "groupheader" > Member Data Documentation< / h2 >
2021-10-18 15:32:40 +00:00
< a id = "a7e2a6583ebd63e194951c542563804d8" name = "a7e2a6583ebd63e194951c542563804d8" > < / a >
2019-11-02 14:24:33 +00:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7e2a6583ebd63e194951c542563804d8" > ◆ < / a > < / span > allocationBytes< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > VkDeviceSize VmaBudget::allocationBytes< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Sum size of all allocations created in particular heap, in bytes. < / p >
2022-01-10 17:11:09 +00:00
< p > Usually less or equal than < code > blockBytes< / code > . Difference < code > blockBytes - allocationBytes< / code > is the amount of memory allocated but unused - available for new allocations or wasted due to fragmentation. < / p >
2019-11-02 14:24:33 +00:00
< / div >
< / div >
2021-10-18 15:32:40 +00:00
< a id = "a58b492901baab685f466199124e514a0" name = "a58b492901baab685f466199124e514a0" > < / a >
2019-11-02 14:24:33 +00:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a58b492901baab685f466199124e514a0" > ◆ < / a > < / span > blockBytes< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > VkDeviceSize VmaBudget::blockBytes< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Sum size of all < code > VkDeviceMemory< / code > blocks allocated from particular heap, in bytes. < / p >
< / div >
< / div >
2021-10-18 15:32:40 +00:00
< a id = "ab82e1d1754c2d210d0bdf90220bc6cdd" name = "ab82e1d1754c2d210d0bdf90220bc6cdd" > < / a >
2019-11-02 14:24:33 +00:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab82e1d1754c2d210d0bdf90220bc6cdd" > ◆ < / a > < / span > budget< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > VkDeviceSize VmaBudget::budget< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Estimated amount of memory available to the program, in bytes. < / p >
2021-10-18 15:32:40 +00:00
< p > Fetched from system using < code > VK_EXT_memory_budget< / code > extension if enabled.< / p >
< p > It might be different (most probably smaller) than < code > VkMemoryHeap::size[heapIndex]< / code > due to factors external to the program, like other programs also consuming system resources. Difference < code > budget - usage< / code > is the amount of additional memory that can probably be allocated without problems. Exceeding the budget may result in various problems. < / p >
2019-11-02 14:24:33 +00:00
< / div >
< / div >
2021-10-18 15:32:40 +00:00
< a id = "a84dd1ecca8b0110259eb206dbadb11f6" name = "a84dd1ecca8b0110259eb206dbadb11f6" > < / a >
2019-11-02 14:24:33 +00:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a84dd1ecca8b0110259eb206dbadb11f6" > ◆ < / a > < / span > usage< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > VkDeviceSize VmaBudget::usage< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Estimated current memory usage of the program, in bytes. < / p >
2021-10-18 15:32:40 +00:00
< p > Fetched from system using < code > VK_EXT_memory_budget< / code > extension if enabled.< / p >
< p > It might be different than < code > blockBytes< / code > (usually higher) due to additional implicit objects also occupying the memory, like swapchain, pipelines, descriptor heaps, command buffers, or < code > VkDeviceMemory< / code > blocks allocated outside of this library, if any. < / p >
2019-11-02 14:24:33 +00:00
< / div >
< / div >
< hr / > The documentation for this struct was generated from the following file:< ul >
2021-10-18 15:32:40 +00:00
< li > D:/PROJECTS/Vulkan Memory Allocator/REPO/include/< a class = "el" href = "vk__mem__alloc_8h.html" > vk_mem_alloc.h< / a > < / li >
2019-11-02 14:24:33 +00:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2021-10-18 15:32:40 +00:00
Generated by  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.2
2019-11-02 14:24:33 +00:00
< / small > < / address >
< / body >
< / html >