diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index e185d9f61bd..54814ccdd8e 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -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) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 2e085efaed9..b4bd9bcc7c9 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -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);