Support for unsigned long and unsigned long long.

Change-Id: I2f9cfb7f352e2e7e7fd49eac42a821c03b5fcb9f
This commit is contained in:
Stephen Hines
2010-10-11 16:10:42 -07:00
parent 1e1ebcb2d0
commit 52d836332f
4 changed files with 26 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ public class Element extends BaseObj {
UNSIGNED_8 (8, 1),
UNSIGNED_16 (9, 2),
UNSIGNED_32 (10, 4),
//UNSIGNED_64 (11, 8),
UNSIGNED_64 (11, 8),
BOOLEAN(12, 1),
@@ -142,6 +142,13 @@ public class Element extends BaseObj {
return rs.mElement_I32;
}
public static Element U64(RenderScript rs) {
if(rs.mElement_U64 == null) {
rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64);
}
return rs.mElement_U64;
}
public static Element I64(RenderScript rs) {
if(rs.mElement_I64 == null) {
rs.mElement_I64 = createUser(rs, DataType.SIGNED_64);