wined3d: Use flags for shader_glsl_get_sample_function().