diff options
author | Brian Paul <[email protected]> | 2011-12-24 08:54:25 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-12-24 08:54:25 -0700 |
commit | 488d7fc67d36bc0e5247f5d011e8ad4c2dceb5a7 (patch) | |
tree | 2db7a002401f69c74822e0efab67bce7875ac76e /src/mesa/main/formats.h | |
parent | fd104a84591ae854c5d6adc81e2dc31ef6ab9e8a (diff) |
mesa: add _mesa_get_format_max_bits()
Returns max bits per channel for the given format.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r-- | src/mesa/main/formats.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h index e6b429d5f37..9609343387f 100644 --- a/src/mesa/main/formats.h +++ b/src/mesa/main/formats.h @@ -290,6 +290,9 @@ _mesa_get_format_bytes(gl_format format); extern GLint _mesa_get_format_bits(gl_format format, GLenum pname); +extern GLuint +_mesa_get_format_max_bits(gl_format format); + extern GLenum _mesa_get_format_datatype(gl_format format); |