Skip to content

Instantly share code, notes, and snippets.

@phire
Created February 16, 2014 08:14
Show Gist options
  • Save phire/9031027 to your computer and use it in GitHub Desktop.
Save phire/9031027 to your computer and use it in GitHub Desktop.
mov vpm, qpu_num
mov vpm, elem_num
# Configure vpm write to memory
ldi vw_setup, vw_setup0(2, 16)
ldi vw_setup, vw_setup1(0, 0)
# Trigger transfer to destination in memory (address is from uniforms)
nop; mov vw_addr, unif
5c28b980: 00000006 00000000 00000006 00000001 00000005 00000002 00000005 00000003
5c28b9a0: 00000005 00000004 00000005 00000005 00000005 00000006 00000005 00000007
5c28b9c0: 00000005 00000008 00000005 00000009 00000005 0000000a 0000000b 0000000b
5c28b9e0: 0000000b 0000000c 0000000b 0000000d 0000000b 0000000e 0000000b 0000000f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment