nir/glsl: add a glsl_ivec4_type() helper

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga
2020-07-31 14:50:57 +02:00
committed by Marge Bot
parent 7bbce22d7b
commit 50351df828
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -456,6 +456,12 @@ glsl_uvec4_type(void)
return glsl_type::uvec4_type;
}
const glsl_type *
glsl_ivec4_type(void)
{
return glsl_type::ivec4_type;
}
const glsl_type *
glsl_int_type(void)
{
+1
View File
@@ -170,6 +170,7 @@ 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_ivec4_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);