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

5 lines
82 B
WebGPU Shading Language

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