Macro rispcrt::ispc_module
[−]
[src]
macro_rules! ispc_module { ($lib:ident) => { ... }; (pub $lib:ident) => { ... }; }
Convenience macro for generating the module to hold the raw/unsafe ISPC bindings.
In addition to building the library with ISPC we use rust-bindgen to generate
a rust module containing bindings to the functions exported from ISPC. These
can be imported by passing the name of your library to the ispc_module
macro.
Example
#[macro_use] extern crate rispcrt; // ispc code must have been generated into `libfoo.a`, and the rust bindings // will be available under `foo::*`. ispc_module!(foo);