Lines Matching refs:usage
88 * The usage of the allocation. These signal to renderscript
179 Allocation(int id, RenderScript rs, Type t, int usage) {
181 if ((usage & ~(USAGE_SCRIPT |
186 throw new RSIllegalArgumentException("Unknown usage specified.");
270 throw new RSIllegalArgumentException("Source must be exactly one usage type.");
865 * @param usage bit field specifying how the allocation is
868 static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) {
873 int id = rs.nAllocationCreateTyped(type.getID(), mips.mID, usage);
877 return new Allocation(id, rs, type, usage);
886 * @param usage bit field specifying how the allocation is
891 static public Allocation createTyped(RenderScript rs, Type type, int usage) {
892 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage);
916 * @param usage bit field specifying how the allocation is
922 int count, int usage) {
928 int id = rs.nAllocationCreateTyped(t.getID(), MipmapControl.MIPMAP_NONE.mID, usage);
932 return new Allocation(id, rs, t, usage);
983 * @param usage bit field specifying how the allocation is
991 int usage) {
995 int id = rs.nAllocationCreateFromBitmap(t.getID(), mips.mID, b, usage);
999 return new Allocation(id, rs, t, usage);
1026 * @param usage bit field specifying how the cubemap is utilized
1033 int usage) {
1058 int id = rs.nAllocationCubeCreateFromBitmap(t.getID(), mips.mID, b, usage);
1062 return new Allocation(id, rs, t, usage);
1097 * @param usage bit field specifying how the cubemap is utilized
1110 int usage) {
1132 Allocation cubemap = Allocation.createTyped(rs, t, mips, usage);
1189 * @param usage bit field specifying how the allocation is
1199 int usage) {
1203 Allocation alloc = createFromBitmap(rs, b, mips, usage);
1233 * @param usage bit field specifying how the allocaiton is
1239 int usage) {
1244 Allocation alloc = Allocation.createSized(rs, Element.U8(rs), allocArray.length, usage);