Commit 3719aed1 authored by Vijay Kiran Kamuju's avatar Vijay Kiran Kamuju Committed by Alexandre Julliard

d3dcompiler: Add D3DCreateLinker stub.

parent 86557b9e
...@@ -774,6 +774,12 @@ end: ...@@ -774,6 +774,12 @@ end:
return hr; return hr;
} }
HRESULT WINAPI D3DCreateLinker(ID3D11Linker **linker)
{
FIXME("linker %p stub!\n", linker);
return E_NOTIMPL;
}
HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module) HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module)
{ {
FIXME("data %p, size %Iu, module %p stub!\n", data, size, module); FIXME("data %p, size %Iu, module %p stub!\n", data, size, module);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
@ stub D3DCompressShaders @ stub D3DCompressShaders
@ stdcall D3DCreateBlob(long ptr) @ stdcall D3DCreateBlob(long ptr)
@ stub D3DCreateFunctionLinkingGraph @ stub D3DCreateFunctionLinkingGraph
@ stub D3DCreateLinker @ stdcall D3DCreateLinker(ptr)
@ stub D3DDecompressShaders @ stub D3DDecompressShaders
@ stdcall D3DDisassemble(ptr long long ptr ptr) @ stdcall D3DDisassemble(ptr long long ptr ptr)
@ stub D3DDisassemble10Effect(ptr long ptr) @ stub D3DDisassemble10Effect(ptr long ptr)
......
...@@ -261,4 +261,20 @@ DECLARE_INTERFACE_(ID3D11Module, IUnknown) ...@@ -261,4 +261,20 @@ DECLARE_INTERFACE_(ID3D11Module, IUnknown)
}; };
#undef INTERFACE #undef INTERFACE
DEFINE_GUID(IID_ID3D11Linker, 0x59a6cd0e, 0xe10d, 0x4c1f, 0x88, 0xc0, 0x63, 0xab, 0xa1, 0xda, 0xf3, 0x0e);
#define INTERFACE ID3D11Linker
DECLARE_INTERFACE_(ID3D11Linker, IUnknown)
{
STDMETHOD(QueryInterface)(THIS_ REFIID iid, void **out) PURE;
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
STDMETHOD_(ULONG, Release)(THIS) PURE;
/* ID3D11Linker methods */
STDMETHOD(Link)(THIS_ ID3D11ModuleInstance *instance, LPCSTR instname, LPCSTR targetname, UINT flags, ID3DBlob **shader, ID3DBlob **error) PURE;
STDMETHOD(UseLibrary)(THIS_ ID3D11ModuleInstance *libinstance) PURE;
STDMETHOD(AddClipPlaneFromCBuffer)(THIS_ UINT bufferslot, UINT bufferentry) PURE;
};
#undef INTERFACE
#endif #endif
...@@ -153,6 +153,7 @@ typedef HRESULT (WINAPI *pD3DPreprocess)(const void *data, SIZE_T size, const ch ...@@ -153,6 +153,7 @@ typedef HRESULT (WINAPI *pD3DPreprocess)(const void *data, SIZE_T size, const ch
const D3D_SHADER_MACRO *defines, ID3DInclude *include, const D3D_SHADER_MACRO *defines, ID3DInclude *include,
ID3DBlob **shader, ID3DBlob **error_messages); ID3DBlob **shader, ID3DBlob **error_messages);
HRESULT WINAPI D3DCreateLinker(ID3D11Linker **linker);
HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module); HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module);
#ifdef __cplusplus #ifdef __cplusplus
......
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