diff options
author | Timothy Arceri <timothy.arceri@collabora.com> | 2016-06-10 12:50:45 +1000 |
---|---|---|
committer | Timothy Arceri <timothy.arceri@collabora.com> | 2016-07-07 10:26:43 +1000 |
commit | 20e935e6f62174fc6196241c2b026e9f45345549 (patch) | |
tree | 702731ab254b25369743973f17ffd497e208bdfc /src/compiler/nir_types.cpp | |
parent | 9d9b0b54cdc212c372ac67cc14d7ba1a16cc69ef (diff) |
nir: add glsl_double_type() helper
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/nir_types.cpp')
-rw-r--r-- | src/compiler/nir_types.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -251,6 +251,12 @@ glsl_float_type(void) } const glsl_type * +glsl_double_type(void) +{ + return glsl_type::double_type; +} + +const glsl_type * glsl_vec_type(unsigned n) { return glsl_type::vec(n); |