nir: Add a glsl_uint_type() wrapper.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
Kenneth Graunke
2015-05-12 01:12:46 -07:00
parent ca628085b6
commit afccbd7256
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -154,6 +154,12 @@ glsl_vec4_type(void)
return glsl_type::vec4_type;
}
const glsl_type *
glsl_uint_type(void)
{
return glsl_type::uint_type;
}
const glsl_type *
glsl_array_type(const glsl_type *base, unsigned elements)
{
+1
View File
@@ -71,6 +71,7 @@ bool glsl_type_is_matrix(const struct glsl_type *type);
const struct glsl_type *glsl_void_type(void);
const struct glsl_type *glsl_float_type(void);
const struct glsl_type *glsl_vec4_type(void);
const struct glsl_type *glsl_uint_type(void);
const struct glsl_type *glsl_array_type(const struct glsl_type *base,
unsigned elements);