2022-11-24 05:25:35 +00:00
|
|
|
enable f16;
|
2022-08-03 08:45:25 +00:00
|
|
|
|
|
|
|
struct S {
|
2022-11-24 05:25:35 +00:00
|
|
|
matrix : mat3x3<f16>,
|
|
|
|
vector : vec3<f16>,
|
|
|
|
}
|
2022-08-03 08:45:25 +00:00
|
|
|
|
2022-11-24 05:25:35 +00:00
|
|
|
@group(0) @binding(0) var<uniform> data : S;
|
2022-08-03 08:45:25 +00:00
|
|
|
|
2022-11-24 05:25:35 +00:00
|
|
|
@fragment
|
|
|
|
fn main() {
|
|
|
|
let x = (data.matrix * data.vector);
|
|
|
|
}
|