Packing half floats

Hi,
I want to use unpack_2halfs in my GLSL fragment program to save some memory. My problem is that I need to do the packing on the CPU. I have no idea how to pack 2 16-bit half floats into a single 32bit float.

How does nVidia represent 16-bit floats? Any ideas?

http://oss.sgi.com/projects/ogl-sample/registry/NV/half_float.txt

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