From 3c2f43d8eef0c181a002cb87f1c65b1c419ba1e4 Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 23 Nov 2022 14:03:34 +0100 Subject: vulkan: expose ff_vk_alloc_mem() --- libavutil/vulkan.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavutil/vulkan.h') diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h index a0baba7fc8..85836a7807 100644 --- a/libavutil/vulkan.h +++ b/libavutil/vulkan.h @@ -258,6 +258,13 @@ const char *ff_vk_shader_rep_fmt(enum AVPixelFormat pixfmt); */ void ff_vk_qf_fill(FFVulkanContext *s); +/** + * Allocate device memory. + */ +int ff_vk_alloc_mem(FFVulkanContext *s, VkMemoryRequirements *req, + VkMemoryPropertyFlagBits req_flags, void *alloc_extension, + VkMemoryPropertyFlagBits *mem_flags, VkDeviceMemory *mem); + /** * Initialize a queue family with a specific number of queues. * If nb_queues == 0, use however many queues the queue family has. -- cgit v1.2.3