Skip to content

Commit

Permalink
Fix linux build with removed VK_LAYER_EXPORT
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jun 15, 2023
1 parent 910c316 commit 81a2da7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion renderdoc/driver/vulkan/vk_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,19 @@
#include "vk_hookset_defs.h"
#include "vk_resources.h"

// this should be in the vulkan definition header
// this was removed from the vulkan definition header
#undef VK_LAYER_EXPORT
#define VK_LAYER_EXPORT
#if ENABLED(RDOC_WIN32)

#undef VK_LAYER_EXPORT
#define VK_LAYER_EXPORT extern "C" __declspec(dllexport)

#elif ENABLED(RDOC_LINUX)

#undef VK_LAYER_EXPORT
#define VK_LAYER_EXPORT __attribute__((visibility("default")))

#endif

#if ENABLED(RDOC_ANDROID)
Expand Down

0 comments on commit 81a2da7

Please sign in to comment.