| 1 | From ed6cface55570f0cb027b09ed36a0290152c3aa6 Mon Sep 17 00:00:00 2001
|
| 2 | From: Hugo Osvaldo Barrera <[email protected]>
|
| 3 | Date: Tue, 11 Aug 2026 11:22:08 +0200
|
| 4 | Subject: [PATCH] Use system Vulkan headers
|
| 5 |
|
| 6 | The 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 |
|
| 12 | diff --git a/.cargo/config.toml b/.cargo/config.toml
|
| 13 | new file mode 100644
|
| 14 | index 0000000..c5ad104
|
| 15 | |
| 16 | |
| 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 | --
|
| 24 | 2.55.0
|
| 25 |
|