OSDN Git Service

nir: Add a glsl_uint_type() wrapper.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 12 May 2015 08:12:46 +0000 (01:12 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 17 Aug 2015 04:44:19 +0000 (21:44 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/glsl/nir/nir_types.cpp
src/glsl/nir/nir_types.h

index 62176f5..940c676 100644 (file)
@@ -155,6 +155,12 @@ glsl_vec4_type(void)
 }
 
 const glsl_type *
+glsl_uint_type(void)
+{
+   return glsl_type::uint_type;
+}
+
+const glsl_type *
 glsl_array_type(const glsl_type *base, unsigned elements)
 {
    return glsl_type::get_array_instance(base, elements);
index 276d4ad..a8ff8f2 100644 (file)
@@ -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);