On 11/10/2007, Roderick Colenbrander thunderbird2k@gmx.net wrote:
- "MUL index.x, index.x, constants.x;\n" /* Scale the index by 255/256 */
- "ADD index.x, index.x, constants.y;\n" /* Add a bias of '0.5' in order to sample in the middle */
Why not use a MAD there?