diff options
author | Tim Murray <timmurray@google.com> | 2013-04-09 11:01:01 -0700 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2013-06-05 11:28:45 -0700 |
commit | c11e25c4e653124def1fb18e203b894f42106cbe (patch) | |
tree | 56827889775e5d4cf96f5fa2946ecf5484f3f540 /graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java | |
parent | aafed1df0404e2fb64c1adeb127dc7f300a2c07b (diff) |
Improve RS documentation.
bug 8570568
Change-Id: I465fcc8ec3e2cc892dc3cb0067aacf5224338102
Diffstat (limited to 'graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java')
-rw-r--r-- | graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java b/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java index 86f37d847427..34540a1119d9 100644 --- a/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java +++ b/graphics/java/android/renderscript/ScriptIntrinsic3DLUT.java @@ -40,7 +40,7 @@ public final class ScriptIntrinsic3DLUT extends ScriptIntrinsic { * * The defaults tables are identity. * - * @param rs The Renderscript context + * @param rs The RenderScript context * @param e Element type for intputs and outputs * * @return ScriptIntrinsic3DLUT @@ -55,6 +55,13 @@ public final class ScriptIntrinsic3DLUT extends ScriptIntrinsic { return new ScriptIntrinsic3DLUT(id, rs, e); } + /** + * Sets the {@link android.renderscript.Allocation} to be used as the lookup table. + * + * The lookup table must use the same {@link android.renderscript.Element} as the intrinsic. + * + */ + public void setLUT(Allocation lut) { final Type t = lut.getType(); |