diff options
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(); |