Merge pull request #2525 from ZhiqianXia/master

Cannot specify atomic counter with location.
This commit is contained in:
greg-lunarg 2021-02-22 17:36:30 -07:00 committed by GitHub
commit 6f7a8ebf76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5769,6 +5769,8 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb
error(loc, "can only specify on a uniform block", "push_constant", "");
if (qualifier.isShaderRecord())
error(loc, "can only specify on a buffer block", "shaderRecordNV", "");
if (qualifier.hasLocation() && type.isAtomic())
error(loc, "cannot specify on atomic counter", "location", "");
}
break;
default: