summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders/metal/chains/misc/vs_deposterize-pass1.bin
blob: 325433ec846f59e972b812a4b4d9e5cfff8dda22 (plain)
ofshex dumpascii
0000 56 53 48 05 4f 45 98 49 02 00 0a 75 5f 76 69 65 77 50 72 6f 6a 04 01 00 00 01 00 0b 75 5f 74 65 VSH.OE.I...u_viewProj.......u_te
0020 78 5f 73 69 7a 65 30 02 01 00 00 01 00 23 04 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 x_size0......#...using.namespace
0040 20 6d 65 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 .metal;.struct.xlatMtlShaderInpu
0060 74 20 7b 0a 20 20 66 6c 6f 61 74 34 20 61 5f 63 6f 6c 6f 72 30 20 5b 5b 61 74 74 72 69 62 75 74 t.{...float4.a_color0.[[attribut
0080 65 28 30 29 5d 5d 3b 0a 20 20 66 6c 6f 61 74 33 20 61 5f 70 6f 73 69 74 69 6f 6e 20 5b 5b 61 74 e(0)]];...float3.a_position.[[at
00a0 74 72 69 62 75 74 65 28 31 29 5d 5d 3b 0a 20 20 66 6c 6f 61 74 32 20 61 5f 74 65 78 63 6f 6f 72 tribute(1)]];...float2.a_texcoor
00c0 64 30 20 5b 5b 61 74 74 72 69 62 75 74 65 28 32 29 5d 5d 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 d0.[[attribute(2)]];.};.struct.x
00e0 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 7b 0a 20 20 66 6c 6f 61 74 34 20 67 6c latMtlShaderOutput.{...float4.gl
0100 5f 50 6f 73 69 74 69 6f 6e 20 5b 5b 70 6f 73 69 74 69 6f 6e 5d 5d 3b 0a 20 20 66 6c 6f 61 74 34 _Position.[[position]];...float4
0120 20 76 5f 63 6f 6c 6f 72 30 3b 0a 20 20 66 6c 6f 61 74 32 20 76 5f 74 65 78 63 6f 6f 72 64 30 3b .v_color0;...float2.v_texcoord0;
0140 0a 20 20 66 6c 6f 61 74 34 20 76 5f 74 65 78 63 6f 6f 72 64 31 3b 0a 7d 3b 0a 73 74 72 75 63 74 ...float4.v_texcoord1;.};.struct
0160 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 6f 72 6d 20 7b 0a 20 20 66 6c 6f 61 74 34 .xlatMtlShaderUniform.{...float4
0180 78 34 20 75 5f 76 69 65 77 50 72 6f 6a 3b 0a 20 20 66 6c 6f 61 74 34 20 75 5f 74 65 78 5f 73 69 x4.u_viewProj;...float4.u_tex_si
01a0 7a 65 30 3b 0a 7d 3b 0a 76 65 72 74 65 78 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 ze0;.};.vertex.xlatMtlShaderOutp
01c0 75 74 20 78 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 ut.xlatMtlMain.(xlatMtlShaderInp
01e0 75 74 20 5f 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 ut._mtl_i.[[stage_in]],.constant
0200 20 78 6c 61 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 .xlatMtlShaderUniform&._mtl_u.[[
0220 62 75 66 66 65 72 28 30 29 5d 5d 29 0a 7b 0a 20 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 buffer(0)]]).{...xlatMtlShaderOu
0240 74 70 75 74 20 5f 6d 74 6c 5f 6f 3b 0a 20 20 66 6c 6f 61 74 34 20 74 6d 70 76 61 72 5f 31 20 3d tput._mtl_o;...float4.tmpvar_1.=
0260 20 30 3b 0a 20 20 74 6d 70 76 61 72 5f 31 2e 7a 77 20 3d 20 66 6c 6f 61 74 32 28 30 2e 30 2c 20 .0;...tmpvar_1.zw.=.float2(0.0,.
0280 31 2e 30 29 3b 0a 20 20 74 6d 70 76 61 72 5f 31 2e 78 79 20 3d 20 5f 6d 74 6c 5f 69 2e 61 5f 70 1.0);...tmpvar_1.xy.=._mtl_i.a_p
02a0 6f 73 69 74 69 6f 6e 2e 78 79 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 50 6f 73 69 74 69 6f 6e osition.xy;..._mtl_o.gl_Position
02c0 20 3d 20 28 5f 6d 74 6c 5f 75 2e 75 5f 76 69 65 77 50 72 6f 6a 20 2a 20 74 6d 70 76 61 72 5f 31 .=.(_mtl_u.u_viewProj.*.tmpvar_1
02e0 29 3b 0a 20 20 66 6c 6f 61 74 32 20 74 6d 70 76 61 72 5f 32 20 3d 20 30 3b 0a 20 20 74 6d 70 76 );...float2.tmpvar_2.=.0;...tmpv
0300 61 72 5f 32 20 3d 20 28 31 2e 30 2f 28 5f 6d 74 6c 5f 75 2e 75 5f 74 65 78 5f 73 69 7a 65 30 2e ar_2.=.(1.0/(_mtl_u.u_tex_size0.
0320 78 79 29 29 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 76 5f 74 65 78 63 6f 6f 72 64 30 20 3d 20 28 5f 6d xy));..._mtl_o.v_texcoord0.=.(_m
0340 74 6c 5f 69 2e 61 5f 74 65 78 63 6f 6f 72 64 30 20 2b 20 66 6c 6f 61 74 32 28 31 65 2d 30 30 37 tl_i.a_texcoord0.+.float2(1e-007
0360 2c 20 31 65 2d 30 30 37 29 29 3b 0a 20 20 66 6c 6f 61 74 34 20 74 6d 70 76 61 72 5f 33 20 3d 20 ,.1e-007));...float4.tmpvar_3.=.
0380 30 3b 0a 20 20 74 6d 70 76 61 72 5f 33 2e 78 7a 20 3d 20 66 6c 6f 61 74 32 28 30 2e 30 2c 20 30 0;...tmpvar_3.xz.=.float2(0.0,.0
03a0 2e 30 29 3b 0a 20 20 74 6d 70 76 61 72 5f 33 2e 79 20 3d 20 2d 28 74 6d 70 76 61 72 5f 32 2e 79 .0);...tmpvar_3.y.=.-(tmpvar_2.y
03c0 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 32 2e 79 3b 0a 20 20 );...tmpvar_3.w.=.tmpvar_2.y;...
03e0 5f 6d 74 6c 5f 6f 2e 76 5f 74 65 78 63 6f 6f 72 64 31 20 3d 20 28 5f 6d 74 6c 5f 6f 2e 76 5f 74 _mtl_o.v_texcoord1.=.(_mtl_o.v_t
0400 65 78 63 6f 6f 72 64 30 2e 78 79 79 79 20 2b 20 74 6d 70 76 61 72 5f 33 29 3b 0a 20 20 5f 6d 74 excoord0.xyyy.+.tmpvar_3);..._mt
0420 6c 5f 6f 2e 76 5f 63 6f 6c 6f 72 30 20 3d 20 5f 6d 74 6c 5f 69 2e 61 5f 63 6f 6c 6f 72 30 3b 0a l_o.v_color0.=._mtl_i.a_color0;.
0440 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 ..return._mtl_o;.}...