diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2017-04-26 16:02:32 +0200 |
---|---|---|
committer | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2017-05-06 16:40:19 +0200 |
commit | c618f31065d9e9d0e19afab7de8202ef609a731d (patch) | |
tree | e171959fe281768a3dfe53d2afd814348442e127 /src | |
parent | 33931e4062b1f1a2373405033e7db5575c98eae8 (diff) |
glsl: make sampler/image scalar types
As a side effect, this will magically fix std140/std430 interfaces
for bindless samplers/images and will help for implementing the
explicit conversions with constructors.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index a81b8fe7dc2..04490872385 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -441,7 +441,7 @@ struct glsl_type { { return (vector_elements == 1) && (base_type >= GLSL_TYPE_UINT) - && (base_type <= GLSL_TYPE_BOOL); + && (base_type <= GLSL_TYPE_IMAGE); } /** |