Updated the ViewMap sample method to support 1D and 2D regular sampling

The ViewMap sample method no longer supports an explicit list of sample
coordinates. Instead, it always does regular sampling and the user can
call the sample method on individual Views for arbitrary collections of
sample coordinates.