mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nir/types: Add a wrapper to access gl_type
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
739bb9e3d4
commit
9fbe5bd811
2 changed files with 8 additions and 0 deletions
|
|
@ -81,6 +81,12 @@ glsl_get_column_type(const struct glsl_type *type)
|
|||
return type->column_type();
|
||||
}
|
||||
|
||||
GLenum
|
||||
glsl_get_gl_type(const struct glsl_type *type)
|
||||
{
|
||||
return type->gl_type;
|
||||
}
|
||||
|
||||
enum glsl_base_type
|
||||
glsl_get_base_type(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ glsl_get_function_return_type(const struct glsl_type *type);
|
|||
const struct glsl_function_param *
|
||||
glsl_get_function_param(const struct glsl_type *type, unsigned index);
|
||||
|
||||
GLenum glsl_get_gl_type(const struct glsl_type *type);
|
||||
|
||||
enum glsl_base_type glsl_get_base_type(const struct glsl_type *type);
|
||||
|
||||
unsigned glsl_get_vector_elements(const struct glsl_type *type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue