Commit c8db4f43 by ZhiqianXia

Cannot specify atomic counter with location.

parent 5c4f4211
...@@ -5767,6 +5767,8 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb ...@@ -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:
......
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