Lines Matching refs:usage

95      * The usage of the allocation.  These signal to renderscript
163 * Get the usage flags of the Allocation.
165 * @return usage flags associated with the allocation. e.g.
196 Allocation(int id, RenderScript rs, Type t, int usage) {
198 if ((usage & ~(USAGE_SCRIPT | USAGE_GRAPHICS_TEXTURE)) != 0) {
199 throw new RSIllegalArgumentException("Unknown usage specified.");
203 mUsage = usage;
268 * Propagate changes from one usage of the allocation to the
278 throw new RSIllegalArgumentException("Source must be exactly one usage type.");
902 * @param usage bit field specifying how the allocation is
905 static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) {
910 int id = rs.nAllocationCreateTyped(type.getID(rs), mips.mID, usage, 0);
914 return new Allocation(id, rs, type, usage);
923 * @param usage bit field specifying how the allocation is
928 static public Allocation createTyped(RenderScript rs, Type type, int usage) {
929 return createTyped(rs, type, MipmapControl.MIPMAP_NONE, usage);
953 * @param usage bit field specifying how the allocation is
959 int count, int usage) {
965 int id = rs.nAllocationCreateTyped(t.getID(rs), MipmapControl.MIPMAP_NONE.mID, usage, 0);
969 return new Allocation(id, rs, t, usage);
1020 * @param usage bit field specifying how the allocation is
1028 int usage) {
1032 int id = rs.nAllocationCreateFromBitmap(t.getID(rs), mips.mID, b, usage);
1036 return new Allocation(id, rs, t, usage);
1063 * @param usage bit field specifying how the cubemap is utilized
1070 int usage) {
1095 int id = rs.nAllocationCubeCreateFromBitmap(t.getID(rs), mips.mID, b, usage);
1099 return new Allocation(id, rs, t, usage);
1134 * @param usage bit field specifying how the cubemap is utilized
1147 int usage) {
1169 Allocation cubemap = Allocation.createTyped(rs, t, mips, usage);