X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fvulkan%2Fallocator.h;fp=src%2Fvulkan%2Fallocator.h;h=ad4c87fc9294159bb91a53457f8c1909b06a9bc5;hp=dd730e34b9907ea71ef41a69294c4a2393c05f51;hb=d90ed8aef9e3547eee75ad793c352ee022d35050;hpb=855c42d8e50fff743fd7b1be5e91cb0db18def77 diff --git a/src/vulkan/allocator.h b/src/vulkan/allocator.h index dd730e3..ad4c87f 100644 --- a/src/vulkan/allocator.h +++ b/src/vulkan/allocator.h @@ -3,7 +3,13 @@ #include -VkDeviceMemory vk_allocate(int size); -void vk_free(VkDeviceMemory gpu_memory); +struct DevMemBlock { + VkDeviceMemory dev_mem; + int offset; + int size; +}; + +bool vku_allocate(int size, DevMemBlock *block); +void vku_free(VkDeviceMemory gpu_memory); #endif // ALLOCATOR_H_