[PATCH 1/5] wined3d: Introduce helper function to get shader type from byte code.