| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
struct main0_out |
| 7 |
{ |
| 8 |
float4 PLSOut0 [[color(0)]]; |
| 9 |
float4 PLSOut1 [[color(1)]]; |
| 10 |
float4 PLSOut2 [[color(2)]]; |
| 11 |
float4 PLSOut3 [[color(3)]]; |
| 12 |
}; |
| 13 |
|
| 14 |
struct main0_in |
| 15 |
{ |
| 16 |
float4 PLSIn0 [[user(locn0)]]; |
| 17 |
float4 PLSIn1 [[user(locn1)]]; |
| 18 |
float4 PLSIn2 [[user(locn2)]]; |
| 19 |
float4 PLSIn3 [[user(locn3)]]; |
| 20 |
}; |
| 21 |
|
| 22 |
fragment main0_out main0(main0_in in [[stage_in]]) |
| 23 |
{ |
| 24 |
main0_out out = {}; |
| 25 |
out.PLSOut0 = in.PLSIn0 * 2.0; |
| 26 |
out.PLSOut1 = in.PLSIn1 * 6.0; |
| 27 |
out.PLSOut2 = in.PLSIn2 * 7.0; |
| 28 |
out.PLSOut3 = in.PLSIn3 * 4.0; |
| 29 |
return out; |
| 30 |
} |
| 31 |
|