wined3d: Add a separate function for state block initialization.