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

Method arrayOfArrayVersionCheck

glslang/MachineIndependent/ParseHelper.cpp:5699–5709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5697}
5698
5699void TParseContext::arrayOfArrayVersionCheck(const TSourceLoc& loc, const TArraySizes* sizes)
5700{
5701 if (sizes == nullptr || sizes->getNumDims() == 1)
5702 return;
5703
5704 const char* feature = "arrays of arrays";
5705
5706 requireProfile(loc, EEsProfile | ECoreProfile | ECompatibilityProfile, feature);
5707 profileRequires(loc, EEsProfile, 310, nullptr, feature);
5708 profileRequires(loc, ECoreProfile | ECompatibilityProfile, 430, nullptr, feature);
5709}
5710
5711//
5712// Do all the semantic checking for declaring or redeclaring an array, with and

Callers 1

yyparseFunction · 0.80

Calls 1

getNumDimsMethod · 0.80

Tested by

no test coverage detected