fix(docs): instance not optional in quick start

This commit is contained in:
Hartmut Behrens 2020-05-03 13:06:27 +02:00
parent 755fd47121
commit 1e11595592

View File

@ -146,7 +146,7 @@ them before every `#include` of this library.
At program startup:
-# Initialize Vulkan to have `VkPhysicalDevice` and `VkDevice` object.
-# Initialize Vulkan to have `VkPhysicalDevice`, `VkDevice` and `VkInstance` object.
-# Fill VmaAllocatorCreateInfo structure and create #VmaAllocator object by
calling vmaCreateAllocator().
@ -154,6 +154,7 @@ At program startup:
VmaAllocatorCreateInfo allocatorInfo = {};
allocatorInfo.physicalDevice = physicalDevice;
allocatorInfo.device = device;
allocatorInfo.instance = instance;
VmaAllocator allocator;
vmaCreateAllocator(&allocatorInfo, &allocator);