View Full Version : can't find glsl analog for hsls asint/asfloat

Sergey Nenakhov
07-21-2011, 12:42 PM
Does it exists in glsl at all ?

Alfonse Reinheart
07-21-2011, 02:18 PM
What do those do?

07-21-2011, 03:57 PM
The functions are called floatBitsToInt, floatBitsToUint, intBitsToFloat and uintBitsToFloat. You have to use glsl version 400 or the ARB_gpu_shader5 extension.

Sergey Nenakhov
07-21-2011, 04:10 PM
Thank you very much!

07-21-2011, 09:07 PM
Or the ARB_shader_bit_encoding extension.