PDA

View Full Version : Packing half floats



flamz
06-01-2006, 11:26 AM
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?

Michael Steinberg
06-01-2006, 04:38 PM
http://oss.sgi.com/projects/ogl-sample/registry/NV/half_float.txt