[Mesa-dev] [PATCH] gallium/util: add a half float array to util_color

Marek Olšák maraeo at gmail.com
Fri Jan 11 07:48:18 PST 2013


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 50ec226..9f37c78 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];
 };
-- 
1.7.10.4



More information about the mesa-dev mailing list