[doc] Add short doc for VULKAN_HPP_ASSERT_ON_RESULT

This commit is contained in:
mocabe 2020-06-30 01:45:59 +09:00
parent ec562ec33a
commit 00fc7714f0

View File

@ -377,7 +377,9 @@ std::vector<LayerProperties, MyStatefulCustomAllocator> properties = physicalDev
### 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.
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.
By default, `VULKAN_HPP_ASSERT_ON_RESULT` will be used for checking results when `VULKAN_HPP_NO_EXCEPTIONS` is defined. If you want to handle errors by yourself, you can disable/customize it just like `VULKAN_HPP_ASSERT`.
### Extensions / Per Device function pointers