Implement specification change in 'restrict', allowing it to come and go across function calls.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@29195 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2014-12-11 00:17:42 +00:00
parent 1575e0d7c7
commit 6df2904391
5 changed files with 37 additions and 40 deletions

View File

@@ -127,12 +127,12 @@ void passr(coherent readonly iimage2D image)
}
layout(r32i) coherent readonly uniform iimage2D qualim1;
layout(r32i) coherent restrict readonly uniform iimage2D qualim2;
layout(r32i) coherent volatile readonly uniform iimage2D qualim2;
void passrc()
{
passr(qualim1);
passr(qualim2); // ERROR, drops restrict
passr(qualim2); // ERROR, drops volatile
passr(iimg2D);
}