kernel_cpp.rs revision d6f36b1347b487192103c9a17d5e9a1abcab534d
1// -reflect-c++
2#pragma version(1)
3#pragma rs java_package_name(foo)
4
5//int2 i2;
6
7int i1 = 5;
8bool bt = true;
9bool bf = false;
10int2 i2 = 2;
11int3 i3 = {1, 2, 3};
12
13rs_allocation alloc;
14rs_element elem;
15rs_type type;
16rs_script script;
17rs_sampler sampler;
18
19int __attribute__((kernel)) root(uint32_t ain) {
20  return 0;
21}
22
23void __attribute__((kernel)) in_only(uint32_t ain) {
24}
25
26int __attribute__((kernel)) out_only() {
27  return 0;
28}
29
30int __attribute__((kernel)) everything(uint32_t ain, uint32_t x, uint32_t y) {
31  return 0;
32}
33
34