From 50351df8285bfba6b56a1dc7562ce3776ba8b2b3 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Fri, 31 Jul 2020 14:50:57 +0200 Subject: [PATCH] nir/glsl: add a glsl_ivec4_type() helper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Alejandro Piñeiro Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/nir_types.cpp | 6 ++++++ src/compiler/nir_types.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index e185d9f..54814cc 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -457,6 +457,12 @@ glsl_uvec4_type(void) } const glsl_type * +glsl_ivec4_type(void) +{ + return glsl_type::ivec4_type; +} + +const glsl_type * glsl_int_type(void) { return glsl_type::int_type; diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 2e085ef..b4bd9bc 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); -- 2.7.4