Hamiltonian Monte Carlo for graphics applications