mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
If the literal was constructed with an 'f', make sure we print it. Bug: tint:1504 Change-Id: I6f04e31a166919c07574db56b0a2063ce5b8ca5c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91965 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
14 lines
183 B
WebGPU Shading Language
14 lines
183 B
WebGPU Shading Language
fn main_1() {
|
|
var a : f32;
|
|
var b : f32;
|
|
a = 42.0f;
|
|
let x_11 : f32 = a;
|
|
b = degrees(x_11);
|
|
return;
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
|
fn main() {
|
|
main_1();
|
|
}
|