summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders/metal/chains/hlsl/fs_defocus.bin
blob: e02dfce4b54d5cfaa8bba2e10a43a42b335a7533 (plain)
ofshex dumpascii
0000 46 53 48 06 01 83 f2 e1 00 00 00 00 02 00 09 75 5f 64 65 66 6f 63 75 73 12 01 00 00 01 00 05 73 FSH............u_defocus.......s
0020 5f 74 65 78 10 00 00 00 00 00 af 06 00 00 23 69 6e 63 6c 75 64 65 20 3c 6d 65 74 61 6c 5f 73 74 _tex..........#include.<metal_st
0040 64 6c 69 62 3e 0a 23 69 6e 63 6c 75 64 65 20 3c 73 69 6d 64 2f 73 69 6d 64 2e 68 3e 0a 0a 75 73 dlib>.#include.<simd/simd.h>..us
0060 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 74 61 6c 3b 0a 0a 73 74 72 75 63 74 20 5f 47 6c ing.namespace.metal;..struct._Gl
0080 6f 62 61 6c 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 20 75 5f 64 65 66 6f 63 75 73 3b 0a 7d 3b 0a obal.{.....float4.u_defocus;.};.
00a0 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 0a 7b 0a 20 20 20 20 66 6c .struct.xlatMtlMain_out.{.....fl
00c0 6f 61 74 34 20 62 67 66 78 5f 46 72 61 67 44 61 74 61 30 20 5b 5b 63 6f 6c 6f 72 28 30 29 5d 5d oat4.bgfx_FragData0.[[color(0)]]
00e0 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 6e 0a 7b 0a 20 20 ;.};..struct.xlatMtlMain_in.{...
0100 20 20 66 6c 6f 61 74 34 20 76 5f 63 6f 6c 6f 72 30 20 5b 5b 75 73 65 72 28 6c 6f 63 6e 30 29 5d ..float4.v_color0.[[user(locn0)]
0120 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 30 20 5b 5b 75 73 65 72 ];.....float2.v_texcoord0.[[user
0140 28 6c 6f 63 6e 31 29 5d 5d 3b 0a 7d 3b 0a 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 6c 4d (locn1)]];.};..fragment.xlatMtlM
0160 61 69 6e 5f 6f 75 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 28 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f ain_out.xlatMtlMain(xlatMtlMain_
0180 69 6e 20 69 6e 20 5b 5b 73 74 61 67 65 5f 69 6e 5d 5d 2c 20 63 6f 6e 73 74 61 6e 74 20 5f 47 6c in.in.[[stage_in]],.constant._Gl
01a0 6f 62 61 6c 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 65 72 28 30 29 5d 5d 2c 20 74 65 78 74 obal&._mtl_u.[[buffer(0)]],.text
01c0 75 72 65 32 64 3c 66 6c 6f 61 74 3e 20 73 5f 74 65 78 20 5b 5b 74 65 78 74 75 72 65 28 30 29 5d ure2d<float>.s_tex.[[texture(0)]
01e0 5d 2c 20 73 61 6d 70 6c 65 72 20 73 5f 74 65 78 53 61 6d 70 6c 65 72 20 5b 5b 73 61 6d 70 6c 65 ],.sampler.s_texSampler.[[sample
0200 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 6f 75 r(0)]]).{.....xlatMtlMain_out.ou
0220 74 20 3d 20 7b 7d 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 5f 33 38 39 20 3d 20 73 5f 74 65 78 2e t.=.{};.....float4._389.=.s_tex.
0240 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 69 6e 2e 76 5f 74 65 78 63 6f 6f sample(s_texSampler,.in.v_texcoo
0260 72 64 30 29 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 5f 33 36 32 20 3d 20 28 28 28 28 28 28 28 28 rd0);.....float4._362.=.((((((((
0280 5f 33 38 39 20 2b 20 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 _389.+.s_tex.sample(s_texSampler
02a0 2c 20 28 69 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 28 5f 6d 74 6c 5f 75 2e 75 5f 64 65 ,.(in.v_texcoord0.+.(_mtl_u.u_de
02c0 66 6f 63 75 73 2e 78 79 20 2a 20 66 6c 6f 61 74 32 28 2d 30 2e 30 30 31 35 36 32 35 30 30 30 32 focus.xy.*.float2(-0.00156250002
02e0 33 32 38 33 30 36 34 34 2c 20 30 2e 30 30 30 32 34 34 31 34 30 36 32 35 29 29 29 29 29 20 2b 20 32830644,.0.000244140625))))).+.
0300 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 28 69 6e 2e 76 s_tex.sample(s_texSampler,.(in.v
0320 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 28 5f 6d 74 6c 5f 75 2e 75 5f 64 65 66 6f 63 75 73 2e 78 _texcoord0.+.(_mtl_u.u_defocus.x
0340 79 20 2a 20 66 6c 6f 61 74 32 28 2d 30 2e 30 30 30 39 37 36 35 36 32 35 2c 20 2d 30 2e 30 30 30 y.*.float2(-0.0009765625,.-0.000
0360 35 33 37 31 30 39 33 38 36 36 34 31 35 33 32 31 38 29 29 29 29 29 20 2b 20 73 5f 74 65 78 2e 73 53710938664153218))))).+.s_tex.s
0380 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 28 69 6e 2e 76 5f 74 65 78 63 6f 6f ample(s_texSampler,.(in.v_texcoo
03a0 72 64 30 20 2b 20 28 5f 6d 74 6c 5f 75 2e 75 5f 64 65 66 6f 63 75 73 2e 78 79 20 2a 20 66 6c 6f rd0.+.(_mtl_u.u_defocus.xy.*.flo
03c0 61 74 32 28 2d 30 2e 30 30 30 35 33 37 31 30 39 33 38 36 36 34 31 35 33 32 31 38 2c 20 30 2e 30 at2(-0.00053710938664153218,.0.0
03e0 30 30 39 37 36 35 36 32 35 29 29 29 29 29 20 2b 20 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 009765625))))).+.s_tex.sample(s_
0400 74 65 78 53 61 6d 70 6c 65 72 2c 20 28 69 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 28 5f texSampler,.(in.v_texcoord0.+.(_
0420 6d 74 6c 5f 75 2e 75 5f 64 65 66 6f 63 75 73 2e 78 79 20 2a 20 66 6c 6f 61 74 32 28 2d 30 2e 30 mtl_u.u_defocus.xy.*.float2(-0.0
0440 30 30 32 34 34 31 34 30 36 32 35 2c 20 2d 30 2e 30 30 31 35 36 32 35 30 30 30 32 33 32 38 33 30 00244140625,.-0.0015625000232830
0460 36 34 34 29 29 29 29 29 20 2b 20 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 644))))).+.s_tex.sample(s_texSam
0480 70 6c 65 72 2c 20 28 69 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 28 5f 6d 74 6c 5f 75 2e pler,.(in.v_texcoord0.+.(_mtl_u.
04a0 75 5f 64 65 66 6f 63 75 73 2e 78 79 20 2a 20 66 6c 6f 61 74 32 28 30 2e 30 30 30 32 34 34 31 34 u_defocus.xy.*.float2(0.00024414
04c0 30 36 32 35 2c 20 30 2e 30 30 31 35 36 32 35 30 30 30 32 33 32 38 33 30 36 34 34 29 29 29 29 29 0625,.0.0015625000232830644)))))
04e0 20 2b 20 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 28 69 .+.s_tex.sample(s_texSampler,.(i
0500 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 28 5f 6d 74 6c 5f 75 2e 75 5f 64 65 66 6f 63 75 n.v_texcoord0.+.(_mtl_u.u_defocu
0520 73 2e 78 79 20 2a 20 66 6c 6f 61 74 32 28 30 2e 30 30 30 35 33 37 31 30 39 33 38 36 36 34 31 35 s.xy.*.float2(0.0005371093866415
0540 33 32 31 38 2c 20 2d 30 2e 30 30 30 39 37 36 35 36 32 35 29 29 29 29 29 20 2b 20 73 5f 74 65 78 3218,.-0.0009765625))))).+.s_tex
0560 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 28 69 6e 2e 76 5f 74 65 78 63 .sample(s_texSampler,.(in.v_texc
0580 6f 6f 72 64 30 20 2b 20 28 5f 6d 74 6c 5f 75 2e 75 5f 64 65 66 6f 63 75 73 2e 78 79 20 2a 20 66 oord0.+.(_mtl_u.u_defocus.xy.*.f
05a0 6c 6f 61 74 32 28 30 2e 30 30 30 39 37 36 35 36 32 35 2c 20 30 2e 30 30 30 35 33 37 31 30 39 33 loat2(0.0009765625,.0.0005371093
05c0 38 36 36 34 31 35 33 32 31 38 29 29 29 29 29 20 2b 20 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 8664153218))))).+.s_tex.sample(s
05e0 5f 74 65 78 53 61 6d 70 6c 65 72 2c 20 28 69 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 28 _texSampler,.(in.v_texcoord0.+.(
0600 5f 6d 74 6c 5f 75 2e 75 5f 64 65 66 6f 63 75 73 2e 78 79 20 2a 20 66 6c 6f 61 74 32 28 30 2e 30 _mtl_u.u_defocus.xy.*.float2(0.0
0620 30 31 35 36 32 35 30 30 30 32 33 32 38 33 30 36 34 34 2c 20 2d 30 2e 30 30 30 32 34 34 31 34 30 015625000232830644,.-0.000244140
0640 36 32 35 29 29 29 29 29 20 2a 20 66 6c 6f 61 74 34 28 30 2e 31 31 31 31 31 31 31 31 31 39 33 38 625))))).*.float4(0.111111111938
0660 39 35 33 34 29 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 5f 34 39 33 20 3d 20 5f 33 36 32 3b 0a 20 9534);.....float4._493.=._362;..
0680 20 20 20 5f 34 39 33 2e 77 20 3d 20 5f 33 36 32 2e 77 20 2b 20 5f 33 38 39 2e 77 3b 0a 20 20 20 ..._493.w.=._362.w.+._389.w;....
06a0 20 6f 75 74 2e 62 67 66 78 5f 46 72 61 67 44 61 74 61 30 20 3d 20 5f 34 39 33 20 2a 20 69 6e 2e .out.bgfx_FragData0.=._493.*.in.
06c0 76 5f 63 6f 6c 6f 72 30 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 6f 75 74 3b 0a 7d 0a 0a 00 00 10 v_color0;.....return.out;.}.....
06e0 00 .