From 1dfe8eead95613a7db62dd17d3da56884b5a887e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 11 Jan 2013 16:45:54 +0100 Subject: [PATCH] gallium/util: add a half float array to util_color For convenient packing into half floats. --- src/gallium/auxiliary/util/u_pack_color.h | 1 + 1 file changed, 1 insertion(+) 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]; };