From 7f75eaa218e6fb66bbec372c04aec3817e635169 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Thu, 30 Jan 2014 19:43:20 -0800 Subject: [PATCH] Add message to RS docs about application vs. library packaging. Change-Id: I49b694629ded066e5ee9c1af29970c59cb637fdd --- docs/html/guide/topics/renderscript/compute.jd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/html/guide/topics/renderscript/compute.jd b/docs/html/guide/topics/renderscript/compute.jd index c62510b2383fc..297a2dc3f8597 100644 --- a/docs/html/guide/topics/renderscript/compute.jd +++ b/docs/html/guide/topics/renderscript/compute.jd @@ -56,7 +56,9 @@ contain:

RenderScript kernel language used in this script. Currently, 1 is the only valid value.
  • A pragma declaration (#pragma rs java_package_name(com.example.app)) that -declares the package name of the Java classes reflected from this script.
  • +declares the package name of the Java classes reflected from this script. +Note that your .rs file must be part of your application package, and not in a +library project.
  • Some number of invokable functions. An invokable function is a single-threaded RenderScript function that you can call from your Java code with arbitrary arguments. These are often useful for @@ -308,4 +310,4 @@ function launches as necessary.
  • Tear down the RenderScript context. The RenderScript context can be destroyed with {@link android.renderscript.RenderScript#destroy} or by allowing the RenderScript context object to be garbage collected. This will cause any further use of any object belonging to that -context to throw an exception.
  • \ No newline at end of file +context to throw an exception.