2021-06-29 13:36:05 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
struct Interface {
|
|
|
|
int i;
|
|
|
|
uint u;
|
|
|
|
int4 vi;
|
|
|
|
uint4 vu;
|
|
|
|
float4 pos;
|
|
|
|
};
|
|
|
|
struct tint_symbol {
|
|
|
|
int i [[user(locn0)]];
|
|
|
|
uint u [[user(locn1)]];
|
|
|
|
int4 vi [[user(locn2)]];
|
|
|
|
uint4 vu [[user(locn3)]];
|
|
|
|
float4 pos [[position]];
|
|
|
|
};
|
|
|
|
struct tint_symbol_4 {
|
|
|
|
int i [[user(locn0)]];
|
|
|
|
uint u [[user(locn1)]];
|
|
|
|
int4 vi [[user(locn2)]];
|
|
|
|
uint4 vu [[user(locn3)]];
|
|
|
|
};
|
2021-06-29 18:05:25 +00:00
|
|
|
struct tint_symbol_5 {
|
|
|
|
int value [[color(0)]];
|
|
|
|
};
|
2021-06-29 13:36:05 +00:00
|
|
|
|
|
|
|
vertex tint_symbol vert_main() {
|
|
|
|
Interface const tint_symbol_1 = {};
|
2021-06-29 18:05:25 +00:00
|
|
|
tint_symbol const tint_symbol_6 = {.i=tint_symbol_1.i, .u=tint_symbol_1.u, .vi=tint_symbol_1.vi, .vu=tint_symbol_1.vu, .pos=tint_symbol_1.pos};
|
|
|
|
return tint_symbol_6;
|
2021-06-29 13:36:05 +00:00
|
|
|
}
|
|
|
|
|
2021-06-29 18:05:25 +00:00
|
|
|
fragment tint_symbol_5 frag_main(float4 tint_symbol_3 [[position]], tint_symbol_4 tint_symbol_2 [[stage_in]]) {
|
2021-06-29 13:36:05 +00:00
|
|
|
Interface const inputs = {.i=tint_symbol_2.i, .u=tint_symbol_2.u, .vi=tint_symbol_2.vi, .vu=tint_symbol_2.vu, .pos=tint_symbol_3};
|
2021-06-29 18:05:25 +00:00
|
|
|
tint_symbol_5 const tint_symbol_7 = {.value=inputs.i};
|
|
|
|
return tint_symbol_7;
|
2021-06-29 13:36:05 +00:00
|
|
|
}
|
|
|
|
|