Skip to content

Commit 9fd8aac

Browse files
Robert LyAndroid Git Automerger
authored andcommitted
am 876b7b8: Merge "docs: fixing renderscript doc bug 6111834" into ics-mr1
* commit '876b7b876e6ebb08979cf1a4861910215c4aae2b': docs: fixing renderscript doc bug 6111834
2 parents be36ea9 + 876b7b8 commit 9fd8aac

File tree

1 file changed

+4
-2
lines changed
  • docs/html/guide/topics/renderscript

1 file changed

+4
-2
lines changed

docs/html/guide/topics/renderscript/index.jd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,10 @@ not generated.</p>
638638
<code>rs_program_fragment</code> and <code>rs_allocation</code>, you have to obtain an object of the
639639
corresponding Android framework class first and then call the <code>set</code> method for that
640640
structure to bind the memory to the Renderscript runtime. You cannot directly manipulate these structures
641-
at the Renderscript runtime layer. Keep in mind that user-defined structures
642-
cannot contain pointers, so this restriction only applies to certain structures that are provided by Renderscript.
641+
at the Renderscript runtime layer. This restriction is not applicable to user-defined structures
642+
that contain pointers, because they cannot be exported to a reflected layer class
643+
in the first place. A compiler error is generated if you try to declare a non-static, global
644+
struct that contains a pointer.
643645
</p>
644646

645647
<p>Renderscript also has support for pointers, but you must explicitly allocate the memory in your

0 commit comments

Comments
 (0)