diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-24 17:18:56 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-24 17:18:56 -0700 |
commit | 8d95e66cf78921cd067c4bcf6a1053a7ec3a2ed4 (patch) | |
tree | e0353699e7ce0f65167d0d89a94621a220220d2b /src/mesa/shader/slang/slang_typeinfo.c | |
parent | 0fab514ff5e7887767936427b5e02b676abebf3a (diff) |
mesa: added support for GLSL 1.20 array.length() method
This is the only method supported in GLSL 1.20 so we take a few short-cuts.
Diffstat (limited to 'src/mesa/shader/slang/slang_typeinfo.c')
-rw-r--r-- | src/mesa/shader/slang/slang_typeinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_typeinfo.c b/src/mesa/shader/slang/slang_typeinfo.c index b2f0f14995..b1afd969d9 100644 --- a/src/mesa/shader/slang/slang_typeinfo.c +++ b/src/mesa/shader/slang/slang_typeinfo.c @@ -630,6 +630,12 @@ _slang_typeof_operation_(slang_operation * op, } } break; + case SLANG_OPER_METHOD: + /* at this time, GLSL 1.20 only has one method: array.length() + * which returns an integer. + */ + ti->spec.type = SLANG_SPEC_INT; + break; case SLANG_OPER_FIELD: { slang_typeinfo _ti; |