[PATCH 4/5] d3d10: Add a D3D10GetPixelShaderProfile() stub.

Henri Verbeet hverbeet at codeweavers.com
Wed Nov 4 03:37:16 CST 2009


---
 dlls/d3d10/d3d10.spec   |    2 +-
 dlls/d3d10/d3d10_main.c |    7 +++++++
 include/d3d10shader.h   |    1 +
 3 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d10/d3d10.spec b/dlls/d3d10/d3d10.spec
index 26f714e..86e1236 100644
--- a/dlls/d3d10/d3d10.spec
+++ b/dlls/d3d10/d3d10.spec
@@ -12,7 +12,7 @@
 @ stub D3D10GetInputAndOutputSignatureBlob
 @ stub D3D10GetInputSignatureBlob
 @ stub D3D10GetOutputSignatureBlob
-@ stub D3D10GetPixelShaderProfile
+@ stdcall D3D10GetPixelShaderProfile(ptr)
 @ stub D3D10GetShaderDebugInfo
 @ stub D3D10GetVersion
 @ stdcall D3D10GetVertexShaderProfile(ptr)
diff --git a/dlls/d3d10/d3d10_main.c b/dlls/d3d10/d3d10_main.c
index 6ccc254..10bf533 100644
--- a/dlls/d3d10/d3d10_main.c
+++ b/dlls/d3d10/d3d10_main.c
@@ -255,3 +255,10 @@ LPCSTR WINAPI D3D10GetGeometryShaderProfile(ID3D10Device *device)
 
     return "gs_4_0";
 }
+
+LPCSTR WINAPI D3D10GetPixelShaderProfile(ID3D10Device *device)
+{
+    FIXME("device %p stub!\n", device);
+
+    return "ps_4_0";
+}
diff --git a/include/d3d10shader.h b/include/d3d10shader.h
index 3aaf6fe..582a1c9 100644
--- a/include/d3d10shader.h
+++ b/include/d3d10shader.h
@@ -132,5 +132,6 @@ typedef struct _D3D10_SIGNATURE_PARAMETER_DESC
 
 LPCSTR WINAPI D3D10GetVertexShaderProfile(ID3D10Device *device);
 LPCSTR WINAPI D3D10GetGeometryShaderProfile(ID3D10Device *device);
+LPCSTR WINAPI D3D10GetPixelShaderProfile(ID3D10Device *device);
 
 #endif /* __WINE_D3D10SHADER_H */
-- 
1.6.4.4




More information about the wine-patches mailing list