[][src]Macro ispc_rt::ispc_module

macro_rules! ispc_module {
    ($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

This example is not tested
#[macro_use]
extern crate ispc_rt;

// Functions exported from foo will be callable under foo::*
ispc_module!(foo);