clay_core/
source.rs

1use std::{
2    path::Path,
3};
4use ocl_include::{MemHook};
5
6include!(concat!(env!("OUT_DIR"), "/ocl_src_list.rs"));
7
8/// OpenCL source code tree.
9pub fn source() -> MemHook {
10    let mut hook = MemHook::new();
11    let pref = Path::new("clay_core");
12    for (name, content) in OCL_SRC_LIST.iter() {
13        hook.add_file(
14            &pref.join(name),
15            content.to_string(),
16        ).unwrap();
17    }
18    hook
19}