summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/runtime/shaders/metal/fs_shadowmaps_packdepth_linear.bin
blob: 67b12c79dcc844460b18901dc1f1b8372e2dfa76 (plain)
ofshex dumpascii
0000 46 53 48 04 a4 1b 49 7a 00 00 27 02 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 FSH...Iz..'...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 20 76 5f 64 65 70 74 68 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 ...float.v_depth;.};.struct.xlat
0060 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 46 72 MtlShaderOutput.{...float4.gl_Fr
0080 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 61 64 65 72 agColor;.};.struct.xlatMtlShader
00a0 55 6e 69 66 6f 72 6d 20 7b 0a 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 6c 53 68 61 Uniform.{.};.fragment.xlatMtlSha
00c0 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 68 derOutput.xlatMtlMain.(xlatMtlSh
00e0 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 63 aderInput._mtl_i.[[stage_in]],.c
0100 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 6d onstant.xlatMtlShaderUniform&._m
0120 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 53 tl_u.[[buffer(0)]]).{...xlatMtlS
0140 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 70 haderOutput._mtl_o;...float4.tmp
0160 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 5f 6d 74 6c 5f var_1;...tmpvar_1.=.fract((_mtl_
0180 69 2e 76 5f 64 65 70 74 68 20 2a 20 66 6c 6f 61 74 34 28 31 2e 36 37 37 37 32 32 65 2b 30 37 2c i.v_depth.*.float4(1.677722e+07,
01a0 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 20 5f 6d 74 6c 5f .65536.0,.256.0,.1.0)));..._mtl_
01c0 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 20 2d 20 28 74 6d o.gl_FragColor.=.(tmpvar_1.-.(tm
01e0 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 30 2e 30 30 33 39 pvar_1.xxyz.*.float4(0.0,.0.0039
0200 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 32 35 29 29 29 3b 0625,.0.00390625,.0.00390625)));
0220 0a 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 ...return._mtl_o;.}...