nir/types: Add accessors for function parameter/return types
[mesa.git] / src / glsl / nir / nir_types.h
index aad43f7a8c0429d3d23be21494d5786f11fb6cf8..dd535770c9f60b097a8bf13dc8d6e5060ad91ab3 100644 (file)
@@ -49,6 +49,12 @@ const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
 
 const struct glsl_type *glsl_get_column_type(const struct glsl_type *type);
 
+const struct glsl_type *
+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);
+
 enum glsl_base_type glsl_get_base_type(const struct glsl_type *type);
 
 unsigned glsl_get_vector_elements(const struct glsl_type *type);