Commit 29b2a081 by ZhiqianXia

Cannot specify atomic counter with location.

parent c8db4f43
......@@ -5767,8 +5767,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 atomic counter with location","atomic","");
if (qualifier.hasLocation() && type.isAtomic())
error(loc, "cannot specify on atomic counter", "atomic_uint", "");
}
break;
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment