2021-11-25 18:02:36 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
int foo() {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2022-02-09 23:55:51 +00:00
|
|
|
struct tint_array_wrapper {
|
|
|
|
float arr[4];
|
|
|
|
};
|
|
|
|
|
2021-11-25 18:02:36 +00:00
|
|
|
fragment void tint_symbol() {
|
|
|
|
tint_array_wrapper arr = {.arr={}};
|
|
|
|
int const a_save = foo();
|
|
|
|
for(; ; ) {
|
|
|
|
float const x = arr.arr[a_save];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|