ofs | hex dump | ascii |
---|
0000 | 46 53 48 06 01 83 f2 e1 00 00 00 00 00 00 42 03 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 | FSH...........B...using.namespac |
0020 | 65 20 6d 65 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 | e.metal;.struct.xlatMtlShaderInp |
0040 | 75 74 20 7b 0a 20 20 66 6c 6f 61 74 34 20 76 5f 63 6f 6c 6f 72 30 3b 0a 20 20 66 6c 6f 61 74 32 | ut.{...float4.v_color0;...float2 |
0060 | 20 76 5f 74 65 78 63 6f 6f 72 64 30 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 | .v_texcoord0;.};.struct.xlatMtlS |
0080 | 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 46 72 61 67 43 6f | haderOutput.{...float4.gl_FragCo |
00a0 | 6c 6f 72 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 | lor;.};.struct.xlatMtlShaderUnif |
00c0 | 6f 72 6d 20 7b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 69 6e 76 5f 74 65 78 5f 73 69 7a 65 31 3b 0a | orm.{...float4.u_inv_tex_size1;. |
00e0 | 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 | };.fragment.xlatMtlShaderOutput. |
0100 | 78 6c 61 74 4d 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 | xlatMtlMain.(xlatMtlShaderInput. |
0120 | 5f 6d 74 6c 5f 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 | _mtl_i.[[stage_in]],.constant.xl |
0140 | 61 74 4d 74 6c 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 | atMtlShaderUniform&._mtl_u.[[buf |
0160 | 66 65 72 28 30 29 5d 5d 0a 20 20 2c 20 20 20 74 65 78 74 75 72 65 32 64 3c 66 6c 6f 61 74 3e 20 | fer(0)]]...,...texture2d<float>. |
0180 | 73 5f 74 65 78 20 5b 5b 74 65 78 74 75 72 65 28 30 29 5d 5d 2c 20 73 61 6d 70 6c 65 72 20 5f 6d | s_tex.[[texture(0)]],.sampler._m |
01a0 | 74 6c 73 6d 70 5f 73 5f 74 65 78 20 5b 5b 73 61 6d 70 6c 65 72 28 30 29 5d 5d 0a 20 20 2c 20 20 | tlsmp_s_tex.[[sampler(0)]]...,.. |
01c0 | 20 74 65 78 74 75 72 65 32 64 3c 66 6c 6f 61 74 3e 20 73 5f 70 61 6c 20 5b 5b 74 65 78 74 75 72 | .texture2d<float>.s_pal.[[textur |
01e0 | 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 70 61 6c 20 5b 5b | e(1)]],.sampler._mtlsmp_s_pal.[[ |
0200 | 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 68 61 64 65 72 4f | sampler(1)]]).{...xlatMtlShaderO |
0220 | 75 74 70 75 74 20 5f 6d 74 6c 5f 6f 3b 0a 20 20 66 6c 6f 61 74 34 20 74 6d 70 76 61 72 5f 31 20 | utput._mtl_o;...float4.tmpvar_1. |
0240 | 3d 20 30 3b 0a 20 20 74 6d 70 76 61 72 5f 31 2e 77 20 3d 20 31 2e 30 3b 0a 20 20 74 6d 70 76 61 | =.0;...tmpvar_1.w.=.1.0;...tmpva |
0260 | 72 5f 31 2e 78 79 7a 20 3d 20 73 5f 70 61 6c 2e 73 61 6d 70 6c 65 28 5f 6d 74 6c 73 6d 70 5f 73 | r_1.xyz.=.s_pal.sample(_mtlsmp_s |
0280 | 5f 70 61 6c 2c 20 28 66 6c 6f 61 74 32 29 28 28 28 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 5f 6d | _pal,.(float2)(((s_tex.sample(_m |
02a0 | 74 6c 73 6d 70 5f 73 5f 74 65 78 2c 20 28 66 6c 6f 61 74 32 29 28 5f 6d 74 6c 5f 69 2e 76 5f 74 | tlsmp_s_tex,.(float2)(_mtl_i.v_t |
02c0 | 65 78 63 6f 6f 72 64 30 29 29 2e 78 79 20 2a 20 66 6c 6f 61 74 32 28 32 35 36 2e 30 2c 20 32 35 | excoord0)).xy.*.float2(256.0,.25 |
02e0 | 36 2e 30 29 29 20 2a 20 5f 6d 74 6c 5f 75 2e 75 5f 69 6e 76 5f 74 65 78 5f 73 69 7a 65 31 2e 78 | 6.0)).*._mtl_u.u_inv_tex_size1.x |
0300 | 79 29 29 29 2e 78 79 7a 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 61 67 43 6f 6c 6f 72 20 | y))).xyz;..._mtl_o.gl_FragColor. |
0320 | 3d 20 28 74 6d 70 76 61 72 5f 31 20 2a 20 5f 6d 74 6c 5f 69 2e 76 5f 63 6f 6c 6f 72 30 29 3b 0a | =.(tmpvar_1.*._mtl_i.v_color0);. |
0340 | 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 | ..return._mtl_o;.}... |