Serious case of NIH...<p><i>I have also created the helper function assert() that does what you would expect ...</i><p><pre><code>    ...
    int *base = 0;
    *base = 1;
</code></pre>
Just call abort [1]. Or better yet, just call assert [2].<p>Then, in favour of using the Vulcan SDK, it continues:<p><i>just need to copy vulkan.h and vk_platform.h to our application folder ... [i]f you run this piece of code you will notice that you might have found no layer... This is because, at leat on my system, the loader could not find any layer. To get some validation layers we need the SDK ... [w]hat I found out during the process of trying to figure out if you needed the SDK or not is that you only need the </i>.json and the <i>.dll of the layer you want somewhere on your project folder and then you can setup the VK_LAYER_PATH environment variable to the path to the folder with those files.</i><p>This is not how you build reliable software. Use the IDE&#x2F;SDK&#x2F;standard libraries already! You&#x27;ll be done quicker. With less undefined behaviour.<p>[1] <a href="http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;9699919799&#x2F;functions&#x2F;abort.html" rel="nofollow">http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;9699919799&#x2F;functions&#x2F;ab...</a><p>[2] <a href="http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;009695399&#x2F;functions&#x2F;assert.html" rel="nofollow">http:&#x2F;&#x2F;pubs.opengroup.org&#x2F;onlinepubs&#x2F;009695399&#x2F;functions&#x2F;ass...</a>