7 lines
127 B
WebGPU Shading Language
7 lines
127 B
WebGPU Shading Language
|
[[stage(compute)]]
|
||
|
fn main() {
|
||
|
var v : vec3<f32> = vec3<f32>(1., 2., 3.);
|
||
|
let f : ptr<function, f32> = &v.y;
|
||
|
*f = 5.0;
|
||
|
}
|