FloatyMonkey / slang-rs

Rust bindings for the Slang shader language.
Apache License 2.0
19 stars 6 forks source link

Generate VTables automatically #1

Open laurooyen opened 8 months ago

laurooyen commented 8 months ago

Generate the vtables in slang-sys with bindgen instead of writing them manually. This should be possible once bindgen supports vtables for inherited classes.

See: https://github.com/rust-lang/rust-bindgen/issues/2799

laurooyen commented 1 week ago

Since Slang welcomes contributions for language bindings, I'm currently focussing my efforts on implementing these upstream. Initial work will limit itself to the low level bindings i.e. slang-sys. This will already ensure we won't need to write VTables manually. Since low level struct and enum bindings will be generated too, we could ditch bindgen altogether in the future.