d3d10: Add a D3D10CompileEffectFromMemory() stub.

This commit is contained in:
Henri Verbeet 2012-01-03 23:06:51 +01:00 committed by Alexandre Julliard
parent ee1e1f0fdb
commit 110aa65e0d
3 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,4 @@
@ stub D3D10CompileEffectFromMemory
@ stdcall D3D10CompileEffectFromMemory(ptr long ptr ptr ptr long long ptr ptr)
@ stdcall D3D10CompileShader(ptr long str ptr ptr str str long ptr ptr)
@ stdcall D3D10CreateBlob(long ptr) d3dcompiler_43.D3DCreateBlob
@ stdcall D3D10CreateDevice(ptr long ptr long long ptr)

View File

@ -243,6 +243,24 @@ HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT fl
return S_OK;
}
HRESULT WINAPI D3D10CompileEffectFromMemory(void *data, SIZE_T data_size, const char *filename,
const D3D10_SHADER_MACRO *defines, ID3D10Include *include, UINT hlsl_flags, UINT fx_flags,
ID3D10Blob **effect, ID3D10Blob **errors)
{
FIXME("data %p, data_size %lu, filename %s, defines %p, include %p,"
" hlsl_flags %#x, fx_flags %#x, effect %p, errors %p stub!\n",
data, data_size, wine_dbgstr_a(filename), defines, include,
hlsl_flags, fx_flags, effect, errors);
if (effect)
*effect = NULL;
if (errors)
*errors = NULL;
return E_NOTIMPL;
}
LPCSTR WINAPI D3D10GetVertexShaderProfile(ID3D10Device *device)
{
FIXME("device %p stub!\n", device);

View File

@ -827,6 +827,9 @@ DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown)
extern "C" {
#endif
HRESULT WINAPI D3D10CompileEffectFromMemory(void *data, SIZE_T data_size, const char *filename,
const D3D10_SHADER_MACRO *defines, ID3D10Include *include, UINT hlsl_flags, UINT fx_flags,
ID3D10Blob **effect, ID3D10Blob **errors);
HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device,