summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/runtime/shaders/metal/fs_sms_shadow_pd.bin
blob: 4d4b4469aceccf011e2dd5db6fcc0483196a7522 (plain)
ofshex dumpascii
0000 46 53 48 04 70 94 72 f8 00 00 ad 02 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 FSH.p.r.......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 76 5f 70 6f 73 69 74 69 6f 6e 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 ...float4.v_position;.};.struct.
0060 78 6c 61 74 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 xlatMtlShaderOutput.{...float4.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 20 20 66 6c 6f 61 74 34 20 75 5f 64 65 70 74 68 53 63 aderUniform.{...float4.u_depthSc
00c0 61 6c 65 4f 66 66 73 65 74 3b 0a 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 6c 53 68 aleOffset;.};.fragment.xlatMtlSh
00e0 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 74 6c 53 aderOutput.xlatMtlMain.(xlatMtlS
0100 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 5d 2c 20 haderInput._mtl_i.[[stage_in]],.
0120 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 26 20 5f constant.xlatMtlShaderUniform&._
0140 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 65 72 28 30 29 5d 5d 29 0a 7b 0a 20 20 78 6c 61 74 4d 74 6c mtl_u.[[buffer(0)]]).{...xlatMtl
0160 53 68 61 64 65 72 4f 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 ShaderOutput._mtl_o;...float4.tm
0180 70 76 61 72 5f 31 3b 0a 20 20 74 6d 70 76 61 72 5f 31 20 3d 20 66 72 61 63 74 28 28 28 0a 20 20 pvar_1;...tmpvar_1.=.fract(((...
01a0 20 20 28 28 5f 6d 74 6c 5f 69 2e 76 5f 70 6f 73 69 74 69 6f 6e 2e 7a 20 2f 20 5f 6d 74 6c 5f 69 ..((_mtl_i.v_position.z./._mtl_i
01c0 2e 76 5f 70 6f 73 69 74 69 6f 6e 2e 77 29 20 2a 20 5f 6d 74 6c 5f 75 2e 75 5f 64 65 70 74 68 53 .v_position.w).*._mtl_u.u_depthS
01e0 63 61 6c 65 4f 66 66 73 65 74 2e 78 29 0a 20 20 20 2b 20 5f 6d 74 6c 5f 75 2e 75 5f 64 65 70 74 caleOffset.x)....+._mtl_u.u_dept
0200 68 53 63 61 6c 65 4f 66 66 73 65 74 2e 79 29 20 2a 20 66 6c 6f 61 74 34 28 31 2e 36 37 37 37 32 hScaleOffset.y).*.float4(1.67772
0220 32 65 2b 30 37 2c 20 36 35 35 33 36 2e 30 2c 20 32 35 36 2e 30 2c 20 31 2e 30 29 29 29 3b 0a 20 2e+07,.65536.0,.256.0,.1.0)));..
0240 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 61 67 43 6f 6c 6f 72 20 3d 20 28 74 6d 70 76 61 72 5f 31 ._mtl_o.gl_FragColor.=.(tmpvar_1
0260 20 2d 20 28 74 6d 70 76 61 72 5f 31 2e 78 78 79 7a 20 2a 20 66 6c 6f 61 74 34 28 30 2e 30 2c 20 .-.(tmpvar_1.xxyz.*.float4(0.0,.
0280 30 2e 30 30 33 39 30 36 32 35 2c 20 30 2e 30 30 33 39 30 36 32 35 2c 20 30 2e 30 30 33 39 30 36 0.00390625,.0.00390625,.0.003906
02a0 32 35 29 29 29 3b 0a 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 25)));...return._mtl_o;.}...