SPV: Scalar smear operation should use type of the scalar to make the

expected vector type when the provided vector type is incompatible with
the scalar.
This commit is contained in:
Rex Xu 2015-12-07 19:07:17 +08:00
parent e00e72ded1
commit e723b45bca
4 changed files with 90 additions and 0 deletions

19
Test/spv.ShiftOps.frag Normal file
View file

@ -0,0 +1,19 @@
#version 450
uniform int i1;
uniform uint u1;
uniform ivec3 i3;
uniform uvec3 u3;
out ivec3 icolor;
out uvec3 ucolor;
void main()
{
icolor = i3 << u1;
icolor <<= 4u;
ucolor = u3 >> i1;
ucolor >>= 5;
}