diff options
author | Miao Wang <miaowang@google.com> | 2016-03-29 17:52:36 -0700 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2016-03-29 17:52:36 -0700 |
commit | 0247ee75ca3d8bcdbeaca3d1731e7e21020c5dea (patch) | |
tree | cea6cdcf6700af96e16541c46640040a6b767625 /support | |
parent | 1c0614820f3fab564a7b35fcace809894ce50a2d (diff) | |
download | rs-0247ee75ca3d8bcdbeaca3d1731e7e21020c5dea.tar.gz |
[RenderScript] Update documentation for Allocation.setAutoPadding().
Bug: 26862970
Change-Id: I91b9205641a8bfb0b6fed903195257f5172d4227
Diffstat (limited to 'support')
-rw-r--r-- | support/java/src/android/support/v8/renderscript/Allocation.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/java/src/android/support/v8/renderscript/Allocation.java b/support/java/src/android/support/v8/renderscript/Allocation.java index c8a8854a..21a68a42 100644 --- a/support/java/src/android/support/v8/renderscript/Allocation.java +++ b/support/java/src/android/support/v8/renderscript/Allocation.java @@ -269,7 +269,13 @@ public class Allocation extends BaseObj { } /** - * Enable/Disable AutoPadding for Vec3 elements. + * Enable/Disable AutoPadding for Vec3 Elements. + * + * <p> Vec3 Elements, such as {@link Element#U8_3} are treated as Vec4 Elements + * with the fourth vector element used as padding. Enabling the AutoPadding feature + * will automatically add/remove the padding when you copy to/from an Allocation + * with a Vec3 Element. + * <p> By default: Disabled. * * @param useAutoPadding True: enable AutoPadding; False: disable AutoPadding * |