From: Kenneth Graunke Date: Tue, 24 Feb 2015 03:56:00 +0000 (-0800) Subject: nir: Add glsl_float_type() wrapper. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3120345f407695e9fef96e4fa98f7ff3af8c38ce;p=mesa.git nir: Add glsl_float_type() wrapper. Signed-off-by: Kenneth Graunke Reviewed-by: Jordan Justen --- diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index a13c3e12a86..f0d0b46d253 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -142,6 +142,12 @@ glsl_void_type(void) return glsl_type::void_type; } +const glsl_type * +glsl_float_type(void) +{ + return glsl_type::float_type; +} + const glsl_type * glsl_vec4_type(void) { diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h index 494051a6755..276d4ad6234 100644 --- a/src/glsl/nir/nir_types.h +++ b/src/glsl/nir/nir_types.h @@ -69,6 +69,7 @@ bool glsl_type_is_scalar(const struct glsl_type *type); 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_array_type(const struct glsl_type *base, unsigned elements);