projects/aports·blob master · refs

25 lines · 836 B

1From ed6cface55570f0cb027b09ed36a0290152c3aa6 Mon Sep 17 00:00:00 2001
2From: Hugo Osvaldo Barrera <[email protected]>
3Date: Tue, 11 Aug 2026 11:22:08 +0200
4Subject: [PATCH] Use system Vulkan headers
5
6The custom vendored headers are broken for non-64bit platforms.
7---
8 .cargo/config.toml | 5 +++++
9 1 file changed, 5 insertions(+)
10 create mode 100644 .cargo/config.toml
11
12diff --git a/.cargo/config.toml b/.cargo/config.toml
13new file mode 100644
14index 0000000..c5ad104
15--- /dev/null
16+++ b/.cargo/config.toml
17@@ -0,0 +1,5 @@
18+# Use the real system Vulkan headers instead of the crate's bundled shim. The
19+# shim's _Static_assert hardcodes the 64-bit size for VkPhysicalDeviceFeatures2
20+# which fails on 32-bit targets, where the struct is 228 bytes.
21+[env]
22+BINDGEN_EXTRA_CLANG_ARGS = "-include /usr/include/vulkan/vulkan.h"
23--
242.55.0
25