diff options
author | Lynne <dev@lynne.ee> | 2021-04-29 02:44:41 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-04-30 00:08:37 +0200 |
commit | 4a6581e968d38f009140e055e29be9953279cc7b (patch) | |
tree | 91a96c59009bbd787319bea9310682e7c266bca6 /libavutil/hwcontext_vulkan.h | |
parent | ffeeff4fbccbf9c9269ac24fe56285b224426141 (diff) |
hwcontext_vulkan: dynamically load functions
This patch allows for alternative loader implementations.
Diffstat (limited to 'libavutil/hwcontext_vulkan.h')
-rw-r--r-- | libavutil/hwcontext_vulkan.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h index ab075a74e0..e4645527d7 100644 --- a/libavutil/hwcontext_vulkan.h +++ b/libavutil/hwcontext_vulkan.h @@ -43,6 +43,13 @@ typedef struct AVVulkanDeviceContext { const VkAllocationCallbacks *alloc; /** + * Pointer to the instance-provided vkGetInstanceProcAddr loading function. + * If NULL, will pick either libvulkan or libvolk, depending on libavutil's + * compilation settings, and set this field. + */ + PFN_vkGetInstanceProcAddr get_proc_addr; + + /** * Vulkan instance. Must be at least version 1.1. */ VkInstance inst; |