Fix #1720: Give an error for parameter mismatched image format.

This commit is contained in:
John Kessenich
2019-04-19 04:47:03 -06:00
parent 0e5d1bb66a
commit 08d61df040
10 changed files with 82 additions and 83 deletions

View File

@@ -131,9 +131,9 @@ layout(r32i) coherent volatile readonly uniform iimage2D qualim2;
void passrc()
{
passr(qualim1);
passr(qualim2); // ERROR, drops volatile
passr(iimg2D);
passr(qualim1); // ERROR, changing formats
passr(qualim2); // ERROR, drops volatile, ERROR, changing formats
passr(iimg2D); // ERROR, changing formats
}
layout(rg8i) uniform uimage2D i1bad; // ERROR, type mismatch