Skip to content

Commit

Permalink
Back out "Use volk-headers in all IGL-based projects"
Browse files Browse the repository at this point in the history
Reviewed By: corporateshark

Differential Revision: D49158078

fbshipit-source-id: 2dcc06586e3a425751cab8c3ada5d0cd70c111cf
  • Loading branch information
Roman Kuznetsov authored and facebook-github-bot committed Sep 11, 2023
1 parent 153462d commit 0c80e74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/igl/vulkan/VulkanContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

// For volk.h, define this before including volk.h in exactly one CPP file.
// @fb-only
#if defined(IGL_CMAKE_BUILD) || defined(VOLK_HEADER_ONLY)
#define VOLK_DEFAULT_VISIBILITY
#if defined(IGL_CMAKE_BUILD)
#define VOLK_IMPLEMENTATION
#endif // IGL_CMAKE_BUILD

Expand Down
4 changes: 4 additions & 0 deletions src/igl/vulkan/VulkanHelpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include <windows.h>
#endif

#if defined(VOLK_HEADER_ONLY)
#define VOLK_IMPLEMENTATION
#endif

#include "VulkanHelpers.h"

#include <assert.h>
Expand Down

0 comments on commit 0c80e74

Please sign in to comment.