summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders/metal/fs_ratios.bin
blob: 1c36f16eccd28d2144504eeaefc809347574a542 (plain) (blame)
ofshex dumpascii
0000 46 53 48 04 01 83 f2 e1 00 00 4d 04 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 FSH.......M...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 63 6f 6c 6f 72 30 3b 0a 20 20 66 6c 6f 61 74 32 20 76 5f 74 ...float4.v_color0;...float2.v_t
0060 65 78 63 6f 6f 72 64 30 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 excoord0;.};.struct.xlatMtlShade
0080 72 4f 75 74 70 75 74 20 7b 0a 20 20 68 61 6c 66 34 20 67 6c 5f 46 72 61 67 43 6f 6c 6f 72 3b 0a rOutput.{...half4.gl_FragColor;.
00a0 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 6f 72 6d 20 7b };.struct.xlatMtlShaderUniform.{
00c0 0a 20 20 66 6c 6f 61 74 34 20 75 5f 72 61 74 69 6f 5f 61 6d 6f 75 6e 74 3b 0a 20 20 66 6c 6f 61 ...float4.u_ratio_amount;...floa
00e0 74 34 20 75 5f 72 65 64 5f 72 61 74 69 6f 73 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 67 72 6e 5f t4.u_red_ratios;...float4.u_grn_
0100 72 61 74 69 6f 73 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 62 6c 75 5f 72 61 74 69 6f 73 3b 0a 7d ratios;...float4.u_blu_ratios;.}
0120 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 78 ;.fragment.xlatMtlShaderOutput.x
0140 6c 61 74 4d 74 6c 4d 61 69 6e 20 28 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 5f latMtlMain.(xlatMtlShaderInput._
0160 6d 74 6c 5f 69 20 5b 5b 73 74 61 67 65 5f 69 6e 5d 5d 2c 20 63 6f 6e 73 74 61 6e 74 20 78 6c 61 mtl_i.[[stage_in]],.constant.xla
0180 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 6f 72 6d 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 tMtlShaderUniform&._mtl_u.[[buff
01a0 65 72 28 30 29 5d 5d 0a 20 20 2c 20 20 20 74 65 78 74 75 72 65 32 64 3c 66 6c 6f 61 74 3e 20 73 er(0)]]...,...texture2d<float>.s
01c0 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 5f 6d 74 _tex.[[texture(0)]],.sampler._mt
01e0 6c 73 6d 70 5f 73 5f 74 65 78 20 5b 5b 73 61 6d 70 6c 65 72 28 30 29 5d 5d 29 0a 7b 0a 20 20 78 lsmp_s_tex.[[sampler(0)]]).{...x
0200 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 5f 6d 74 6c 5f 6f 3b 0a 20 20 68 61 6c latMtlShaderOutput._mtl_o;...hal
0220 66 34 20 74 6d 70 76 61 72 5f 31 3b 0a 20 20 74 6d 70 76 61 72 5f 31 20 3d 20 68 61 6c 66 34 28 f4.tmpvar_1;...tmpvar_1.=.half4(
0240 73 5f 74 65 78 2e 73 61 6d 70 6c 65 28 5f 6d 74 6c 73 6d 70 5f 73 5f 74 65 78 2c 20 28 66 6c 6f s_tex.sample(_mtlsmp_s_tex,.(flo
0260 61 74 32 29 28 5f 6d 74 6c 5f 69 2e 76 5f 74 65 78 63 6f 6f 72 64 30 29 29 29 3b 0a 20 20 68 61 at2)(_mtl_i.v_texcoord0)));...ha
0280 6c 66 33 20 74 6d 70 76 61 72 5f 32 3b 0a 20 20 74 6d 70 76 61 72 5f 32 2e 78 20 3d 20 28 28 68 lf3.tmpvar_2;...tmpvar_2.x.=.((h
02a0 61 6c 66 29 64 6f 74 20 28 28 66 6c 6f 61 74 33 29 74 6d 70 76 61 72 5f 31 2e 78 79 7a 2c 20 5f alf)dot.((float3)tmpvar_1.xyz,._
02c0 6d 74 6c 5f 75 2e 75 5f 72 65 64 5f 72 61 74 69 6f 73 2e 78 79 7a 29 29 3b 0a 20 20 74 6d 70 76 mtl_u.u_red_ratios.xyz));...tmpv
02e0 61 72 5f 32 2e 79 20 3d 20 28 28 68 61 6c 66 29 64 6f 74 20 28 28 66 6c 6f 61 74 33 29 74 6d 70 ar_2.y.=.((half)dot.((float3)tmp
0300 76 61 72 5f 31 2e 78 79 7a 2c 20 5f 6d 74 6c 5f 75 2e 75 5f 67 72 6e 5f 72 61 74 69 6f 73 2e 78 var_1.xyz,._mtl_u.u_grn_ratios.x
0320 79 7a 29 29 3b 0a 20 20 74 6d 70 76 61 72 5f 32 2e 7a 20 3d 20 28 28 68 61 6c 66 29 64 6f 74 20 yz));...tmpvar_2.z.=.((half)dot.
0340 28 28 66 6c 6f 61 74 33 29 74 6d 70 76 61 72 5f 31 2e 78 79 7a 2c 20 5f 6d 74 6c 5f 75 2e 75 5f ((float3)tmpvar_1.xyz,._mtl_u.u_
0360 62 6c 75 5f 72 61 74 69 6f 73 2e 78 79 7a 29 29 3b 0a 20 20 68 61 6c 66 34 20 74 6d 70 76 61 72 blu_ratios.xyz));...half4.tmpvar
0380 5f 33 3b 0a 20 20 74 6d 70 76 61 72 5f 33 2e 78 79 7a 20 3d 20 28 28 68 61 6c 66 33 29 6d 69 78 _3;...tmpvar_3.xyz.=.((half3)mix
03a0 20 28 28 66 6c 6f 61 74 33 29 74 6d 70 76 61 72 5f 31 2e 78 79 7a 2c 20 28 66 6c 6f 61 74 33 29 .((float3)tmpvar_1.xyz,.(float3)
03c0 74 6d 70 76 61 72 5f 32 2c 20 5f 6d 74 6c 5f 75 2e 75 5f 72 61 74 69 6f 5f 61 6d 6f 75 6e 74 2e tmpvar_2,._mtl_u.u_ratio_amount.
03e0 78 29 29 3b 0a 20 20 74 6d 70 76 61 72 5f 33 2e 77 20 3d 20 74 6d 70 76 61 72 5f 31 2e 77 3b 0a x));...tmpvar_3.w.=.tmpvar_1.w;.
0400 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 61 67 43 6f 6c 6f 72 20 3d 20 28 28 68 61 6c 66 34 29 .._mtl_o.gl_FragColor.=.((half4)
0420 28 28 66 6c 6f 61 74 34 29 74 6d 70 76 61 72 5f 33 20 2a 20 5f 6d 74 6c 5f 69 2e 76 5f 63 6f 6c ((float4)tmpvar_3.*._mtl_i.v_col
0440 6f 72 30 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 or0));...return._mtl_o;.}...