Cannot specify atomic counter with location.
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
This commit is contained in:
parent
29b2a08133
commit
5100efdfa9
1 changed files with 1 additions and 1 deletions
|
|
@ -5768,7 +5768,7 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb
|
||||||
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())
|
if (qualifier.hasLocation() && type.isAtomic())
|
||||||
error(loc, "cannot specify on atomic counter", "atomic_uint", "");
|
error(loc, "cannot specify on atomic counter", "location", "");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue