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.
This commit is contained in:
Lynne 2022-11-23 14:04:48 +01:00
parent 92ddd415bc
commit 0c9c0e40fb
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -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"