summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl_types.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-02-09 18:19:20 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2016-02-13 17:22:36 -0800
commit954d46184fad1d09b50bb03717f2583e8fabf635 (patch)
treea5efc5be6f3596ef863040fdef14e366d61fd15c /src/compiler/glsl_types.h
parent95ea9f770878517364ac2161eb943afbc77bfef9 (diff)
downloadexternal_mesa3d-954d46184fad1d09b50bb03717f2583e8fabf635.zip
external_mesa3d-954d46184fad1d09b50bb03717f2583e8fabf635.tar.gz
external_mesa3d-954d46184fad1d09b50bb03717f2583e8fabf635.tar.bz2
glsl/types: Add a helper for getting image types
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/compiler/glsl_types.h')
-rw-r--r--src/compiler/glsl_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h
index 7bc0827..b0ef031 100644
--- a/src/compiler/glsl_types.h
+++ b/src/compiler/glsl_types.h
@@ -251,6 +251,8 @@ struct glsl_type {
bool array,
glsl_base_type type);
+ static const glsl_type *get_image_instance(enum glsl_sampler_dim dim,
+ bool array, glsl_base_type type);
/**
* Get the instance of an array type