Do you suggest to use wined3d_ffp_get_vs_settings() directly? It probably needs some redesign first for that, as it uses gl_info and hardware limits (light count, as well as bitfields in settings structure). Or do you mean factoring out some functions like init_light_sources() to use in process_vertices_strided() and init_light_settings() which would use some more generic structure and parameters not to depend on GL limits?
On 5/17/19 17:45, Henri Verbeet wrote:
Here too, it seems like init_transformed_lights() could reuse most of wined3d_ffp_get_vs_settings().