Hi All,
I'm facing problems with RenderScript on ADT20 and ADT21 preview 1 (I was
hoping ADT21 fixed many of the RenderScript bugs). E.g following code does not
work with color4.rgb, which changes color values to zeros only;
void root(uchar4* v_color) {
float4 color4 = rsUnpackColor8888(*v_color);
// Does not work ;
// float3 color = color4.rgb;
// Works ok
float3 color;
color.r = color4.r;
color.g = color4.g;
color.b = color4.b;
// Store color value back to allocation.
color = clamp(color, 0.0f, 1.0f);
*v_color = rsPackColorTo8888(color);
}
Am I only one struggling with current state of RenderScript or should I be
pointing towards Samsung instead (I'm running these scripts on SGS2 4.04)?
--
H
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en