mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Minor addition to documentation. #46
This commit is contained in:
parent
b03d51e693
commit
fc9db8dda7
@ -79,6 +79,7 @@ Project setup</h1>
|
|||||||
<li>In exacly one CPP file define following macro before this include. It enables also internal definitions.</li>
|
<li>In exacly one CPP file define following macro before this include. It enables also internal definitions.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="fragment"><div class="line"><span class="preprocessor">#define VMA_IMPLEMENTATION</span></div><div class="line"><span class="preprocessor">#include "vk_mem_alloc.h"</span></div></div><!-- fragment --><p>It may be a good idea to create dedicated CPP file just for this purpose.</p>
|
<div class="fragment"><div class="line"><span class="preprocessor">#define VMA_IMPLEMENTATION</span></div><div class="line"><span class="preprocessor">#include "vk_mem_alloc.h"</span></div></div><!-- fragment --><p>It may be a good idea to create dedicated CPP file just for this purpose.</p>
|
||||||
|
<p>Note on language: This library is written in C++, but has C-compatible interface. Thus you can include and use <a class="el" href="vk__mem__alloc_8h.html">vk_mem_alloc.h</a> in C or C++ code, but full implementation with <code>VMA_IMPLEMENTATION</code> macro must be compiled as C++, NOT as C.</p>
|
||||||
<p>Please note that this library includes header <code><vulkan/vulkan.h></code>, which in turn includes <code><windows.h></code> on Windows. If you need some specific macros defined before including these headers (like <code>WIN32_LEAN_AND_MEAN</code> or <code>WINVER</code> for Windows, <code>VK_USE_PLATFORM_WIN32_KHR</code> for Vulkan), you must define them before every <code>#include</code> of this library.</p>
|
<p>Please note that this library includes header <code><vulkan/vulkan.h></code>, which in turn includes <code><windows.h></code> on Windows. If you need some specific macros defined before including these headers (like <code>WIN32_LEAN_AND_MEAN</code> or <code>WINVER</code> for Windows, <code>VK_USE_PLATFORM_WIN32_KHR</code> for Vulkan), you must define them before every <code>#include</code> of this library.</p>
|
||||||
<h1><a class="anchor" id="quick_start_initialization"></a>
|
<h1><a class="anchor" id="quick_start_initialization"></a>
|
||||||
Initialization</h1>
|
Initialization</h1>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -124,6 +124,10 @@ To do it properly:
|
|||||||
|
|
||||||
It may be a good idea to create dedicated CPP file just for this purpose.
|
It may be a good idea to create dedicated CPP file just for this purpose.
|
||||||
|
|
||||||
|
Note on language: This library is written in C++, but has C-compatible interface.
|
||||||
|
Thus you can include and use vk_mem_alloc.h in C or C++ code, but full
|
||||||
|
implementation with `VMA_IMPLEMENTATION` macro must be compiled as C++, NOT as C.
|
||||||
|
|
||||||
Please note that this library includes header `<vulkan/vulkan.h>`, which in turn
|
Please note that this library includes header `<vulkan/vulkan.h>`, which in turn
|
||||||
includes `<windows.h>` on Windows. If you need some specific macros defined
|
includes `<windows.h>` on Windows. If you need some specific macros defined
|
||||||
before including these headers (like `WIN32_LEAN_AND_MEAN` or
|
before including these headers (like `WIN32_LEAN_AND_MEAN` or
|
||||||
|
Loading…
Reference in New Issue
Block a user