diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-11-13 18:59:07 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-11-14 12:50:32 +0100 |
commit | fedf4ff85c325fa164a5646785104aaa292c877b (patch) | |
tree | 3506826cc6e2eef2bdb0ade2652edb82ba35e944 /libavutil/vulkan_loader.h | |
parent | bfbd5954e50e407693932b3900ca77c3daee26d7 (diff) | |
download | ffmpeg-fedf4ff85c325fa164a5646785104aaa292c877b.tar.gz |
avutil/vulkan: load win32 external memory functions
Diffstat (limited to 'libavutil/vulkan_loader.h')
-rw-r--r-- | libavutil/vulkan_loader.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavutil/vulkan_loader.h b/libavutil/vulkan_loader.h index 838d26d271..d4e05e62d7 100644 --- a/libavutil/vulkan_loader.h +++ b/libavutil/vulkan_loader.h @@ -43,7 +43,11 @@ static inline uint64_t ff_vk_extensions_to_mask(const char * const *extensions, { VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME, FF_VK_EXT_EXTERNAL_FD_MEMORY }, { VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME, FF_VK_EXT_EXTERNAL_FD_SEM }, { VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME, FF_VK_EXT_EXTERNAL_HOST_MEMORY }, - { VK_EXT_DEBUG_UTILS_EXTENSION_NAME, FF_VK_EXT_DEBUG_UTILS } + { VK_EXT_DEBUG_UTILS_EXTENSION_NAME, FF_VK_EXT_DEBUG_UTILS }, +#ifdef _WIN32 + { VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME, FF_VK_EXT_EXTERNAL_WIN32_MEMORY }, + { VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME, FF_VK_EXT_EXTERNAL_WIN32_SEM }, +#endif }; FFVulkanExtensions mask = 0x0; @@ -88,6 +92,9 @@ static inline int ff_vk_load_functions(AVHWDeviceContext *ctx, const char *names[3]; } vk_load_info[] = { FN_LIST(PFN_LOAD_INFO) +#ifdef _WIN32 + FN_LIST_WIN32(PFN_LOAD_INFO) +#endif }; for (int i = 0; i < FF_ARRAY_ELEMS(vk_load_info); i++) { |