File tree Expand file tree Collapse file tree 3 files changed +27
-14
lines changed
Expand file tree Collapse file tree 3 files changed +27
-14
lines changed Original file line number Diff line number Diff line change 99# Cheers!
1010# -andrewrk
1111
12- zig-cache /
12+ . zig-cache /
1313zig-out /
1414/release /
1515/debug /
@@ -20,3 +20,4 @@ zig-out/
2020** /* .png
2121! assets /* .png
2222vulkan-zig /
23+ Vulkan-Docs /
Original file line number Diff line number Diff line change 11const std = @import ("std" );
22
33pub fn build (b : * std.Build ) void {
4- _ = b .addModule ("vulkan-zig-generated" , .{ .root_source_file = .{ .path = "vk.zig" } });
4+ _ = b .addModule ("vulkan-zig-generated" , .{
5+ .root_source_file = b .path ("vk.zig" ),
6+ });
57}
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44rm -rf vulkan-zig/
5+ rm -rf Vulkan-Docs/
6+
7+ # `git clone --depth 1` but at a specific revision
8+ mkdir Vulkan-Docs/
9+ pushd Vulkan-Docs
10+ git init
11+ git remote add origin https://github.com/KhronosGroup/Vulkan-Docs
12+ git fetch --depth 1 origin ed4ba0242beb89a1795d6084709fa9e713559c94
13+ git checkout FETCH_HEAD
14+ popd
15+
16+ # Update vk.xml
17+ mv Vulkan-Docs/xml/vk.xml .
518
619# `git clone --depth 1` but at a specific revision
720mkdir vulkan-zig/
821pushd vulkan-zig
922git init
10- git remote add origin https://github.com/Snektron /vulkan-zig
11- git fetch --depth 1 origin ac4103a733c479b599aae8d42c08cabd7d5cf48a
23+ git remote add origin https://github.com/slimsag /vulkan-zig
24+ git fetch --depth 1 origin cfaf58a4de0d876d37d6dd9a05a5060e4f9b7cd9
1225git checkout FETCH_HEAD
1326popd
1427
15- # Generate vulkan bindings
16- zig run vulkan-zig/generator/main.zig -- vk.xml vk.zig
17-
18- echo "
19- // -------------------------------------------
28+ # Generate Vulkan Zig bindings
29+ pushd vulkan-zig/
30+ zig build
31+ popd
2032
21- pub const ANativeWindow = opaque{};
22- pub const CAMetalLayer = opaque{};
23- pub const AHardwareBuffer = opaque{};
24- " >> vk.zig
33+ ./vulkan-zig/zig-out/bin/vulkan-zig-generator vk.xml vk.zig
2534
26- zig fmt vk.zig
35+ rm -rf vulkan-zig/
36+ rm -rf Vulkan-Docs/
You can’t perform that action at this time.
0 commit comments