nir: Add glsl_float_type() wrapper.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 03:56:00 +0000 (19:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Mar 2015 23:17:19 +0000 (16:17 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/nir/nir_types.cpp
src/glsl/nir/nir_types.h

index a13c3e1..f0d0b46 100644 (file)
@@ -143,6 +143,12 @@ glsl_void_type(void)
 }
 
 const glsl_type *
+glsl_float_type(void)
+{
+   return glsl_type::float_type;
+}
+
+const glsl_type *
 glsl_vec4_type(void)
 {
    return glsl_type::vec4_type;
index 494051a..276d4ad 100644 (file)
@@ -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);