[PATCH] d3dx9_*: Adjust ID3DXEffect interface based on DLL version

Alex Henrie alexhenrie24 at gmail.com
Tue Mar 13 23:46:05 CDT 2018


Missatge de Matteo Bruni <matteo.mystral at gmail.com> del dia dt., 13 de març
2018 a les 12:46:

> 2018-03-13 6:36 GMT+01:00 Alex Henrie <alexhenrie24 at gmail.com>:
> >  static const struct ID3DXEffectVtbl ID3DXEffect_Vtbl =
> >  {
> > @@ -4469,9 +4473,13 @@ static const struct ID3DXEffectVtbl
ID3DXEffect_Vtbl =
> >      ID3DXEffectImpl_BeginParameterBlock,
> >      ID3DXEffectImpl_EndParameterBlock,
> >      ID3DXEffectImpl_ApplyParameterBlock,
> > +#if _D3DX9_VER >= 26
> >      ID3DXEffectImpl_DeleteParameterBlock,
> > +#endif
> >      ID3DXEffectImpl_CloneEffect,
> > +#if _D3DX9_VER >= 27
> >      ID3DXEffectImpl_SetRawValue
> > +#endif
> >  };
> >

> Were you able to find any source for this, aside from Rico's comment 4
> in bug 25138?
> Not a deal breaker if not, but it would be a "nice to have".

I found a copy of d3dx9effect.h from SDK version 23 which matches the
25-and-below IID:
https://bitbucket.org/kayru/normalencodingplayground/src/196c001940dcc91343a8ea724c90195ec034a320/src/d3d9/dx9include/d3dx9effect.h?at=default&fileviewer=file-view-default

I also found someone complaining that the IID changed between versions:
https://translate.google.com/translate?sl=ja&tl=en&js=y&prev=_t&hl=ca&ie=UTF-8&u=http%3A%2F%2Fblog.techlab-xe.net%2Farchives%2F135&edit-text=&act=url

I'm inclined to trust Rico and Sebastian's analysis.

-Alex



More information about the wine-devel mailing list