summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2016-03-30 00:51:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-03-30 00:51:55 +0000
commitab9ab56e3d4eadbc0e858544519f491b626d3c98 (patch)
tree6b5d51bb6e41777aa32a3a50a7eba6b3a9985d65 /rs/java/android/renderscript/Allocation.java
parent352ea1e307fd33b999ad52a271547271d20802d0 (diff)
parent9ee7607615563c6b480968470e69cb58d0996cb8 (diff)
Merge "[RenderScript] Update documentation for Allocation.setAutoPadding()." into nyc-dev
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 f2ef06520b92..81f63aeab0a5 100644
--- a/rs/java/android/renderscript/Allocation.java
+++ b/rs/java/android/renderscript/Allocation.java
@@ -296,8 +296,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
*