View Full Version : can't find glsl analog for hsls asint/asfloat
Sergey Nenakhov
07-21-2011, 11:42 AM
Does it exists in glsl at all ?
Alfonse Reinheart
07-21-2011, 01:18 PM
What do those do?
Foobarbazqux
07-21-2011, 02: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, 03:10 PM
Thank you very much!
arekkusu
07-21-2011, 08:07 PM
Or the ARB_shader_bit_encoding extension.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.