Attempt to implement support for cl_sampler kernel arguments. This has
not been tested!