mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
compiler: Add a C wrapper for glsl_type::without_array().
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisforbes@google.com>
This commit is contained in:
parent
b9e6e8e7d4
commit
1896682d27
2 changed files with 7 additions and 0 deletions
|
|
@ -64,6 +64,12 @@ glsl_get_array_element(const glsl_type* type)
|
|||
return type->fields.array;
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_without_array(const glsl_type *type)
|
||||
{
|
||||
return type->without_array();
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_get_struct_field(const glsl_type *type, unsigned index)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type,
|
|||
unsigned index);
|
||||
|
||||
const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
|
||||
const struct glsl_type *glsl_without_array(const struct glsl_type *type);
|
||||
|
||||
const struct glsl_type *glsl_get_column_type(const struct glsl_type *type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue