mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
Implemented in both the reader and writer with E2E tests. Other backends detect compound assignment and ICE for now. Bug: tint:1325 Change-Id: Ie3f51e03627a38b12bd1513c4bcf1bebb3282863 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/74363 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
15 lines
205 B
WebGPU Shading Language
15 lines
205 B
WebGPU Shading Language
var<private> a : i32;
|
|
var<private> b : f32;
|
|
|
|
fn foo(maybe_zero : i32) {
|
|
a /= 0;
|
|
a %= 0;
|
|
a /= maybe_zero;
|
|
a %= maybe_zero;
|
|
|
|
b /= 0.0;
|
|
b %= 0.0;
|
|
b /= f32(maybe_zero);
|
|
b %= f32(maybe_zero);
|
|
}
|