Stefan Dösinger : wined3d: Create a common sampling function in GLSL.