MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / arrayIndexCheck

Method arrayIndexCheck

glslang/MachineIndependent/ParseHelper.cpp:4259–4268  ·  view source on GitHub ↗

Both test, and if necessary spit out an error, to see if the node is really supported as an array index.

Source from the content-addressed store, hash-verified

4257// supported as an array index.
4258//
4259void 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

Callers 1

yyparseFunction · 0.80

Calls 1

getBasicTypeMethod · 0.45

Tested by

no test coverage detected