blob: 4f68cb49ae39b46c233f6f7e943d86b0416346a1 [file] [log] [blame]
James Pricef8e0b7d2021-06-28 23:04:43 +00001#include <metal_stdlib>
James Price545f4e02021-06-28 23:04:43 +00002
James Pricef8e0b7d2021-06-28 23:04:43 +00003using namespace metal;
4struct In {
5 float none;
6 float flat;
7 float perspective_center;
8 float perspective_centroid;
9 float perspective_sample;
10 float linear_center;
11 float linear_centroid;
12 float linear_sample;
13};
Ben Clayton8ec32a62022-02-09 23:55:51 +000014
James Pricef8e0b7d2021-06-28 23:04:43 +000015struct tint_symbol_2 {
16 float none [[user(locn0)]];
17 float flat [[user(locn1)]] [[flat]];
18 float perspective_center [[user(locn2)]] [[center_perspective]];
19 float perspective_centroid [[user(locn3)]] [[centroid_perspective]];
20 float perspective_sample [[user(locn4)]] [[sample_perspective]];
21 float linear_center [[user(locn5)]] [[center_no_perspective]];
22 float linear_centroid [[user(locn6)]] [[centroid_no_perspective]];
23 float linear_sample [[user(locn7)]] [[sample_no_perspective]];
24};
25
James Pricea5d73ce2021-08-04 22:15:28 +000026void tint_symbol_inner(In in) {
27}
28
James Pricef8e0b7d2021-06-28 23:04:43 +000029fragment void tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) {
James Pricea5d73ce2021-08-04 22:15:28 +000030 In const tint_symbol_3 = {.none=tint_symbol_1.none, .flat=tint_symbol_1.flat, .perspective_center=tint_symbol_1.perspective_center, .perspective_centroid=tint_symbol_1.perspective_centroid, .perspective_sample=tint_symbol_1.perspective_sample, .linear_center=tint_symbol_1.linear_center, .linear_centroid=tint_symbol_1.linear_centroid, .linear_sample=tint_symbol_1.linear_sample};
31 tint_symbol_inner(tint_symbol_3);
James Pricef8e0b7d2021-06-28 23:04:43 +000032 return;
33}
James Price545f4e02021-06-28 23:04:43 +000034