mirror of
https://github.com/KhronosGroup/Vulkan-Headers
synced 2024-11-21 14:29:07 -07:00
headers: Remove VK_LAYER_EXPORT
- It hasn't been handling windows (so it's been half implemented) - It's a suboptimal method for exporting symbols for vulkan layers since `--version-script` and `.def` files exists. Both of these methods also don't risk name mangling. - `--version-script` also has perf benefits since you can silence exports from code you didn't intend to export
This commit is contained in:
parent
93cb25c6a4
commit
e8b8e06d09
2 changed files with 1 additions and 10 deletions
|
@ -28,14 +28,6 @@
|
|||
|
||||
#include "vulkan_core.h"
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
||||
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
|
||||
#else
|
||||
#define VK_LAYER_EXPORT
|
||||
#endif
|
||||
|
||||
#define MAX_NUM_UNKNOWN_EXTS 250
|
||||
|
||||
// Loader-Layer version negotiation API. Versions add the following features:
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#include "vulkan/vk_layer.h"
|
||||
|
||||
// Use helper macro intended for vulkan layers to export functions
|
||||
VK_LAYER_EXPORT int foobar()
|
||||
int foobar()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue