Merge pull request #2525 from ZhiqianXia/master
Cannot specify atomic counter with location.
This commit is contained in:
commit
6f7a8ebf76
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue