diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 4ea7a2fcd38..2d46ed2a1ef 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -250,6 +250,12 @@ glsl_float_type(void) return glsl_type::float_type; } +const glsl_type * +glsl_double_type(void) +{ + return glsl_type::double_type; +} + const glsl_type * glsl_vec_type(unsigned n) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 7d9917f88d8..c505ac02c27 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -117,6 +117,7 @@ bool glsl_sampler_type_is_array(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_double_type(void); const struct glsl_type *glsl_vec_type(unsigned n); const struct glsl_type *glsl_vec4_type(void); const struct glsl_type *glsl_int_type(void);