nir: Add a helper to get the uvec4 type.
I needed this in the vc5 compiler. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -297,6 +297,12 @@ glsl_vec4_type(void)
|
||||
return glsl_type::vec4_type;
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_uvec4_type(void)
|
||||
{
|
||||
return glsl_type::uvec4_type;
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_int_type(void)
|
||||
{
|
||||
|
||||
@@ -136,6 +136,7 @@ const struct glsl_type *glsl_double_type(void);
|
||||
const struct glsl_type *glsl_vec_type(unsigned n);
|
||||
const struct glsl_type *glsl_dvec_type(unsigned n);
|
||||
const struct glsl_type *glsl_vec4_type(void);
|
||||
const struct glsl_type *glsl_uvec4_type(void);
|
||||
const struct glsl_type *glsl_int_type(void);
|
||||
const struct glsl_type *glsl_uint_type(void);
|
||||
const struct glsl_type *glsl_int64_t_type(void);
|
||||
|
||||
Reference in New Issue
Block a user