Exemplo n.º 1
0
  private void initializeGlobals(RenderScript RS, ScriptC_kernel s) {
    Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS));
    int X = 5;
    s.set_dimX(X);
    typeBuilder.setX(X);
    A = Allocation.createTyped(RS, typeBuilder.create());
    s.bind_ain(A);
    B = Allocation.createTyped(RS, typeBuilder.create());
    s.bind_aout(B);

    return;
  }
Exemplo n.º 2
0
 Type newType(Element e, int size) {
   Type.Builder tb = new Type.Builder(mRS, e);
   tb.setX(size);
   return tb.create();
 }