diff options
author | José Fonseca <[email protected]> | 2010-03-31 15:30:14 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-03-31 15:32:16 +0100 |
commit | 96bf4aff5bd674bba5d83ab32c46024a686c1a1d (patch) | |
tree | 8b390af1baf73758e89204120c48d09857d9daac /src/gallium/auxiliary/util/u_format.h | |
parent | e245ca74e11869750cafb1ab3fbb6957100c554b (diff) |
util: Put the format pack/unpack functions in the description table.
Diffstat (limited to 'src/gallium/auxiliary/util/u_format.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index 4d59b9927d3..609d398ebfc 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -189,6 +189,23 @@ struct util_format_description * Colorspace transformation. */ enum util_format_colorspace colorspace; + + /** + * Accessor functions. + */ + + void + (*unpack_8unorm)(uint8_t *dst, const uint8_t *src, unsigned nr_blocks); + + void + (*pack_8unorm)(uint8_t *dst, const uint8_t *src, unsigned nr_blocks); + + void + (*unpack_float)(float *dst, const uint8_t *src, unsigned nr_blocks); + + void + (*pack_float)(uint8_t *dst, const float *src, unsigned nr_blocks); + }; |