Bilinearly samples a row-major width x height grid of values at grid coordinates (x, y), where x ranges over 0 until width and y over 0 until height. Positions outside that range are clamped.
width
height
x
0 until width
y
0 until height