From e8b8e06d092ab406b097907ecaae1a8aae9c7d53 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Tue, 7 Feb 2023 17:27:25 -0700 Subject: 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 --- tests/vk_layer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/vk_layer.c b/tests/vk_layer.c index 660d29b..df2bc09 100644 --- a/tests/vk_layer.c +++ b/tests/vk_layer.c @@ -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; } -- cgit v1.2.3