13 lines
193 B
WebGPU Shading Language
13 lines
193 B
WebGPU Shading Language
|
[[block]]
|
||
|
struct S {
|
||
|
matrix : mat3x3<f32>;
|
||
|
vector : vec3<f32>;
|
||
|
};
|
||
|
|
||
|
[[group(0), binding(0)]] var<uniform> data : S;
|
||
|
|
||
|
[[stage(fragment)]]
|
||
|
fn main() {
|
||
|
let x = (data.matrix * data.vector);
|
||
|
}
|