mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 20:01:22 +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>
12 lines
281 B
WebGPU Shading Language
12 lines
281 B
WebGPU Shading Language
fn main_1() {
|
|
var m : mat3x3<f32> = mat3x3<f32>();
|
|
m = mat3x3<f32>(vec3<f32>(1.0f, 2.0f, 3.0f), vec3<f32>(4.0f, 5.0f, 6.0f), vec3<f32>(7.0f, 8.0f, 9.0f));
|
|
m[1i] = vec3<f32>(5.0f, 5.0f, 5.0f);
|
|
return;
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
|
fn main() {
|
|
main_1();
|
|
}
|