Merge pull request #128 from hartmutbehrens/fix/docs
Update quick start docs to reflect that instance is not optional
diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h
index 640b3d0..ecbb00c 100644
--- a/src/vk_mem_alloc.h
+++ b/src/vk_mem_alloc.h
@@ -146,7 +146,7 @@
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 @@
VmaAllocatorCreateInfo allocatorInfo = {};
allocatorInfo.physicalDevice = physicalDevice;
allocatorInfo.device = device;
+allocatorInfo.instance = instance;
VmaAllocator allocator;
vmaCreateAllocator(&allocatorInfo, &allocator);