| 4938 | } |
| 4939 | |
| 4940 | void 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 | |
| 4953 | void TParseContext::hitObjectEXTCheck(const TSourceLoc & loc, const TType & type, const TString & identifier) |
| 4954 | { |
nothing calls this directly
no test coverage detected