From 7a9d6abcae63a6f837fa161246ecf1f14840e77b Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 15 Jun 2016 10:43:12 +1000 Subject: nir: add glsl_dvec_type() helper Reviewed-by: Kenneth Graunke --- src/compiler/nir_types.cpp | 6 ++++++ src/compiler/nir_types.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/compiler') diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 2d46ed2a1ef..f694a84e72c 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -262,6 +262,12 @@ glsl_vec_type(unsigned n) return glsl_type::vec(n); } +const glsl_type * +glsl_dvec_type(unsigned n) +{ + return glsl_type::dvec(n); +} + const glsl_type * glsl_vec4_type(void) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index c505ac02c27..6b4f646b20b 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -119,6 +119,7 @@ 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_dvec_type(unsigned n); const struct glsl_type *glsl_vec4_type(void); const struct glsl_type *glsl_int_type(void); const struct glsl_type *glsl_uint_type(void); -- cgit v1.2.3