diff options
author | Stephen Hines <srhines@google.com> | 2010-10-11 16:10:42 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2010-10-11 16:10:42 -0700 |
commit | 52d836332f6aae74ed97fda1b53681f36710af64 (patch) | |
tree | d8e98e1e692e249e303be69a71c252718faa5fa0 /graphics | |
parent | 1e1ebcb2d0bb1eaefa48a8d774beb0f459fe8b2c (diff) | |
download | frameworks_base-52d836332f6aae74ed97fda1b53681f36710af64.zip frameworks_base-52d836332f6aae74ed97fda1b53681f36710af64.tar.gz frameworks_base-52d836332f6aae74ed97fda1b53681f36710af64.tar.bz2 |
Support for unsigned long and unsigned long long.
Change-Id: I2f9cfb7f352e2e7e7fd49eac42a821c03b5fcb9f
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/renderscript/Element.java | 9 | ||||
-rw-r--r-- | graphics/java/android/renderscript/RenderScript.java | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java index 91824e6..dc421d8 100644 --- a/graphics/java/android/renderscript/Element.java +++ b/graphics/java/android/renderscript/Element.java @@ -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); diff --git a/graphics/java/android/renderscript/RenderScript.java b/graphics/java/android/renderscript/RenderScript.java index 2774fea..0f9ed87 100644 --- a/graphics/java/android/renderscript/RenderScript.java +++ b/graphics/java/android/renderscript/RenderScript.java @@ -514,6 +514,7 @@ public class RenderScript { Element mElement_I16; Element mElement_U32; Element mElement_I32; + Element mElement_U64; Element mElement_I64; Element mElement_F32; Element mElement_F64; |