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

Method arrayQualifierError

glslang/MachineIndependent/ParseHelper.cpp:5561–5574  ·  view source on GitHub ↗

See if this qualifier can be an array. Returns true if there is an error.

Source from the content-addressed store, hash-verified

5559// Returns true if there is an error.
5560//
5561bool TParseContext::arrayQualifierError(const TSourceLoc& loc, const TQualifier& qualifier)
5562{
5563 if (qualifier.storage == EvqConst) {
5564 profileRequires(loc, ENoProfile, 120, E_GL_3DL_array_objects, "const array");
5565 profileRequires(loc, EEsProfile, 300, nullptr, "const array");
5566 }
5567
5568 if (qualifier.storage == EvqVaryingIn && language == EShLangVertex) {
5569 requireProfile(loc, ~EEsProfile, "vertex input arrays");
5570 profileRequires(loc, ENoProfile, 150, nullptr, "vertex input arrays");
5571 }
5572
5573 return false;
5574}
5575
5576//
5577// See if this qualifier and type combination can be an array.

Callers 1

yyparseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected