-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove stale mini_vulkan.h and use official Vulkan headers (setup the…
… same as SPIR-V). Add script to easily update Vulkan Headers to another release branch. Add local copy of Vulkan headers (ANSI-C interfaces only). Refactor all vulkan runtime interfaces to match differences in headers. Don't use a global VkCommandPool associated with the context since it doesn't have a stable API type definition. Construct command pools on demand.
- Loading branch information
Derek Gerstmann
committed
Nov 26, 2024
1 parent
56560ad
commit a94d535
Showing
44 changed files
with
24,827 additions
and
6,133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
cd -- "$(dirname -- "$0")" || exit 1 | ||
|
||
GIT_BRANCH="$1" | ||
if [ -z "$GIT_BRANCH" ]; then | ||
echo "error: usage: $0 <git-branch>" | ||
echo "remark: the current <git-branch> is vulkan-sdk-1.3.296" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p vulkan | ||
|
||
cleanup () { | ||
rm -rf Vulkan-Headers | ||
} | ||
|
||
trap cleanup SIGINT SIGTERM EXIT | ||
|
||
git clone https://github.com/KhronosGroup/Vulkan-Headers.git --branch "$GIT_BRANCH" | ||
cmake -S Vulkan-Headers -B Vulkan-Headers/build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$PWD/Vulkan-Headers/_local" | ||
cmake --build Vulkan-Headers/build --target install | ||
|
||
# Copy license information | ||
cp Vulkan-Headers/LICENSE.md vulkan/ | ||
|
||
# Copy headers we care about (only the ANSI-C core interfaces!) | ||
mkdir -p vulkan/include/vulkan | ||
cp Vulkan-Headers/_local/include/vulkan/*.h vulkan/include/vulkan/ | ||
mkdir -p vulkan/include/vk_video | ||
cp Vulkan-Headers/_local/include/vk_video/*.h vulkan/include/vk_video/ | ||
|
||
# Copy CMake config | ||
mkdir -p vulkan/share/ | ||
cp -R Vulkan-Headers/_local/share/cmake vulkan/share/ | ||
|
||
git add -f vulkan/ | ||
|
||
echo "Updated Vulkan-Headers to branch $GIT_BRANCH!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Copyright 2015-2023 The Khronos Group Inc. | ||
|
||
Files in this repository fall under one of these licenses: | ||
|
||
- `Apache-2.0` | ||
- `MIT` | ||
|
||
Note: With the exception of `parse_dependency.py` the files using `MIT` license | ||
also fall under `Apache-2.0`. Example: | ||
|
||
``` | ||
SPDX-License-Identifier: Apache-2.0 OR MIT | ||
``` | ||
|
||
Full license text of these licenses is available at: | ||
|
||
* Apache-2.0: https://opensource.org/licenses/Apache-2.0 | ||
* MIT: https://opensource.org/licenses/MIT |
Oops, something went wrong.