2021-06-17 09:10:04 +00:00
|
|
|
fn main_1() {
|
2022-01-05 20:24:22 +00:00
|
|
|
var m : mat3x3<f32> = mat3x3<f32>();
|
2021-05-18 10:28:48 +00:00
|
|
|
m = mat3x3<f32>(vec3<f32>(1.0, 2.0, 3.0), vec3<f32>(4.0, 5.0, 6.0), vec3<f32>(7.0, 8.0, 9.0));
|
2022-05-04 22:25:19 +00:00
|
|
|
m[1i] = vec3<f32>(5.0, 5.0, 5.0);
|
2021-05-18 10:28:48 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-06-17 09:10:04 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1, 1, 1)
|
2021-06-17 09:10:04 +00:00
|
|
|
fn main() {
|
|
|
|
main_1();
|
|
|
|
}
|