forked from Mirrors/wine-wine
d3dcompiler: Stub D3DCompile implementation.
parent
dfdea6c4a5
commit
390b480356
|
@ -491,3 +491,20 @@ cleanup:
|
||||||
LeaveCriticalSection(&wpp_mutex);
|
LeaveCriticalSection(&wpp_mutex);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT WINAPI D3DCompile(const void *data, SIZE_T data_size, const char *filename,
|
||||||
|
const D3D_SHADER_MACRO *defines, ID3DInclude *include, const char *entrypoint,
|
||||||
|
const char *target, UINT sflags, UINT eflags, ID3DBlob **shader, ID3DBlob **error_messages)
|
||||||
|
{
|
||||||
|
FIXME("data %p, data_size %lu, filename %s, defines %p, include %p, entrypoint %s,\n"
|
||||||
|
"target %s, sflags %#x, eflags %#x, shader %p, error_messages %p stub!\n",
|
||||||
|
data, data_size, debugstr_a(filename), defines, include, debugstr_a(entrypoint),
|
||||||
|
debugstr_a(target), sflags, eflags, shader, error_messages);
|
||||||
|
|
||||||
|
TRACE("Shader source:\n%s\n", debugstr_an(data, data_size));
|
||||||
|
|
||||||
|
if (error_messages)
|
||||||
|
D3DCreateBlob(1, error_messages); /* zero fill used as string end */
|
||||||
|
|
||||||
|
return D3DERR_INVALIDCALL;
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@ stdcall D3DAssemble(ptr long str ptr ptr long ptr ptr)
|
@ stdcall D3DAssemble(ptr long str ptr ptr long ptr ptr)
|
||||||
@ stub DebugSetMute
|
@ stub DebugSetMute
|
||||||
@ stub D3DCompile
|
@ stdcall D3DCompile(ptr long str ptr ptr str str long long ptr ptr)
|
||||||
@ stub D3DCompressShaders
|
@ stub D3DCompressShaders
|
||||||
@ stdcall D3DCreateBlob(long ptr)
|
@ stdcall D3DCreateBlob(long ptr)
|
||||||
@ stub D3DDecompressShaders
|
@ stub D3DDecompressShaders
|
||||||
|
|
|
@ -41,6 +41,10 @@
|
||||||
#define D3DCOMPILE_OPTIMIZATION_LEVEL3 0x8000
|
#define D3DCOMPILE_OPTIMIZATION_LEVEL3 0x8000
|
||||||
#define D3DCOMPILE_WARNINGS_ARE_ERRORS 0x40000
|
#define D3DCOMPILE_WARNINGS_ARE_ERRORS 0x40000
|
||||||
|
|
||||||
|
HRESULT WINAPI D3DCompile(const void *data, SIZE_T data_size, const char *filename,
|
||||||
|
const D3D_SHADER_MACRO *defines, ID3DInclude *include, const char *entrypoint,
|
||||||
|
const char *target, UINT sflags, UINT eflags, ID3DBlob **shader, ID3DBlob **error_messages);
|
||||||
|
|
||||||
HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob);
|
HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue