diff options
Diffstat (limited to 'level_zero-sys/README')
-rw-r--r-- | level_zero-sys/README | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/level_zero-sys/README b/level_zero-sys/README new file mode 100644 index 0000000..ff5978a --- /dev/null +++ b/level_zero-sys/README @@ -0,0 +1,4 @@ +sed 's/^typedef uint32_t ze_.*flags_t;$//g' /usr/local/include/level_zero/ze_api.h > ze_api.h +sed -i -r 's/ze_(.*)_flag_t/ze_\1_flags_t/g' ze_api.h +bindgen --size_t-is-usize --default-enum-style=newtype --bitfield-enum ".*flags_t" --whitelist-function "ze.*" ze_api.h -o ze_api.rs +sed -i 's/pub struct _ze_result_t/#[must_use]\npub struct _ze_result_t/g' ze_api.rs
\ No newline at end of file |