@@ -288,7 +288,6 @@ static int create_device(char const* preferred_device, bool swapchain)
288288 .descriptorIndexing = VK_TRUE ,
289289 .shaderSampledImageArrayNonUniformIndexing = VK_TRUE ,
290290 .shaderStorageImageArrayNonUniformIndexing = VK_TRUE ,
291- .descriptorBindingUniformBufferUpdateAfterBind = VK_TRUE ,
292291 .descriptorBindingSampledImageUpdateAfterBind = VK_TRUE ,
293292 .descriptorBindingStorageImageUpdateAfterBind = VK_TRUE ,
294293 .descriptorBindingStorageBufferUpdateAfterBind = VK_TRUE ,
@@ -325,13 +324,18 @@ static int create_device(char const* preferred_device, bool swapchain)
325324 vkGetDeviceQueue (g_device, g_compute_queue_index, 0 , &g_compute_queue);
326325 }
327326
327+ VmaVulkanFunctions vulkan_functions{
328+ .vkGetInstanceProcAddr = vkGetInstanceProcAddr,
329+ .vkGetDeviceProcAddr = vkGetDeviceProcAddr,
330+ };
331+
328332 VmaAllocatorCreateInfo allocator_info{
329333 .physicalDevice = g_physical_device,
330334 .device = g_device,
331335 .preferredLargeHeapBlockSize = 0 , // 256 MiB default
332336 .pAllocationCallbacks = nullptr ,
333337 .pDeviceMemoryCallbacks = nullptr ,
334- .frameInUseCount = 0 ,
338+ .pVulkanFunctions = &vulkan_functions ,
335339 .instance = g_instance};
336340
337341 if (vmaCreateAllocator (&allocator_info, &g_allocator) != VK_SUCCESS )
0 commit comments