Update Script java classes and llvm samples.

Change-Id: I05c8d63fcca095d4fea6abb1ff5736ab9d78a3e6
This commit is contained in:
Jason Sams
2010-03-26 16:06:43 -07:00
parent a70f416c9c
commit 2d71bc7b4c
4 changed files with 151 additions and 14 deletions

View File

@@ -42,6 +42,10 @@ public class Script extends BaseObj {
}
}
protected void invoke(int slot) {
mRS.nScriptInvoke(mID, slot);
}
Script(int id, RenderScript rs) {
super(rs);
mID = id;
@@ -145,5 +149,48 @@ public class Script extends BaseObj {
}
public static class FieldBase {
protected Element mElement;
protected Type mType;
protected Allocation mAllocation;
protected void init(RenderScript rs, int dimx) {
mAllocation = Allocation.createSized(rs, mElement, dimx);
mType = mAllocation.getType();
}
protected FieldBase() {
}
public Element getElement() {
return mElement;
}
public Type getType() {
return mType;
}
public Allocation getAllocation() {
return mAllocation;
}
//@Override
public void updateAllocation() {
}
//
/*
public class ScriptField_UserField
extends android.renderscript.Script.FieldBase {
protected
}
*/
}
}