summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders/metal/chains/misc/vs_deposterize-pass0.bin
blob: 1d21506a0b8fbcdc9f0a89d153054a1880a1db87 (plain)
ofshex dumpascii
0000 56 53 48 06 00 00 00 00 4f 45 98 49 02 00 0a 75 5f 76 69 65 77 50 72 6f 6a 04 01 00 00 04 00 0b VSH.....OE.I...u_viewProj.......
0020 75 5f 74 65 78 5f 73 69 7a 65 30 02 01 40 00 01 00 50 04 00 00 23 69 6e 63 6c 75 64 65 20 3c 6d u_tex_size0..@...P...#include.<m
0040 65 74 61 6c 5f 73 74 64 6c 69 62 3e 0a 23 69 6e 63 6c 75 64 65 20 3c 73 69 6d 64 2f 73 69 6d 64 etal_stdlib>.#include.<simd/simd
0060 2e 68 3e 0a 0a 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 74 61 6c 3b 0a 0a 73 74 72 .h>..using.namespace.metal;..str
0080 75 63 74 20 5f 47 6c 6f 62 61 6c 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 78 34 20 75 5f 76 69 65 uct._Global.{.....float4x4.u_vie
00a0 77 50 72 6f 6a 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 75 5f 74 65 78 5f 73 69 7a 65 30 3b 0a 7d wProj;.....float4.u_tex_size0;.}
00c0 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 20 20 20 ;..struct.xlatMtlMain_out.{.....
00e0 66 6c 6f 61 74 34 20 5f 65 6e 74 72 79 50 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 63 6f 6c 6f 72 float4._entryPointOutput_v_color
0100 30 20 5b 5b 75 73 65 72 28 6c 6f 63 6e 30 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 5f 65 0.[[user(locn0)]];.....float2._e
0120 6e 74 72 79 50 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 74 65 78 63 6f 6f 72 64 30 20 5b 5b 75 73 ntryPointOutput_v_texcoord0.[[us
0140 65 72 28 6c 6f 63 6e 31 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 5f 65 6e 74 72 79 50 6f er(locn1)]];.....float4._entryPo
0160 69 6e 74 4f 75 74 70 75 74 5f 76 5f 74 65 78 63 6f 6f 72 64 31 20 5b 5b 75 73 65 72 28 6c 6f 63 intOutput_v_texcoord1.[[user(loc
0180 6e 32 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 34 20 67 6c 5f 50 6f 73 69 74 69 6f 6e 20 5b 5b n2)]];.....float4.gl_Position.[[
01a0 70 6f 73 69 74 69 6f 6e 5d 5d 3b 0a 7d 3b 0a 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 4d 61 position]];.};..struct.xlatMtlMa
01c0 69 6e 5f 69 6e 0a 7b 0a 20 20 20 20 66 6c 6f 61 74 34 20 61 5f 63 6f 6c 6f 72 30 20 5b 5b 61 74 in_in.{.....float4.a_color0.[[at
01e0 74 72 69 62 75 74 65 28 30 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 33 20 61 5f 70 6f 73 69 74 tribute(0)]];.....float3.a_posit
0200 69 6f 6e 20 5b 5b 61 74 74 72 69 62 75 74 65 28 31 29 5d 5d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 ion.[[attribute(1)]];.....float2
0220 20 61 5f 74 65 78 63 6f 6f 72 64 30 20 5b 5b 61 74 74 72 69 62 75 74 65 28 32 29 5d 5d 3b 0a 7d .a_texcoord0.[[attribute(2)]];.}
0240 3b 0a 0a 76 65 72 74 65 78 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 6f 75 74 20 78 6c 61 74 4d 74 ;..vertex.xlatMtlMain_out.xlatMt
0260 6c 4d 61 69 6e 28 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f 69 6e 20 69 6e 20 5b 5b 73 74 61 67 65 5f lMain(xlatMtlMain_in.in.[[stage_
0280 69 6e 5d 5d 2c 20 63 6f 6e 73 74 61 6e 74 20 5f 47 6c 6f 62 61 6c 26 20 5f 6d 74 6c 5f 75 20 5b in]],.constant._Global&._mtl_u.[
02a0 5b 62 75 66 66 65 72 28 30 29 5d 5d 29 0a 7b 0a 20 20 20 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 5f [buffer(0)]]).{.....xlatMtlMain_
02c0 6f 75 74 20 6f 75 74 20 3d 20 7b 7d 3b 0a 20 20 20 20 66 6c 6f 61 74 32 20 5f 31 35 36 20 3d 20 out.out.=.{};.....float2._156.=.
02e0 66 6c 6f 61 74 32 28 31 2e 30 29 20 2f 20 5f 6d 74 6c 5f 75 2e 75 5f 74 65 78 5f 73 69 7a 65 30 float2(1.0)./._mtl_u.u_tex_size0
0300 2e 78 79 3b 0a 20 20 20 20 66 6c 6f 61 74 20 5f 31 35 38 20 3d 20 5f 31 35 36 2e 78 3b 0a 20 20 .xy;.....float._158.=._156.x;...
0320 20 20 66 6c 6f 61 74 32 20 5f 31 36 32 20 3d 20 69 6e 2e 61 5f 74 65 78 63 6f 6f 72 64 30 20 2b ..float2._162.=.in.a_texcoord0.+
0340 20 66 6c 6f 61 74 32 28 31 2e 30 30 30 30 30 30 30 31 31 36 38 36 30 39 37 34 32 33 30 38 30 33 .float2(1.0000000116860974230803
0360 35 34 39 32 38 39 37 30 33 65 2d 30 30 37 29 3b 0a 20 20 20 20 6f 75 74 2e 67 6c 5f 50 6f 73 69 549289703e-007);.....out.gl_Posi
0380 74 69 6f 6e 20 3d 20 5f 6d 74 6c 5f 75 2e 75 5f 76 69 65 77 50 72 6f 6a 20 2a 20 66 6c 6f 61 74 tion.=._mtl_u.u_viewProj.*.float
03a0 34 28 69 6e 2e 61 5f 70 6f 73 69 74 69 6f 6e 2e 78 79 2c 20 30 2e 30 2c 20 31 2e 30 29 3b 0a 20 4(in.a_position.xy,.0.0,.1.0);..
03c0 20 20 20 6f 75 74 2e 5f 65 6e 74 72 79 50 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 63 6f 6c 6f 72 ...out._entryPointOutput_v_color
03e0 30 20 3d 20 69 6e 2e 61 5f 63 6f 6c 6f 72 30 3b 0a 20 20 20 20 6f 75 74 2e 5f 65 6e 74 72 79 50 0.=.in.a_color0;.....out._entryP
0400 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 74 65 78 63 6f 6f 72 64 30 20 3d 20 5f 31 36 32 3b 0a 20 ointOutput_v_texcoord0.=._162;..
0420 20 20 20 6f 75 74 2e 5f 65 6e 74 72 79 50 6f 69 6e 74 4f 75 74 70 75 74 5f 76 5f 74 65 78 63 6f ...out._entryPointOutput_v_texco
0440 6f 72 64 31 20 3d 20 5f 31 36 32 2e 78 78 78 79 20 2b 20 66 6c 6f 61 74 34 28 2d 5f 31 35 38 2c ord1.=._162.xxxy.+.float4(-_158,
0460 20 30 2e 30 2c 20 5f 31 35 38 2c 20 30 2e 30 29 3b 0a 20 20 20 20 72 65 74 75 72 6e 20 6f 75 74 .0.0,._158,.0.0);.....return.out
0480 3b 0a 7d 0a 0a 00 03 05 00 01 00 10 00 50 00 ;.}..........P.