18 using System.Collections.Generic;
25 private static EnumMap<ShaderToken> map;
29 map =
new EnumMap<ShaderToken>();
30 map.Load(
"GLSLKeywords.map");
35 text = text.Replace(
" ",
"");
37 if (!map.TryGetValue(text.ToUpper(), out token))
39 token = ShaderToken.IDENTIFIER;
47 if (!map.TryGetValue(text, out token))
49 token = ShaderToken.IDENTIFIER;
ShaderToken GetTokenFromIdentifier(string text)
ShaderToken GetTokenFromSemantics(string text)