ofs | hex dump | ascii |
---|
0000 | 46 53 48 06 01 83 f2 e1 00 00 00 00 01 00 05 73 5f 74 65 78 10 00 00 00 00 00 0d 02 00 00 23 69 | FSH............s_tex..........#i |
0020 | 6e 63 6c 75 64 65 20 3c 6d 65 74 61 6c 5f 73 74 64 6c 69 62 3e 0a 23 69 6e 63 6c 75 64 65 20 3c | nclude.<metal_stdlib>.#include.< |
0040 | 73 69 6d 64 2f 73 69 6d 64 2e 68 3e 0a 0a 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 | simd/simd.h>..using.namespace.me |
0060 | 74 61 6c 3b 0a 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 0a 7b 0a 20 | tal;..struct.xlatMtlMain_out.{.. |
0080 | 20 20 20 66 6c 6f 61 74 34 20 62 67 66 78 5f 46 72 61 67 44 61 74 61 30 20 5b 5b 63 6f 6c 6f 72 | ...float4.bgfx_FragData0.[[color |
00a0 | 28 30 29 5d 5d 3b 0a 7d 3b 0a 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 69 6e | (0)]];.};..struct.xlatMtlMain_in |
00c0 | 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 20 76 5f 63 6f 6c 6f 72 30 20 5b 5b 75 73 65 72 28 6c 6f | .{.....float4.v_color0.[[user(lo |
00e0 | 63 6e 30 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 30 20 5b | cn0)]];.....float2.v_texcoord0.[ |
0100 | 5b 75 73 65 72 28 6c 6f 63 6e 31 29 5d 5d 3b 0a 7d 3b 0a 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 | [user(locn1)]];.};..fragment.xla |
0120 | 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 28 78 6c 61 74 4d 74 6c | tMtlMain_out.xlatMtlMain(xlatMtl |
0140 | 4d 61 69 6e 5f 69 6e 20 69 6e 20 5b 5b 73 74 61 67 65 5f 69 6e 5d 5d 2c 20 74 65 78 74 75 72 65 | Main_in.in.[[stage_in]],.texture |
0160 | 32 64 3c 66 6c 6f 61 74 3e 20 73 5f 74 65 78 20 5b 5b 74 65 78 74 75 72 65 28 30 29 5d 5d 2c 20 | 2d<float>.s_tex.[[texture(0)]],. |
0180 | 73 61 6d 70 6c 65 72 20 73 5f 74 65 78 53 61 6d 70 6c 65 72 20 5b 5b 73 61 6d 70 6c 65 72 28 30 | sampler.s_texSampler.[[sampler(0 |
01a0 | 29 5d 5d 29 0a 7b 0a 20 20 20 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 20 6f 75 74 20 3d | )]]).{.....xlatMtlMain_out.out.= |
01c0 | 20 7b 7d 3b 0a 20 20 20 20 6f 75 74 2e 62 67 66 78 5f 46 72 61 67 44 61 74 61 30 20 3d 20 73 5f | .{};.....out.bgfx_FragData0.=.s_ |
01e0 | 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 69 6e 2e 76 5f 74 65 | tex.sample(s_texSampler,.in.v_te |
0200 | 78 63 6f 6f 72 64 30 29 20 2a 20 69 6e 2e 76 5f 63 6f 6c 6f 72 30 3b 0a 20 20 20 20 72 65 74 75 | xcoord0).*.in.v_color0;.....retu |
0220 | 72 6e 20 6f 75 74 3b 0a 7d 0a 0a 00 00 00 00 | rn.out;.}...... |