|
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=11"/> |
6 | 6 | <meta name="generator" content="Doxygen 1.13.0"/> |
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
8 | | -<title>Direct3D 12 Memory Allocator: D:/PROJECTS/D3D12 Memory Allocator/REPO/include/D3D12MemAlloc.h File Reference</title> |
| 8 | +<title>D3D12 Memory Allocator: D:/PROJECTS/D3D12 Memory Allocator/REPO/include/D3D12MemAlloc.h File Reference</title> |
9 | 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
10 | 10 | <script type="text/javascript" src="jquery.js"></script> |
11 | 11 | <script type="text/javascript" src="dynsections.js"></script> |
|
25 | 25 | <tbody> |
26 | 26 | <tr id="projectrow"> |
27 | 27 | <td id="projectalign"> |
28 | | - <div id="projectname">Direct3D 12 Memory Allocator |
| 28 | + <div id="projectname">D3D12 Memory Allocator |
29 | 29 | </div> |
30 | 30 | </td> |
31 | 31 | </tr> |
|
177 | 177 | <tr class="memitem:aa623643886b8481adb32017e5c748b50" id="r_aa623643886b8481adb32017e5c748b50"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa623643886b8481adb32017e5c748b50">D3D12MA_DXGI_1_4</a>   0</td></tr> |
178 | 178 | <tr class="separator:aa623643886b8481adb32017e5c748b50"><td class="memSeparator" colspan="2"> </td></tr> |
179 | 179 | <tr class="memitem:ad04069a2e2bbc53b7d65f85a04a2dcbc" id="r_ad04069a2e2bbc53b7d65f85a04a2dcbc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="#ad04069a2e2bbc53b7d65f85a04a2dcbc">D3D12MA_USE_SMALL_RESOURCE_PLACEMENT_ALIGNMENT</a>   1</td></tr> |
| 180 | +<tr class="memdesc:ad04069a2e2bbc53b7d65f85a04a2dcbc"><td class="mdescLeft"> </td><td class="mdescRight">When defined to value other than 0, the library will try to use <code>D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT</code> or <code>D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT</code> for created textures when possible, which can save memory because some small textures may get their alignment 4 KB and their size a multiply of 4 KB instead of 64 KB. <br /></td></tr> |
180 | 181 | <tr class="separator:ad04069a2e2bbc53b7d65f85a04a2dcbc"><td class="memSeparator" colspan="2"> </td></tr> |
181 | 182 | </table><table class="memberdecls"> |
182 | 183 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a> |
@@ -299,6 +300,13 @@ <h2 class="memtitle"><span class="permalink"><a href="#ad04069a2e2bbc53b7d65f85a |
299 | 300 | </table> |
300 | 301 | </div><div class="memdoc"> |
301 | 302 |
|
| 303 | +<p>When defined to value other than 0, the library will try to use <code>D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT</code> or <code>D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT</code> for created textures when possible, which can save memory because some small textures may get their alignment 4 KB and their size a multiply of 4 KB instead of 64 KB. </p> |
| 304 | +<ul> |
| 305 | +<li><code>#define D3D12MA_USE_SMALL_RESOURCE_PLACEMENT_ALIGNMENT 0</code> - Disables small texture alignment.</li> |
| 306 | +<li><code>#define D3D12MA_USE_SMALL_RESOURCE_PLACEMENT_ALIGNMENT 1</code> (the default) - Enables conservative algorithm that will use small alignment only for some textures that are surely known to support it.</li> |
| 307 | +<li><code>#define D3D12MA_USE_SMALL_RESOURCE_PLACEMENT_ALIGNMENT 2</code> - Enables query for small alignment to D3D12 (based on Microsoft sample) which will enable small alignment for more textures, but will also generate D3D Debug Layer error #721 on call to <code>ID3D12Device::GetResourceAllocationInfo</code>, which you should just ignore. </li> |
| 308 | +</ul> |
| 309 | + |
302 | 310 | </div> |
303 | 311 | </div> |
304 | 312 | </div><!-- contents --> |
|
0 commit comments