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

Method accStructCheck

glslang/MachineIndependent/ParseHelper.cpp:4940–4951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4938}
4939
4940void TParseContext::accStructCheck(const TSourceLoc& loc, const TType& type, const TString& identifier)
4941{
4942 if (type.getQualifier().storage == EvqUniform)
4943 return;
4944
4945 if (type.getBasicType() == EbtStruct && containsFieldWithBasicType(type, EbtAccStruct))
4946 error(loc, "non-uniform struct contains an accelerationStructureNV:", type.getBasicTypeString().c_str(), identifier.c_str());
4947 else if (type.getBasicType() == EbtAccStruct && type.getQualifier().storage != EvqUniform)
4948 error(loc, "accelerationStructureNV can only be used in uniform variables or function parameters:",
4949 type.getBasicTypeString().c_str(), identifier.c_str());
4950
4951}
4952
4953void TParseContext::hitObjectEXTCheck(const TSourceLoc & loc, const TType & type, const TString & identifier)
4954{

Callers

nothing calls this directly

Calls 4

errorFunction · 0.85
c_strMethod · 0.80
getBasicTypeStringMethod · 0.80
getBasicTypeMethod · 0.45

Tested by

no test coverage detected