On 17 March 2010 12:21, Christian Costa <titan.costa(a)wanadoo.fr> wrote:
+typedef struct _D3DXPASS_DESC { + LPCSTR Name; + UINT Annotations; + DWORD VSVersion; + DWORD PSVersion; + UINT VSSemanticsUsed; + D3DXSEMANTIC VSSemantics[MAXD3DDECLLENGTH]; + UINT PSSemanticsUsed; + D3DXSEMANTIC PSSemantics[MAXD3DDECLLENGTH]; + UINT PSSamplersUsed; + LPCSTR PSSamplers[16]; +} D3DXPASS_DESC;
Which version of the SDK is this supposed to match? It doesn't match mine or MSDN.
+#define ID3DXBaseEffect_GetDesc(p,a) (p)->GetDesc(p,a) ... +#define ID3DXBaseEffect_SetArrayRange(p,a,b,c) (p)->SetArrayRange(p,a,b,c)
Those don't like right for C++. The other interfaces have similar issues, including:
+#define ID3DXEffect_CommitChanges() (p)->lpVtbl->CommitChanges(p) and +#define ID3DXEffect_GetVertexShader(p,a,b) (p)->>GetVertexShader(p,a,b)
However, my SDK doesn't have C object macros for any of the interfaces in d3dx9effect.h.