[PATCH] d3dcompiler: Add D3DReadFileToBlob, D3DWriteBlobToFile stubs
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sat Oct 17 22:19:53 CDT 2015
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/d3dcompiler_43/blob.c | 14 ++++++++++++++
dlls/d3dcompiler_46/d3dcompiler_46.spec | 4 ++--
dlls/d3dcompiler_47/d3dcompiler_47.spec | 4 ++--
include/d3dcompiler.h | 3 ++-
4 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/dlls/d3dcompiler_43/blob.c b/dlls/d3dcompiler_43/blob.c
index 865d139..f22dc71 100644
--- a/dlls/d3dcompiler_43/blob.c
+++ b/dlls/d3dcompiler_43/blob.c
@@ -463,3 +463,17 @@ HRESULT WINAPI D3DStripShader(const void *data, SIZE_T data_size, UINT flags, ID
return d3dcompiler_strip_shader(data, data_size, flags, blob);
}
+
+HRESULT WINAPI D3DReadFileToBlob(const WCHAR *filename, ID3DBlob **contents)
+{
+ FIXME("filename %s, contents %p\n", debugstr_w(filename), contents);
+
+ return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DWriteBlobToFile(ID3DBlob* blob, const WCHAR *filename, BOOL overwrite)
+{
+ FIXME("blob %p, filename %s, overwrite %d\n", blob, debugstr_w(filename), overwrite);
+
+ return E_NOTIMPL;
+}
diff --git a/dlls/d3dcompiler_46/d3dcompiler_46.spec b/dlls/d3dcompiler_46/d3dcompiler_46.spec
index 1b145c8a..7234c41 100644
--- a/dlls/d3dcompiler_46/d3dcompiler_46.spec
+++ b/dlls/d3dcompiler_46/d3dcompiler_46.spec
@@ -16,10 +16,10 @@
@ stdcall D3DGetOutputSignatureBlob(ptr long ptr)
@ stub D3DGetTraceInstructionOffsets
@ stdcall D3DPreprocess(ptr long str ptr ptr ptr ptr)
-@ stub D3DReadFileToBlob
+@ stdcall D3DReadFileToBlob(wstr ptr)
@ stdcall D3DReflect(ptr long ptr ptr)
@ stub D3DReturnFailure1
@ stub D3DSetBlobPart
@ stdcall D3DStripShader(ptr long long ptr)
-@ stub D3DWriteBlobToFile
+@ stdcall D3DWriteBlobToFile(ptr wstr long)
@ stub DebugSetMute
diff --git a/dlls/d3dcompiler_47/d3dcompiler_47.spec b/dlls/d3dcompiler_47/d3dcompiler_47.spec
index efa4767..9b2cb7d 100644
--- a/dlls/d3dcompiler_47/d3dcompiler_47.spec
+++ b/dlls/d3dcompiler_47/d3dcompiler_47.spec
@@ -19,11 +19,11 @@
@ stub D3DGetTraceInstructionOffsets
@ stub D3DLoadModule
@ stdcall D3DPreprocess(ptr long str ptr ptr ptr ptr)
-@ stub D3DReadFileToBlob
+@ stdcall D3DReadFileToBlob(wstr ptr)
@ stdcall D3DReflect(ptr long ptr ptr)
@ stub D3DReflectLibrary
@ stub D3DReturnFailure1
@ stub D3DSetBlobPart
@ stdcall D3DStripShader(ptr long long ptr)
-@ stub D3DWriteBlobToFile
+@ stdcall D3DWriteBlobToFile(ptr wstr long)
@ stub DebugSetMute
diff --git a/include/d3dcompiler.h b/include/d3dcompiler.h
index b5e79e6..3f1fdb3 100644
--- a/include/d3dcompiler.h
+++ b/include/d3dcompiler.h
@@ -107,7 +107,8 @@ HRESULT WINAPI D3DGetInputSignatureBlob(const void *data, SIZE_T data_size, ID3D
HRESULT WINAPI D3DGetOutputSignatureBlob(const void *data, SIZE_T data_size, ID3DBlob **blob);
HRESULT WINAPI D3DGetInputAndOutputSignatureBlob(const void *data, SIZE_T data_size, ID3DBlob **blob);
HRESULT WINAPI D3DGetDebugInfo(const void *data, SIZE_T data_size, ID3DBlob **blob);
-
+HRESULT WINAPI D3DReadFileToBlob(const WCHAR *filename, ID3DBlob **contents);
+HRESULT WINAPI D3DWriteBlobToFile(ID3DBlob *blob, const WCHAR *filename, BOOL overwrite);
HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void **reflector);
HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob);
--
2.6.1
More information about the wine-patches
mailing list