summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders/metal/chains/hlsl/fs_deconverge.bin
blob: c1903f2eb819b1231854cd129404f1a984621cec (plain)
ofshex dumpascii
0000 46 53 48 06 c7 2c 9b 99 00 00 00 00 01 00 05 73 5f 74 65 78 10 00 00 00 00 00 19 03 00 00 23 69 FSH..,.........s_tex..........#i
0020 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 20 3c nclude.<metal_stdlib>.#include.<
0040 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 6d 65 simd/simd.h>..using.namespace.me
0060 74 61 6c 3b 0a 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 tal;..struct.xlatMtlMain_out.{..
0080 20 20 20 66 6c 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 ...float4.bgfx_FragData0.[[color
00a0 28 30 29 5d 5d 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 (0)]];.};..struct.xlatMtlMain_in
00c0 0a 7b 0a 20 20 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 .{.....float4.v_color0.[[user(lo
00e0 63 6e 30 29 5d 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 cn0)]];.....float2.v_texcoord0.[
0100 5b 75 73 65 72 28 6c 6f 63 6e 31 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 [user(locn1)]];.....float2.v_tex
0120 63 6f 6f 72 64 31 20 5b 5b 75 73 65 72 28 6c 6f 63 6e 32 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 coord1.[[user(locn2)]];.....floa
0140 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 32 20 5b 5b 75 73 65 72 28 6c 6f 63 6e 33 29 5d 5d 3b 0a t2.v_texcoord2.[[user(locn3)]];.
0160 20 20 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 33 20 5b 5b 75 73 65 72 28 6c 6f ....float2.v_texcoord3.[[user(lo
0180 63 6e 34 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 61 69 6e cn4)]];.};..fragment.xlatMtlMain
01a0 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 69 6e 20 _out.xlatMtlMain(xlatMtlMain_in.
01c0 69 6e 20 5b 5b 73 74 61 67 65 5f 69 6e 5d 5d 2c 20 74 65 78 74 75 72 65 32 64 3c 66 6c 6f 61 74 in.[[stage_in]],.texture2d<float
01e0 3e 20 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 >.s_tex.[[texture(0)]],.sampler.
0200 73 5f 74 65 78 53 61 6d 70 6c 65 72 20 5b 5b 73 61 6d 70 6c 65 72 28 30 29 5d 5d 29 0a 7b 0a 20 s_texSampler.[[sampler(0)]]).{..
0220 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 7d 3b 0a 20 20 20 ...xlatMtlMain_out.out.=.{};....
0240 20 6f 75 74 2e 62 67 66 78 5f 46 72 61 67 44 61 74 61 30 20 3d 20 66 6c 6f 61 74 34 28 73 5f 74 .out.bgfx_FragData0.=.float4(s_t
0260 65 78 2e 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 ex.sample(s_texSampler,.in.v_tex
0280 63 6f 6f 72 64 31 29 2e 78 2c 20 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 73 5f 74 65 78 53 61 6d coord1).x,.s_tex.sample(s_texSam
02a0 70 6c 65 72 2c 20 69 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 32 29 2e 79 2c 20 73 5f 74 65 78 2e 73 pler,.in.v_texcoord2).y,.s_tex.s
02c0 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 72 ample(s_texSampler,.in.v_texcoor
02e0 64 33 29 2e 7a 2c 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 d3).z,.s_tex.sample(s_texSampler
0300 2c 20 69 6e 2e 76 5f 74 65 78 63 6f 6f 72 64 30 29 2e 77 29 20 2a 20 69 6e 2e 76 5f 63 6f 6c 6f ,.in.v_texcoord0).w).*.in.v_colo
0320 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 00 00 r0;.....return.out;.}......