Both test, and if necessary spit out an error, to see if the node is really supported as an array index.
| 4257 | // supported as an array index. |
| 4258 | // |
| 4259 | void TParseContext::arrayIndexCheck(const TIntermTyped* node, const char* token) |
| 4260 | { |
| 4261 | auto from_type = node->getBasicType(); |
| 4262 | |
| 4263 | if ((from_type == EbtInt64 || from_type == EbtUint64) && |
| 4264 | extensionTurnedOn(E_GL_EXT_shader_64bit_indexing)) |
| 4265 | return; |
| 4266 | |
| 4267 | integerCheck(node, token); |
| 4268 | } |
| 4269 | |
| 4270 | // |
| 4271 | // Both test, and if necessary spit out an error, to see if we are currently |