mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-17 12:51:28 +00:00
The bitwise-and and bitwise-or binary operators on booleans result in an integer. Explicitly cast this back to a boolean. Fixed: tint:1540 Fixed: tint:1541 Change-Id: I395176f291e6080c88b8cff18e14ed6cd1234074 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90501 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com>
14 lines
245 B
GLSL
14 lines
245 B
GLSL
#version 310 es
|
|
|
|
void f() {
|
|
bvec3 a = bvec3(true, true, false);
|
|
bvec3 b = bvec3(true, false, true);
|
|
bvec3 r = bvec3(uvec3(a) & uvec3(b));
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
f();
|
|
return;
|
|
}
|