[PATCH v2 3/4] wined3d: Add helpers to retrieve shader constants from a wined3d_stateblock.