wined3d: GLSL Patch feedback requested

Raphael fenix at
Tue Jun 13 16:14:55 CDT 2006

On Tuesday 13 June 2006 18:39, Jason Green wrote:
> On 6/13/06, H. Verbeet <hverbeet at> wrote:
> > On 13/06/06, Raphael <fenix at> wrote:
> > > I only have one  question:
> > >  i see you have a cache to reuse prgid in set_glsl_shader_program but
> > > what happens if user/app change the shaders content (for example using
> > > SetFunction) ? your pre-compiled program will be correct ?
> > > (because i don't see any list cleanup in shaders function reset)
> >
> > Good point :-)
> > I wonder if respecifying the source and recompiling the program is
> > worth it, or if we should just create a new shader object.
> >From what I can tell (for DX9 at least), the app shouldn't be able to
> use SetFunction().  I thought it was an internal wined3d function.
> Unless it's a DX8 call that I'm unaware of.  I haven't seen any apps
> try to do that yet, but maybe I'm just not looking closely enough.
> :-)   The apps tend to CreatePixelShader(), then later [often during
> the render loop], they SetPixelShader().  I haven't seen any that
> modify an existing shader yet.

No seems correct to me (from DX8-9 APIs) but never say never :)
Anyway cleaning glprograms on Delete can be a good idea :)

And we must think, for futur, about the ressources manager (was last oliver 
works). As in some cases the CG will not be able to contains all precompiled 
shaders couples, and we must swap them on need  ;)

Best Regards and thx to you two,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url :

More information about the wine-devel mailing list