UT_kernel_structpublic class UT_kernel_struct extends UnitTest
Fields Summary |
---|
private android.content.res.Resources | mRes | private Allocation | A | private Allocation | B |
Methods Summary |
---|
private void | initializeGlobals(RenderScript RS, ScriptC_kernel_struct s)
int X = 5;
s.set_dimX(X);
ScriptField_simpleStruct t;
t = new ScriptField_simpleStruct(RS, X);
s.bind_ain(t);
A = t.getAllocation();
t = new ScriptField_simpleStruct(RS, X);
s.bind_aout(t);
B = t.getAllocation();
return;
| public void | run()
RenderScript pRS = RenderScript.create(mCtx);
ScriptC_kernel_struct s = new ScriptC_kernel_struct(pRS);
pRS.setMessageHandler(mRsMessage);
initializeGlobals(pRS, s);
s.forEach_init_vars(A);
s.forEach_root(A, B);
s.invoke_verify_root();
s.invoke_kernel_struct_test();
pRS.finish();
waitForMessage();
pRS.destroy();
|
|