fna3d_sys/
lib.rs

1/*! Rust FFI bindings to FNA3D generated with [bindgen]
2
3WARNING: Probablly it doesn't compile on Window. I need to buy one.
4
5I'm using `bindgen` with  default settings, but if you're interested, see the API documentation
6of [`Builder`] to configure enum generation.
7
8[bindgen]:  https://github.com/rust-lang/rust-bindgen
9[`Builder`]: https://docs.rs/bindgen/newest/bindgen/struct.Builder.html
10*/
11
12// suppress all errors
13#![allow(warnings)]
14
15// Include generated bindings
16include!("ffi/fna3d_bindings.rs");
17
18pub mod mojo {
19    //! MojoShader types
20    //!
21    //! These types are concrete while mojoshader types under `crate::` don't tell the field types.
22    include!("ffi/mojoshader_bindings.rs");
23}
24
25#[cfg(test)]
26mod test {
27    /// Makes sure we can link to FNA3D. Fails if we can't
28    #[test]
29    fn test_link() {
30        let v = unsafe { super::FNA3D_LinkedVersion() };
31        println!("FNA3D version: {}", v);
32    }
33}