SPV: Protect getStorageClass() with a test that the thing is pointer.

This commit is contained in:
John Kessenich
2015-12-08 20:48:49 -07:00
parent 33661450c7
commit e00e72ded1
6 changed files with 128 additions and 5 deletions

17
Test/spv.bool.vert Normal file
View File

@@ -0,0 +1,17 @@
#version 450
const bool condition = false;
uniform ubname {
bool b;
} ubinst;
bool foo(bool b)
{
return b != condition;
}
void main()
{
gl_Position = foo(ubinst.b) ? vec4(0.0) : vec4(1.0);
}