summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders/metal/fs_color.bin
blob: f8009011b2dd609923b2ecce7c207152f2805cea (plain) (blame)
ofshex dumpascii
0000 46 53 48 04 01 83 f2 e1 00 00 27 05 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 FSH.......'...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 32 20 76 5f 74 65 78 63 6f 6f 72 64 30 3b 0a 7d 3b 0a 73 74 72 75 63 74 ...float2.v_texcoord0;.};.struct
0060 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 7b 0a 20 20 68 61 6c 66 34 20 67 .xlatMtlShaderOutput.{...half4.g
0080 6c 5f 46 72 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 l_FragColor;.};.struct.xlatMtlSh
00a0 61 64 65 72 55 6e 69 66 6f 72 6d 20 7b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 72 65 64 5f 72 61 74 aderUniform.{...float4.u_red_rat
00c0 69 6f 73 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 67 72 6e 5f 72 61 74 69 6f 73 3b 0a 20 20 66 6c ios;...float4.u_grn_ratios;...fl
00e0 6f 61 74 34 20 75 5f 62 6c 75 5f 72 61 74 69 6f 73 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 6f 66 oat4.u_blu_ratios;...float4.u_of
0100 66 73 65 74 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 73 63 61 6c 65 3b 0a 20 20 66 6c 6f 61 74 34 fset;...float4.u_scale;...float4
0120 20 75 5f 73 61 74 75 72 61 74 69 6f 6e 3b 0a 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d .u_saturation;.};.fragment.xlatM
0140 74 6c 53 68 61 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 tlShaderOutput.xlatMtlMain.(xlat
0160 4d 74 6c 53 68 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 MtlShaderInput._mtl_i.[[stage_in
0180 5d 5d 2c 20 63 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 ]],.constant.xlatMtlShaderUnifor
01a0 6d 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 65 72 28 30 29 5d 5d 0a 20 20 2c 20 20 20 74 65 m&._mtl_u.[[buffer(0)]]...,...te
01c0 78 74 75 72 65 32 64 3c 66 6c 6f 61 74 3e 20 44 69 66 66 75 73 65 53 61 6d 70 6c 65 72 20 5b 5b xture2d<float>.DiffuseSampler.[[
01e0 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 6c 73 6d 70 5f 44 69 texture(0)]],.sampler._mtlsmp_Di
0200 66 66 75 73 65 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 ffuseSampler.[[sampler(0)]]).{..
0220 20 78 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 .xlatMtlShaderOutput._mtl_o;...h
0240 61 6c 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 alf4.tmpvar_1;...tmpvar_1.=.half
0260 34 28 44 69 66 66 75 73 65 53 61 6d 70 6c 65 72 2e 73 61 6d 70 6c 65 28 5f 6d 74 6c 73 6d 70 5f 4(DiffuseSampler.sample(_mtlsmp_
0280 44 69 66 66 75 73 65 53 61 6d 70 6c 65 72 2c 20 28 66 6c 6f 61 74 32 29 28 5f 6d 74 6c 5f 69 2e DiffuseSampler,.(float2)(_mtl_i.
02a0 76 5f 74 65 78 63 6f 6f 72 64 30 29 29 29 3b 0a 20 20 68 61 6c 66 33 20 74 6d 70 76 61 72 5f 32 v_texcoord0)));...half3.tmpvar_2
02c0 3b 0a 20 20 74 6d 70 76 61 72 5f 32 2e 78 20 3d 20 28 28 68 61 6c 66 29 64 6f 74 20 28 28 66 6c ;...tmpvar_2.x.=.((half)dot.((fl
02e0 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 72 65 64 5f oat3)tmpvar_1.xyz,._mtl_u.u_red_
0300 72 61 74 69 6f 73 2e 78 79 7a 29 29 3b 0a 20 20 74 6d 70 76 61 72 5f 32 2e 79 20 3d 20 28 28 68 ratios.xyz));...tmpvar_2.y.=.((h
0320 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,._
0340 6d 74 6c 5f 75 2e 75 5f 67 72 6e 5f 72 61 74 69 6f 73 2e 78 79 7a 29 29 3b 0a 20 20 74 6d 70 76 mtl_u.u_grn_ratios.xyz));...tmpv
0360 61 72 5f 32 2e 7a 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.z.=.((half)dot.((float3)tmp
0380 76 61 72 5f 31 2e 78 79 7a 2c 20 5f 6d 74 6c 5f 75 2e 75 5f 62 6c 75 5f 72 61 74 69 6f 73 2e 78 var_1.xyz,._mtl_u.u_blu_ratios.x
03a0 79 7a 29 29 3b 0a 20 20 68 61 6c 66 33 20 74 6d 70 76 61 72 5f 33 3b 0a 20 20 74 6d 70 76 61 72 yz));...half3.tmpvar_3;...tmpvar
03c0 5f 33 20 3d 20 28 28 68 61 6c 66 33 29 28 28 66 6c 6f 61 74 33 29 28 28 68 61 6c 66 33 29 28 28 _3.=.((half3)((float3)((half3)((
03e0 66 6c 6f 61 74 33 29 74 6d 70 76 61 72 5f 32 20 2a 20 5f 6d 74 6c 5f 75 2e 75 5f 73 63 61 6c 65 float3)tmpvar_2.*._mtl_u.u_scale
0400 2e 78 79 7a 29 29 20 2b 20 5f 6d 74 6c 5f 75 2e 75 5f 6f 66 66 73 65 74 2e 78 79 7a 29 29 3b 0a .xyz)).+._mtl_u.u_offset.xyz));.
0420 20 20 68 61 6c 66 20 74 6d 70 76 61 72 5f 34 3b 0a 20 20 74 6d 70 76 61 72 5f 34 20 3d 20 64 6f ..half.tmpvar_4;...tmpvar_4.=.do
0440 74 20 28 74 6d 70 76 61 72 5f 33 2c 20 28 68 61 6c 66 33 29 66 6c 6f 61 74 33 28 30 2e 32 39 39 t.(tmpvar_3,.(half3)float3(0.299
0460 2c 20 30 2e 35 38 37 2c 20 30 2e 31 31 34 29 29 3b 0a 20 20 68 61 6c 66 34 20 74 6d 70 76 61 72 ,.0.587,.0.114));...half4.tmpvar
0480 5f 35 3b 0a 20 20 74 6d 70 76 61 72 5f 35 2e 78 79 7a 20 3d 20 28 74 6d 70 76 61 72 5f 34 20 2b _5;...tmpvar_5.xyz.=.(tmpvar_4.+
04a0 20 28 28 68 61 6c 66 33 29 28 28 66 6c 6f 61 74 33 29 28 74 6d 70 76 61 72 5f 33 20 2d 20 74 6d .((half3)((float3)(tmpvar_3.-.tm
04c0 70 76 61 72 5f 34 29 20 2a 20 5f 6d 74 6c 5f 75 2e 75 5f 73 61 74 75 72 61 74 69 6f 6e 2e 78 29 pvar_4).*._mtl_u.u_saturation.x)
04e0 29 29 3b 0a 20 20 74 6d 70 76 61 72 5f 35 2e 77 20 3d 20 74 6d 70 76 61 72 5f 31 2e 77 3b 0a 20 ));...tmpvar_5.w.=.tmpvar_1.w;..
0500 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 61 67 43 6f 6c 6f 72 20 3d 20 74 6d 70 76 61 72 5f 35 3b ._mtl_o.gl_FragColor.=.tmpvar_5;
0520 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;.}...