diff options
author | Lynne <dev@lynne.ee> | 2022-11-23 14:04:48 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-05-29 00:41:42 +0200 |
commit | 0c9c0e40fb643a482d548d0c39bba03234ab4658 (patch) | |
tree | ebf11574798cdae02cd8b5f9adbbff33c12f9139 | |
parent | 92ddd415bc774e50cbf1ffef89e25f445514c511 (diff) | |
download | ffmpeg-0c9c0e40fb643a482d548d0c39bba03234ab4658.tar.gz |
vulkan: define VK_NO_PROTOTYPES
This just disables the vulkan headers from defining any symbols
like vkCmdPipelineBarrier2(). Instead, all functions must be loaded
via the loader and used as function pointers as vk->CmdPipelineBarrier2.
Mostly just forces developers to write correct code, as using the
symbols can be undesirable in case API users define their own
function wrappers via the loader API.
-rw-r--r-- | libavutil/vulkan.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h index 90922c6cf3..11ea8d609e 100644 --- a/libavutil/vulkan.h +++ b/libavutil/vulkan.h @@ -19,6 +19,8 @@ #ifndef AVUTIL_VULKAN_H #define AVUTIL_VULKAN_H +#define VK_NO_PROTOTYPES + #include "pixdesc.h" #include "bprint.h" #include "hwcontext.h" |