mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-28 10:11:33 +00:00
Unsuffixed integer literals are currently treated as i32, but will shortly become AbstractInteger. To keep tests behaving identically to how they are currently, change all test literals to using either 'i' or 'u' suffixes. Bug: tint:1504 Change-Id: Ic373d18ce1c718a16b6905568aec89da3641d36b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88845 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
15 lines
324 B
WebGPU Shading Language
15 lines
324 B
WebGPU Shading Language
fn main_1() {
|
|
var v : vec3<f32> = vec3<f32>();
|
|
let x_14 : f32 = v.y;
|
|
let x_16 : vec3<f32> = v;
|
|
let x_17 : vec2<f32> = vec2<f32>(x_16.x, x_16.z);
|
|
let x_18 : vec3<f32> = v;
|
|
let x_19 : vec3<f32> = vec3<f32>(x_18.x, x_18.z, x_18.y);
|
|
return;
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1i, 1i, 1i)
|
|
fn main() {
|
|
main_1();
|
|
}
|