Introduce VULKAN_HPP_ASSERT, to allow custom assert. (#175)

This commit is contained in:
Andreas Süßenbach
2018-01-23 14:10:55 +01:00
committed by Markus Tavenrath
parent e97e34675d
commit 07b4e69c9d
3 changed files with 51 additions and 41 deletions

View File

@@ -319,6 +319,10 @@ Sometimes it is required to use `std::vector` with custom allocators. Vulkan-Hpp
std::vector<LayerProperties, MyCustomAllocator> properties = physicalDevice.enumerateDeviceLayerProperties<MyCustomAllocator>();
```
### Custom assertions
All over vulkan.hpp, there are a couple of calls to an assert function. By defining VULKAN_HPP_ASSERT, you can specifiy your own custom assert function to be called instead.
## See Also
Feel free to submit a PR to add to this list.