How to programmatically set pragma in RenderScript -
i working on rendersript project. in renderscript, can relax floating point precision #pragma rs_fp_imprecise. however, not want low precision in cases. there way set pragma programmatically?
no. pragma used (and can used) entire file. please note should not using rs_fp_imprecise @ all. please utilize rs_fp_relaxed if don't need total ieee-754 conforming behavior. rs_fp_imprecise came existence theoretically back upwards low-end gpgpu drivers, have not materialized. of existing rs gpgpu drivers accelerate rs_fp_relaxed code, appropriate value utilize these days (assuming can tolerate loss of precision).
pragma renderscript
No comments:
Post a Comment