6 lines
102 B
WebGPU Shading Language
6 lines
102 B
WebGPU Shading Language
|
fn f(x : i32) -> i32 {
|
||
|
var a = array<i32, 8>(1, 2, 3, 4, 5, 6, 7, 8);
|
||
|
let i = x;
|
||
|
return a[i];
|
||
|
}
|