SPV: Continue to fix the issue of bool -> uint32
For short-circuit operator (&& and ||), the conversion is missing.
This commit is contained in:
@@ -16,6 +16,8 @@ void foo(bvec4 paramb4, out bvec2 paramb2)
|
||||
paramb2 = bvec2(b1);
|
||||
}
|
||||
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
b2 = bvec2(0.0);
|
||||
@@ -23,4 +25,7 @@ void main()
|
||||
b2 = bvec2(b4.x);
|
||||
if (b2.x)
|
||||
foo(b4, b2);
|
||||
|
||||
fragColor = vec4(b4.x && b4.y);
|
||||
fragColor -= vec4(b4.x || b4.y);
|
||||
}
|
||||
Reference in New Issue
Block a user