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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user