Cannot specify atomic counter with location.
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
This commit is contained in:
parent
5c4f421121
commit
c8db4f437a
1 changed files with 2 additions and 0 deletions
|
|
@ -5767,6 +5767,8 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb
|
||||||
error(loc, "can only specify on a uniform block", "push_constant", "");
|
error(loc, "can only specify on a uniform block", "push_constant", "");
|
||||||
if (qualifier.isShaderRecord())
|
if (qualifier.isShaderRecord())
|
||||||
error(loc, "can only specify on a buffer block", "shaderRecordNV", "");
|
error(loc, "can only specify on a buffer block", "shaderRecordNV", "");
|
||||||
|
if (qualifier.hasLocation() && type.isAtomic())
|
||||||
|
error(loc, "cannot specify atomic counter with location","atomic","");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue