summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2016-03-29 15:56:55 -0700
committerMiao Wang <miaowang@google.com>2016-03-29 17:42:40 -0700
commit9ee7607615563c6b480968470e69cb58d0996cb8 (patch)
tree1ad6214cd6e72ec42cdef237f7b92832c4921f74 /rs/java/android/renderscript/Allocation.java
parent3d23dce43330b9c8f3fba34ef9515dca7912768a (diff)
[RenderScript] Update documentation for Allocation.setAutoPadding().
Bug: 26862970 Change-Id: Iaa88ac0266e5d2cac2837f1d13353aacc6177274
Diffstat (limited to 'rs/java/android/renderscript/Allocation.java')
-rw-r--r--rs/java/android/renderscript/Allocation.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/rs/java/android/renderscript/Allocation.java b/rs/java/android/renderscript/Allocation.java
index fc9296674d89..7be09f567b5f 100644
--- a/rs/java/android/renderscript/Allocation.java
+++ b/rs/java/android/renderscript/Allocation.java
@@ -293,8 +293,13 @@ public class Allocation extends BaseObj {
}
/**
- * Enable/Disable AutoPadding for Vec3 elements.
- * By default: Diabled.
+ * 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
*