36 lines
909 B
Plaintext
36 lines
909 B
Plaintext
|
#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)]];
|
||
|
};
|
||
|
|
||
|
vertex tint_symbol vert_main() {
|
||
|
Interface const tint_symbol_1 = {};
|
||
|
tint_symbol const tint_symbol_5 = {.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_5;
|
||
|
}
|
||
|
|
||
|
fragment void frag_main(float4 tint_symbol_3 [[position]], tint_symbol_4 tint_symbol_2 [[stage_in]]) {
|
||
|
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};
|
||
|
return;
|
||
|
}
|
||
|
|