summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-01-11 16:45:54 +0100
committerMarek Olšák <[email protected]>2013-01-15 21:48:49 +0100
commit1dfe8eead95613a7db62dd17d3da56884b5a887e (patch)
tree6adc1e0b0e1789dc9a4c2d99ad2a32911f7f1611 /src
parent7824ab807050c03c6df01c44774914dcbef88248 (diff)
gallium/util: add a half float array to util_color
For convenient packing into half floats.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_pack_color.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h
index 6c6d9669cbd..1f6a56a336d 100644
--- a/src/gallium/auxiliary/util/u_pack_color.h
+++ b/src/gallium/auxiliary/util/u_pack_color.h
@@ -52,6 +52,7 @@ union util_color {
ubyte ub;
ushort us;
uint ui;
+ ushort h[4]; /* half float */
float f[4];
double d[4];
};