Commit 1896682d authored by Kenneth Graunke's avatar Kenneth Graunke

compiler: Add a C wrapper for glsl_type::without_array().

Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarChris Forbes <chrisforbes@google.com>
parent b9e6e8e7
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment