2021-08-23 21:45:23 +00:00
|
|
|
struct S {
|
2022-03-28 14:31:22 +00:00
|
|
|
matrix : mat3x3<f32>,
|
|
|
|
vector : vec3<f32>,
|
2022-01-19 18:11:17 +00:00
|
|
|
}
|
2021-08-23 21:45:23 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@group(0) @binding(0) var<uniform> data : S;
|
2021-08-23 21:45:23 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(fragment)
|
2021-08-23 21:45:23 +00:00
|
|
|
fn main() {
|
|
|
|
let x = (data.matrix * data.vector);
|
|
|
|
}
|