2021-07-15 20:29:09 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
struct Constants {
|
|
|
|
/* 0x0000 */ uint zero;
|
|
|
|
};
|
2022-02-09 23:55:51 +00:00
|
|
|
|
2021-07-15 20:29:09 +00:00
|
|
|
struct Result {
|
2021-10-28 15:00:39 +00:00
|
|
|
uint value;
|
2021-07-15 20:29:09 +00:00
|
|
|
};
|
2022-02-09 23:55:51 +00:00
|
|
|
|
2021-07-15 20:29:09 +00:00
|
|
|
struct tint_array_wrapper {
|
|
|
|
uint arr[3];
|
|
|
|
};
|
2022-02-09 23:55:51 +00:00
|
|
|
|
2021-07-15 20:29:09 +00:00
|
|
|
struct S {
|
|
|
|
tint_array_wrapper data;
|
|
|
|
};
|
|
|
|
|
2021-10-28 15:00:39 +00:00
|
|
|
kernel void tint_symbol(const constant Constants* tint_symbol_2 [[buffer(0)]]) {
|
2021-07-15 20:29:09 +00:00
|
|
|
thread S tint_symbol_1 = {};
|
2021-10-28 15:00:39 +00:00
|
|
|
tint_symbol_1.data.arr[(*(tint_symbol_2)).zero] = 0u;
|
2021-07-15 20:29:09 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|