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:
parent
e00e72ded1
commit
e723b45bca
4 changed files with 90 additions and 0 deletions
19
Test/spv.ShiftOps.frag
Normal file
19
Test/spv.ShiftOps.frag
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue