From 7192678f905ae2570070853ec303d6602883f1a0 Mon Sep 17 00:00:00 2001 From: Chris Tetreault Date: Tue, 10 Oct 2017 07:14:52 -0700 Subject: [PATCH] Add note about exceptions and UniqueHandle It seems that the use of UniqueHandle requires that exceptions be enabled. Added note to this section regarding this. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 148aeba..484d957 100644 --- a/README.md +++ b/README.md @@ -304,7 +304,7 @@ Vulkan-Hpp provides a ```vk::UniqueHandle``` interface. For each For each function which constructs a Vulkan handle of type ```vk::Type``` Vulkan-Hpp provides a second version which returns a ```vk::UnqiueType```. E.g. for ```vk::Device::createBuffer``` there is ```vk::Device::createBufferUnique``` and for ```vk::allocateCommandBuffers``` there is ```vk::allocateCommandBuffersUnique```. -Note that using ```vk::UniqueHandle``` comes at a cost since most deleters have to store the ```vk::AllocationCallbacks``` and parent handle used for construction because they are required for automatic destruction. +Note that using ```vk::UniqueHandle``` comes at a cost since most deleters have to store the ```vk::AllocationCallbacks``` and parent handle used for construction because they are required for automatic destruction. The use of ```vk::UniqueHandle``` also requires that exceptions are enabled. # Custom allocators Sometimes it is required to use ```std::vector``` with custom allocators. Vulkan-Hpp supports vectors with custom allocators as input for ```vk::ArrayProx``` and for functions which do return a vector. For the latter case, add your favorite custom allocator as template argument to the function call like this: