Skip to content

Commit

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

Differential Revision: D49067905

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

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

Expand Down
4 changes: 0 additions & 4 deletions src/igl/vulkan/VulkanHelpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
#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 c1538e1

Please sign in to comment.