Merge pull request #1283 from simait/patch-1

Update README.md
This commit is contained in:
Andreas Süßenbach 2022-04-11 15:04:35 +02:00 committed by GitHub
commit dbd8462d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ Sometimes it is required to use `std::vector` with custom allocators. Vulkan-Hpp
std::vector<LayerProperties, MyCustomAllocator> properties = physicalDevice.enumerateDeviceLayerProperties<MyCustomAllocator>();
```
You can as well use a stateful custom allocator by providing it as an argument to those functions. Unfortunately, to make the compilers happy, you also need to explicitly set the Dispatch argument. To get the default there, a simple ´´´{}´´´ would suffice:
You can as well use a stateful custom allocator by providing it as an argument to those functions. Unfortunately, to make the compilers happy, you also need to explicitly set the Dispatch argument. To get the default there, a simple `{}` would suffice:
```c++
MyStatefulCustomAllocator allocator;