wined3d: Add a function which checks the filtering capabilities for a format.