Commit 5100efdf by ZhiqianXia

Cannot specify atomic counter with location.

parent 29b2a081
...@@ -5768,7 +5768,7 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb ...@@ -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:
......
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