From: Kenneth Graunke Date: Tue, 12 May 2015 08:12:46 +0000 (-0700) Subject: nir: Add a glsl_uint_type() wrapper. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afccbd725655e6e607029a8b359886f62e4aa807;p=mesa.git nir: Add a glsl_uint_type() wrapper. Signed-off-by: Kenneth Graunke Reviewed-by: Timothy Arceri --- diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index 62176f508a1..940c676005a 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -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) { diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h index 276d4ad6234..a8ff8f2c606 100644 --- a/src/glsl/nir/nir_types.h +++ b/src/glsl/nir/nir_types.h @@ -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);