ofs | hex dump | ascii |
---|
0000 | 56 53 48 06 00 00 00 00 01 83 f2 e1 01 00 0a 75 5f 76 69 65 77 50 72 6f 6a 04 01 00 00 04 00 12 | VSH............u_viewProj....... |
0020 | 03 00 00 23 69 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 | ...#include.<metal_stdlib>.#incl |
0040 | 75 64 65 20 3c 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 | ude.<simd/simd.h>..using.namespa |
0060 | 63 65 20 6d 65 74 61 6c 3b 0a 0a 73 74 72 75 63 74 20 5f 47 6c 6f 62 61 6c 0a 7b 0a 20 20 20 20 | ce.metal;..struct._Global.{..... |
0080 | 66 6c 6f 61 74 34 78 34 20 75 5f 76 69 65 77 50 72 6f 6a 3b 0a 7d 3b 0a 0a 73 74 72 75 63 74 20 | float4x4.u_viewProj;.};..struct. |
00a0 | 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 20 5f 65 6e | xlatMtlMain_out.{.....float4._en |
00c0 | 74 72 79 50 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 63 6f 6c 6f 72 30 20 5b 5b 75 73 65 72 28 6c | tryPointOutput_v_color0.[[user(l |
00e0 | 6f 63 6e 30 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 5f 65 6e 74 72 79 50 6f 69 6e 74 4f | ocn0)]];.....float2._entryPointO |
0100 | 75 74 70 75 74 5f 76 5f 74 65 78 63 6f 6f 72 64 30 20 5b 5b 75 73 65 72 28 6c 6f 63 6e 31 29 5d | utput_v_texcoord0.[[user(locn1)] |
0120 | 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 67 6c 5f 50 6f 73 69 74 69 6f 6e 20 5b 5b 70 6f 73 69 | ];.....float4.gl_Position.[[posi |
0140 | 74 69 6f 6e 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 | tion]];.};..struct.xlatMtlMain_i |
0160 | 6e 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 20 61 5f 63 6f 6c 6f 72 30 20 5b 5b 61 74 74 72 69 62 | n.{.....float4.a_color0.[[attrib |
0180 | 75 74 65 28 30 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 33 20 61 5f 70 6f 73 69 74 69 6f 6e 20 | ute(0)]];.....float3.a_position. |
01a0 | 5b 5b 61 74 74 72 69 62 75 74 65 28 31 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 61 5f 74 | [[attribute(1)]];.....float2.a_t |
01c0 | 65 78 63 6f 6f 72 64 30 20 5b 5b 61 74 74 72 69 62 75 74 65 28 32 29 5d 5d 3b 0a 7d 3b 0a 0a 76 | excoord0.[[attribute(2)]];.};..v |
01e0 | 65 72 74 65 78 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 20 78 6c 61 74 4d 74 6c 4d 61 69 | ertex.xlatMtlMain_out.xlatMtlMai |
0200 | 6e 28 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 69 6e 20 69 6e 20 5b 5b 73 74 61 67 65 5f 69 6e 5d 5d | n(xlatMtlMain_in.in.[[stage_in]] |
0220 | 2c 20 63 6f 6e 73 74 61 6e 74 20 5f 47 6c 6f 62 61 6c 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 | ,.constant._Global&._mtl_u.[[buf |
0240 | 66 65 72 28 30 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 | fer(0)]]).{.....xlatMtlMain_out. |
0260 | 6f 75 74 20 3d 20 7b 7d 3b 0a 20 20 20 20 6f 75 74 2e 67 6c 5f 50 6f 73 69 74 69 6f 6e 20 3d 20 | out.=.{};.....out.gl_Position.=. |
0280 | 5f 6d 74 6c 5f 75 2e 75 5f 76 69 65 77 50 72 6f 6a 20 2a 20 66 6c 6f 61 74 34 28 69 6e 2e 61 5f | _mtl_u.u_viewProj.*.float4(in.a_ |
02a0 | 70 6f 73 69 74 69 6f 6e 2e 78 79 2c 20 30 2e 30 2c 20 31 2e 30 29 3b 0a 20 20 20 20 6f 75 74 2e | position.xy,.0.0,.1.0);.....out. |
02c0 | 5f 65 6e 74 72 79 50 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 63 6f 6c 6f 72 30 20 3d 20 69 6e 2e | _entryPointOutput_v_color0.=.in. |
02e0 | 61 5f 63 6f 6c 6f 72 30 3b 0a 20 20 20 20 6f 75 74 2e 5f 65 6e 74 72 79 50 6f 69 6e 74 4f 75 74 | a_color0;.....out._entryPointOut |
0300 | 70 75 74 5f 76 5f 74 65 78 63 6f 6f 72 64 30 20 3d 20 69 6e 2e 61 5f 74 65 78 63 6f 6f 72 64 30 | put_v_texcoord0.=.in.a_texcoord0 |
0320 | 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 6f 75 74 3b 0a 7d 0a 0a 00 03 05 00 01 00 10 00 40 00 | ;.....return.out;.}..........@. |