ZLUDA/zluda
Andrzej Janik 7d4147c8b2
Add Blender 4.2 support (#184)
Redo primary context and fix various long-standing bugs around this API
2024-03-28 17:12:10 +01:00
..
src Add Blender 4.2 support (#184) 2024-03-28 17:12:10 +01:00
tests Add Blender 4.2 support (#184) 2024-03-28 17:12:10 +01:00
build.rs Nobody expects the Red Team 2024-02-11 20:45:51 +01:00
Cargo.toml Nobody expects the Red Team 2024-02-11 20:45:51 +01:00
README Nobody expects the Red Team 2024-02-11 20:45:51 +01:00

bindgen /usr/local/cuda/include/cuda.h -o cuda.rs --whitelist-function="^cu.*" --size_t-is-usize --default-enum-style=newtype --no-layout-tests --no-doc-comments --no-derive-debug --new-type-alias "^CUdevice$|^CUdeviceptr$"
sed -i -e 's/extern "C" {//g' -e 's/-> CUresult;/-> CUresult { impl_::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "system" fn /g' cuda.rs
rustfmt cuda.rs