File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
docs/html/guide/topics/renderscript Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
639639corresponding Android framework class first and then call the <code>set</code> method for that
640640structure 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
You can’t perform that action at this time.
0 commit comments