ofs | hex dump | ascii |
---|
0000 | 46 53 48 04 6f 1e 3e 3c 00 00 96 03 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 | FSH.o.><......using.namespace.me |
0020 | 74 61 6c 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 7b | tal;.struct.xlatMtlShaderInput.{ |
0040 | 0a 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 30 3b 0a 7d 3b 0a 73 74 72 75 63 74 | ...float2.v_texcoord0;.};.struct |
0060 | 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 7b 0a 20 20 68 61 6c 66 34 20 67 | .xlatMtlShaderOutput.{...half4.g |
0080 | 6c 5f 46 72 61 67 43 6f 6c 6f 72 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 | l_FragColor;.};.struct.xlatMtlSh |
00a0 | 61 64 65 72 55 6e 69 66 6f 72 6d 20 7b 0a 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 | aderUniform.{.};.fragment.xlatMt |
00c0 | 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 20 28 78 6c 61 74 4d | lShaderOutput.xlatMtlMain.(xlatM |
00e0 | 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 5f 6d 74 6c 5f 69 20 5b 5b 73 74 61 67 65 5f 69 6e 5d | tlShaderInput._mtl_i.[[stage_in] |
0100 | 5d 2c 20 63 6f 6e 73 74 61 6e 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 6f 72 6d | ],.constant.xlatMtlShaderUniform |
0120 | 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 65 72 28 30 29 5d 5d 0a 20 20 2c 20 20 20 74 65 78 | &._mtl_u.[[buffer(0)]]...,...tex |
0140 | 74 75 72 65 32 64 3c 66 6c 6f 61 74 3e 20 73 5f 74 65 78 43 6f 6c 6f 72 30 20 5b 5b 74 65 78 74 | ture2d<float>.s_texColor0.[[text |
0160 | 75 72 65 28 30 29 5d 5d 2c 20 73 61 6d 70 6c 65 72 20 5f 6d 74 6c 73 6d 70 5f 73 5f 74 65 78 43 | ure(0)]],.sampler._mtlsmp_s_texC |
0180 | 6f 6c 6f 72 30 20 5b 5b 73 61 6d 70 6c 65 72 28 30 29 5d 5d 0a 20 20 2c 20 20 20 74 65 78 74 75 | olor0.[[sampler(0)]]...,...textu |
01a0 | 72 65 32 64 3c 66 6c 6f 61 74 3e 20 73 5f 74 65 78 43 6f 6c 6f 72 31 20 5b 5b 74 65 78 74 75 72 | re2d<float>.s_texColor1.[[textur |
01c0 | 65 28 31 29 5d 5d 2c 20 73 61 6d 70 6c 65 72 20 5f 6d 74 6c 73 6d 70 5f 73 5f 74 65 78 43 6f 6c | e(1)]],.sampler._mtlsmp_s_texCol |
01e0 | 6f 72 31 20 5b 5b 73 61 6d 70 6c 65 72 28 31 29 5d 5d 29 0a 7b 0a 20 20 78 6c 61 74 4d 74 6c 53 | or1.[[sampler(1)]]).{...xlatMtlS |
0200 | 68 61 64 65 72 4f 75 74 70 75 74 20 5f 6d 74 6c 5f 6f 3b 0a 20 20 68 61 6c 66 34 20 74 6d 70 76 | haderOutput._mtl_o;...half4.tmpv |
0220 | 61 72 5f 31 3b 0a 20 20 74 6d 70 76 61 72 5f 31 20 3d 20 68 61 6c 66 34 28 73 5f 74 65 78 43 6f | ar_1;...tmpvar_1.=.half4(s_texCo |
0240 | 6c 6f 72 30 2e 73 61 6d 70 6c 65 28 5f 6d 74 6c 73 6d 70 5f 73 5f 74 65 78 43 6f 6c 6f 72 30 2c | lor0.sample(_mtlsmp_s_texColor0, |
0260 | 20 28 66 6c 6f 61 74 32 29 28 5f 6d 74 6c 5f 69 2e 76 5f 74 65 78 63 6f 6f 72 64 30 29 29 29 3b | .(float2)(_mtl_i.v_texcoord0))); |
0280 | 0a 20 20 68 61 6c 66 34 20 74 6d 70 76 61 72 5f 32 3b 0a 20 20 74 6d 70 76 61 72 5f 32 20 3d 20 | ...half4.tmpvar_2;...tmpvar_2.=. |
02a0 | 68 61 6c 66 34 28 73 5f 74 65 78 43 6f 6c 6f 72 31 2e 73 61 6d 70 6c 65 28 5f 6d 74 6c 73 6d 70 | half4(s_texColor1.sample(_mtlsmp |
02c0 | 5f 73 5f 74 65 78 43 6f 6c 6f 72 31 2c 20 28 66 6c 6f 61 74 32 29 28 5f 6d 74 6c 5f 69 2e 76 5f | _s_texColor1,.(float2)(_mtl_i.v_ |
02e0 | 74 65 78 63 6f 6f 72 64 30 29 29 29 3b 0a 20 20 68 61 6c 66 34 20 74 6d 70 76 61 72 5f 33 3b 0a | texcoord0)));...half4.tmpvar_3;. |
0300 | 20 20 74 6d 70 76 61 72 5f 33 2e 78 79 7a 20 3d 20 28 74 6d 70 76 61 72 5f 31 2e 78 79 7a 20 2f | ..tmpvar_3.xyz.=.(tmpvar_1.xyz./ |
0320 | 20 63 6c 61 6d 70 20 28 74 6d 70 76 61 72 5f 31 2e 77 2c 20 28 68 61 6c 66 29 30 2e 30 30 30 31 | .clamp.(tmpvar_1.w,.(half)0.0001 |
0340 | 2c 20 28 68 61 6c 66 29 35 30 30 30 30 2e 30 29 29 3b 0a 20 20 74 6d 70 76 61 72 5f 33 2e 77 20 | ,.(half)50000.0));...tmpvar_3.w. |
0360 | 3d 20 74 6d 70 76 61 72 5f 32 2e 78 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 61 67 43 6f | =.tmpvar_2.x;..._mtl_o.gl_FragCo |
0380 | 6c 6f 72 20 3d 20 74 6d 70 76 61 72 5f 33 3b 0a 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b | lor.=.tmpvar_3;...return._mtl_o; |
03a0 | 0a 7d 0a 0a 00 | .}... |