dxtory: Factorize the buffer loading