mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +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>
7 lines
164 B
WebGPU Shading Language
7 lines
164 B
WebGPU Shading Language
@stage(compute) @workgroup_size(1)
|
|
fn f() {
|
|
let a = vec3<bool>(true, true, false);
|
|
let b = vec3<bool>(true, false, true);
|
|
let r : vec3<bool> = a & b;
|
|
}
|