See if this qualifier can be an array. Returns true if there is an error.
| 5559 | // Returns true if there is an error. |
| 5560 | // |
| 5561 | bool 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. |