Commit 8ffbd56a authored by Andrey Gusev's avatar Andrey Gusev Committed by Alexandre Julliard

d3dx10: Implement D3DX10PreprocessShaderFromMemory().

parent 24e90e43
......@@ -600,18 +600,6 @@ HRESULT WINAPI D3DX10CreateAsyncTextureProcessor(ID3D10Device *device,
return S_OK;
}
HRESULT WINAPI D3DX10PreprocessShaderFromMemory(const char *data, SIZE_T data_size, const char *filename,
const D3D10_SHADER_MACRO *defines, ID3DInclude *include, ID3DX10ThreadPump *pump, ID3D10Blob **shader_text,
ID3D10Blob **errors, HRESULT *hresult)
{
FIXME("data %s, data_size %Iu, filename %s, defines %p, include %p, pump %p, shader_text %p, "
"errors %p, hresult %p stub!\n",
debugstr_an(data, data_size), data_size, debugstr_a(filename), defines, include, pump,
shader_text, errors, hresult);
return E_NOTIMPL;
}
struct work_item
{
struct list entry;
......
......@@ -183,3 +183,26 @@ HRESULT WINAPI D3DX10CreateEffectFromResourceW(HMODULE module, const WCHAR *reso
free(filename);
return hr;
}
HRESULT WINAPI D3DX10PreprocessShaderFromMemory(const char *data, SIZE_T data_size, const char *filename,
const D3D10_SHADER_MACRO *defines, ID3DInclude *include, ID3DX10ThreadPump *pump, ID3D10Blob **shader_text,
ID3D10Blob **errors, HRESULT *hresult)
{
HRESULT hr;
TRACE("data %s, data_size %Iu, filename %s, defines %p, include %p, pump %p, shader_text %p, "
"errors %p, hresult %p.\n",
debugstr_an(data, data_size), data_size, debugstr_a(filename), defines, include, pump,
shader_text, errors, hresult);
if (!data)
return E_FAIL;
if (pump)
FIXME("Unimplemented ID3DX10ThreadPump handling.\n");
hr = D3DPreprocess(data, data_size, filename, defines, include, shader_text, errors);
if (hresult)
*hresult = hr;
return hr;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment