Skip to content

Commit

Permalink
Merge pull request #49 from zeux/compat
Browse files Browse the repository at this point in the history
Fix a regression with NVX_image_view_handle
  • Loading branch information
zeux authored May 14, 2020
2 parents 28c5d60 + 0c22661 commit 5d2e2cf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,30 @@ jobs:
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/checkout@v1
with:
repository: KhronosGroup/Vulkan-Headers
ref: master
path: Vulkan-Headers
- name: build
- name: move sdk
shell: bash
run: |
mv ../Vulkan-Headers ~/Vulkan-Headers
- name: build master
shell: bash
run: |
export VULKAN_SDK=~/Vulkan-Headers
git -C ~/Vulkan-Headers checkout master
test/run_tests.sh
- name: build 1.1.101
shell: bash
run: |
export VULKAN_SDK=~/Vulkan-Headers
git -C ~/Vulkan-Headers checkout sdk-1.1.101
test/run_tests.sh
- name: build 1.2.131
shell: bash
run: |
mv Vulkan-Headers ~/Vulkan-Headers
export VULKAN_SDK=~/Vulkan-Headers
git -C ~/Vulkan-Headers checkout sdk-1.2.131
test/run_tests.sh
5 changes: 5 additions & 0 deletions volk.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
# endif
#endif

/* Disable VK_NVX_image_view_handle because SDK 140 introduced a change that can't be used with prior versions */
#if VK_HEADER_VERSION < 140
# undef VK_NVX_image_view_handle
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 5d2e2cf

Please sign in to comment.