Home | History | Annotate | Download | only in cts
      1 #pragma version(1)
      2 #pragma rs java_package_name(android.renderscript.cts)
      3 
      4 const int* pointer;
      5 rs_allocation alloc_in;
      6 rs_allocation alloc_out;
      7 
      8 int __attribute__((kernel)) copy(int in) {
      9     return in;
     10 }
     11 
     12 void start() {
     13     alloc_in = rsGetAllocation(pointer);
     14     rsForEach(copy, alloc_in, alloc_out);
     15 }
     16