ofs | hex dump | ascii |
---|
0000 | 56 53 48 04 4f 45 98 49 00 00 09 04 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 | VSH.OE.I......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 34 20 61 5f 63 6f 6c 6f 72 30 20 5b 5b 61 74 74 72 69 62 75 74 65 28 30 | ...float4.a_color0.[[attribute(0 |
0060 | 29 5d 5d 3b 0a 20 20 66 6c 6f 61 74 33 20 61 5f 70 6f 73 69 74 69 6f 6e 20 5b 5b 61 74 74 72 69 | )]];...float3.a_position.[[attri |
0080 | 62 75 74 65 28 31 29 5d 5d 3b 0a 20 20 66 6c 6f 61 74 32 20 61 5f 74 65 78 63 6f 6f 72 64 30 20 | bute(1)]];...float2.a_texcoord0. |
00a0 | 5b 5b 61 74 74 72 69 62 75 74 65 28 32 29 5d 5d 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 | [[attribute(2)]];.};.struct.xlat |
00c0 | 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 7b 0a 20 20 66 6c 6f 61 74 34 20 67 6c 5f 50 6f | MtlShaderOutput.{...float4.gl_Po |
00e0 | 73 69 74 69 6f 6e 20 5b 5b 70 6f 73 69 74 69 6f 6e 5d 5d 3b 0a 20 20 66 6c 6f 61 74 34 20 76 5f | sition.[[position]];...float4.v_ |
0100 | 63 6f 6c 6f 72 30 3b 0a 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 30 3b 0a 20 20 | color0;...float2.v_texcoord0;... |
0120 | 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 31 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c | float2.v_texcoord1;.};.struct.xl |
0140 | 61 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 6f 72 6d 20 7b 0a 20 20 66 6c 6f 61 74 34 78 34 20 | atMtlShaderUniform.{...float4x4. |
0160 | 75 5f 76 69 65 77 50 72 6f 6a 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 73 77 61 70 5f 78 79 3b 0a | u_viewProj;...float4.u_swap_xy;. |
0180 | 20 20 66 6c 6f 61 74 34 20 75 5f 73 68 61 64 6f 77 5f 75 76 5f 6f 66 66 73 65 74 3b 0a 7d 3b 0a | ..float4.u_shadow_uv_offset;.};. |
01a0 | 76 65 72 74 65 78 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 78 6c 61 74 4d | vertex.xlatMtlShaderOutput.xlatM |
01c0 | 74 6c 4d 61 69 6e 20 28 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 5f 6d 74 6c 5f | tlMain.(xlatMtlShaderInput._mtl_ |
01e0 | 69 20 5b 5b 73 74 61 67 65 5f 69 6e 5d 5d 2c 20 63 6f 6e 73 74 61 6e 74 20 78 6c 61 74 4d 74 6c | i.[[stage_in]],.constant.xlatMtl |
0200 | 53 68 61 64 65 72 55 6e 69 66 6f 72 6d 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 65 72 28 30 | ShaderUniform&._mtl_u.[[buffer(0 |
0220 | 29 5d 5d 29 0a 7b 0a 20 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 5f 6d 74 | )]]).{...xlatMtlShaderOutput._mt |
0240 | 6c 5f 6f 3b 0a 20 20 66 6c 6f 61 74 34 20 74 6d 70 76 61 72 5f 31 3b 0a 20 20 74 6d 70 76 61 72 | l_o;...float4.tmpvar_1;...tmpvar |
0260 | 5f 31 2e 7a 77 20 3d 20 66 6c 6f 61 74 32 28 30 2e 30 2c 20 31 2e 30 29 3b 0a 20 20 74 6d 70 76 | _1.zw.=.float2(0.0,.1.0);...tmpv |
0280 | 61 72 5f 31 2e 78 79 20 3d 20 5f 6d 74 6c 5f 69 2e 61 5f 70 6f 73 69 74 69 6f 6e 2e 78 79 3b 0a | ar_1.xy.=._mtl_i.a_position.xy;. |
02a0 | 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 50 6f 73 69 74 69 6f 6e 20 3d 20 28 5f 6d 74 6c 5f 75 2e 75 | .._mtl_o.gl_Position.=.(_mtl_u.u |
02c0 | 5f 76 69 65 77 50 72 6f 6a 20 2a 20 74 6d 70 76 61 72 5f 31 29 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e | _viewProj.*.tmpvar_1);..._mtl_o. |
02e0 | 76 5f 74 65 78 63 6f 6f 72 64 30 20 3d 20 5f 6d 74 6c 5f 69 2e 61 5f 74 65 78 63 6f 6f 72 64 30 | v_texcoord0.=._mtl_i.a_texcoord0 |
0300 | 3b 0a 20 20 66 6c 6f 61 74 32 20 74 6d 70 76 61 72 5f 32 3b 0a 20 20 69 66 20 28 28 5f 6d 74 6c | ;...float2.tmpvar_2;...if.((_mtl |
0320 | 5f 75 2e 75 5f 73 77 61 70 5f 78 79 2e 78 20 21 3d 20 30 2e 30 29 29 20 7b 0a 20 20 20 20 74 6d | _u.u_swap_xy.x.!=.0.0)).{.....tm |
0340 | 70 76 61 72 5f 32 20 3d 20 5f 6d 74 6c 5f 75 2e 75 5f 73 68 61 64 6f 77 5f 75 76 5f 6f 66 66 73 | pvar_2.=._mtl_u.u_shadow_uv_offs |
0360 | 65 74 2e 79 78 3b 0a 20 20 7d 20 65 6c 73 65 20 7b 0a 20 20 20 20 74 6d 70 76 61 72 5f 32 20 3d | et.yx;...}.else.{.....tmpvar_2.= |
0380 | 20 5f 6d 74 6c 5f 75 2e 75 5f 73 68 61 64 6f 77 5f 75 76 5f 6f 66 66 73 65 74 2e 78 79 3b 0a 20 | ._mtl_u.u_shadow_uv_offset.xy;.. |
03a0 | 20 7d 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 76 5f 74 65 78 63 6f 6f 72 64 31 20 3d 20 28 5f 6d 74 6c | .};..._mtl_o.v_texcoord1.=.(_mtl |
03c0 | 5f 69 2e 61 5f 70 6f 73 69 74 69 6f 6e 2e 78 79 20 2b 20 74 6d 70 76 61 72 5f 32 29 3b 0a 20 20 | _i.a_position.xy.+.tmpvar_2);... |
03e0 | 5f 6d 74 6c 5f 6f 2e 76 5f 63 6f 6c 6f 72 30 20 3d 20 5f 6d 74 6c 5f 69 2e 61 5f 63 6f 6c 6f 72 | _mtl_o.v_color0.=._mtl_i.a_color |
0400 | 30 3b 0a 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 | 0;...return._mtl_o;.}... |