mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 20:30:05 +00:00
Merge pull request #128 from hartmutbehrens/fix/docs
Update quick start docs to reflect that instance is not optional
This commit is contained in:
commit
309fa0e613
@ -146,7 +146,7 @@ them before every `#include` of this library.
|
|||||||
|
|
||||||
At program startup:
|
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
|
-# Fill VmaAllocatorCreateInfo structure and create #VmaAllocator object by
|
||||||
calling vmaCreateAllocator().
|
calling vmaCreateAllocator().
|
||||||
|
|
||||||
@ -154,6 +154,7 @@ At program startup:
|
|||||||
VmaAllocatorCreateInfo allocatorInfo = {};
|
VmaAllocatorCreateInfo allocatorInfo = {};
|
||||||
allocatorInfo.physicalDevice = physicalDevice;
|
allocatorInfo.physicalDevice = physicalDevice;
|
||||||
allocatorInfo.device = device;
|
allocatorInfo.device = device;
|
||||||
|
allocatorInfo.instance = instance;
|
||||||
|
|
||||||
VmaAllocator allocator;
|
VmaAllocator allocator;
|
||||||
vmaCreateAllocator(&allocatorInfo, &allocator);
|
vmaCreateAllocator(&allocatorInfo, &allocator);
|
||||||
|
Loading…
Reference in New Issue
Block a user