summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/runtime/shaders/metal/vs_callback.bin
blob: 610567d02386db6f91ffd973b12a4ab30908a488 (plain)
ofshex dumpascii
0000 56 53 48 04 84 a3 dc fc 02 00 07 75 5f 6d 6f 64 65 6c 04 20 00 00 20 00 0f 75 5f 6d 6f 64 65 6c VSH........u_model.......u_model
0020 56 69 65 77 50 72 6f 6a 04 01 00 00 01 00 2c 03 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 ViewProj......,...using.namespac
0040 65 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 e.metal;.struct.xlatMtlShaderInp
0060 75 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 ut.{...float4.a_color0.[[attribu
0080 74 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 te(0)]];...float3.a_position.[[a
00a0 74 74 72 69 62 75 74 65 28 31 29 5d 5d 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c ttribute(1)]];.};.struct.xlatMtl
00c0 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 5f 50 6f 73 69 74 ShaderOutput.{...float4.gl_Posit
00e0 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 20 76 5f 63 6f 6c ion.[[position]];...float4.v_col
0100 6f 72 30 3b 0a 20 20 66 6c 6f 61 74 33 20 76 5f 77 6f 72 6c 64 3b 0a 7d 3b 0a 73 74 72 75 63 74 or0;...float3.v_world;.};.struct
0120 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
0140 78 34 20 75 5f 6d 6f 64 65 6c 5b 33 32 5d 3b 0a 20 20 66 6c 6f 61 74 34 78 34 20 75 5f 6d 6f 64 x4.u_model[32];...float4x4.u_mod
0160 65 6c 56 69 65 77 50 72 6f 6a 3b 0a 7d 3b 0a 76 65 72 74 65 78 20 78 6c 61 74 4d 74 6c 53 68 61 elViewProj;.};.vertex.xlatMtlSha
0180 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 4d 74 6c 53 68 derOutput.xlatMtlMain.(xlatMtlSh
01a0 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 5d 5d 2c 20 63 aderInput._mtl_i.[[stage_in]],.c
01c0 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 6d 26 20 5f 6d onstant.xlatMtlShaderUniform&._m
01e0 74 6c 5f 75 20 5b 5b 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 tl_u.[[buffer(0)]]).{...xlatMtlS
0200 68 61 64 65 72 4f 75 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 haderOutput._mtl_o;...float4.tmp
0220 76 61 72 5f 31 20 3d 20 30 3b 0a 20 20 74 6d 70 76 61 72 5f 31 2e 77 20 3d 20 31 2e 30 3b 0a 20 var_1.=.0;...tmpvar_1.w.=.1.0;..
0240 20 74 6d 70 76 61 72 5f 31 2e 78 79 7a 20 3d 20 5f 6d 74 6c 5f 69 2e 61 5f 70 6f 73 69 74 69 6f .tmpvar_1.xyz.=._mtl_i.a_positio
0260 6e 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 50 6f 73 69 74 69 6f 6e 20 3d 20 28 5f 6d 74 6c 5f n;..._mtl_o.gl_Position.=.(_mtl_
0280 75 2e 75 5f 6d 6f 64 65 6c 56 69 65 77 50 72 6f 6a 20 2a 20 74 6d 70 76 61 72 5f 31 29 3b 0a 20 u.u_modelViewProj.*.tmpvar_1);..
02a0 20 66 6c 6f 61 74 34 20 74 6d 70 76 61 72 5f 32 20 3d 20 30 3b 0a 20 20 74 6d 70 76 61 72 5f 32 .float4.tmpvar_2.=.0;...tmpvar_2
02c0 2e 77 20 3d 20 31 2e 30 3b 0a 20 20 74 6d 70 76 61 72 5f 32 2e 78 79 7a 20 3d 20 5f 6d 74 6c 5f .w.=.1.0;...tmpvar_2.xyz.=._mtl_
02e0 69 2e 61 5f 70 6f 73 69 74 69 6f 6e 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 76 5f 77 6f 72 6c 64 20 3d i.a_position;..._mtl_o.v_world.=
0300 20 28 5f 6d 74 6c 5f 75 2e 75 5f 6d 6f 64 65 6c 5b 30 5d 20 2a 20 74 6d 70 76 61 72 5f 32 29 2e .(_mtl_u.u_model[0].*.tmpvar_2).
0320 78 79 7a 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 76 5f 63 6f 6c 6f 72 30 20 3d 20 5f 6d 74 6c 5f 69 2e xyz;..._mtl_o.v_color0.=._mtl_i.
0340 61 5f 63 6f 6c 6f 72 30 3b 0a 20 20 72 65 74 75 72 6e 20 5f 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 a_color0;...return._mtl_o;.}...