diff options
author | Jason Sams <jsams@google.com> | 2012-12-27 20:26:41 -0800 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2012-12-27 20:26:41 -0800 |
commit | d1c306a9e66f8e541f866a6f3740959ed8cc70a6 (patch) | |
tree | 18597dc6fdbaa3e1feb8a1aca417751d8fec2950 /graphics/java/android/renderscript/Type.java | |
parent | 412fbe7f8fb0fc2892308faf52c31dcc01e1cf5a (diff) | |
download | frameworks_base-d1c306a9e66f8e541f866a6f3740959ed8cc70a6.zip frameworks_base-d1c306a9e66f8e541f866a6f3740959ed8cc70a6.tar.gz frameworks_base-d1c306a9e66f8e541f866a6f3740959ed8cc70a6.tar.bz2 |
Add API support for 3D allocations.
Change-Id: I19c525f90135d83caec545e77e8f61a957d220ee
Diffstat (limited to 'graphics/java/android/renderscript/Type.java')
-rw-r--r-- | graphics/java/android/renderscript/Type.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Type.java b/graphics/java/android/renderscript/Type.java index a707df2..b36aee2 100644 --- a/graphics/java/android/renderscript/Type.java +++ b/graphics/java/android/renderscript/Type.java @@ -244,6 +244,14 @@ public class Type extends BaseObj { return this; } + public Builder setZ(int value) { + if(value < 1) { + throw new RSIllegalArgumentException("Values of less than 1 for Dimension Z are not valid."); + } + mDimZ = value; + return this; + } + public Builder setMipmaps(boolean value) { mDimMipmaps = value; return this; |