Questions tagged [renderscript]

RenderScript is an Android-specific compute API offered by Google. It offers accelerated compute performance with portability between Android devices.

RenderScript is an Android compute API offered by Google. It offers accelerated compute performance with portability between Android devices.

The RenderScript runtime operates as an asynchronous low-level interface to the traditional Android application controlling it. Memory allocation and binding is performed by the controlling Android application, with both the application and runtime environment able to read and write the memory asynchronously.

For graphics operations, RenderScript is essentially a wrapper for the OpenGL ES 2.0 API's, guaranteed to run on all Android devices supporting an API level of 11 (3.0) or higher. It allows for the use of OpenGL ES 2.0's programmable pipeline while providing easy support for a fixed function pipeline if desired.

Documentation for RenderScript is currently very limited, however the example applications included in

sdk_root/samples/android-11/RenderScript

provide a great deal in the way of examples demonstrating the capabilities of RenderScript.

Some links of interest for RenderScript are:

727 questions
0
votes
3 answers

renderscript.support.mode=true doesn't seem to have affect

I specified in my project.properties renderscript.target=18 renderscript.support.mode=true and imported the V8-Library into the project. When I clean my project, all my generated RS-Classes still import "android.renderscript.*"; However, I need…
TSGames
  • 679
  • 11
  • 25
0
votes
1 answer

Can script globals be set from an invokable function?

I tried to set a script global from within whatever.rs: uint32_t a = 2; void set_a_from_float(float x) { // more processing in real life a = (uint32_t) x; } ScriptC_whatever w = new…
Kietz
  • 1,186
  • 11
  • 19
0
votes
1 answer

Why am I getting a "ScriptC sym lookup failed" error?

I am trying to implement a simple luminance histogram in RenderScript using the atomic arithmetic function rsAtomicInc, but I get a runtime error which seems to say that function does not exist: ScriptC sym lookup failed for _Z11rsAtomicIncPVj.…
Kietz
  • 1,186
  • 11
  • 19
0
votes
3 answers

android.renderscript.renderscriptGL issue

I've been trying to create a live wallpaper on android. I'm using the tutorial mentioned below. http://mobile.tutsplus.com/tutorials/android/getting-started-with-renderscript-on-android/ I've copied the source code and also installed the support…
user2951259
  • 23
  • 1
  • 6
0
votes
1 answer

android.renderscript.RSInvalidStateException: Bad bitmap type: null

I'm having difficulties loading an animated GIF via android.renderscript.Allocation. Here's the defective code: Bitmap out = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); mInAllocation =…
n83
  • 237
  • 2
  • 15
0
votes
1 answer

Dose RenderScript support "exception" in root function?

I am new to learn about renderscript. I am writing a small sample, and I found that when I write a try block in root, the compiler gives me a syntax error tip.So I want to know wheather render script could support exception in root functions. I know…
gongweixue
  • 155
  • 2
  • 11
0
votes
1 answer

On renderscripts and thread-safety

I have always assumed that renderscripts are threadsafe with forEach across an allocation. To aid in my debugging, can someone confirm this? (I'm seeing a static array value check succeed, but using rsDebug shows that the check should have…
zeta
  • 57
  • 4
0
votes
1 answer

rs_graphics.rsh part of Renderscript graphics engine that has been deprecated?

I just started to use the Renderscript. I saw some renderscript examples under the "sdk/samples/android-15/RenderScript" folder, which have the line:#include "rs_graphics.rsh" In examples under "sdk/samples/android-18", I don't see that line any…
hubeir
  • 1,279
  • 2
  • 13
  • 24
0
votes
0 answers

Fountain_v11(RenderScript) failed on Android 4.3

Recently , I rebuild fountain_v11 renderscript test apk, and found it cannot run on Android 4.3 platform. It always crash in function root() in file Fountain.rs. This will crash: if ((p->position.y > height) && (p->delta.y > 0)) { …
james
  • 335
  • 1
  • 5
  • 18
0
votes
1 answer

What happened to Android Filterscript in 4.3?

There used to be a subset of Android Renderscript called Filterscript. It was supposed to execute faster than Renderscript on some devices due to reduced complexity. Here is a thread about Filterscript on SO. Although Filterscript was officially…
rsp1984
  • 1,877
  • 21
  • 23
0
votes
2 answers

Deleted Renderscript files, now getting errors

I was playing around with Renderscript, and then I Deleted my .rs files from my source. I also deleted the raw folder in my res folder, that had a few .bc files, unfortunately now I keep getting: [2013-08-18 15:16:43 - Zart3] error: error reading…
StackOverflowed
  • 5,854
  • 9
  • 55
  • 119
0
votes
1 answer

Cannot Compile RenderScript on Eclipse

I have similar case as mentioned on https://code.google.com/p/android/issues/detail?id=55342 and stated FIXED. But I still cannot make it works. I have updated SDK Tools to 22.0.5 (latest). SDK Platform Tools to 18.0.1 (latest) and SDK Build Tools…
stuckedunderflow
  • 3,551
  • 8
  • 46
  • 63
0
votes
2 answers

build errors with renderscript using Android studio 0.2.3; 4.3 SDK

I receive the errors below while upgrading to the newest studio (0.2.3) and newest SDK (4.3). I have a few non-root functions in my renderscript file and the compiler gives a error that these functions are not supported in SDK levels 11-15.…
0
votes
1 answer

Is it possible to call a function defined in the java code from renderscript?

I'm creating a face recognition android app and to increase the performance I'm thinking of making use of the phone's GPU using renderscript. I went through some examples which I could find online, and that raised a doubt in my mind. Currently, for…
Learner
  • 499
  • 2
  • 8
  • 20
0
votes
1 answer

Android Renderscript Strange Performance on Returning Difference Variable

I am writing an android renderscript program. It has a strange performance problem. The program has two parts: mix two images; add special effect to the mixed image. I tested part 1, and it takes 20ms; part 2 takes 10ms more. However, when I…