Can't find glsl analog for hsls asint/asfloat

Does it exists in glsl at all ?

What do those do?

The functions are called floatBitsToInt, floatBitsToUint, intBitsToFloat and uintBitsToFloat. You have to use glsl version 400 or the ARB_gpu_shader5 extension.

Thank you very much!

Or the ARB_shader_bit_encoding extension.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.