d3dcompiler: Add D3DCreateLinker stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52622
This commit is contained in:
Vijay Kiran Kamuju 2024-03-17 21:49:28 +01:00 committed by Alexandre Julliard
parent 86557b9e0b
commit 3719aed1f9
4 changed files with 24 additions and 1 deletions

View file

@ -774,6 +774,12 @@ end:
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)
{
FIXME("data %p, size %Iu, module %p stub!\n", data, size, module);

View file

@ -5,7 +5,7 @@
@ stub D3DCompressShaders
@ stdcall D3DCreateBlob(long ptr)
@ stub D3DCreateFunctionLinkingGraph
@ stub D3DCreateLinker
@ stdcall D3DCreateLinker(ptr)
@ stub D3DDecompressShaders
@ stdcall D3DDisassemble(ptr long long ptr ptr)
@ stub D3DDisassemble10Effect(ptr long ptr)

View file

@ -261,4 +261,20 @@ DECLARE_INTERFACE_(ID3D11Module, IUnknown)
};
#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

View file

@ -153,6 +153,7 @@ typedef HRESULT (WINAPI *pD3DPreprocess)(const void *data, SIZE_T size, const ch
const D3D_SHADER_MACRO *defines, ID3DInclude *include,
ID3DBlob **shader, ID3DBlob **error_messages);
HRESULT WINAPI D3DCreateLinker(ID3D11Linker **linker);
HRESULT WINAPI D3DLoadModule(const void *data, SIZE_T size, ID3D11Module **module);
#ifdef __cplusplus