dst can be either VRAM or RAM