Józef Kucia : wined3d: Introduce helper function to get shader type from byte code.