13 lines
160 B
WebGPU Shading Language
13 lines
160 B
WebGPU Shading Language
|
fn foo() -> i32 {
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
[[stage(fragment)]]
|
||
|
fn main() {
|
||
|
var arr = array<f32, 4>();
|
||
|
for (let a = &arr[foo()]; ;) {
|
||
|
let x = *a;
|
||
|
break;
|
||
|
}
|
||
|
}
|