mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
mesa: added _mesa_get_format_datatype()
This commit is contained in:
parent
b64d478a5b
commit
5ab5f16919
2 changed files with 11 additions and 0 deletions
|
|
@ -816,3 +816,11 @@ _mesa_get_format_bits(gl_format format, GLenum pname)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GLenum
|
||||
_mesa_get_format_datatype(gl_format format)
|
||||
{
|
||||
const struct gl_format_info *info = _mesa_get_format_info(format);
|
||||
return info->DataType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -211,6 +211,9 @@ _mesa_format_to_type_and_comps2(gl_format format,
|
|||
extern GLint
|
||||
_mesa_get_format_bits(gl_format format, GLenum pname);
|
||||
|
||||
extern GLenum
|
||||
_mesa_get_format_datatype(gl_format format);
|
||||
|
||||
|
||||
extern void
|
||||
_mesa_test_formats(void);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue