summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_vulkan.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-04-29 02:44:41 +0200
committerLynne <dev@lynne.ee>2021-04-30 00:08:37 +0200
commit4a6581e968d38f009140e055e29be9953279cc7b (patch)
tree91a96c59009bbd787319bea9310682e7c266bca6 /libavutil/hwcontext_vulkan.h
parentffeeff4fbccbf9c9269ac24fe56285b224426141 (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.h7
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;