shader: Add more shadowing tests

This commit is contained in:
Hajime Hoshi 2020-06-01 03:24:43 +09:00
parent 37cc30bc38
commit 909ba638a3

View File

@ -88,6 +88,11 @@ func Foo(foo vec2) vec4 {
var foo vec4
r.z = foo.z
}
{
r.y = foo.y
var foo vec4
r.z = foo.z
}
}
return r
}`,
@ -101,6 +106,11 @@ func Foo(foo vec2) vec4 {
(l2).y = (l3).y;
(l2).z = (l4).z;
}
{
vec4 l4 = vec4(0.0);
(l2).y = (l3).y;
(l2).z = (l4).z;
}
}
l1 = l2;
return;