gallium/util: add a half float array to util_color
authorMarek Olšák <maraeo@gmail.com>
Fri, 11 Jan 2013 15:45:54 +0000 (16:45 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 15 Jan 2013 20:48:49 +0000 (21:48 +0100)
For convenient packing into half floats.

src/gallium/auxiliary/util/u_pack_color.h

index 6c6d9669cbd661f20fa06b43d42b9dbb2c203d59..1f6a56a336d540f14fed86a1847772025d895f16 100644 (file)
@@ -52,6 +52,7 @@ union util_color {
    ubyte ub;
    ushort us;
    uint ui;
+   ushort h[4]; /* half float */
    float f[4];
    double d[4];
 };