const GLchar *vs_source = "attribute vec4 vertex;" "void main(void) {" " vec4 pos = vertex;" " gl_Position = vec4(pos.x*0.75, pos.y*0.75, pos.z, pos.w);" "}";
const GLchar *fs_source = "void main(void) {" " gl_FragColor = vec4(1,1,0,0.5);" "}";
$ od -t x4 capture/shader_code_1
0000000 00000061 00000043 00000030 1ecf546c 0000020 00000000 00000010 00000001 00000000
0000040 009e7000 100009e7 009e7000 400009e7 0000060 15827d80 10020ba7 009e7000 300009e7 0000100 009e7000 100009e7 009e7000 500009e7
0000120 00000000 00000000 00000000 ffffffff
$ od -t x4 capture/shader_code_2
0000000 00000101 00000043 000000d8 1ecf546c 0000020 00000000 00000021 00000001 00000000
0000040 15827d80 10020c67 95c20dbf 100248b1 0000060 20c20037 100059c0 35c20d97 10025003 0000100 20020037 100059e1 950f0ff6 10024070 0000120 200e0037 100059e2 15067d80 10020d27 0000140 15027d80 10020c27 159c0fc0 10020c27 0000160 20067034 100059e0 82060e36 10024830 0000200 209e7020 100059c2 2080003e 100059e3 0000220 200a700e 100059e0 210a01d6 10024821 0000240 270a701e 100248a3 01827380 10020827 0000260 079e7000 10120127 81827792 10225804 0000300 009e7000 100009e7 15127d80 10020c27 0000320 159e7000 10020c27 150a7d80 10020c27 0000340 009e7000 300009e7 009e7000 100009e7 0000360 009e7000 100009e7 00000000 00000000
$ od -t x4 capture/shader_code_3
0000000 00000101 00000043 000000d0 1ecf546c 0000020 00000000 0000000f 00000001 00000000
0000040 15827d80 10020c67 95c20dbf 100248b1 0000060 20c20037 100059e0 35c20d87 100258e1 0000100 35c20d97 10024022 20827016 100059e2 0000120 35020d9f 10024d23 009e7000 100009e7 0000140 009e7000 100009e7 20027034 100059e0 0000160 02827c00 10020827 209e7020 100059c0 0000200 009e7000 100009e7 2002700e 100059e0 0000220 210201d6 10024821 2702701e 100248a3 0000240 01827380 10020827 079e7000 10120067 0000260 81827792 10225801 009e7000 100009e7 0000300 15067d80 10020c27 159e7000 10020c27 0000320 15027d80 10020c27 009e7000 300009e7 0000340 009e7000 100009e7 009e7000 100009e7
0000360 00000005 00000000 00000005 00000000
009e7000 100009e7 nop; nop; nop 009e7000 400009e7 nop; nop; signal ? 15827d80 10020ba7 009e7000 300009e7 nop; nop; end thread 009e7000 100009e7 nop; nop; nop 009e7000 500009e7 nop; nop; signal ?