From af1667509775dc3f3d811ff15b2a28446ab3038f Mon Sep 17 00:00:00 2001 From: Robert Ly Date: Tue, 10 Apr 2012 10:57:33 -0700 Subject: docs: fixing renderscript doc bug 6111834 Change-Id: Iea6fdaf03a0064462d57e4b62500ad689ba2b824 --- docs/html/guide/topics/renderscript/index.jd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/html/guide/topics/renderscript/index.jd b/docs/html/guide/topics/renderscript/index.jd index 24b9750161f9..b2d9f8461be3 100644 --- a/docs/html/guide/topics/renderscript/index.jd +++ b/docs/html/guide/topics/renderscript/index.jd @@ -638,8 +638,10 @@ not generated.

rs_program_fragment and rs_allocation, you have to obtain an object of the corresponding Android framework class first and then call the set method for that structure to bind the memory to the Renderscript runtime. You cannot directly manipulate these structures -at the Renderscript runtime layer. Keep in mind that user-defined structures -cannot contain pointers, so this restriction only applies to certain structures that are provided by Renderscript. +at the Renderscript runtime layer. This restriction is not applicable to user-defined structures +that contain pointers, because they cannot be exported to a reflected layer class +in the first place. A compiler error is generated if you try to declare a non-static, global +struct that contains a pointer.

Renderscript also has support for pointers, but you must explicitly allocate the memory in your -- cgit v1.2.3-59-g8ed1b