Re: Hardcoded float not working?
Posted by
Wade Walker on
Dec 23, 2013; 10:20pm
URL: https://forum.jogamp.org/Hardcoded-float-not-working-tp4030974p4031044.html
gouessej wrote
Maybe the language setting interferes with the way the decimal separator is interpreted.
A very intriguing possibility. Perhaps passing the kernel as a string literal in the code would tell us if this is happening. There's no way to pass a locale to Class.getResourceAsString(), but if you pass the kernel as a string literal to CLContext.createProgram() it should bypass any locale processing.
The OpenCL spec doesn't mention anything about locales, so they seem to be assuming everyone in the world writes "0.5f" :)