6 lines
89 B
WebGPU Shading Language
6 lines
89 B
WebGPU Shading Language
|
fn f(x : i32) -> f32 {
|
||
|
var v = vec3<f32>(1.0, 2.0, 3.0);
|
||
|
let i = x;
|
||
|
return v[i];
|
||
|
}
|