d3dx9_36: Add stub for D3DXGetShaderConstantTableEx. Implement D3DXGetShaderConstantTable.

This commit is contained in:
Christian Costa 2010-02-21 22:30:27 +01:00 committed by Alexandre Julliard
parent a19536587b
commit 88b2892a59
2 changed files with 22 additions and 2 deletions

View File

@ -157,8 +157,8 @@
@ stdcall D3DXGetImageInfoFromResourceA(long str ptr)
@ stdcall D3DXGetImageInfoFromResourceW(long wstr ptr)
@ stdcall D3DXGetPixelShaderProfile(ptr)
@ stub D3DXGetShaderConstantTable
@ stub D3DXGetShaderConstantTableEx
@ stdcall D3DXGetShaderConstantTable(ptr ptr)
@ stdcall D3DXGetShaderConstantTableEx(ptr long ptr)
@ stub D3DXGetShaderInputSemantics
@ stub D3DXGetShaderOutputSemantics
@ stub D3DXGetShaderSamplers

View File

@ -237,3 +237,23 @@ HRESULT WINAPI D3DXCompileShader(LPCSTR pSrcData,
pProfile, Flags, ppShader, ppErrorMsgs, ppConstantTable);
return D3DERR_INVALIDCALL;
}
HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD* pFunction,
DWORD flags,
LPD3DXCONSTANTTABLE* ppConstantTable)
{
FIXME("(%p, %x, %p): stub\n", pFunction, flags, ppConstantTable);
if (!pFunction || !ppConstantTable)
return D3DERR_INVALIDCALL;
return D3DXERR_INVALIDDATA;
}
HRESULT WINAPI D3DXGetShaderConstantTable(CONST DWORD* pFunction,
LPD3DXCONSTANTTABLE* ppConstantTable)
{
TRACE("(%p, %p): Forwarded to D3DXGetShaderConstantTableEx\n", pFunction, ppConstantTable);
return D3DXGetShaderConstantTableEx(pFunction, 0, ppConstantTable);
}