File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Sources/EasyMetalShader/MetalPreLibrary Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,17 @@ struct RasterizerData {
64
64
float4 temp7;
65
65
float4 temp8;
66
66
float4 temp9;
67
+
68
+ // these variables are flat (no interpolation)
69
+ float4 flat1 [[flat]];
70
+ float4 flat2 [[flat]];
71
+ float4 flat3 [[flat]];
72
+ float4 flat4 [[flat]];
73
+ float4 flat5 [[flat]];
74
+ float4 flat6 [[flat]];
75
+ float4 flat7 [[flat]];
76
+ float4 flat8 [[flat]];
77
+ float4 flat9 [[flat]];
67
78
};
68
79
```
69
80
Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ struct RasterizerData {
22
22
float4 temp7;
23
23
float4 temp8;
24
24
float4 temp9;
25
+
26
+ float4 flat1 [[flat]];
27
+ float4 flat2 [[flat]];
28
+ float4 flat3 [[flat]];
29
+ float4 flat4 [[flat]];
30
+ float4 flat5 [[flat]];
31
+ float4 flat6 [[flat]];
32
+ float4 flat7 [[flat]];
33
+ float4 flat8 [[flat]];
34
+ float4 flat9 [[flat]];
25
35
};
26
36
"""
27
37
}
You can’t perform that action at this time.
0 commit comments