Skip to content

Instantly share code, notes, and snippets.

@programmerjake
programmerjake / demo_output.txt
Last active July 29, 2017 01:07
Output from vulkan-cpu as of July 28, 2017
loading test-files/test.spv
Words:
00000000: 07230203 00010000 00080001 0000002C |..#.........,...|
00000004: 00000000 00020011 00000001 00020011 |................|
00000008: 0000000B 0006000B 00000001 4C534C47 |............GLSL|
0000000C: 6474732E 3035342E 00000000 0003000E |.std.450........|
00000010: 00000000 00000001 0007000F 00000000 |................|
00000014: 00000004 6E69616D 00000000 0000000A |....main........|
00000018: 0000000F 00050048 00000008 00000000 |....H...........|
0000001C: 0000000B 00000000 00030047 00000008 |........G.......|
@programmerjake
programmerjake / patch1.diff
Last active March 10, 2017 08:28
Patch adding Vulkan support to libsdl
# HG changeset patch
# User Jacob Lifshay <programmerjake@gmail.com>
# Date 1487661491 28800
# Mon Feb 20 23:18:11 2017 -0800
# Node ID fd24ec69f7b848894158a1c19f5d4b05b68145fa
# Parent 5a6206d1d6a27febe595acda020128686c59ad54
add basic framework for vulkan support
diff -r 5a6206d1d6a2 -r fd24ec69f7b8 include/SDL_video.h
--- a/include/SDL_video.h Mon Feb 20 11:02:35 2017 -0800
oc=100; ic=20; for((i=0;i<oc;i++)); do ((touch /tmp/test_run_$i; for((j=0;j<ic;j++)); do printf "GET /wiki/South_African_labour_law HTTP/1.1\nHost: en.wikipedia.org\n\n" | nc 198.35.26.96 80 > /dev/null; done; rm /tmp/test_run_$i)&); done; i=0; while [ -z "`echo /tmp/test_run_* | grep "\*"`" ]; do i=$((i+1)); sleep 0.1; done; (printf "x=";printf "GET /wiki/South_African_labour_law HTTP/1.1\nHost: en.wikipedia.org\n\n" | nc 198.35.26.96 80 | wc -c; echo "x*$oc*$ic*8/($i/10)/2^20") | bc -l