dawn-cmake/test/expressions/index/let/var/literal/array.wgsl

6 lines
95 B
WebGPU Shading Language

fn f() -> i32 {
var a = array<i32, 8>(1, 2, 3, 4, 5, 6, 7, 8);
let i = 1;
return a[i];
}