wined3d: Split out getting the sample function and coordinate mask from shader_glsl_s...