summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/runtime/shaders/metal/fs_oit.bin
blob: 57e02639e0792fe1b9b11693f48651772bd1848a (plain)
ofshex dumpascii
0000 46 53 48 06 bd 54 7f 3b 00 00 00 00 01 00 07 75 5f 63 6f 6c 6f 72 12 01 00 00 01 00 5f 01 00 00 FSH..T.;.......u_color......_...
0020 23 69 6e 63 6c 75 64 65 20 3c 6d 65 74 61 6c 5f 73 74 64 6c 69 62 3e 0a 23 69 6e 63 6c 75 64 65 #include.<metal_stdlib>.#include
0040 20 3c 73 69 6d 64 2f 73 69 6d 64 2e 68 3e 0a 0a 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 .<simd/simd.h>..using.namespace.
0060 6d 65 74 61 6c 3b 0a 0a 73 74 72 75 63 74 20 5f 47 6c 6f 62 61 6c 0a 7b 0a 20 20 20 20 66 6c 6f metal;..struct._Global.{.....flo
0080 61 74 34 20 75 5f 63 6f 6c 6f 72 3b 0a 7d 3b 0a 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 4d at4.u_color;.};..struct.xlatMtlM
00a0 61 69 6e 5f 6f 75 74 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 20 62 67 66 78 5f 46 72 61 67 44 61 ain_out.{.....float4.bgfx_FragDa
00c0 74 61 30 20 5b 5b 63 6f 6c 6f 72 28 30 29 5d 5d 3b 0a 7d 3b 0a 0a 66 72 61 67 6d 65 6e 74 20 78 ta0.[[color(0)]];.};..fragment.x
00e0 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 28 63 6f 6e 73 74 latMtlMain_out.xlatMtlMain(const
0100 61 6e 74 20 5f 47 6c 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 ant._Global&._mtl_u.[[buffer(0)]
0120 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 74 20 3d 20 7b ]).{.....xlatMtlMain_out.out.=.{
0140 7d 3b 0a 20 20 20 20 6f 75 74 2e 62 67 66 78 5f 46 72 61 67 44 61 74 61 30 20 3d 20 5f 6d 74 6c };.....out.bgfx_FragData0.=._mtl
0160 5f 75 2e 75 5f 63 6f 6c 6f 72 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 6f 75 74 3b 0a 7d 0a 0a 00 _u.u_color;.....return.out;.}...
0180 00 10 00 ...